/* Store additions: notifications, COD strip, modal, streak, tracking, toasts, mobile */

/* Notification bars (admin managed, per page) */
.notify-bar {
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
}
.notify-bar.info { background: #e5eefd; color: #1c3f94; }
.notify-bar.success { background: #e0f5f0; color: #03694f; }
.notify-bar.warning { background: #fff3e0; color: #a45b00; }
.notify-bar.offer { background: #fff4e8; color: #fb7701; }

/* COD highlight strip (site-wide) */
.cod-strip {
  background: #fb7701;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Toast messages */
#toast-box {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  background: #282c3f;
  color: #fff;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  animation: toast-in 0.25s ease;
}
.toast.error { background: #d32f2f; }
.toast.success { background: #03a685; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none; } }

/* Welcome offer modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 44, 63, 0.6);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.welcome-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: modal-pop 0.3s ease;
  position: relative;
}
@keyframes modal-pop { from { opacity: 0; transform: scale(0.9);} to { opacity: 1; transform: none; } }
.welcome-modal-head {
  background: linear-gradient(135deg, #fb7701, #ff9a3c);
  color: #fff;
  padding: 34px 26px;
  text-align: center;
}
.welcome-modal-head h2 { font-size: 24px; font-weight: 800; }
.welcome-modal-body { padding: 26px; text-align: center; }
.welcome-modal-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.welcome-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none; border: none;
  color: #fff; font-size: 26px; cursor: pointer; line-height: 1;
}

/* Streak card (account page) */
.streak-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fff7f9, #fff);
}
.streak-days-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.streak-day-dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  background: #fff;
}
.streak-day-dot.done { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.streak-reward-banner {
  background: linear-gradient(90deg, #03a685, #04c69f);
  color: #fff;
  padding: 14px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
}

/* Free item highlight in cart/checkout */
.free-reward-box {
  border: 2px dashed var(--success-color);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  background: #f0fbf8;
  display: flex;
  align-items: center;
  gap: 14px;
}
.free-reward-box img { width: 56px; height: 70px; object-fit: cover; border-radius: 4px; }

/* Order tracking timeline */
.track-timeline { margin: 8px 0 28px; padding-left: 2px; }
.track-step { display: flex; gap: 14px; position: relative; padding-bottom: 26px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before {
  content: '';
  position: absolute;
  left: 6px; top: 18px; bottom: 0;
  width: 2px;
  background: var(--border-light);
}
.track-step:last-child::before { display: none; }
.track-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #d4d5d9;
  flex-shrink: 0;
  margin-top: 3px;
  z-index: 1;
}
.track-step.done .track-dot { background: var(--success-color); }
.track-step-info h5 { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.track-step-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Qty stepper */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-dark); border-radius: 4px; overflow: hidden; }
.qty-stepper button {
  width: 32px; height: 32px;
  background: var(--bg-light);
  border: none; cursor: pointer;
  font-size: 16px; font-weight: 700;
}
.qty-stepper span { width: 40px; text-align: center; font-size: 13px; font-weight: 700; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; list-style: none; }
.pagination a, .pagination span {
  display: inline-block; padding: 8px 14px;
  border: 1px solid var(--border-dark); border-radius: 4px;
  font-size: 13px; font-weight: 600; color: var(--text-dark);
}
.pagination .active a, .pagination .active span { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* Alerts (form errors) */
.alert { padding: 12px 16px; border-radius: 4px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: #fdecec; color: #b71c1c; border: 1px solid #f5c6c6; }
.alert-success { background: #e0f5f0; color: #03694f; border: 1px solid #b3e6da; }

/* Category tiles (Shop by Category) */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.cat-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.16); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(40,44,63,0.85));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-tile-name { color: #fff; font-weight: 800; font-size: 15px; }
.cat-tile-cta { color: rgba(255,255,255,0.85); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Home category carousels */
.home-cat-section { margin-bottom: 46px; }
.home-cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.home-cat-head .section-title::after { margin-left: 0; }
.view-all-link { font-size: 13px; font-weight: 700; color: var(--primary-color); }
.h-carousel-wrap { position: relative; }
.h-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.h-carousel::-webkit-scrollbar { display: none; }
.h-carousel .product-card {
  min-width: 200px;
  max-width: 200px;
  scroll-snap-align: start;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.carousel-arrow.prev { left: -14px; }
.carousel-arrow.next { right: -14px; }
.carousel-arrow:hover { background: var(--primary-color); color: #fff; }

/* Gift/offer header button */
.gift-btn { background: none; border: none; font-family: inherit; }
.gift-btn svg { color: var(--primary-color); animation: gift-wiggle 2.5s ease infinite; }
@keyframes gift-wiggle {
  0%, 85%, 100% { transform: rotate(0); }
  88% { transform: rotate(-10deg); }
  91% { transform: rotate(10deg); }
  94% { transform: rotate(-6deg); }
  97% { transform: rotate(6deg); }
}

/* Product gallery layout - native horizontal scroll */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.gallery-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #ffffff;
  box-sizing: border-box;
}

.gallery-slides-track {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
}
.gallery-slides-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 480px;
  max-height: 480px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-sizing: border-box;
}

.gallery-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 10;
  user-select: none;
}
.gallery-nav-btn:hover {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%) scale(1.08);
}
.gallery-nav-btn.prev { left: 12px; }
.gallery-nav-btn.next { right: 12px; }

@media (max-width: 1024px) {
  .gallery-slide {
    height: 420px;
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  .detail-gallery {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .gallery-slider-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    border: 1px solid #f0f0f2 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }
  .gallery-slides-track {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }
  .gallery-slides-track::-webkit-scrollbar { display: none !important; }
  .gallery-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 380px !important;
    max-height: 380px !important;
    overflow: hidden !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .gallery-slide img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: auto !important;
  }
  .gallery-nav-btn {
    display: none !important;
  }
  .gallery-thumbs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    padding: 4px 0 8px !important;
    margin: 0 auto !important;
  }
  .gallery-thumbs::-webkit-scrollbar { display: none !important; }

  .cart-actions {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 24px !important;
    gap: 12px !important;
  }
  .add-bag-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 48px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px !important;
  }

  /* Product Sticky Bottom Buy Bar (Flipkart / Myntra mobile standard) */
  .product-mobile-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    padding: 8px 12px !important;
    border-top: 1px solid #eaeaec !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    z-index: 3000 !important;
    overflow: hidden !important;
  }
  .mobile-bar-icon-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #535766 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 0 4px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    min-width: 36px !important;
    box-sizing: border-box !important;
  }
  .mobile-bar-icon-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
  .mobile-bar-badge {
    position: absolute !important;
    top: -4px !important;
    right: -2px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 1px 5px !important;
    border-radius: 8px !important;
    min-width: 14px !important;
    text-align: center !important;
  }
  .mobile-bar-price-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .m-bar-price {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #282c3f !important;
    white-space: nowrap !important;
  }
  .m-bar-subline {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }
  .m-bar-orig {
    font-size: 11px !important;
    color: #94969f !important;
    text-decoration: line-through !important;
  }
  .m-bar-off {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ff905a !important;
  }
  .mobile-bar-add-btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 10px !important;
    box-shadow: 0 4px 12px rgba(255, 63, 108, 0.35) !important;
    transition: transform 0.1s ease, background-color 0.2s ease !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
  .mobile-bar-add-btn span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .mobile-bar-add-btn:active {
    transform: scale(0.98) !important;
    background: var(--primary-hover) !important;
  }
}

@media (max-width: 480px) {
  .gallery-slide {
    height: 340px !important;
    max-height: 340px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .gallery-slide img {
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: auto !important;
  }
}

.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  z-index: 9;
  user-select: none;
}

/* Product gallery thumbs */
.gallery-thumbs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  overflow-x: auto;
  width: 100%;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 70px;
  height: 85px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0.8;
}
.gallery-thumb:hover { opacity: 1; transform: scale(1.03); border-color: var(--primary-color); }
.gallery-thumb.active { opacity: 1; border-color: var(--primary-color); box-shadow: 0 0 0 1px var(--primary-color); }

/* Desktop header: never let nav links wrap; search shrinks instead */
.header-content { gap: 12px; }
.logo, .nav-menu, .header-actions { flex-shrink: 0; }
.logo-text { white-space: nowrap; }
.nav-link { white-space: nowrap; }
.nav-item { padding: 0 12px; }
.search-container { flex: 1 1 140px; min-width: 120px; max-width: 320px; width: auto; }

/* Desktop menu fit: tighten between 993-1200px */
@media (max-width: 1200px) {
  .nav-item { padding: 0 8px; }
  .nav-link { font-size: 12px; letter-spacing: 0; }
  .logo-text { font-size: 20px; }
  .header-actions { gap: 14px; }
  .action-btn { font-size: 10px; }
}

/* Tablet 769-992px: use mobile-style header (menu was overflowing here) */
@media (max-width: 992px) {
  .nav-menu { display: none; }
  .search-container { display: none; }
}

/* Mobile header */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-search-row { display: none; }
.bottom-nav { display: none; }

/* Logo image */
.logo img { max-height: 44px; width: auto; }

/* ============ MOBILE + TABLET (app-like) ============ */
@media (max-width: 992px) {
  body { overflow-x: hidden; padding-bottom: 62px; }

  /* Header: compact, hamburger + logo + bag */
  header { height: auto; }
  .header-content { padding: 0 12px; height: 56px; }
  .mobile-toggle { display: block; }
  .logo-text { font-size: 17px; }
  .header-actions { gap: 12px; }
  .action-btn span { display: none; }
  .action-btn svg { width: 22px; height: 22px; margin-bottom: 0; }
  .user-menu { display: none; } /* profile lives in bottom nav */
  .user-dropdown { right: 0; width: 210px; padding: 14px; }

  /* Search bar always visible below header (Myntra style) */
  .mobile-search-row { display: block; padding: 8px 12px 12px; background: #fff; border-bottom: 1px solid var(--border-light); }
  .mobile-search-row .search-input { width: 100%; padding: 11px 16px; border-radius: 8px; background: var(--bg-light); border: 1px solid var(--bg-light); font-size: 13px; }

  /* Hamburger menu drawer */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 78%;
    max-width: 300px;
    background: #fff;
    height: 100vh;
    box-shadow: 8px 0 30px rgba(0,0,0,0.2);
    z-index: 3000;
    padding: 16px 0;
    overflow-y: auto;
  }
  .nav-menu.open .nav-item { height: auto; padding: 0; flex-direction: column; align-items: stretch; }
  .nav-menu.open .nav-link { line-height: 46px; height: 46px; padding: 0 20px; width: 100%; border-bottom: none; border-left: 4px solid transparent; }
  .nav-menu.open .nav-link:active { border-left-color: var(--primary-color); }
  .nav-menu.open .nav-dropdown { position: static; opacity: 1; visibility: visible; width: 100%; box-shadow: none; }
  .nav-menu.open .nav-dropdown li a { padding-left: 34px; font-size: 12px; }

  /* Bottom app navigation */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
    z-index: 2500;
    height: 58px;
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
  }
  .bottom-nav a svg { width: 21px; height: 21px; }
  .bottom-nav a:active { color: var(--primary-color); }
  .bottom-nav-badge {
    position: absolute;
    top: 7px; right: 50%;
    margin-right: -18px;
    background: var(--primary-color);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
  }

  /* Hero */
  .hero-slider { height: 210px; margin-bottom: 26px; }
  .slide-content h2 { font-size: 20px; }
  .slide-content p { font-size: 13px; margin-bottom: 12px; }
  .slide-content .btn { padding: 9px 20px; font-size: 12px; }
  .prev-btn, .next-btn { width: 34px; height: 34px; }

  /* Sections & grids */
  .container { padding: 0 12px; }
  .section-title { font-size: 17px; margin-bottom: 18px; }
  .cat-tiles {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 34px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .cat-tile { min-width: 140px; max-width: 140px; aspect-ratio: 4 / 5; }
  .cat-tile-name { font-size: 13px; }
  .h-carousel .product-card { min-width: 160px; max-width: 160px; }
  .carousel-arrow { display: none; }
  .home-cat-head .section-title { font-size: 16px; }
  .categories-circle-grid { justify-content: flex-start; gap: 14px; margin-bottom: 34px; }
  .category-circle-item { min-width: 78px; }
  .circle-img-container { width: 74px; height: 74px; border-width: 3px; }
  .category-circle-item span { font-size: 11px; }
  .card-img-wrapper img {
    padding: 6px;
  }
  .deal-off {
    font-size: 11px;
    padding: 2px 6px;
    top: 8px;
    left: 8px;
  }
  .card-info { padding: 8px; }
  .product-card { border: 1px solid var(--border-light); border-radius: 8px; }

  /* Forms & checkout */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .address-layout { padding: 18px; }
  .checkout-progress { gap: 12px; font-size: 11px; }
  .step-item::after { content: ' — '; margin-left: 8px; }
  .cart-layout { padding: 20px 0; gap: 20px; }
  .detail-brand { font-size: 20px; }
  .detail-name { font-size: 15px; }
  .sizes-box { flex-wrap: wrap; gap: 10px; }
  .size-btn { width: 42px; height: 42px; }

  /* Footer */
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-top-grid > div[style] { grid-column: span 2 !important; }
  .footer-bottom-copyright { flex-direction: column; gap: 8px; text-align: center; }
  footer { margin-top: 40px; padding-bottom: 10px; }

  /* Welcome modal */
  .welcome-modal-head { padding: 26px 20px; }
  .welcome-modal-head h2 { font-size: 20px; }
  .welcome-modal-body { padding: 20px; }
}

.hidden { display: none !important; }
.block { display: block !important; }
.fixed { position: fixed; }
.z-10 { z-index: 10; }
.left-0 { left: 0; }
.top-0 { top: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.overflow-auto { overflow: auto; }
.pt-80 { padding-top: 80px; }
.m-auto { margin: auto; }
.p-6 { padding: 24px; }
.bg-slate-100 { background: #f1f5f9; }
.text-center { text-align: center; }
.bg-black.bg-opacity-5 { background: rgba(0, 0, 0, 0.45); }
#rk-reward-modal .modal-content {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#rkad-1, #rkad-2, #rkad-3 {
  min-height: 0;
  margin: 12px auto;
  text-align: center;
}

body {
  background-color: #f5f5f5;
}
header {
  height: auto;
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.header-content {
  height: 72px;
  gap: 20px;
}
.logo-text {
  color: #fb7701;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: lowercase;
}
.logo-text span {
  color: #fb7701;
}
.mobile-toggle svg {
  stroke: #222;
}
.search-container {
  flex: 1 1 280px;
  min-width: 180px;
  max-width: 680px;
  width: auto;
}
.search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 2px solid #fb7701;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}
.search-input {
  height: 42px;
  border-radius: 0;
  background: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  flex: 1;
}
.search-input:focus {
  background: #fff;
  border: none;
  box-shadow: none;
}
.search-submit {
  width: 52px;
  border: none;
  background: #fb7701;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-submit:hover {
  background: #e56a00;
}
.search-icon {
  display: none;
}
.header-actions {
  gap: 20px;
}
.action-btn {
  color: #222;
}
.action-btn:hover {
  color: #fb7701;
}
.badge {
  background: #fb7701;
  color: #fff;
}
.category-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: none;
}
.category-bar .container {
  display: flex;
  justify-content: center;
}
.category-bar .nav-menu {
  height: 44px;
}
.category-bar .nav-item {
  height: 44px;
  padding: 0 16px;
}
.category-bar .nav-link {
  height: 44px;
  line-height: 44px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 0;
  color: #222;
}
.category-bar .nav-item:hover .nav-link {
  color: #fb7701;
  border-bottom: 0;
}
.category-bar .nav-dropdown {
  top: 44px;
}
.auth-header-banner {
  background: #fff4e8;
}
.product-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}
.rating-capsule {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 11px;
  gap: 2px;
}
.rating-capsule svg {
  fill: #ffcd3c;
  width: 10px;
  height: 10px;
}
.discount-tag {
  color: #fb7701;
  font-size: 13px;
}
.discount-price {
  font-size: 18px;
  font-weight: 800;
  color: #fb7701;
}
.detail-discount-price {
  color: #fb7701;
  font-weight: 800;
}
.original-price {
  color: #9e9e9e;
}
.add-bag-btn,
.place-order-btn {
  background: #fb7701;
  border-radius: 24px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 800;
}
.add-bag-btn:hover,
.place-order-btn:hover {
  background: #e56a00;
}
.btn-primary-main {
  background: #fb7701;
  border-radius: 24px;
  text-transform: none;
  font-weight: 800;
}
.btn-primary-main:hover {
  background: #e56a00;
}
.hero-slider {
  border-radius: 0;
  margin-bottom: 16px;
  background: #fb7701;
}
.slide-content .btn {
  background: #fff;
  color: #fb7701;
  border-radius: 24px;
  font-weight: 800;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #222;
}
.cat-tile {
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
footer {
  background: #1b1b1b;
  border-top: none;
  color: #fff;
}
.footer-column-title {
  color: #fb7701;
}
.footer-links-list li,
.footer-links-list li a,
.policy-text,
.footer-bottom-copyright {
  color: #fff;
}
.policy-text strong {
  color: #fff;
}
.footer-links-list li a:hover {
  color: #fb7701;
}
.footer-bottom-copyright {
  border-top-color: #333;
}
.user-dropdown {
  color: #222;
}
.gift-btn svg {
  color: #fb7701;
}
.slide-content {
  color: #fff;
}
.slide-content p {
  color: rgba(255, 255, 255, 0.92);
}
.section-title {
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 800;
}
.section-title::after {
  display: none;
}
.mobile-toggle {
  color: #222;
}

.notify-bar.offer {
  background: #fff4e8;
  color: #fb7701;
}
.cod-strip {
  background: #fb7701;
  color: #fff;
}

.deal-off {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fb7701;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 2;
}

.why-temu {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 28px 0;
}
.why-temu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-temu-item {
  text-align: center;
}
.why-temu-item strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #222;
  margin-bottom: 4px;
}
.why-temu-item span {
  font-size: 13px;
  color: #757575;
}

.welcome-modal-head {
  background: linear-gradient(135deg, #fb7701, #ff9a3c);
}

@media (max-width: 992px) {
  .category-bar {
    height: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .category-bar .container {
    padding: 0;
  }
  header {
    background: #fb7701;
  }
  .logo-text,
  .logo-text span {
    color: #fff;
  }
  .mobile-toggle,
  .action-btn {
    color: #fff;
  }
  .mobile-toggle svg {
    stroke: #fff;
  }
  .header-content {
    height: 56px;
  }
  .mobile-search-row {
    background: #fb7701;
    border-bottom: none;
  }
  .mobile-search-row .search-input {
    background: #fff;
    border: none;
    border-radius: 20px;
  }
  .bottom-nav {
    background: #fff;
  }
  .why-temu-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .gift-btn svg {
    color: #fff;
  }
}

.container {
  max-width: 1200px;
}

.products-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}

.products-grid > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px !important;
  }
}

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

ul {
  padding-left: 0;
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.card-img-wrapper {
  position: relative !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  overflow: hidden !important;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrapper img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none;
  object-fit: contain !important;
  padding: 10px;
}

.product-card {
  overflow: hidden;
  height: 100%;
  background: #fff;
}

.gallery-slider-wrap {
  overflow: hidden !important;
}

.gallery-slide {
  height: 480px !important;
  max-height: 480px !important;
  overflow: hidden !important;
}

.gallery-slide img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.cart-item-img {
  width: 88px;
  height: 110px !important;
  object-fit: contain !important;
  background: #fff;
}

.gallery-thumb {
  object-fit: contain !important;
}

.info-section {
  padding-left: 0;
}

.pagination .page-link {
  color: #fb7701;
}

.pagination .page-item.active .page-link {
  background-color: #fb7701;
  border-color: #fb7701;
  color: #fff;
}

.slide-content .btn {
  --bs-btn-padding-x: 30px;
  --bs-btn-padding-y: 12px;
  --bs-btn-border-width: 0;
  background-color: #fff;
  color: #fb7701;
  border: none;
}

.badge {
  background-color: #fb7701;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: -6px;
  right: -8px;
}

#rk-reward-modal.modal {
  --bs-modal-width: auto;
}

#rk-reward-modal .modal-content {
  position: fixed;
}

@media (max-width: 768px) {
  .gallery-slide {
    height: 360px !important;
    max-height: 360px !important;
    overflow: hidden !important;
  }
  .gallery-slide img {
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
  }
}
