/* Global styles */
html,
body {
  height: 100%;
}

/* ---------- Shop by Category (bigger round cards) ---------- */
.category-card{ border-radius:16px; }
.category-card .card-body{ padding: 1.25rem 0 .5rem; }
.category-card .text-xs{ display:none !important; } /* hide badge line */
.category-circle{ width: 160px; height: 160px; border-radius:50%; overflow:hidden; margin: 0 auto 10px; }
.category-circle img{ width:100%; height:100%; object-fit: cover; border-radius:50%; display:block; }
@media (max-width: 991.98px){
  .category-circle{ width: 135px; height: 135px; }
}
@media (max-width: 575.98px){
  .category-circle{ width: 115px; height: 115px; }
}

/* Floating WhatsApp FAB (icon-only, round) */
.whatsapp-fab{
  position: fixed;
  right:  12px;
  bottom: 20px;
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: #0b2e13; text-decoration: none;
  border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 1050;
}
.whatsapp-fab i{ font-size: 1.6rem; color: #0b2e13; line-height: 1; }
@media (max-width: 767.98px){ .whatsapp-fab{ bottom: 72px; } }

/* Top ticker (announcement bar) */
.top-ticker{
  position: fixed; top: 0; left: 0; right: 0; height: 22px;
  /* Match navbar bottom border gradient */
  background: linear-gradient(
    90deg,
    rgb(88, 219, 245),
    rgb(159, 126, 56),
    rgb(237, 100, 123)
  );
  color: white; z-index: 1045;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.top-ticker .ticker-inner{ width: 100%; height: 100%; overflow: hidden; position: relative; }
.top-ticker .ticker-track{
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  position: absolute; will-change: transform; left: 100%;
  /* Much slower speed */
  animation: tickerMove 50s linear infinite;
}
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-200%); } }

/* Push fixed navbar below the ticker */
header .navbar.fixed-top{ top: 22px; }

/* Animated delivery van (icon only, text on van) */
.delivery-van{
  display: none !important;
}

/* legacy styles (kept for reference, disabled by display:none) */
.delivery-van-hidden{
  position: fixed; bottom: 30%; left: -220px; z-index: 1040;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: transparent; border: none; padding: 0; box-shadow: none;
  width: auto; height: auto; pointer-events: none; /* purely decorative */
  animation: vanZig 26s linear infinite;
}
.delivery-van-hidden i{ font-size: 2.4rem; color: #12b981; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.delivery-van-hidden .van-label{
  position: absolute; left: 26px; top: 50%; transform: translateY(-52%);
  font-size: .9rem; font-weight: 800; letter-spacing: .2px; color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
@keyframes vanZig {
  0%   { transform: translate(0, 0) rotate(0deg); }
  10%  { transform: translate(10vw, -2vh) rotate(-2deg); }
  20%  { transform: translate(20vw, 2.5vh) rotate(2deg); }
  30%  { transform: translate(30vw, -3vh) rotate(-2deg); }
  40%  { transform: translate(40vw, 3vh) rotate(2deg); }
  50%  { transform: translate(50vw, -2vh) rotate(-2deg); }
  60%  { transform: translate(60vw, 2.5vh) rotate(2deg); }
  70%  { transform: translate(70vw, -3vh) rotate(-2deg); }
  80%  { transform: translate(80vw, 3vh) rotate(2deg); }
  90%  { transform: translate(90vw, -2vh) rotate(-1deg); }
  100% { transform: translate(105vw, 0) rotate(0deg); }
}
/* Mobile scaling */
@media (max-width: 767.98px){
  .delivery-van-hidden{ bottom: 48%; animation-duration: 30s; }
  .delivery-van-hidden i{ font-size: 2rem; }
  .delivery-van-hidden .van-label{ font-size: .82rem; left: 22px; }
}

/* Shop filter field overrides */
#searchInput {
  background-color: transparent !important;
}

#searchInput::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}

#searchInput:-ms-input-placeholder {
  color: #6c757d !important;
}

#searchInput::-ms-input-placeholder {
  color: #6c757d !important;
}

/* Adjust gap between filter fields */
.shop-sort-wrapper {
  margin-left: 0.5rem;
}

/* Ensure input group maintains proper styling */
.shop-search-sort .input-group-text {
  background-color: transparent;
  border-right: none;
}

.shop-search-sort .form-control {
  border-left: none;
  padding-left: 0;
}

/* Search input placeholder overrides */
#searchInput::placeholder,
#searchInput::-webkit-input-placeholder,
#searchInput::-moz-placeholder,
#searchInput:-ms-input-placeholder,
#searchInput::-ms-input-placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
  background: transparent !important;
}

/* Override Bootstrap's placeholder class */
.placeholder {
  background: transparent !important;
  opacity: 1 !important;
}

/* Ensure the search input has a transparent background */
#searchInput {
  background-color: transparent !important;
}

/* Sale slider arrows: show on desktop, hide on mobile */
@media (min-width: 992px) {
  #salePrevBtn, #saleNextBtn { display: flex !important; z-index: 5; }
}

/* Toast notifications */
.toast-wrapper{ position: fixed; right: 16px; top: 80px; z-index: 1080; display:flex; flex-direction:column; gap:10px; }
.toast-item{ display:flex; align-items:center; gap:.6rem; background:#111827; color:#fff; border-radius:12px; padding:.75rem 1rem; box-shadow:0 12px 28px rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.08); opacity:0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease; }
.toast-item.show{ opacity:1; transform:none; }
.toast-item .toast-icon{ font-size:1.05rem; line-height:1; }
.toast-success{ background: linear-gradient(135deg, #065f46, #047857); border-color: rgba(16,185,129,.35); }
.toast-danger{ background: linear-gradient(135deg, #991b1b, #7f1d1d); border-color: rgba(239,68,68,.35); }
.toast-warning{ background: linear-gradient(135deg, #92400e, #78350f); border-color: rgba(245,158,11,.35); }
.toast-info{ background: linear-gradient(135deg, #1f2937, #111827); border-color: rgba(59,130,246,.25); }

/* Confirm Dialog (modal-style) */
.confirm-dialog-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.42);
  opacity: 0; transition: opacity .18s ease; z-index: 1080;
}
.confirm-dialog-backdrop.show{ opacity: 1; }

.confirm-dialog{
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  opacity: 0; transition: transform .18s ease, opacity .18s ease;
  z-index: 1081; width: min(92vw, 420px);
  background: #111827; color: #fff; border-radius: 14px; padding: 1rem 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 2px 0 rgba(255,255,255,.03) inset;
  border: 1px solid rgba(255,255,255,.08);
}
.confirm-dialog.show{ opacity: 1; transform: translate(-50%, -50%) scale(1); }

.confirm-dialog .confirm-icon{
  font-size: 1.35rem; line-height: 1; display: inline-flex; width: 36px; height: 36px;
  align-items: center; justify-content: center; border-radius: 999px; margin-bottom: .5rem;
  background: rgba(255,255,255,.06);
}
.confirm-dialog .confirm-message{ font-size: .98rem; line-height: 1.5; margin-bottom: .75rem; }
.confirm-dialog .confirm-actions{ display: flex; gap: .5rem; justify-content: flex-end; }
.confirm-dialog .btn{ border-radius: 999px; padding: .45rem .9rem; font-weight: 600; }
.confirm-dialog .btn-light{ background: #fff; color: #111827; border: none; }
.confirm-dialog .btn-dark{ background: #111827; border: 1px solid rgba(255,255,255,.12); }

/* Variant accents */
.confirm-dialog.danger{ border-top: 3px solid #ef4444; }
.confirm-dialog.warning{ border-top: 3px solid #f59e0b; }
.confirm-dialog.info{ border-top: 3px solid #60a5fa; }

@media (max-width: 575.98px){
  .confirm-dialog{ width: calc(100vw - 28px); padding: .85rem .9rem; border-radius: 12px; }
  .confirm-dialog .confirm-message{ font-size: .95rem; }
}

/* Confirm variant layout and buttons */
.toast-item.toast-confirm{ align-items: center; gap:.75rem; }
.toast-item.toast-confirm .toast-actions{ margin-left:auto; display:flex; gap:.5rem; }
.toast-item.toast-confirm .btn{ border-radius:999px; padding:.35rem .75rem; font-weight:600; }
.toast-item.toast-confirm .btn.btn-light{ background:#fff; color:#111827; border:none; }
.toast-item.toast-confirm .btn.btn-dark{ background:#111827; border:none; }
.toast-item.toast-danger.toast-confirm .btn.btn-dark{ background:#ef4444; }
.toast-item.toast-warning.toast-confirm .btn.btn-dark{ background:#f59e0b; color:#111827; }

/* Contact page banner */
.contact-hero{
  background-image: url("https://www.shutterstock.com/image-vector/contact-us-customer-support-hotline-600nw-2561218445.jpg");


  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.contact-hero::after{
  content: "";
  position:absolute; inset:0;
  background: radial-gradient(800px 300px at 80% -10%, rgba(255,255,255,.18), transparent 60%),
              radial-gradient(600px 300px at 10% 110%, rgba(255,255,255,.12), transparent 60%);
  pointer-events:none;
}
.contact-hero-inner{ padding: 55px 0; }

/* Contact page colorful cards */
.contact-card{ border: 1px solid rgba(0,0,0,.04); }
.contact-card .card-body{ background-image: radial-gradient(1200px 200px at 100% 0%, rgba(239,68,68,.05), transparent 70%);
}

/* Contact page tighter spacing */
.contact-body{ margin-top: 0; }
.contact-card{ border-radius: 14px; }
.contact-form .form-control{ border-radius: 10px; border-color: rgba(0,0,0,.08); }
.contact-form .form-control:focus{ border-color:#ef4444; box-shadow: 0 0 0 .2rem rgba(239,68,68,.15); }
.contact-form .form-label{ color:#374151; }
.btn-gradient{
  background: linear-gradient(135deg, #111827 0%, #1f2937 35%, #ef4444 100%);
  color:#fff; border:none; border-radius: 999px; padding:.6rem 1.25rem; font-weight:600;
}
.btn-gradient:hover{ filter: brightness(.95); color:#fff; }

/* Right column colorful icons */
.contact-info .bi-geo-alt-fill{ color:#ef4444 !important; }
.contact-info .bi-telephone-fill{ color:#10b981 !important; }
.contact-info .bi-envelope-fill{ color:#3b82f6 !important; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f8f9fa;
  overflow-y: auto;
  padding-top: 76px; /* Account for fixed navbar height */
}

/* Enforce exact gap below the home hero slider */
/* .hero-section { margin-bottom: 10px !important; } */

/* On contact page, attach banner to navbar (no top padding) */
.page-contact body, body.page-contact {
  padding-top: 0 !important;
}
.page-contact .contact-hero { margin-top: 0 !important; padding-top: 76px; }

/* Product detail: size buttons visibility */
#sizeOptions .size-btn {
  border-color: #212529 !important;
  color: #212529 !important;
  background-color: #ffffff !important;
}
#sizeOptions .btn-outline-dark.size-btn.active,
#sizeOptions .size-btn.active,
#sizeOptions .size-btn:focus,
#sizeOptions .size-btn:active,
#sizeOptions .size-btn:hover,
#sizeOptions .size-btn.active:focus,
#sizeOptions .size-btn.active:active {
  background-color: #212529 !important;
  color: #ffffff !important;
  border-color: #212529 !important;
}

/* Product detail: thumbnail gallery */
.product-thumbs { user-select: none; }
.product-thumbs .thumb-btn{
  border: 2px solid transparent;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  width: 72px; height: 72px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.product-thumbs .thumb-btn img{ width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.product-thumbs .thumb-btn.active{ border-color: #111827; }
.product-thumbs .thumb-btn:hover{ transform: translateY(-1px); }

/* Product detail: image hover zoom lens */
.product-image-zoom { position: relative; overflow: hidden; }
.product-image-zoom img { display: block; width: 100%; height: auto; }
.zoom-lens {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  background-repeat: no-repeat;
  background-position: 0 0;
  display: none;
  pointer-events: none;
  z-index: 3;
}
@media (max-width: 575.98px){
  /* Disable lens on small touch screens */
  .zoom-lens{ display: none !important; }
}

/* Product detail: color options */
#colorOptions .color-btn{ display: inline-flex; align-items: center; gap: 6px; }
.color-dot{ display:inline-block; width: 16px; height: 16px; border-radius: 999px; border: 1px solid rgba(0,0,0,.2); }
#colorOptions .color-btn.active{ background-color: #111827 !important; color:#fff !important; }

/* Radio-based color swatches */
#colorOptions .color-radio { position: absolute; opacity: 0; pointer-events: none; }
#colorOptions .color-swatch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
#colorOptions .color-swatch .color-dot { width: 20px; height: 20px; }
#colorOptions .color-radio:checked + .color-swatch { border-color: #111827; }

#sizeOptions .size-btn:focus { box-shadow: none !important; }

/* Fixed navbar styling */
.navbar.fixed-top {
  z-index: 1030;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}


.navbar.fixed-top.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Navbar menu styling */
.navbar-menu .nav-item {
  margin: 0 0.5rem;
}

/* Mobile navbar toggler: hamburger -> cross when open */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  transition: transform 0.2s ease;
}

.navbar-dark .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e") !important;
}

.navbar-menu .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.375rem;
}

.navbar-menu .nav-link:hover,
.navbar-menu .nav-link:focus {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.navbar-menu .nav-link.dropdown-toggle::after {
  border-top-color: #ffffff;
}

.navbar .nav-link.text-white {
  color: #ffffff !important;
}

.navbar .nav-link.text-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar .nav-link.text-white i {
  color: #ffffff !important;
}

/* Dropdown hover functionality - Desktop only */
@media (min-width: 992px) {
  .navbar-menu .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
/* Mobile hero section gap */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 20px !important;
  }
}

/* Reduce gap under hero section on mobile/tablet */
@media (max-width: 991.98px) {
  .hero-section { margin-bottom: 10px !important; } /* override .mb-5 (3rem) */
}

/* Removed extra margins on .hero-slide across all breakpoints to keep tight spacing */

/* Global mobile gap below navbar for all pages */
@media (max-width: 991.98px) {
  main { padding-top: 20px !important; }
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
  background-color: #212529;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  margin-top: 0; /* Remove gap to avoid hover leaving between toggle and menu */
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.navbar .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar .dropdown-item {
  color: #ffffff !important;
  padding: 0.75rem 1.25rem;
  transition: all 0.2s ease;
  font-weight: 400;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  padding-left: 1.5rem;
}

.navbar .dropdown-item:active {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Mobile layout (<992px): bottom navbar, left toggler, centered brand, right actions */
@media (max-width: 991.98px) {
  body {
    padding-top: 12px; /* Navbar moves to bottom */
    padding-bottom: 64px; /* Reserve space for bottom navbar */
  }

  /* Reserve space for bottom mobile nav */
  /* Top navbar remains fixed-top by Bootstrap default */

  /* Layout container */
  .navbar .container {
    position: relative;
    min-height: 42px;
  }

  /* Compact top navbar paddings on mobile */
  .navbar {
    /* Stable height variable used by the overlay menu */
    --mobile-navbar-height: 48px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    min-height: var(--mobile-navbar-height);
  }

  /* Hamburger left */
  .navbar .navbar-toggler {
    position: absolute;
    left: 12px !important;
    right: auto !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    margin: 0 !important; /* override any utility margins */
  }

  /* Actions right */
  .navbar .nav-mobile-actions {
    position: absolute;
    right: 16px !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  /* Product detail page: nudge actions slightly left for alignment */
  body.page-product .navbar .nav-mobile-actions {
    right: 28px !important;
  }

  /* Brand centered */
  .navbar .navbar-brand {
    position: absolute;
    left: 50% !important;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    z-index: 2;
    text-align: center;
    width: auto;
  }

  /* Show collapsed menu as overlay below top navbar (do not grow navbar height) */
  .navbar .collapse.navbar-collapse,
  .navbar .collapsing.navbar-collapse {
    position: fixed;
    display: none; /* default hidden; will be forced to block when animating/show */
    top: var(--mobile-navbar-height, 48px); /* align exactly under navbar */
    left: 0;
    right: 0;
    bottom: auto;
    background-color: #212529;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    max-height: calc(100vh - var(--mobile-navbar-height, 48px));
    overflow: auto;
    z-index: 1029; /* just under the navbar */
  }
  /* Nudge dropdown a bit further down on mobile/tablet so it doesn't overlap navbar */
  @media (max-width: 991.98px) {
    .navbar .collapse.navbar-collapse,
    .navbar .collapsing.navbar-collapse {
      top: calc(var(--mobile-navbar-height, 56px) + 34px);
    }
  }
  .navbar .collapse.navbar-collapse.show,
  .navbar .collapsing.navbar-collapse {
    display: block; /* prevent flicker during animation */
  }
  /* Disable height animation on Bootstrap collapsing state to avoid layout shift */
  .navbar .collapsing {
    height: auto !important;
    transition: none !important;
  }

  .navbar .navbar-nav .nav-link { padding: 0.5rem 0.25rem !important; }
  /* Add vertical gap between stacked menu items */
  .navbar .navbar-nav .nav-item + .nav-item { margin-top: 8px; }

  /* Increase dropdown item spacing inside mobile overlay */
  .navbar .dropdown-menu .dropdown-item {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
  .navbar .dropdown-menu .dropdown-item + .dropdown-item { margin-top: 6px; }

  /* Align wishlist (heart) and cart (bag) icons on the same baseline */
  .nav-mobile-actions .nav-link i {
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
  }
  /* Heart icon sits a tad higher; nudge it down */
  .nav-mobile-actions .bi-heart {
    position: relative;
    top: 1px;
  }
}
.wearlog{
  color: #e08b93;
}
.closet{
  color: #91c9d7;
}

/* Bottom mobile nav bar */
@media (max-width: 991.98px) {
  .mobile-bottom-nav {
    z-index: 1030;
    /* Semi-transparent dark background so it's visible on light pages */
    background-color: rgba(33, 37, 41, 0.72) !important; /* matches .bg-dark (#212529) */
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 -6px 18px rgba(0,0,0,0.28);
  }
  .mobile-bottom-nav .nav-link,
  .mobile-bottom-nav .btn-link {
    color: #ffffff !important;
  }
  /* Bottom dropup menus match navbar color */
  .mobile-bottom-nav .dropdown-menu {
    background-color: #212529; /* same as navbar bg-dark */
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
  }
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Hero slides */
.hero-slide {
  min-height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin: 0; /* no extra vertical spacing around the image area */
  /* border-radius: 1.25rem 0 0 1.25rem; */
margin-top: 30px;
}

/* Hero colorful overlays */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none; /* remove tint overlay */
  border-radius: inherit;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0; /* hide color accents */
  pointer-events: none;
}

.hero-slide-kids::after { background: none; }

.hero-slide-adults::after { background: none; }

.hero-slide-sale::after { background: none; }

.hero-slide-kids {
  background-image: url("../images/kids-hero.png");
}

.hero-slide-adults {
  background-image: url("https://ybmbshop.com/cdn/shop/articles/Blog_size_cover_YBMB-min.jpg?v=1686924497");
}

.hero-slide-sale {
  background-image: url("https://static.vecteezy.com/system/resources/thumbnails/008/564/775/small/sport-shoes-banner-for-website-with-button-ui-design-illustration-vector.jpg");
}

/* Category cards */
.category-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 1rem;
  padding: 1rem 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px; /* baseline */
  height: 220px;     /* force equal height */
  overflow: hidden;  /* hide overflow text */
  text-align: center;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2rem rgba(2, 6, 23, 0.10) !important;
  border-color: rgba(17, 24, 39, 0.14);
}

.category-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.5rem;
  border: 3px solid #fff;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  position: relative;
}

.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Color ring accent around category image */
.category-circle::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #6366f1, #22d3ee);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
  opacity: 0.55;
  pointer-events: none;
}

/* Subtle lift on image ring when hovering card */
.category-card:hover .category-circle {
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
}

/* Ensure tablet size matches intended larger design */
@media (max-width: 991.98px) {
  .category-circle { width: 135px; height: 135px; }
}

/* Normalize text spacing and clamp to avoid height growth */
.category-card h6,
.category-card .category-title { 
  margin: 0.25rem 0 0.25rem; 
  display: -webkit-box; 
  -webkit-line-clamp: 1; 
  line-clamp: 1; 
  -webkit-box-orient: vertical; 
  overflow: hidden;
}
.category-card p { 
  margin: 0.25rem 0; 
  font-size: 0.9rem; 
  color: #a0effd ;
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .category-card { height: 200px; min-height: 200px; }
  .category-circle { width: 115px; height: 115px; }
}

.bg-kids {
  background: linear-gradient(135deg, #f6d2e5, #ebe3e5) !important;
    
    
    
   
  
}

.bg-kids-soft {
  background: linear-gradient(135deg, #94e0ef, #ebe3e5);
}

.bg-preloved-garments {
  background: #f5f0ff;
}

.bg-preloved-shoes {
  background: #eaf7ff;
}

/* Promo banners */
.promo-banner {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.promo-free-delivery {
  background: linear-gradient(135deg, #e0f7fa, #ffffff);
}

.promo-new-arrivals {
  background: linear-gradient(135deg, #fff3e0, #ffffff);
}

.promo-sale {
  background: linear-gradient(135deg, #fce4ec, #ffffff);
}

.newsletter-section {
  background: linear-gradient(135deg, #e0f2fe 0%, #ecfeff 50%, #eef2ff 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* Section heading underline accent (used on homepage sections) */
.container .d-flex.align-items-center h2.h4.fw-bold.mb-0::after,
.container .text-center h2.h3.fw-bold.mb-2::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #bac1c9, #212529);
  margin-top: 8px;
  margin-left: auto;
  margin-right: auto;
}

.text-center h2.h3.fw-bold.mb-2::after {
  margin-left: auto;
  margin-right: auto;
}

/* Center all section headings */
.container h2.h4.fw-bold,
.container h2.h3.fw-bold {
  text-align: center;
  width: 100%;
}

/* Footer */
.link-footer {
  color: #ced4da;
}

.link-footer:hover {
  color: #ffffff;
}

/* Product cards */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-radius: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #ffffff;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2rem rgba(2, 6, 23, 0.12);
  border-color: rgba(17, 24, 39, 0.12);
}

.product-card img {
  object-fit: cover;
  height: 350px;
  transition: transform 0.3s ease;
}

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

/* Button styling enhancements */
.btn-dark {
  background: linear-gradient(135deg, #111827, #1f2937) !important;
  border: 0 !important;
}
.btn-dark:hover {
  background: linear-gradient(135deg, #0b3b4a, #0f172a) !important;
  transform: translateY(-1px);
}
.btn-outline-dark:hover {
  color: #fff !important;
  background-color: #111827 !important;
  border-color: #111827 !important;
}

/* Theme the outline button border/text (e.g., View Details) */
.btn-outline-dark {
  
  color: #111827 !important;
}

.product-card-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  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;
  color: #333;
  font-size: 1rem;
}

.product-card-action:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-card-action.active {
  color: #dc3545;
}

.product-card-action i {
  pointer-events: none;
}

.badge-soft {
  background-color: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
}

/* Cart badge */
#cartCountBadge {
  font-size: 0.7rem;
  padding: 0.25rem 0.35rem;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1040;
}

.back-to-top.show {
  opacity: 1;
  /* visibility: visible; */
  transform: translateY(0);
}

/* Keep back-to-top above the mobile bottom navbar */
@media (max-width: 991.98px) {
  .back-to-top {
    bottom: 84px; /* sits above fixed-bottom mobile navbar */
  }
}

/* Utility */
.text-xs {
  font-size: 0.75rem;
}

.cursor-pointer {
  cursor: pointer;
}

/* Horizontal swipe container (sale slider viewport) */
.sale-scroll{
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}
.sale-scroll.is-grabbing{ cursor: grabbing; }

/* Forms */

/* Generic page banner (used across pages) */
.page-banner {
  width: 100%;
  height: auto; /* let content define height */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* When using an <img> inside .page-banner */
.page-banner-img{
  width: 100%;
  height: auto;          /* responsive height */
  max-height: 70vh;      /* avoid overly tall on small screens */
  object-fit: contain;   /* show full image without cropping */
  object-position: center;
  display: block;
  background-color: #f8fafc; /* letterbox color around contained image */
}

/* When .page-banner has background-image */
.page-banner {
  /* background-image: url("../images/shop-banner5.png"); */
  

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 350px; /* default height */
  
}

@media (max-width: 991.98px) {
  /* Tablet: responsive banners */
  .page-banner { height: auto; }
  .page-banner-img { height: auto; max-height: 55vh; }
}

@media (max-width: 575.98px) {
  /* Mobile: show full image (no cropping) */
  .page-banner { height: auto !important; min-height: 50vw; background-size: contain; background-position: center top; background-color: #f8fafc;margin-top: 30px; }
  .page-banner > .page-banner-img,
  .page-banner img.page-banner-img,
  .page-banner > img { height: auto !important; width: 100% !important; max-height: 60vh !important; object-fit: contain !important; display: block !important; }
  /* Use viewport-based heights for background banners to stay responsive */
  .sale-banner { min-height: 50vw; background-size: contain; background-position: center top; background-color: #f8fafc; }
  .contact-hero { min-height: 50vw; background-size: contain; background-position: center top; background-color: #f8fafc; }
}

/* Section heading underline */
.heading-underline {
  width: 64px; /* bigger underline per request */
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #bac1c9, #212529); /* match site gradient */
}

/* Brand logos */
/* Slimmer navbar */
.navbar { padding-top: 0.5rem; padding-bottom: 0.5rem; overflow: visible; }

/* Top navbar accent underline (matches logo orange) */
header .navbar.navbar-dark.bg-dark {
  border-bottom: 4px solid;
border-image: linear-gradient(
  90deg,
  rgb(88, 219, 245),
  rgb(159, 126, 56),
  rgb(237, 100, 123)
) 1;
}


.navbar .navbar-brand { padding-top: 0; padding-bottom: 0; }
.navbar .nav-link { padding-top: 0.25rem; padding-bottom: 0.25rem; line-height: 1.1; }
.navbar .navbar-toggler { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.navbar .brand-logo {
  height: 58px; /* bigger than bar, will bleed */
  width: auto;
  display: block; /* remove baseline gap */
  margin-top: -10px;  /* bleed up */
  margin-bottom: -8px; /* bleed down */
}
@media (max-width: 575.98px) {
  .navbar .brand-logo { height: 56px; margin-bottom: -5px; }
}
.footer-logo-img{
  height: 90px; /* mobile/tablet */
  width: auto;
  max-width: 100%;
  display: block; /* remove baseline gap */
  margin-top: 0;
  transform: translateY(-12px); /* counter intrinsic top whitespace */
}
@media (min-width: 768px) {
  .footer-logo-img{ height: 60px; transform: translateY(-30px); }
}

/* Ensure the footer logo anchor aligns from the top */
.footer-logo { align-items: flex-start; }

/* Remove any unexpected top margin on footer headings */
footer h6 { margin-top: 0; }

/* Lift the text under the footer logo to align with other columns */
.footer-logo + p { margin-top: -8px; }
@media (min-width: 768px) {
  .footer-logo + p { margin-top: -40px; }
}
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.18);
}

/* Tables */
.table-cart img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Cart page: compact layout on small screens */
@media (max-width: 575.98px) {
  /* Make product image a bit larger for balance */
  body.page-cart .table-cart img {
    width: 96px;
    height: 96px;
  }
  /* Slightly smaller text to keep hierarchy */
  body.page-cart #cartItemsContainer h6 {
    font-size: 0.8rem; /* product name */
    line-height: 1.2;
  }
  body.page-cart #cartItemsContainer .text-muted,
  body.page-cart #cartItemsContainer small,
  body.page-cart #cartItemsContainer .badge {
    font-size: 0.7rem;
  }
  body.page-cart #cartItemsContainer .table thead th {
    font-size: 0.68rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  body.page-cart #cartItemsContainer .table td {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
  /* Price text a tad smaller to match compact layout */
  body.page-cart #cartItemsContainer td .fw-semibold {
    font-size: 0.9rem;
  }
  body.page-cart #cartItemsContainer .input-group .form-control,
  body.page-cart #cartItemsContainer .input-group .btn {
    height: 26px;
    font-size: 0.78rem;
  }
}

@media (max-width: 767.98px) {
  .hero-slide {
    min-height: 300px;
  }
}

/* Mobile: keep hero carousel arrows over the image area (not the text) */
@media (max-width: 575.98px) {
  .hero-section #heroCarousel { position: relative; }
  .hero-section #heroCarousel .carousel-control-prev,
  .hero-section #heroCarousel .carousel-control-next {
    top: 0;              /* start at top of image (image is first on mobile) */
    bottom: auto;        /* prevent full-height stretch */
    height: 280px;       /* match .hero-slide min-height on small phones */
    display: flex;       /* center icon vertically within the control area */
    align-items: center;
  }
  .hero-section #heroCarousel .carousel-control-prev { left: 6px; }
  .hero-section #heroCarousel .carousel-control-next { right: 6px; }
}
/* Mobile: show only the hero image (hide text column) */
@media (max-width: 575.98px) {
  .hero-section .carousel-item .col-md-5 { display: none !important; }
  /* .hero-section .carousel-item .col-md-7 { border-radius: 1.25rem !important; } */
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section #heroCarousel { position: relative; }
  .hero-section #heroCarousel .carousel-control-prev,
  .hero-section #heroCarousel .carousel-control-next {
    top: 0;
    bottom: auto;
    height: 300px;       /* match .hero-slide min-height on larger phones/tablets */
    display: flex;
    align-items: center;
  }
  .hero-section #heroCarousel .carousel-control-prev { left: 8px; }
  .hero-section #heroCarousel .carousel-control-next { right: 8px; }
  /* Also tighten text spacing for small tablets */
  .hero-section .carousel-item .row { row-gap: 0 !important; }
  .hero-section .carousel-item .col-md-5 { padding-top: 0 !important; }
  .hero-section .carousel-item .col-md-5 > .container {
    padding-top: 0 !important;
    padding-bottom: 6px !important;
  }
  .hero-section .carousel-item .col-md-5 > .container > *:first-child { margin-top: 0 !important; }
  .hero-section .carousel-item .col-md-5 > .container > *:last-child { margin-bottom: 0 !important; }
  .hero-section h1 { margin-top: 0 !important; margin-bottom: 0.35rem !important; }
  .hero-section .lead { margin-bottom: 0.35rem !important; }
}

/* Only mobile: tighten spacing between image slider and the text under it */
@media (max-width: 575.98px) {
  /* Remove any top spacing from the section that follows the hero */
  .hero-section + section {
    margin-top: 0 !important;
    padding-top: 4px !important;
  }
  /* Ensure no implicit gap between stacked cols */
  .hero-section .carousel-item .row { row-gap: 0 !important; }
  .hero-section .carousel-item .col-md-5 { padding-top: 0 !important; margin-top: 0 !important; }
  /* Reduce top padding of the text container that follows the image */
  .hero-section .carousel-item .col-md-5 > .container {
    padding-top: 0 !important; /* avoid margin-collapsing with h1 */
    padding-bottom: 4px !important; /* defeat py-3/py-5 !important */
  }
  /* Remove stray margins inside the text container */
  .hero-section .carousel-item .col-md-5 > .container > *:first-child { margin-top: 0 !important; }
  .hero-section .carousel-item .col-md-5 > .container > *:last-child { margin-bottom: 0 !important; }
  /* Trim heading and paragraph margins within hero text */
  .hero-section h1 { margin-top: 0 !important; margin-bottom: 0.25rem !important; }
  .hero-section .lead { margin-bottom: 0.25rem !important; }
}

/* Shop search and sort controls */
.shop-search-sort {
  width: 280px;
}
.shop-control-input {
  height: 42px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: transparent !important;
  transition: all 0.2s ease;
}

.shop-control-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
  outline: none;
  background-color: transparent !important;
}

.shop-control-icon {
  color: #6c757d;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}

.shop-search-sort .input-group-text {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0 12px;
  height: 42px;
  transition: all 0.3s ease;
}

.shop-search-sort .form-control {
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding-left: 8px;
}

.shop-search-sort:focus-within .input-group-text {
  border-color: #0d6efd;
}

.shop-sort-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.shop-sort-wrapper .form-select {
  width: 200px;
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.shop-sort-wrapper .shop-control-icon {
  position: absolute;
  left: 12px;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .shop-search-sort {
    width: 100%;
    min-width: 200px;
  }
  
  .shop-sort-wrapper {
    width: 100%;
  }
  
  .shop-sort-wrapper .form-select {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 575.98px) {
  .hero-slide {
    min-height: 280px;
  }

  .product-card img {
    height: 250px;
  }
  /* Product card actions: make Add to Cart full width on mobile */
  .product-card .card-body .d-flex {
    flex-direction: column;
  }
  .product-card .btn.btn-dark {
    width: 100%;
  }
  .product-card .btn.btn-outline-dark {
    width: 100%;
  }
  
  .shop-search-sort,
  .shop-sort-wrapper {
    width: 100%;
  }
}

/* Why shop with us - Colorful animated cards */
.why-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.why-card:hover::before {
  opacity: 1;
}

.why-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: #ffffff;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.why-card-icon i {
  animation: iconFloat 3s ease-in-out infinite;
}

.why-card:hover .why-card-icon {
  transform: scale(1.15) rotate(5deg);
}

.why-card:hover .why-card-icon i {
  animation: iconBounce 0.6s ease;
}

.why-card h3 {
  position: relative;
  z-index: 1;
  color: #2d3748;
  transition: color 0.3s ease;
}

.why-card p {
  position: relative;
  z-index: 1;
  color: #718096;
  transition: color 0.3s ease;
}

.why-card:hover h3 {
  color: #1a202c;
}

.why-card:hover p {
  color: #4a5568;
}

/* Card 1 - Fast Delivery - Soft Blue */
.why-card-1 {
  background: linear-gradient(135deg, #e0ecff 0%, #d4e4ff 100%);
  color: #1f2933;
}

.why-card-1::before {
  background: linear-gradient(135deg, #d4e4ff 0%, #e0ecff 100%);
}

.why-card-1 .why-card-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.why-card-1:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}

.why-card-1 h3,
.why-card-1 p {
  color: #1f2933;
}

/* Card 2 - Secure Checkout - Soft Green */
.why-card-2 {
  background: linear-gradient(135deg, #e0f7f2 0%, #d2f5e8 100%);
  color: #1f2933;
}

.why-card-2::before {
  background: linear-gradient(135deg, #d2f5e8 0%, #e0f7f2 100%);
}

.why-card-2 .why-card-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.why-card-2:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.25);
}

.why-card-2 h3,
.why-card-2 p {
  color: #1f2933;
}

/* Card 3 - Affordable Styles - Soft Coral */
.why-card-3 {
  background: linear-gradient(135deg, #ffe5ec 0%, #ffd8e3 100%);
  color: #1f2933;
}

.why-card-3::before {
  background: linear-gradient(135deg, #ffd8e3 0%, #ffe5ec 100%);
}

.why-card-3 .why-card-icon {
  background: rgba(244, 114, 182, 0.14);
  color: #db2777;
}

.why-card-3:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 20px rgba(244, 114, 182, 0.25);
}

.why-card-3 h3,
.why-card-3 p {
  color: #1f2933;
}

/* Card 4 - Local Support - Soft Aqua */
.why-card-4 {
  background: linear-gradient(135deg, #e0f4ff 0%, #d2f3ff 100%);
  color: #1f2933;
}

.why-card-4::before {
  background: linear-gradient(135deg, #d2f3ff 0%, #e0f4ff 100%);
}

.why-card-4 .why-card-icon {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}

.why-card-4:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
}

.why-card-4 h3,
.why-card-4 p {
  color: #1f2933;
}

/* Card 5 - Easy Exchanges - Soft Peach */
.why-card-5 {
  background: linear-gradient(135deg, #ffe9d6 0%, #ffe0cc 100%);
  color: #1f2933;
}

.why-card-5::before {
  background: linear-gradient(135deg, #ffe0cc 0%, #ffe9d6 100%);
}

.why-card-5 .why-card-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

.why-card-5:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
}

.why-card-5 h3,
.why-card-5 p {
  color: #1f2933;
}

/* Card 6 - Curated Quality - Soft Mint */
.why-card-6 {
  background: linear-gradient(135deg, #e0fbf3 0%, #d4f6eb 100%);
  color: #1f2933;
}

.why-card-6::before {
  background: linear-gradient(135deg, #d4f6eb 0%, #e0fbf3 100%);
}

.why-card-6 .why-card-icon {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.why-card-6:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.25);
}

.why-card-6 h3,
.why-card-6 p {
  color: #1f2933;
}

/* Card 7 - Loved by Families - Soft Rose */
.why-card-7 {
  background: linear-gradient(135deg, #ffe4ea 0%, #ffd5e2 100%);
  color: #1f2933;
}

.why-card-7::before {
  background: linear-gradient(135deg, #ffd5e2 0%, #ffe4ea 100%);
}

.why-card-7 .why-card-icon {
  background: rgba(244, 63, 94, 0.12);
  color: #e11d48;
}

.why-card-7:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.25);
}

.why-card-7 h3,
.why-card-7 p {
  color: #1f2933;
}

/* Card 8 - Premium Quality - Soft Lavender */
.why-card-8 {
  background: linear-gradient(135deg, #ecebff 0%, #e3e0ff 100%);
  color: #1f2933;
}

.why-card-8::before {
  background: linear-gradient(135deg, #e3e0ff 0%, #ecebff 100%);
}

.why-card-8 .why-card-icon {
  background: rgba(129, 140, 248, 0.16);
  color: #4f46e5;
}

.why-card-8:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 20px rgba(129, 140, 248, 0.28);
}

/* Animations */
@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes iconBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Stagger animation delay for cards */
.why-card:nth-child(1) { animation-delay: 0s; }
.why-card:nth-child(2) { animation-delay: 0.1s; }
.why-card:nth-child(3) { animation-delay: 0.2s; }
.why-card:nth-child(4) { animation-delay: 0.3s; }
.why-card:nth-child(5) { animation-delay: 0.4s; }
.why-card:nth-child(6) { animation-delay: 0.5s; }
.why-card:nth-child(7) { animation-delay: 0.6s; }
.why-card:nth-child(8) { animation-delay: 0.7s; }

@media (max-width: 767.98px) {
  .why-card {
    padding: 1.25rem 1rem;
  }
  
  .why-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Testimonials */
.testimonial-carousel {
  width: 100%;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2rem 4rem rgba(15, 23, 42, 0.12);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 55%),
              radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  color: rgba(148, 163, 184, 0.2);
}

.testimonial-text {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: #1f2937;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-weight: 400;
}

.testimonial-user {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: #111827;
  flex-shrink: 0;
}

.testimonial-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background-color: #d1d5db;
  margin: 0 4px;
  padding: 0;
  transition: all 0.25s ease;
}

.testimonial-indicators button.active {
  width: 22px;
  background-color: #111827;
}

@media (max-width: 991.98px) {
  .testimonial-card {
    padding: 2rem 1.75rem;
    min-height: 280px;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
  }
  
  .testimonial-quote-icon {
    font-size: 2.5rem;
    top: 1.25rem;
    right: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .testimonial-card {
    min-height: 220px;
  }
}

@media (max-width: 575.98px) {
  .testimonial-card {
    padding: 1.75rem 1.5rem;
    min-height: 200px;
  }
  
  .testimonial-text {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  
  .testimonial-quote-icon {
    font-size: 2rem;
    top: 1rem;
    right: 1rem;
  }
  
  .testimonial-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  
  .testimonial-user {
    gap: 0.75rem;
  }
}

/* Cart dropdown (light theme only for the cart) */
#cartDropdownMenu {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18) !important;
  color: #111827;
}
#cartDropdownMenu .cart-dropdown-list { background-color: #ffffff; }
#cartDropdownMenu .border-bottom { border-color: rgba(0, 0, 0, 0.06) !important; }
#cartDropdownMenu .p-3 { background-color: #f8fafc; }
#cartDropdownMenu .btn-outline-dark:hover { background-color: #111827 !important; color: #fff !important; }

/* -------------------- Sale Showcase -------------------- */
.sale-banner {
  background: none; /* use pure background-image from inline style */
  border: 0;
  border-radius: 0;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  color: #111827;
  width: 100%;
  display: block;
  
 
}
/* Prevent cropping on phones: show full banner */
@media (max-width: 575.98px) {
  .sale-banner {
    min-height: 50vw;              /* scale with viewport */
    background-size: contain !important;  /* show entire image */
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #f8fafc;     /* letterbox background */
  }
}
/* Tablets: reduce cropping and height */
@media (min-width: 576px) and (max-width: 767.98px) {
  .sale-banner {
    min-height: 40vw;
    background-size: contain;      /* show full image when possible */
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #f8fafc;
  }
}

#saleShowcaseViewport {
  width: 100%;
  min-height: 260px; /* reserve space for card row */
}

#saleShowcaseTrack {
  gap: 12px;
}

/* Each card has a fixed basis so the marquee speed feels steady */
#saleShowcaseTrack .sale-card {
  flex: 0 0 240px;
}

/* Make card images consistent height for a neat row */
#saleShowcaseTrack .product-card img.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Discount badge on image */
.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-badge.premium {
    background: linear-gradient(135deg, #1e1e2f, #2d2d44);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.status-badge.sale {
    background-color: #dc3545;
    color: #fff;
}

.status-badge.new {
    background-color: #198754;
    color: #fff;
}

/* Stack badges if needed, though logic prioritizes one */
.status-badge + .status-badge {
    top: 40px; /* simple stack */
}

/* Ensure image clicks go through overlay to the anchor */
.product-card .card-action-overlay { pointer-events: none; }
.product-card .card-action-overlay .icon-btn { pointer-events: auto; }

/* Sold Out / Unavailable UI Styles */
.sold-out-option {
    opacity: 0.5;
    cursor: not-allowed !important;
    position: relative;
    background-color: #f8f9fa !important; /* Light gray background */
    color: #adb5bd !important; /* Muted text */
    border-color: #dee2e6 !important;
}

.sold-out-option.active {
    background-color: #e9ecef !important;
    border-color: #ced4da !important;
}

/* Diagonal line overlay for sold out options */
.diagonal-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top left, transparent 48%, #999 49%, #999 51%, transparent 52%);
    pointer-events: none;
    z-index: 10;
}

/* Out of Stock Button State */
.out-of-stock-btn {
    background: #6c757d !important; /* Bootstrap secondary gray */
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.out-of-stock-btn:hover {
    transform: none !important;
    background: #6c757d !important;
}

@media (min-width: 768px) {
  #saleShowcaseTrack .sale-card { flex-basis: 260px; }
  #saleShowcaseTrack .product-card img.card-img-top { height: 220px; }
}


/* Shop page: enforce consistent product image height */
#shopProductsGrid .product-card .image-wrap {
  aspect-ratio: auto !important;
  height: 350px !important;
}
#shopProductsGrid .product-card .card-img-top {
  height: 100% !important;
}


/* Premium category card override (homepage Shop by Category) */
.category-card.bg-premium {
  background: linear-gradient(135deg, #f2ecc7, #93e9ffa1) !important;
  color: #111827 !important;
  border: 1px solid rgba(17,24,39,.06) !important;
}
.category-card.bg-premium .category-circle{
  box-shadow: 0 4px 12px rgba(224,139,147,.22) !important;
}

/* Sale category card override (homepage Shop by Category) */
.category-card.bg-sale {
  background: linear-gradient(135deg, #d1d9ff, #ebe3e5)  !important;
  color: #111827 !important;
  border: 1px solid rgba(17,24,39,.06) !important;
}
.category-card.bg-sale .category-circle{
  box-shadow: 0 4px 12px rgba(220,38,38,.20) !important;
}
