/* Base */
:root { --marquee-speed: 32s; }
html { scroll-behavior: smooth; }
.icon-btn { 
  padding: 6px; 
  font-size: 18px;
  position: relative;
  transition: transform 0.2s ease;
}
.icon-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background-color: #000;
  transition: width 0.3s ease;
}
.icon-btn:hover::after {
  width: 80%;
}

/* Animated Gradient Background for white sections */
.animated-gradient-bg { 
  background: linear-gradient(110deg, #ffffff 30%, #f0f0f0 50%, #ffffff 70%);
  background-size: 300% 100%;
  animation: gradientMove 8s linear infinite;
  position: relative;
}
.animated-gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(90deg, rgba(0,0,0,0.01) 0px, transparent 1px, transparent 2px, rgba(0,0,0,0.01) 3px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.01) 0px, transparent 1px, transparent 2px, rgba(0,0,0,0.01) 3px);
  pointer-events: none;
  opacity: 0.4;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Toast animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes fadeOutDown {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, 20px); }
}

/* Navigation */
header nav a { letter-spacing: 0.16em; font-size: 0.65rem; }

/* Navbar safe area for mobile devices */
header {
  padding-top: env(safe-area-inset-top);
}

header .flex.h-14 {
  height: 3.5rem;
}

@supports (padding: env(safe-area-inset-top)) {
  body {
    /* Applying safe-area padding to body can cause iOS sticky header jitter/jumps.
       Keep safe-area handling on the header instead. */
    padding-top: 0;
  }
}

/* Mobile Dropdown */
.mobile-dropdown-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}
.mobile-dropdown-arrow {
  transition: transform 0.3s ease;
  font-size: 0.7em;
}
.mobile-dropdown-content {
  transition: all 0.3s ease;
}
.mobile-dropdown-content a {
  font-weight: 400;
  font-size: 0.8rem;
  transition: padding-left 0.2s ease;
}
.mobile-dropdown-content a:hover {
  padding-left: 1.5rem;
}
.nav-link { 
  position: relative; 
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #000;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link:hover { color: #000; }
.dropdown-arrow { font-size: 0.6em; margin-left: 4px; transition: transform 0.3s ease; }
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: white; border: 1px solid #e5e5e5; box-shadow: 0 4px 12px rgba(0,0,0,0.08); min-width: 200px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; z-index: 50; margin-top: 0.5rem; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-item { display: block; padding: 0.75rem 1.25rem; font-size: 0.75rem; color: #000; transition: background-color 0.2s ease, padding-left 0.2s ease; white-space: nowrap; font-weight: 400; }

.dropdown-item:hover { background-color: #f5f5f5; padding-left: 1.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 0; padding: 0.85rem 1.75rem; font-size: 0.72rem; line-height: 1; font-weight: 400; letter-spacing: 0.16em; transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; margin-top: 0; margin-bottom: 0; }
.btn-dark { background:#000; color:#fff; border:1px solid #000; }
.btn-dark:hover { background:transparent; color:#000; border:1px solid #000; transform: translateY(-2px); }
.btn-light { background:#fff; color:#000; border:1px solid #000; }
.btn-light:hover { background:#000; color:#fff; border:1px solid #000; transform: translateY(-2px); }

/* Section Accent Dividers */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #ff0000 10%, 
    #ff4500 20%, 
    #ff6b00 30%, 
    #ff8c00 40%,
    #ffaa00 50%,
    #ff8c00 60%,
    #ff6b00 70%,
    #ff4500 80%,
    #ff0000 90%,
    transparent 100%);
  background-size: 200% 100%;
  width: 100%;
  max-width: 100vw;
  position: relative;
  animation: none;
  opacity: 0.3;
  overflow: hidden;
}
.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 69, 0, 0) 0%,
    rgba(255, 69, 0, 0.2) 25%,
    rgba(255, 107, 0, 0.3) 50%,
    rgba(255, 69, 0, 0.2) 75%,
    rgba(255, 69, 0, 0) 100%);
  background-size: 50% 100%;
  animation: none;
}
@keyframes dividerFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes dividerPulse {
  0%, 100% { 
    transform: translateX(-100%);
    opacity: 0.6;
  }
  50% { 
    transform: translateX(200%);
    opacity: 1;
  }
}

/* Sections */
.section-title { 
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); 
  font-weight: 800; 
  letter-spacing: -0.01em; 
  text-transform: uppercase; 
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1.5px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #8b0000 5%,
    #ff0000 10%, 
    #ff4500 20%, 
    #ff6b00 30%, 
    #ff8c00 40%,
    #ffaa00 50%,
    #ff8c00 60%,
    #ff6b00 70%,
    #ff4500 80%,
    #ff0000 90%,
    #8b0000 95%,
    transparent 100%);
  background-size: 200% 100%;
  animation: dividerFlow 8s linear infinite;
  opacity: 0.95;
}

/* Collection cards */
.collection-card { min-width: 260px; scroll-snap-align: start; flex-shrink: 0; }
.collection-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 0; }
.collection-card span { display: block; margin-top: 0.75rem; text-align: center; font-size: 0.875rem; font-weight: 600; }

/* Featured Collections - Uniform Grid (keeps cards, changes layout) */
.featured-grid-new {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .featured-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (max-width: 768px) {
  .featured-grid-new {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Size guide drawer sizing: clamp between 300px and 500px, 100% width in between */
[data-drawer-panel="size-guide"] {
  width: clamp(300px, 100%, 500px) !important;
  min-width: 300px;
  max-width: 500px;
}
.featured-item-new { 
  position: relative; 
  overflow: hidden; 
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0;
  width: 100%;
  aspect-ratio: 4/5;
}
@media (max-width: 768px) {
  .featured-item-new {
    aspect-ratio: 3/4;
    height: auto;
  }
}
.featured-item-new:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.featured-img-new { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}
.featured-item-new:hover .featured-img-new { 
  transform: scale(1.05); 
}
.featured-label-new { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  padding: 2rem 1.5rem 1.5rem; 
  display: flex; 
  flex-direction: column; 
  gap: 0.5rem;
  background: none;
}
.featured-category { 
  font-size: clamp(1rem, 2vw, 1.5rem); 
  font-weight: 800; 
  color: white; 
  text-transform: uppercase; 
  letter-spacing: 0.05em;
}
.featured-cta { 
  font-size: 0.75rem; 
  color: rgba(255,255,255,0.9); 
  font-weight: 400; 
  letter-spacing: 0.1em;
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Hide horizontal scrollbars on overflow-x elements */
[class*="overflow-x"]::-webkit-scrollbar,
.flex.gap-4::-webkit-scrollbar,
[data-ybt-recommend-grid]::-webkit-scrollbar,
[data-ybt-cart-recommend-grid]::-webkit-scrollbar {
  display: none;
}
[class*="overflow-x"],
.flex.gap-4,
[data-ybt-recommend-grid],
[data-ybt-cart-recommend-grid] {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Full-bleed horizontal scrollers (prevents “fixed white blocks” at edges on mobile/tablet) */
@media (max-width: 1024px) {
  .edge-free-scroll {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    --scroll-pad: 16px;
    padding-left: var(--scroll-pad);
    padding-right: var(--scroll-pad);
    scroll-padding-left: var(--scroll-pad);
    scroll-padding-right: var(--scroll-pad);
  }
}

@media (min-width: 640px) and (max-width: 1024px) {
  .edge-free-scroll { --scroll-pad: 24px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .edge-free-scroll { --scroll-pad: 32px; }
}

@media (min-width: 900px) and (max-width: 1024px) {
  .edge-free-scroll { --scroll-pad: 40px; }
}

/* Product Grid - Mavin Style */
.product-scroll-container { 
  position: relative; 
}

/* Mobile/tablet: full-bleed horizontal scrollers without fixed “edge blocks”.
   We break out of any parent padding AND add real padding inside the scroller
   so the first/last item have breathing room that scrolls with the content. */
@media (max-width: 1024px) {
  .product-scroll-container {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

.product-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
  align-items: start;
}
.product-desc {
  line-height: 1.5;
  color: #525252;
  font-size: 0.75rem;
}
@media (max-width: 1024px) {
  .product-grid { 
    display: flex; 
    overflow-x: auto; 
    gap: 1.5rem; 
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    justify-content: flex-start;
    /* real scroll padding (moves with scroll) */
    --scroll-pad: 16px;
    padding-left: var(--scroll-pad);
    padding-right: var(--scroll-pad);
    scroll-padding-left: var(--scroll-pad);
    scroll-padding-right: var(--scroll-pad);
  }

  @media (min-width: 640px) {
    .product-grid { --scroll-pad: 24px; }
  }

  @media (min-width: 768px) {
    .product-grid { --scroll-pad: 32px; }
  }

  @media (min-width: 900px) {
    .product-grid { --scroll-pad: 40px; }
  }

  .product-card-mavin { 
    /* Each “slide” should span the device width (minus scroll padding). */
    flex: 0 0 calc(100% - (var(--scroll-pad) + var(--scroll-pad)));
    min-width: calc(100% - (var(--scroll-pad) + var(--scroll-pad)));
    max-width: calc(100% - (var(--scroll-pad) + var(--scroll-pad)));
    scroll-snap-align: start;
  }
}

/* Mobile drawers: make slide-out panels truly full-screen on phones */
[data-drawer-panel] {
  height: 100vh;
  height: 100dvh;
}

@media (max-width: 640px) {
  [data-drawer-panel] {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}
@media (min-width: 1025px) {
  .product-card-mavin { 
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
.product-card-mavin { 
  position: relative;
  width: 100%;
}
.product-title-mavin { font-size: 0.875rem; font-weight: 600; line-height: 1.3; max-width: 60%; }
.product-price-mavin {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.25rem;
  letter-spacing: -0.02em;
}
.product-rating { font-size: 0.75rem; color: #fbbf24; margin-bottom: 0.25rem; }

/* Featured Slideshow (full-screen, auto-advancing) */
.featured-slideshow-section {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
}

.featured-slideshow {
  position: relative;
  height: 70vh;
  min-height: 520px;
}

@media (max-width: 640px) {
  .featured-slideshow-section,
  .featured-slideshow {
    height: 60vh;
    min-height: 460px;
  }
}

.featured-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.02);
  animation: ybtFeaturedFade 24s infinite;
}

.featured-slide:nth-child(1) { animation-delay: 0s; }
.featured-slide:nth-child(2) { animation-delay: 6s; }
.featured-slide:nth-child(3) { animation-delay: 12s; }
.featured-slide:nth-child(4) { animation-delay: 18s; }

.featured-slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.30),
    rgba(0, 0, 0, 0)
  );
}

.featured-slide-ui {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .featured-slide-ui {
    padding: 2.5rem;
  }
}


@keyframes ybtFeaturedFade {
  0% { opacity: 0; transform: scale(1.02); }
  4% { opacity: 1; transform: scale(1); }
  25% { opacity: 1; transform: scale(1); }
  29% { opacity: 0; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1.01); }
}

@media (prefers-reduced-motion: reduce) {
  .featured-slide { animation: none; opacity: 0; transform: none; }
  .featured-slide:nth-child(1) { opacity: 1; }
}

/* Size Dots */
.size-dot { 
  width: 18px; 
  height: 18px; 
  border-radius: 50%; 
  border: 1px solid #d4d4d4; 
  font-size: 9px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer; 
  transition: all 0.2s; 
  background: white;
  font-weight: 600;
  color: #525252;
}
.size-dot:hover { border-color: #000; background: #f5f5f5; }

/* Color Swatches Inline */
.color-swatches-inline { display: flex; gap: 0.35rem; align-items: center; }
.color-swatch-small { 
  width: 16px; 
  height: 16px; 
  border-radius: 50%; 
  border: 1.5px solid transparent; 
  cursor: pointer; 
  transition: all 0.2s ease; 
}
.color-swatch-small:hover { transform: scale(1.15); border-color: #000; }
.color-swatch-small.active { border-color: #000; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #000; }


/* Water collection image zero border radius */
#water img { border-radius: 0 !important; }

/* Breadcrumb Navigation */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: #737373; padding: 1rem 0; }
.breadcrumb a { color: #737373; transition: color 0.2s; }
.breadcrumb a:hover { color: #000; }
.breadcrumb-separator { color: #d4d4d4; }

/* Mobile Scroll Animations for Brand Promise */
@media (max-width: 768px) {
  .brand-card {
    transition: all 0.3s ease;
  }
  .brand-card.in-view {
    transform: translateY(-0.5rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #000;
  }
}

/* Product - Legacy (for old cards) */
.product-card { position: relative; }
.product-title { font-size: 0.95rem; font-weight: 600; }
.product-meta { font-size: 0.75rem; color: #6b7280; }
.product-price {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
/* force zero radius on product wrappers/images regardless of Tailwind rounded classes */
.product-card a { border-radius: 0 !important; }
.product-card img { border-radius: 0 !important; }

/* Reviews */
.review-card { border-radius: 0.5rem; border: 1px solid #e5e7eb; padding: 1rem; background: #fff; }
.stars { letter-spacing:2px; }

/* Tabs */
.tab-btn { padding: 0.5rem 0.75rem; border-radius: 0; font-weight: 400; letter-spacing: 0.16em; }
.tab-btn:hover { background: #f5f5f5; }
.tab-btn.active { background: #000000; color: #fff; }

/* Layout tweaks specific to sections */
/* Dynamic landing sections: push CTA rows to bottom without changing HTML */
[data-ybt-dynamic-sections] section > div { display: flex; flex-direction: column; }
[data-ybt-dynamic-sections] section > div > .text-center { order: 1; }
[data-ybt-dynamic-sections] section > div > .mt-8 { order: 2; }
[data-ybt-dynamic-sections] section > div > .mt-6 { order: 3; }

/* Add vertical breathing room around CTA rows - minimal spacing */
.flex.justify-center.gap-3, .flex.justify-center.gap-4 { margin-top: 2rem; margin-bottom: 0.5rem; }

/* Men/Women grids: 4 across on large, horizontal scroll on mobile */
@media (min-width: 1024px){
  #men .tab-panel .product-grid, #women .tab-panel .product-grid { 
    grid-template-columns: repeat(4, minmax(0,1fr)) !important; 
  }
}

/* FAQ */
details.faq { padding: 1rem 0; }
details.faq summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.faq .answer { margin-top: 0.5rem; font-size: 0.9rem; color: #374151; }

/* Marquee - seamless infinite scroll */
.marquee { display: inline-block; animation: marquee var(--marquee-speed) linear infinite; will-change: transform; }
@keyframes marquee { from { transform: translateX(0%); } to { transform: translateX(-50%); } }

/* Premium Product Cards (Puma/North Face inspired) */
.product-card-premium {
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card-premium a {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  transition: all 0.3s ease;
}

.product-card-premium a:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card-premium img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.product-card-premium .product-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Product Detail Page (PDP) layout */
.product-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 0.75rem;
}
.product-media-grid .product-media-tile {
  display: block;
  width: 100%;
  background: #f5f5f5;
  overflow: hidden;
  border-radius: 0;
}
.product-media-grid .product-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.product-media-grid .product-media-tile:nth-child(1) {
  grid-row: 1 / span 2;
}
.product-media-grid .product-media-tile:nth-child(1) img {
  aspect-ratio: 1 / 1;
}

.pdp-mobile-gallery {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.pdp-mobile-track {
  display: flex;
  gap: 0.75rem;
  padding: 0 0.25rem;
}
.pdp-mobile-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  background: #f5f5f5;
}
.pdp-mobile-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.pdp-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d4d4d4;
}
.pdp-dot.active {
  background: #000;
}

.product-card-premium .color-dots {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.product-card-premium .color-dot {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.product-card-premium .color-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
}

.product-card-premium .color-dot:hover {
  border-color: #171717;
}

.product-card-premium .product-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #525252;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-card-premium .product-desc {
  font-size: 0.75rem;
  color: #737373;
  line-height: 1.4;
}


.product-card-premium .product-price {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #171717;
  letter-spacing: -0.02em;
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.875rem 1rem;
  background: white;
  border: 1.5px solid #171717;
  color: #171717;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.75rem;
}

/* Lighter borders on product pages (not landing page) */
.page-store .add-to-cart-btn {
  border-color: #d4d4d4;
}

.add-to-cart-btn:hover {
  background: #171717;
  color: white;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4d4d4;
  background: white;
  color: #171717;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-btn:hover:not(.pagination-btn-active):not(:disabled) {
  background: #f5f5f5;
  border-color: #a3a3a3;
}

.pagination-btn-active {
  background: #171717;
  color: white;
  border-color: #171717;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-count {
  font-size: 0.875rem;
  color: #737373;
  text-align: center;
}

/* Filter Buttons */
.filter-btn,
.filter-btn-active {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  border: 1px solid #d4d4d4;
  background: white;
  color: #171717;
}

.filter-btn:hover {
  background: #f5f5f5;
  border-color: #a3a3a3;
}

.filter-btn-active {
  background: #171717;
  color: white;
  border-color: #171717;
}

/* Breadcrumb */
.breadcrumb a {
  color: #737373;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #171717;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #d4d4d4;
}

/* Language Switcher */
.lang-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: white;
  border: 1px solid #d4d4d4;
  color: #171717;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: #f5f5f5;
  border-color: #a3a3a3;
}

/* Search Bar with Cool Transition */
#searchBar {
  position: sticky;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 39;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.search-bar-hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  visibility: hidden;
}

.search-bar-visible {
  max-height: 100px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

#searchInput {
  transition: opacity 0.3s ease-in-out;
}

/* Search Dropdown */
#searchDropdown {
  max-width: calc(100% - 3rem);
  border-radius: 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

#searchDropdown img {
  border: 1px solid #e5e5e5;
}

/* Prevent dropdown content from scrolling the body */
body.search-dropdown-open {
  overflow: hidden;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Filter buttons */
.filter-btn {
  cursor: pointer;
  user-select: none;
}

.filter-btn.active {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#searchBar.search-bar-visible #searchInput {
  opacity: 1;
}

/* Mobile Menu positioning */
#mobileMenu {
  position: relative;
  z-index: 38;
  background: white;
}

/* Ensure header icons are clickable */
header .icon-btn {
  position: relative;
  z-index: 41;
  cursor: pointer;
}

header button#mobileMenuBtn {
  position: relative;
  z-index: 41;
  cursor: pointer;
}

/* Gym/Street Wear Split Section */
.wear-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 2160px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .wear-split-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.wear-box {
  position: relative;
  height: 600px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .wear-box {
    height: 700px;
  }
}

.wear-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wear-box-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

.wear-box-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wear-box-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.wear-box-btn {
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wear-box-btn:hover {
  background: white;
  color: #000;
}

/* Explorers Also Loved Section */
.explorers-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
}

.explorers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .explorers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.explorer-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.explorer-card img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
}

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

/* Product Detail Page Styles */
.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #f5f5f5;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.product-image-wrapper:hover {
  transform: scale(1.02);
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-image-wrapper:hover .product-detail-image {
  transform: scale(1.05);
}

.product-image-wrapper.is-zoomed {
  cursor: zoom-out;
}

.product-image-wrapper.is-zoomed:hover {
  transform: none;
}

.product-image-wrapper.is-zoomed .product-detail-image {
  transform: scale(2.2);
  transition: transform 0.15s ease;
  will-change: transform;
}

.product-image-wrapper.is-zoomed:hover .product-detail-image {
  transform: scale(2.2);
}

/* Mobile Gallery */
#pdpMobileGallery {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#pdpMobileGallery > div {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 1;
  position: relative;
}

#pdpMobileGallery > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#pdpDots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  transition: all 0.3s ease;
  cursor: pointer;
}

#pdpDots span.active {
  background-color: #000;
  width: 24px;
  border-radius: 4px;
}

/* Color Swatches */
#pdpColors .color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e5e5e5;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

#pdpColors .color-btn:hover {
  transform: scale(1.1);
  border-color: #000;
}

#pdpColors .color-btn.active {
  border-color: #000;
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px #000;
}

/* Size Selection */
#pdpSizes .size-btn {
  padding: 0.55rem 0.25rem;
  border: 1px solid #d1d5db;
  background-color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

#pdpSizes .size-btn:hover {
  border-color: #000;
  background-color: #f9fafb;
}

#pdpSizes .size-btn.active {
  border-color: #000;
  background-color: #000;
  color: #fff;
}

#pdpSizes .size-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  position: relative;
}

#pdpSizes .size-btn:disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #d1d5db;
  transform: rotate(-45deg);
}

/* Product Card for "You May Also Like" */
.product-recommend-card {
  flex: 0 0 250px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-recommend-card:hover {
  transform: translateY(-5px);
}

.product-recommend-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background-color: #f5f5f5;
}

@media (max-width: 768px) {
  .product-recommend-card {
    flex: 0 0 180px;
  }
}

/* Edit Cart Modal Mobile Styles */
@media (max-width: 640px) {
  #ybt-edit-cart-overlay > div {
    width: 90vw !important;
    max-width: 90vw !important;
    margin-left: 5vw;
    margin-right: 5vw;
  }
}

/* Sticky Filter Bar for Category Pages */
[data-sticky-filters] {
  position: sticky;
  top: 56px; /* Default header height */
  z-index: 30;
  background: white;
  transition: box-shadow 0.2s ease;
}

/* When scrolled, add shadow */
[data-sticky-filters].is-scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mobile: adjust for potentially taller header */
@media (max-width: 768px) {
  [data-sticky-filters] {
    top: 56px;
  }
}

