/**
 * Theme 2: High-Density Mega Marketplace (Daraz / AliExpress / Shopee style)
 * 3-Part Hero (Category Tree, Promo Banner, User Box) + Flash Sale + Just For You Grid
 * STRICTLY ZERO GRADIENTS - 100% Solid Dynamic 2-Color Palette
 */

/* 3-Part Hero Layout with Strict Section Bounds */
.t2-mega-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

/* Mobile & Tablet Portrait (< 992px): Clean single full-width carousel banner */
@media (max-width: 991px) {
  .t2-mega-hero {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
  }
  .t2-cat-nav {
    display: none !important;
  }
  .t2-user-widget {
    display: none !important;
  }
  .t2-campaign-banner {
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
  }
  .t2-slider-container,
  .t2-slider-track,
  .t2-slide {
    height: 100% !important;
    max-height: 320px !important;
  }
}

@media (max-width: 767px) {
  .t2-mega-hero {
    margin-top: 8px !important;
    margin-bottom: 16px !important;
  }
  .t2-campaign-banner {
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    border-radius: var(--radius-md) !important;
  }
  .t2-slider-container,
  .t2-slider-track,
  .t2-slide {
    height: 100% !important;
    max-height: 240px !important;
  }
}

/* Medium Desktop / Squarish Window / Tablet Landscape (992px - 1199px): Spacious 2-Column Grid */
@media (min-width: 992px) and (max-width: 1199px) {
  .t2-mega-hero {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 16px !important;
    align-items: stretch !important;
    height: 380px !important;
    max-height: 380px !important;
  }
  .t2-cat-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 380px !important;
  }
  .t2-campaign-banner {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 380px !important;
  }
  .t2-user-widget {
    display: none !important;
  }
}

/* Large Desktop (>= 1200px): Full 3-Column Marketplace Layout */
@media (min-width: 1200px) {
  .t2-mega-hero {
    display: grid !important;
    grid-template-columns: 250px 1fr 220px !important;
    gap: 16px !important;
    align-items: stretch !important;
    height: 380px !important;
    max-height: 380px !important;
  }
  .t2-cat-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 380px !important;
  }
  .t2-campaign-banner {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 380px !important;
  }
  .t2-user-widget {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 380px !important;
  }
}

/* 1. Left Vertical Category Drawer (Fixed 380px with Clean Internal Scrolling) */
.t2-cat-nav {
  background-color: var(--bnago-surface);
  border: 1px solid var(--bnago-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: none;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  max-height: 380px;
}

@media (min-width: 992px) {
  .t2-cat-nav {
    display: flex;
  }
}

.t2-cat-nav-title {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--bnago-primary-text, #ffffff) !important;
  border-bottom: 1px solid var(--bnago-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bnago-primary) !important;
  flex-shrink: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.t2-cat-nav-title svg, .t2-cat-nav-title i {
  color: inherit !important;
  stroke: currentColor !important;
}

.t2-cat-nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #ffffff !important;
  color: var(--bnago-primary) !important;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.t2-cat-nav-list {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  overflow-y: auto;
  flex: 1 1 0%;
  min-height: 0;
  max-height: none;
  scrollbar-width: thin;
  scrollbar-color: var(--bnago-primary) #f1f5f9;
}

.t2-cat-nav-list::-webkit-scrollbar {
  width: 5px;
}

.t2-cat-nav-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.t2-cat-nav-list::-webkit-scrollbar-thumb {
  background: var(--bnago-primary);
  border-radius: 4px;
}

.t2-cat-nav-list::-webkit-scrollbar-thumb:hover {
  background: var(--bnago-primary-dark, var(--bnago-primary));
}

.t2-cat-item {
  position: relative;
}

.t2-cat-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bnago-text);
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  line-height: 1.35;
  text-decoration: none;
  gap: 8px;
}

.t2-cat-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.t2-cat-name-wrap i {
  font-size: 9px;
  opacity: 0.45;
  flex-shrink: 0;
}

.t2-cat-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.t2-cat-nav-link:hover,
.t2-cat-item.active .t2-cat-nav-link {
  background-color: var(--bnago-surface-subtle);
  color: var(--bnago-secondary);
  border-left-color: var(--bnago-secondary);
  padding-left: 16px;
}

.t2-cat-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  background-color: var(--bnago-surface-subtle);
  color: var(--bnago-text-muted);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.t2-cat-nav-link:hover .t2-cat-pill,
.t2-cat-item.active .t2-cat-pill {
  background-color: var(--bnago-secondary);
  color: var(--bnago-secondary-text, #ffffff);
}

.t2-cat-nav-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--bnago-border);
  background-color: #f8fafc;
  text-align: center;
  flex-shrink: 0;
  margin-top: auto;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.t2-cat-more-link {
  font-size: 11px;
  font-weight: 800;
  color: var(--bnago-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.t2-cat-more-link:hover {
  text-decoration: underline;
}

/* 2. Central Marketplace Campaign Banner */
.t2-campaign-banner {
  background-color: var(--bnago-primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  max-height: 380px;
}

/* Slider Track & Slide Animation */
.t2-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.t2-slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.t2-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  display: flex;
  box-sizing: border-box;
  z-index: 1;
}

.t2-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Mode A: Split Slide (Text on Left + Graphic on Right) */
.t2-split-slide {
  width: 100%;
  height: 100%;
  padding: 16px 36px 16px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.t2-campaign-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex: 1;
}

@media (min-width: 768px) {
  .t2-campaign-body {
    grid-template-columns: 1fr 1fr;
  }
}

.t2-campaign-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.t2-campaign-badge,
.t2-campaign-tag {
  background-color: var(--bnago-secondary);
  color: var(--bnago-secondary-text, #ffffff);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  width: max-content;
}

.t2-campaign-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
  color: #ffffff;
  word-break: break-word;
}

@media (min-width: 768px) {
  .t2-campaign-title {
    font-size: 23px;
  }
}

.t2-campaign-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 12px;
  max-width: 460px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t2-campaign-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.t2-campaign-btns .btn {
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.t2-campaign-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 280px;
  max-height: 330px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.t2-graphic-badge {
  display: inline-flex;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background-color: var(--bnago-secondary);
  color: #ffffff;
  z-index: 5;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.t2-graphic-img {
  width: 100%;
  height: 100%;
  max-height: 310px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  display: block;
}

@media (max-width: 767px) {
  .t2-split-slide {
    padding: 14px 42px 14px 42px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .t2-campaign-body {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
    height: 100% !important;
  }
  .t2-campaign-content {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    z-index: 2 !important;
  }
  .t2-campaign-tag {
    font-size: 8.5px !important;
    padding: 2px 8px !important;
    margin-bottom: 5px !important;
    letter-spacing: 0.5px !important;
    width: max-content !important;
  }
  .t2-campaign-title {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin-bottom: 5px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .t2-campaign-desc {
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    opacity: 0.9 !important;
  }
  .t2-campaign-btns {
    gap: 6px !important;
    margin-top: 2px !important;
  }
  .t2-campaign-btns .btn {
    padding: 6px 14px !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    width: max-content !important;
  }
  .t2-campaign-btns .btn:nth-child(n+2) {
    display: none !important;
  }
  .t2-campaign-graphic {
    display: flex !important;
    flex: 0 0 44% !important;
    width: 44% !important;
    max-width: 220px !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    padding: 0 !important;
    border-radius: var(--radius-md) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  }
  .t2-graphic-badge {
    display: inline-flex !important;
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    font-size: 8px !important;
    padding: 2px 6px !important;
    border-radius: var(--radius-xs) !important;
    background-color: var(--bnago-secondary) !important;
    color: var(--bnago-secondary-text, #ffffff) !important;
    z-index: 5 !important;
    letter-spacing: 0.5px !important;
  }
  .t2-graphic-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: inherit !important;
    display: block !important;
  }
  .t2-slider-arrow {
    width: 28px !important;
    height: 28px !important;
    opacity: 0.85 !important;
  }
  .t2-slider-arrow.prev {
    left: 6px !important;
  }
  .t2-slider-arrow.next {
    right: 6px !important;
  }
  .t2-carousel-dots {
    bottom: 6px !important;
  }
  .t2-dot {
    width: 6px !important;
    height: 6px !important;
  }
  .t2-dot.active {
    width: 16px !important;
  }
  .t2-full-slide-overlay {
    padding: 14px 42px 20px 42px !important;
  }
  .t2-full-slide-title {
    font-size: 16px !important;
  }
  .t2-full-slide-subtitle {
    font-size: 11px !important;
    -webkit-line-clamp: 1 !important;
  }
}

.t2-graphic-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--bnago-secondary);
  color: var(--bnago-secondary-text, #ffffff);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  z-index: 5;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.t2-graphic-img {
  width: 100%;
  height: 100%;
  max-height: 330px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transition: transform var(--transition-normal);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

.t2-campaign-banner:hover .t2-graphic-img {
  transform: scale(1.04);
}

/* Mode B: Full-Bleed Promotional Ad Slider */
.t2-full-slide {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background-color: #0f172a;
}

.t2-full-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.t2-full-slide:hover .t2-full-slide-img {
  transform: scale(1.02);
}

.t2-full-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px 36px;
  pointer-events: none;
  color: #ffffff;
}

.t2-full-slide-tag {
  background-color: var(--bnago-secondary);
  color: var(--bnago-secondary-text, #ffffff);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  width: max-content;
}

.t2-full-slide-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.t2-full-slide-subtitle {
  font-size: 13px;
  color: #e2e8f0;
  margin: 0;
  max-width: 500px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Slider Controls: Arrows */
.t2-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.2s ease;
}

.t2-campaign-banner:hover .t2-slider-arrow {
  opacity: 1;
}

.t2-slider-arrow:hover {
  background: var(--bnago-primary);
  color: var(--bnago-primary-text, #ffffff);
  transform: translateY(-50%) scale(1.08);
}

.t2-slider-arrow.prev {
  left: 10px;
}

.t2-slider-arrow.next {
  right: 10px;
}

.t2-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0;
  z-index: 10;
}

.t2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  padding: 0;
}

.t2-dot.active {
  width: 22px;
  border-radius: 4px;
  background-color: var(--bnago-primary) !important;
}

/* 3. Right User Quick Box / Daily Deals */
.t2-user-widget {
  background-color: var(--bnago-surface);
  border: 1px solid var(--bnago-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 14px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  max-height: 380px;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .t2-user-widget {
    display: flex !important;
  }
}

.t2-user-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bnago-border);
}

.t2-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--bnago-secondary);
}

.t2-voucher-box {
  background-color: var(--bnago-secondary-subtle);
  border: 1.5px dashed var(--bnago-secondary);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  margin-bottom: 12px;
}

/* Trust Service Strip */
.t2-service-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .t2-service-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.t2-service-item {
  background-color: var(--bnago-surface);
  border: 1px solid var(--bnago-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  box-sizing: border-box;
}

.t2-service-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--bnago-surface-subtle);
  color: var(--bnago-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Official Brand Mall Highlight Strip (6 Official Brands Display) */
.t2-brands-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .t2-brands-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .t2-brands-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
}

.t2-brand-item {
  background-color: var(--bnago-surface);
  border: 1px solid var(--bnago-border);
  border-radius: var(--radius-md);
  padding: 10px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  box-sizing: border-box;
  transition: all 0.2s ease;
  min-width: 0;
}

.t2-brand-item:hover {
  border-color: var(--bnago-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.t2-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--bnago-border);
  flex-shrink: 0;
}

.t2-brand-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bnago-text);
  line-height: 1.25;
}

.t2-brand-item span {
  display: block;
  font-size: 11px;
  color: var(--bnago-text-muted);
  line-height: 1.3;
}

/* Upgraded High-Impact Flash Deals Bar & Large Digital Clock */
.t2-flash-bar {
  background-color: var(--bnago-surface);
  border: 1.5px solid var(--bnago-border);
  border-left: 5px solid var(--bnago-secondary);
  border-radius: var(--radius-lg, 12px);
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.t2-flash-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.t2-flash-badge {
  font-size: 15px;
  font-weight: 900;
  color: var(--bnago-primary-text, #ffffff) !important;
  background: var(--bnago-primary) !important;
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 12px rgba(var(--bnago-primary-rgb), 0.28);
  transition: all 0.2s ease;
}

.t2-flash-badge * {
  color: var(--bnago-primary-text, #ffffff) !important;
}

.t2-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--bnago-primary-text, #ffffff) !important;
  animation: liveBlink 1.2s infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9) !important;
}

@keyframes liveBlink {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.t2-flash-subtext {
  font-size: 12px;
  color: var(--bnago-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.t2-flash-flame {
  color: var(--bnago-primary) !important;
  font-size: 14px;
}

.t2-timer-container {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  background: var(--bnago-surface, #ffffff);
  border: 1.5px solid var(--bnago-border, #e2e8f0);
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.t2-timer-headline {
  font-size: 11px;
  font-weight: 800;
  color: var(--bnago-text-muted, #64748b);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.t2-timer-digits-wrap {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 5px;
  flex-shrink: 0;
}

.t2-timer-card, .t2-timer-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bnago-primary, #dc2626);
  border-radius: 6px;
  padding: 3px 7px;
  min-width: 38px;
  box-shadow: 0 2px 8px rgba(var(--bnago-primary-rgb, 220, 38, 38), 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.t2-timer-digit {
  color: #ffffff !important;
  font-family: monospace, ui-monospace;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.5px;
  display: block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.t2-timer-sub {
  font-size: 8px;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
  display: block;
  text-align: center;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.t2-timer-sep {
  font-size: 16px;
  font-weight: 900;
  color: var(--bnago-primary, #dc2626);
  line-height: 1;
  display: inline-block;
  margin: 0 1px;
}

.t2-flash-actions .t2-flash-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--bnago-primary);
  color: var(--bnago-primary-text, #ffffff) !important;
  border-radius: var(--radius-full, 9999px);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(var(--bnago-primary-rgb), 0.2);
}

.t2-flash-actions .t2-flash-cta-btn:hover {
  background: var(--bnago-primary-dark);
  transform: translateX(2px);
  box-shadow: 0 5px 14px rgba(var(--bnago-primary-rgb), 0.3);
}

/* 6-COLUMN HIGH-DENSITY MARKETPLACE GRID (Safe minmax grid) */
.t2-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 32px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .t2-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 992px) {
  .t2-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1200px) {
  .t2-products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Marketplace Compact Card */
.t2-product-card {
  background-color: var(--bnago-surface);
  border: 1px solid var(--bnago-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.t2-product-card:hover {
  border-color: var(--bnago-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.t2-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background-color: #f8fafc;
  overflow: hidden;
  box-sizing: border-box;
}

.t2-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.t2-product-card:hover .t2-card-img {
  transform: scale(1.06);
}

.t2-discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: var(--bnago-secondary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: var(--radius-xs);
  z-index: 2;
}

.t2-product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.t2-store-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--bnago-text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t2-product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--bnago-primary);
  line-height: 1.4;
  min-height: 40px;
  max-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.18s ease;
}

.t2-product-name:hover {
  color: var(--bnago-primary-dark);
}

.t2-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.t2-price-curr {
  font-size: 16px;
  font-weight: 800;
  color: var(--bnago-primary);
}

.t2-price-old {
  font-size: 11px;
  color: var(--bnago-text-muted);
  text-decoration: line-through;
}

.t2-stock-meta {
  font-size: 10px;
  color: var(--bnago-text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.t2-stock-track {
  width: 100%;
  height: 5px;
  background-color: var(--bnago-surface-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
}

.t2-stock-fill {
  height: 100%;
  background-color: var(--bnago-primary);
  border-radius: var(--radius-full);
}

.t2-btn-buy {
  margin-top: auto;
  width: 100%;
  height: 38px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background-color: var(--bnago-primary);
  border: 1px solid var(--bnago-primary-dark);
  color: var(--bnago-primary-text, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(var(--bnago-primary-rgb, 15, 23, 42), 0.12);
  box-sizing: border-box;
}

.t2-btn-buy:hover {
  background-color: var(--bnago-secondary);
  border-color: var(--bnago-secondary-dark);
  color: var(--bnago-secondary-text, #ffffff);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(var(--bnago-secondary-rgb, 225, 29, 72), 0.25);
}

/* Brand Mall Strip */
.t2-mall-card {
  background-color: var(--bnago-surface);
  border: 1px solid var(--bnago-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.t2-mall-card:hover {
  border-color: var(--bnago-secondary);
  transform: translateY(-2px);
}

.t2-mall-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--bnago-border);
  flex-shrink: 0;
}

/* =========================================================
   Theme 2 Custom Header & Navigation (Daraz Mega Bazaar)
   STRICTLY ZERO GRADIENTS - Dynamic Admin 2-Color Palette
   ========================================================= */
.bnago-topbar-t2 {
  background-color: var(--bnago-primary-dark);
  color: var(--bnago-primary-dark-text);
  font-size: 12px;
  padding: 8px 0;
  width: 100%;
}

.bnago-header-t2 {
  background-color: #ffffff;
  color: #111827;
  padding: 14px 0;
  border-bottom: 2px solid var(--bnago-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.t2-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.t2-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--bnago-secondary);
  color: var(--bnago-secondary-text, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.t2-brand-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--bnago-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
  display: flex;
  align-items: center;
}

.t2-brand-subtitle {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
}

.t2-search-form {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 2px solid var(--bnago-primary);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.t2-search-select {
  background-color: #f8fafc;
  border: none;
  border-right: 1px solid var(--bnago-border);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bnago-primary);
  outline: none;
  cursor: pointer;
}

.t2-search-input {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  color: #111827;
  outline: none;
  min-width: 0;
}

.t2-search-btn {
  background-color: var(--bnago-primary);
  color: var(--bnago-primary-text, #ffffff);
  border: none;
  padding: 10px 22px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter var(--transition-fast);
}

.t2-search-btn:hover {
  filter: brightness(1.15);
}

.t2-header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  position: relative;
  transition: all var(--transition-fast);
}

.t2-header-btn:hover {
  background-color: var(--bnago-surface-subtle);
  color: var(--bnago-secondary);
}

.t2-badge-counter {
  position: absolute;
  top: 2px;
  right: 4px;
  background-color: var(--bnago-secondary);
  color: var(--bnago-secondary-text, #ffffff);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.bnago-subnav-t2 {
  background-color: var(--bnago-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
}

.t2-subnav-link {
  color: var(--bnago-primary-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  display: inline-block;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.t2-subnav-link:hover,
.t2-subnav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--bnago-primary-text);
}

.t2-subnav-side {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 12px;
}

.t2-subnav-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--bnago-primary-on-light, var(--bnago-primary));
  background-color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.t2-subnav-action-link *, .t2-subnav-action-link span {
  color: var(--bnago-primary-on-light, var(--bnago-primary));
  font-weight: 800;
}

.t2-subnav-action-link i, .t2-subnav-action-link svg {
  color: var(--bnago-primary-on-light, var(--bnago-primary));
  stroke: currentColor;
}

.t2-subnav-action-link:hover {
  background-color: var(--bnago-primary-dark, #0f172a);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.t2-subnav-action-link:hover *, .t2-subnav-action-link:hover span, .t2-subnav-action-link:hover i, .t2-subnav-action-link:hover svg {
  color: #ffffff;
  stroke: currentColor;
}

.t2-subnav-action-link.admin-pill {
  color: var(--bnago-primary-on-light, var(--bnago-primary));
  background-color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.t2-subnav-action-link.admin-pill span {
  color: var(--bnago-primary-on-light, var(--bnago-primary));
}

.t2-subnav-action-link.admin-pill i {
  color: var(--bnago-primary-on-light, var(--bnago-primary));
}

.t2-subnav-action-link.admin-pill:hover {
  background-color: var(--bnago-primary-dark, #065f46);
  color: #ffffff;
  border-color: var(--bnago-primary-dark, #065f46);
}

.t2-subnav-action-link.admin-pill:hover span,
.t2-subnav-action-link.admin-pill:hover i {
  color: #ffffff;
}

.t2-subnav-action-link.vendor-pill {
  color: var(--bnago-primary-on-light, var(--bnago-primary));
  background-color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.t2-subnav-action-link.vendor-pill span {
  color: var(--bnago-primary-on-light, var(--bnago-primary));
}

.t2-subnav-action-link.vendor-pill i {
  color: var(--bnago-primary-on-light, var(--bnago-primary));
}

.t2-subnav-action-link.vendor-pill:hover {
  background-color: var(--bnago-primary-dark, #065f46);
  color: #ffffff;
  border-color: var(--bnago-primary-dark, #065f46);
}

.t2-subnav-action-link.vendor-pill:hover span,
.t2-subnav-action-link.vendor-pill:hover i {
  color: #ffffff;
}

/* Responsive & Mobile Optimization for Theme 2 Header & Subnav */
@media (max-width: 991px) {
  .bnago-header-t2 .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .bnago-header-t2 .header-search-container {
    order: 3;
    width: 100%;
    margin: 0;
    max-width: 100%;
  }
  .bnago-subnav-t2 .subnav-inner,
  .bnago-subnav-t2 .subnav-links-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .bnago-subnav-t2 .subnav-inner::-webkit-scrollbar,
  .bnago-subnav-t2 .subnav-links-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

@media (max-width: 768px) {
  .bnago-topbar-t2 {
    display: none;
  }
  .t2-cam-btn {
    display: none;
  }
  .t2-header-btn span:not(.t2-badge-counter) {
    display: none;
  }
  .t2-brand-subtitle {
    display: none;
  }
  .t2-subnav-side {
    display: none !important;
  }
  .header-trending-strip {
    display: none;
  }
}

/* Mobile Category Carousel (<992px) */
.t2-mobile-cat-strip {
  display: block;
  margin-bottom: 24px;
}

@media (min-width: 992px) {
  .t2-mobile-cat-strip {
    display: none !important;
  }
}

.t2-mobile-cat-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.t2-mobile-cat-scroll::-webkit-scrollbar {
  display: none;
}

.t2-mobile-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex: 0 0 78px;
  text-align: center;
}

.t2-mobile-cat-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--bnago-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease;
}

.t2-mobile-cat-item:hover .t2-mobile-cat-icon {
  transform: scale(1.08);
  border-color: var(--bnago-secondary);
}

.t2-mobile-cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t2-mobile-cat-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--bnago-text);
  line-height: 1.2;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Theme 2 High-Contrast, Theme-Adjustable Header Action Buttons */
.bnago-header-t2 .header-notif-btn {
  background-color: var(--bnago-primary) !important;
  color: var(--bnago-primary-text, #ffffff) !important;
  border: 1.5px solid var(--bnago-primary) !important;
  box-shadow: 0 2px 5px rgba(var(--bnago-primary-rgb), 0.25) !important;
}

.bnago-header-t2 .header-notif-btn svg {
  color: var(--bnago-primary-text, #ffffff) !important;
  stroke: #ffffff !important;
}

.bnago-header-t2 .header-notif-btn:hover {
  background-color: var(--bnago-primary-dark) !important;
  border-color: var(--bnago-primary-dark) !important;
  color: var(--bnago-primary-text, #ffffff) !important;
  transform: translateY(-1px);
}

.bnago-header-t2 .header-wishlist-btn {
  background-color: #f8fafc !important;
  color: var(--bnago-primary, #0f172a) !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.bnago-header-t2 .header-wishlist-btn:hover {
  background-color: var(--bnago-primary) !important;
  border-color: var(--bnago-primary) !important;
  color: var(--bnago-primary-text, #ffffff) !important;
  transform: translateY(-1px);
}

.bnago-header-t2 .header-wishlist-count {
  background-color: var(--bnago-primary) !important;
  color: var(--bnago-primary-text, #ffffff) !important;
}

.bnago-header-t2 .header-cart-btn {
  background-color: var(--bnago-primary) !important;
  color: var(--bnago-primary-text, #ffffff) !important;
  border: 1.5px solid var(--bnago-primary) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.bnago-header-t2 .header-cart-btn svg,
.bnago-header-t2 .header-cart-btn:hover svg,
.bnago-header-t2 .header-cart-btn svg path,
.bnago-header-t2 .header-cart-btn:hover svg path {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
}

.bnago-header-t2 .header-cart-count {
  background-color: #ffffff !important;
  color: var(--bnago-primary) !important;
}

.bnago-header-t2 .user-menu-wrap .header-action-btn {
  background-color: #f8fafc !important;
  color: var(--bnago-primary, #0f172a) !important;
  border: 1.5px solid #cbd5e1 !important;
}

.bnago-header-t2 .user-menu-wrap .header-action-btn:hover {
  border-color: var(--bnago-primary) !important;
  color: var(--bnago-primary) !important;
}

/* Recently Viewed Products Strip */
.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .recently-viewed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .recently-viewed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .recently-viewed-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.recently-viewed-card {
  background: var(--bnago-surface);
  border: 1px solid var(--bnago-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.recently-viewed-card:hover {
  border-color: var(--bnago-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.recently-viewed-img-wrap {
  width: 100%;
  height: 110px;
  background: #f8fafc;
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recently-viewed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.recently-viewed-card:hover .recently-viewed-img {
  transform: scale(1.05);
}

.recently-viewed-info {
  width: 100%;
  text-align: center;
}

.recently-viewed-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--bnago-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.recently-viewed-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--bnago-secondary);
}

/* ==========================================================================
/* ==========================================================================
   THEME 2: MODERN LUCKY BAZAAR WHEEL & COMPACT VOUCHER SYSTEM (RESPONSIVE)
   ========================================================================== */
.t2-wheel-section {
  margin-bottom: 44px;
  scroll-margin-top: 140px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.t2-wheel-banner-card {
  --wheel-size: 270px;
  background: linear-gradient(135deg, var(--bnago-primary) 0%, var(--bnago-primary-dark) 100%);
  border-radius: 16px;
  padding: 30px 28px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(var(--bnago-primary-rgb), 0.25);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Safely contained background decoration circles */
.t2-wheel-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.t2-wheel-bg-circle-1 {
  top: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.t2-wheel-bg-circle-2 {
  bottom: -30px;
  left: 30%;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
}

.t2-wheel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.t2-wheel-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.t2-wheel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  width: fit-content;
  box-sizing: border-box;
}

.t2-wheel-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.t2-wheel-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 520px;
}

.t2-wheel-action-slot {
  min-height: 48px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.wheel-state-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.wheel-spin-action-btn {
  background: #ffffff !important;
  color: var(--bnago-primary) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  padding: 11px 24px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap;
}

.wheel-spin-action-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.wheel-spin-action-btn:active {
  transform: translateY(0) scale(0.98);
}

.wheel-spin-action-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed !important;
  transform: none !important;
}

.wheel-avail-badge {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.wheel-pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: wheelDotPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes wheelDotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(var(--bnago-primary-rgb), 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--bnago-primary-rgb), 0); }
}

/* Compact In-Slot Coupon Box (Zero Layout Shift) */
.voucher-compact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  border: 1.5px dashed var(--bnago-secondary);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.voucher-compact-box:hover {
  background: rgba(15, 23, 42, 0.75);
  border-color: var(--bnago-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(var(--bnago-secondary-rgb), 0.25);
}

.voucher-compact-box:active {
  transform: scale(0.99);
}

.voucher-badge-tag {
  background: var(--bnago-secondary);
  color: var(--bnago-secondary-text, #ffffff);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.voucher-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.voucher-won-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.voucher-sub-hint {
  font-size: 10.5px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.voucher-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--bnago-primary-on-light, #0f172a);
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.voucher-compact-box:hover .voucher-code-pill {
  background: var(--bnago-secondary-subtle);
  color: var(--bnago-secondary);
}

.voucher-code-pill.copied {
  background: var(--bnago-primary) !important;
  color: var(--bnago-primary-text, #ffffff) !important;
}

.voucher-respin-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.25s ease;
  flex-shrink: 0;
  padding: 0;
}

.voucher-respin-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(180deg);
}

/* Modern Wheel Interactive Assembly */
.bazaar-wheel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  user-select: none;
  padding-top: 16px;
  width: 100%;
  box-sizing: border-box;
}

.bazaar-wheel-assembly {
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.bazaar-wheel-assembly:hover {
  transform: scale(1.025);
}

.bazaar-wheel-rim {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bnago-secondary-light, var(--bnago-secondary)) 0%, var(--bnago-primary) 50%, var(--bnago-primary-dark) 100%);
  padding: calc(var(--wheel-size) * 0.035);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.8), inset 0 -3px 6px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  position: relative;
}

.bazaar-wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
  transition: transform 4.2s cubic-bezier(0.12, 0.8, 0.33, 1);
}

.bazaar-wheel-disc.is-spinning {
  filter: blur(0.4px);
}

.bazaar-wheel-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--wheel-size) * 0.24);
  height: calc(var(--wheel-size) * 0.24);
  min-width: 44px;
  min-height: 44px;
  max-width: 66px;
  max-height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f8fafc 55%, #cbd5e1 100%);
  border: 3px solid #fbbf24;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38), inset 0 2px 4px #ffffff, inset 0 -2px 4px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  box-sizing: border-box;
}

.bazaar-wheel-assembly:hover .bazaar-wheel-center-hub {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6), inset 0 2px 4px #ffffff;
}

.hub-spin-icon {
  font-size: calc(var(--wheel-size) * 0.052);
  line-height: 1;
  color: #0f172a;
}

.hub-spin-text {
  font-size: calc(var(--wheel-size) * 0.038);
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #0f172a;
  text-transform: uppercase;
}

.bazaar-wheel-pointer {
  position: absolute;
  top: calc(var(--wheel-size) * -0.045);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--wheel-size) * 0.115);
  max-width: 32px;
  min-width: 20px;
  z-index: 25;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  transition: transform 0.15s ease;
}

.bazaar-wheel-pointer svg {
  width: 100%;
  height: auto;
  display: block;
}

.bazaar-wheel-pointer.is-ticking {
  animation: pointerTick 0.12s infinite alternate ease-in-out;
}

@keyframes pointerTick {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(-10deg); }
}

.carnival-bulbs-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
}

/* ==========================================================================
   THEME 2: MOBILE APP DOWNLOAD CARNIVAL BANNER (RESPONSIVE)
   ========================================================================== */
.t2-app-banner {
  background: linear-gradient(135deg, var(--bnago-primary-dark, #0f172a) 0%, rgba(var(--bnago-primary-rgb), 0.90) 100%);
  border-radius: 16px;
  padding: 32px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(var(--bnago-primary-rgb), 0.2);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.t2-app-banner-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.t2-app-banner-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin: 10px 0 8px 0;
  line-height: 1.25;
}

.t2-app-banner-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 520px;
}

.t2-app-banner-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.t2-app-qr-card {
  text-align: center;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ==========================================================================
   BREAKPOINTS: TABLET & LAPTOP (max-width: 991px)
   ========================================================================== */
@media (max-width: 991px) {
  .t2-wheel-banner-card {
    --wheel-size: 240px;
    padding: 26px 22px;
  }
  .t2-wheel-title {
    font-size: 24px;
  }
}

/* ==========================================================================
   BREAKPOINTS: TABLET PORTRAIT / MEDIUM SCREENS (max-width: 860px)
   ========================================================================== */
@media (max-width: 860px) {
  .t2-wheel-banner-card {
    --wheel-size: 220px;
    padding: 24px 20px;
  }
  .t2-wheel-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 22px;
  }
  .t2-wheel-content-col {
    align-items: center;
    text-align: center;
  }
  .t2-wheel-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .t2-wheel-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .t2-wheel-action-slot {
    justify-content: center;
  }
  .wheel-state-wrap {
    justify-content: center;
  }
  .voucher-compact-box {
    margin: 0 auto;
  }

  /* App Banner on Tablet Stack */
  .t2-app-banner {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 24px;
    padding: 26px 20px;
  }
  .t2-app-banner-content {
    align-items: center;
  }
  .t2-app-banner-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .t2-app-banner-btns {
    justify-content: center;
  }
}

/* ==========================================================================
   BREAKPOINTS: MOBILE LANDSCAPE / COMPACT (max-width: 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .t2-wheel-banner-card {
    --wheel-size: 205px;
    padding: 22px 16px;
    border-radius: 14px;
  }
  .t2-wheel-title {
    font-size: 21px;
    line-height: 1.3;
  }
  .t2-wheel-desc {
    font-size: 13px;
    line-height: 1.45;
  }
  .wheel-spin-action-btn {
    font-size: 13px !important;
    padding: 10px 20px !important;
  }
  .wheel-avail-badge {
    font-size: 12px;
  }

  .t2-app-banner {
    padding: 22px 16px;
    border-radius: 14px;
  }
  .t2-app-banner-title {
    font-size: 21px;
  }
}

/* ==========================================================================
   BREAKPOINTS: MOBILE SMARTPHONES (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .t2-wheel-banner-card {
    --wheel-size: 195px;
    padding: 20px 14px;
    border-radius: 12px;
  }
  .t2-wheel-section {
    margin-bottom: 32px;
  }
  .t2-wheel-grid {
    gap: 18px;
  }
  .t2-wheel-title {
    font-size: 19px;
  }
  .t2-wheel-desc {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 14px;
  }
  .wheel-state-wrap {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .wheel-spin-action-btn {
    width: 100%;
    max-width: 240px;
    justify-content: center;
    padding: 9px 16px !important;
    font-size: 12.5px !important;
  }
  .wheel-avail-badge {
    font-size: 11.5px;
  }

  /* Responsive Voucher Box on Narrow Screens */
  .voucher-compact-box {
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .voucher-won-label {
    font-size: 12px;
  }
  .voucher-code-pill {
    padding: 4px 8px;
    font-size: 11px;
  }
  .voucher-badge-tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  /* App Banner on Mobile */
  .t2-app-banner {
    padding: 18px 14px;
    border-radius: 12px;
    gap: 18px;
  }
  .t2-app-banner-title {
    font-size: 19px;
  }
  .t2-app-banner-desc {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .t2-app-banner-btns {
    flex-direction: column;
    width: 100%;
  }
  .t2-app-banner-btns a,
  .t2-app-banner-btns div {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .t2-app-qr-card {
    padding: 16px;
    max-width: 200px;
  }
}

/* ==========================================================================
   BREAKPOINTS: EXTRA-SMALL MOBILE (max-width: 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .t2-wheel-banner-card {
    --wheel-size: 175px;
    padding: 16px 10px;
  }
  .t2-wheel-title {
    font-size: 18px;
  }
  .t2-wheel-desc {
    font-size: 11.5px;
  }
  .wheel-spin-action-btn {
    font-size: 12px !important;
    padding: 8px 14px !important;
  }
  .t2-app-banner {
    padding: 16px 10px;
  }
}

