/* Design System & Variables */
:root {
  --background: #ffffff;
  --foreground: #000000;
  --card: #ffffff;
  --card-foreground: #000000;
  --popover: #ffffff;
  --popover-foreground: #000000;
  --primary: #000000;
  --primary-foreground: #ffffff;
  --secondary: #f6f6f6;
  --secondary-foreground: #000000;
  --muted: #f6f6f6;
  --muted-foreground: #666666;
  --accent: #000000;
  --accent-foreground: #ffffff;
  --destructive: #d9383a;
  --destructive-foreground: #ffffff;
  --border: #e2e2e2;
  --input: #e2e2e2;
  --ring: #000000;
  
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius: 0px; /* Sharp modern e-commerce edges */
  --header-height: 80px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.05em;
  scroll-behavior: smooth;
}

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

/* Header & Navigation */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  background: transparent;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(0,0,0,0.02);
}

.site-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav-left a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.site-header.scrolled .site-nav-left a {
  color: #000000;
}

.site-nav-left a:hover {
  opacity: 0.7;
}

.site-brand {
  display: flex;
  justify-content: center;
}

.site-brand a {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  transition: color 0.3s ease;
}

.site-header.scrolled .site-brand a {
  color: #000000;
}

.site-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.site-nav-right a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
}

.site-header.scrolled .site-nav-right a {
  color: #000000;
}

.site-nav-right a:hover {
  opacity: 0.7;
}

/* Cart Badge */
.cart-link {
  display: flex;
  align-items: center;
}

.cart-link .badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--foreground);
  color: var(--background);
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--background);
}

.site-header.scrolled .cart-link .badge {
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #ffffff;
  border-color: #ffffff;
}

/* Theme toggle hidden as per user requirements */
#themeToggle {
  display: none !important;
}

/* Responsive Navbar */
@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }
  .site-nav-left {
    gap: 14px;
  }
  .site-nav-left a {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .site-brand a {
    font-size: 18px;
  }
  .site-nav-right {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .site-nav-left {
    display: none; /* Hide left links on mobile */
  }
  .site-header {
    grid-template-columns: auto 1fr auto;
  }
  .site-brand {
    justify-content: flex-start;
  }
}

/* Hero Cinematic Video Section */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  background: #000000;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader video {
  width: min(420px, 78vw);
  height: auto;
  display: block;
  mix-blend-mode: screen;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000000;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25); /* Slight tint for contrast */
  z-index: 2;
}

/* Section Headings */
.section-head {
  padding: 80px 40px 30px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-head h1 {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.all-collections-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1.5px solid var(--foreground);
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}

.all-collections-link:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .section-head {
    padding: 40px 20px 20px;
    margin-bottom: 24px;
  }
  .section-head h2 {
    font-size: 20px;
  }
}

/* Bestsellers Slider Container */
.bestsellers-section {
  background: var(--background);
}

.products-slider-container {
  position: relative;
  padding: 0 40px 40px;
}

.products-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  padding-bottom: 10px;
}

.products-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

/* Main Collection Grid (Fallbacks) */
.products {
  padding: 40px;
  background: var(--background);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products {
    padding: 20px;
  }
  .products-slider-container {
    padding: 0 20px 30px;
  }
}

/* Product Cards Styling (Minimalism) */
.product.card {
  position: relative;
  flex: 0 0 calc(20% - 20px); /* 5 items per screen width on desktop */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.3s ease;
}

/* Fallback for regular grid items */
.grid .product.card {
  flex: none;
}

.product.card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.product.card .img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #f6f6f6;
  overflow: hidden;
  border-radius: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: padding 0.3s ease;
}

.product.card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s ease;
}

/* Card containing flat layout products */
.product.card.card--contain .img {
  padding: 20px;
  background: #fdfdfd;
}

.product.card.card--contain .img img {
  object-fit: contain;
}

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

/* Wishlist Heart Button */
.wishlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #000000;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.wishlist-btn:hover {
  transform: scale(1.1);
  background: #f6f6f6;
}

/* Badges (NEW / SALE) */
.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 10;
}

.badge-new {
  background: #3b7a57; /* Curated design green */
  color: #ffffff;
}

.badge-sale {
  background: #d9383a; /* Curated design red */
  color: #ffffff;
}

/* Product Info */
.product .body {
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.product .meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.product .meta strong {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000000;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price {
  font-size: 12px;
  font-weight: 700;
  color: #000000;
}

.price-original {
  font-size: 11px;
  text-decoration: line-through;
  color: #888888;
}

.product .muted {
  font-size: 10px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card Actions */
/* Size selector boxes */
.size-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
  width: 100%;
}

.size-btn {
  flex: 1;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover {
  border-color: #000000;
}

.size-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Color swatch buttons */
.color-btn {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.color-btn:hover {
  border-color: #000000;
}

.color-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.product .actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.product .btn {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  border-radius: 0;
}

.product .btn-primary {
  flex: 1;
}

.product .btn-secondary {
  border: 1px solid var(--border);
}

.product .btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product .btn-icon svg {
  pointer-events: none;
}

@media (max-width: 900px) {
  .product.card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 600px) {
  .product.card {
    flex: 0 0 calc(50% - 12px);
  }
  .product .body {
    padding: 10px 0;
  }
}

/* Split Lookbook Banners */
.lookbook-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 75vh;
  background: #000000;
  overflow: hidden;
}

.lookbook-banner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lookbook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.lookbook-banner:hover .lookbook-img {
  transform: scale(1.05);
}

.lookbook-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
  z-index: 2;
  transition: background-color 0.3s ease;
}

.lookbook-banner:hover .lookbook-overlay {
  background-color: rgba(0, 0, 0, 0.15);
}

.lookbook-content {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  padding: 0 40px;
  z-index: 10;
  text-align: center;
  color: #ffffff;
  pointer-events: none;
}

.lookbook-title {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .lookbook-split {
    grid-template-columns: 1fr;
    height: 100vh;
  }
  .lookbook-title {
    font-size: 24px;
  }
  .lookbook-content {
    bottom: 40px;
  }
}

/* Slider dots indicator */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slider-dots .dot {
  width: 6px;
  height: 6px;
  background: #d0d0d0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
  background: #000000;
}

/* Customer Reviews Slider */
/* Exclusive Drop */
.exclusive-drop {
  background: transparent;
  color: var(--foreground);
  padding: 80px 40px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.exclusive-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .exclusive-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.exclusive-text {
  text-align: left;
}

.exclusive-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  margin-bottom: 16px;
}

.exclusive-text h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--foreground);
}

.exclusive-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 24px;
  max-width: 400px;
}

.exclusive-image {
  position: relative;
  border: 2px solid #f2cc19;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.12);
  transform: none;
  transition: transform 0.3s ease;
  max-width: 380px;
  margin: 0 auto;
}

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

.exclusive-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.reviews-section {
  padding: 100px 40px;
  background: var(--background);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.review-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 1000px) {
  .review-content {
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
  }
}

.review-text {
  text-align: left;
  padding: 40px;
  background: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  position: relative;
}

.review-text::before {
  content: "“";
  font-family: serif;
  font-size: 120px;
  color: var(--accent, #ff3333);
  opacity: 0.1;
  position: absolute;
  top: -20px;
  left: 20px;
  line-height: 1;
}

.review-text blockquote {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.8;
  color: #444;
  position: relative;
  z-index: 1;
  margin: 0;
}

.review-text strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: #111;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.slider-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
  gap: 24px;
}

.slide {
  width: 320px;
  height: 420px;
  flex-shrink: 0;
  background: #f6f6f6;
  overflow: hidden;
  border-radius: 0;
}

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

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1720px); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #222222;
  border-color: #222222;
}

.btn-secondary:hover {
  background: #f6f6f6;
  border-color: #000000;
}

/* Notice Banner */
.notice-banner {
  background: #000000;
  color: #ffffff;
  padding: 10px 20px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Footer Styling */
.site-footer {
  background: #ffffff;
  color: #000000;
  border-top: 1px solid var(--border);
  padding: 80px 40px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-subscribe strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-subscribe input {
  padding: 12px;
  border: 1px solid var(--border);
  font-size: 12px;
  background: #ffffff;
  outline: none;
  width: 100%;
  max-width: 300px;
}

.footer-subscribe input:focus {
  border-color: #000000;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links strong, .footer-contact strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links a {
  font-size: 11px;
  color: #666666;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #000000;
}

.footer-contact {
  font-size: 11px;
  color: #666666;
}

.footer-contact a {
  color: #000000;
  font-weight: 600;
}

.footer-badges {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 30px;
}

.footer-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666666;
}

.footer-inner > div:last-child {
  font-size: 10px;
  color: #999999;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .site-footer {
    padding: 40px 20px 20px;
  }
}

/* Cart & Checkout Layout Adjustments */
.checkout {
  padding: 120px 40px 60px; /* Offset for floating header */
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  margin-top: 40px;
}

.address-card {
  padding: 30px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 0;
}

.address-card::before {
  display: none; /* Remove raw backgrounds from inputs area */
}

.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.grid-form input {
  padding: 12px;
  border: 1px solid var(--border);
  font-size: 13px;
  background: #ffffff;
  outline: none;
  border-radius: 0;
}

.grid-form input:focus {
  border-color: #000000;
}

.order-summary {
  padding: 30px;
  border: 1px solid var(--border);
  background: #f9f9f9;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-summary h2 {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.summary-item-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.summary-item-row img {
  width: 50px;
  height: 60px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid var(--border);
}

.summary-item-row div strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border-top: 1px solid #000000;
  padding-top: 20px;
}

/* Modal sizing styling */
/* Modal (size chart) */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity .25s ease;
}

.modal[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
  position: relative;
  width: min(92vw, 460px);
  max-height: 80vh;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transform: translateY(15px) scale(.98);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  overflow: hidden;
  z-index: 10000;
}

.modal-dialog.large {
  width: min(96vw, 800px);
  max-height: 90vh;
}

.modal[aria-hidden="false"] .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #000000;
  color: #ffffff;
}

/* Mobile Navigation & Toggle Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: #ffffff; /* Matches white header text on overlay */
  transition: all 0.3s ease;
}

/* Scrolled header toggle bar color should match scrolled header text color */
.site-header.scrolled .mobile-menu-toggle span {
  background-color: #000000;
}

/* Mobile Nav Drawer overlay background */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(80vw, 320px);
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 80px 30px 40px;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
}

.mobile-menu-drawer.active {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 28px;
  font-weight: 300;
  color: #000000;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.mobile-nav-links a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #000000;
  transition: opacity 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.mobile-nav-links a:hover {
  opacity: 0.7;
  border-color: #000000;
}

@media (max-width: 900px) {
  .site-nav-left {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    grid-column: 1;
  }
  .site-header {
    grid-template-columns: auto 1fr auto;
  }
  .site-brand {
    grid-column: 2;
    justify-content: center;
  }
  .site-nav-right {
    grid-column: 3;
  }
}

/* Card and Product Actions Responsiveness */
@media (max-width: 600px) {
  .product .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .product .btn {
    width: 100%;
    margin: 0;
    padding: 8px 4px;
    font-size: 10px;
    height: 36px;
  }
  .product .btn-icon {
    height: 36px;
  }
  .size-selector {
    gap: 4px;
  }
  .size-btn {
    padding: 6px 0;
    font-size: 10px;
  }
  .grid {
    gap: 16px;
  }
  .site-header {
    padding: 0 16px;
  }
  .site-nav-right {
    gap: 10px;
  }
  .site-brand a {
    font-size: 16px;
  }
}

/* Checkout Page Responsiveness */
@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
  }
  .checkout {
    padding: 100px 20px 40px;
  }
  .order-summary {
    padding: 20px;
  }
  .address-card {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .grid-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .grid-form label {
    grid-column: span 1 !important;
  }
}

/* Reviews Styling on Mobile */
@media (max-width: 768px) {
  .reviews-section {
    padding: 60px 20px;
  }
  .review-text blockquote {
    font-size: 15px;
  }
  .review-text strong {
    font-size: 18px;
    margin-bottom: 16px;
  }
}

/* Policy Content responsiveness */
@media (max-width: 900px) {
  .policy-content {
    padding: 40px 20px;
  }
}
