:root {
  --primary-red: #D92534;
  --primary-red-hover: #B81D2A;
  --primary-red-light: #FEE2E2;
  --primary-red-muted: #EF4444;
  --primary-red-dark: #991B1B;
  --accent-gold: #D97706;
  --bg-soft: #F9FAFB;
  --surface-white: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --border-subtle: #F3F4F6;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background-color: #FFFFFF;
  /* clip avoids iOS scroll lock that overflow-x:hidden can cause on large tappable areas */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Custom Typography */
.font-display {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/*
  Keep global scroll-behavior: auto to prevent mouse wheel stutter/jitter ('kapa kapa').
  Smooth scrolling is handled cleanly via programmatic anchor links and touch momentum.
*/
html {
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
}

html.is-ready {
  scroll-behavior: auto !important;
}

/* Reserve icon glyph boxes so Remix Icon late-load doesn't collapse UI */
[class^="ri-"],
[class*=" ri-"] {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  speak: never;
}

.header-icon-btn i,
.header-cart-btn i,
.mobile-bottom-nav__item i,
.side-menu__social-btn i {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F3F4F6;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Red Accent Glow and Utilities */
.shadow-red-subtle {
  box-shadow: 0 10px 25px -5px rgba(217, 37, 52, 0.15), 0 8px 10px -6px rgba(217, 37, 52, 0.1);
}

.shadow-card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.shadow-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shadow-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(217, 37, 52, 0.06);
}

/* Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Badge Pulse */
.badge-pulse {
  animation: pulse-soft 2s infinite ease-in-out;
}

@keyframes pulse-soft {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.92;
  }
}

/* Size Pill Active State */
.size-btn.active {
  background-color: var(--primary-red) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-red) !important;
}

/* Wishlist Active */
.wishlist-btn.active svg {
  fill: var(--primary-red);
  stroke: var(--primary-red);
}

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

/* Product Card Image Zoom */
.product-image-container img {
  transition: transform 0.4s ease;
}
.product-card:hover .product-image-container img {
  transform: scale(1.06);
}

/* Modal and Drawer transitions */
.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-panel--left {
  transform: translateX(-100%);
}
.drawer-backdrop.open .drawer-panel,
.drawer-backdrop.open .drawer-panel--left {
  transform: translateX(0);
}

/* Cart drawer — slides in from the left, soft open/close, right-side peek */
.cart-drawer-backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: min(400px, calc(100vw - 52px));
  max-width: calc(100vw - 52px);
  background: #fff;
  border-radius: 0 18px 18px 0;
  box-shadow:
    12px 0 40px rgba(15, 23, 42, 0.14),
    4px 0 12px rgba(15, 23, 42, 0.06);
  transform: translate3d(-104%, 0, 0);
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  overflow: hidden;
}

.cart-drawer-backdrop.open .cart-drawer-panel {
  transform: translate3d(0, 0, 0);
}

@media (min-width: 640px) {
  .cart-drawer-panel {
    left: auto;
    right: 0;
    width: min(400px, calc(100vw - 72px));
    max-width: 400px;
    border-radius: 20px 0 0 20px;
    box-shadow:
      -12px 0 40px rgba(15, 23, 42, 0.14),
      -4px 0 12px rgba(15, 23, 42, 0.06);
    transform: translate3d(104%, 0, 0);
  }
}

/* Mobile side menu — same soft left slide + right peek */
.side-menu-backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.side-menu-panel {
  width: min(400px, calc(100vw - 52px));
  max-width: calc(100vw - 52px);
  background: #fff;
  border-radius: 0 18px 18px 0;
  box-shadow:
    12px 0 40px rgba(15, 23, 42, 0.14),
    4px 0 12px rgba(15, 23, 42, 0.06);
  transform: translate3d(-104%, 0, 0);
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  overflow: hidden;
}

.side-menu-backdrop.open .side-menu-panel {
  transform: translate3d(0, 0, 0);
}

@media (min-width: 640px) {
  .side-menu-panel {
    width: min(400px, calc(100vw - 72px));
    max-width: 400px;
    border-radius: 0 20px 20px 0;
  }
}

/* Quick View Modal */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-content {
  transform: scale(1);
}

/* Toast Notification Animation */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--simple {
  min-width: min(280px, calc(100vw - 32px));
}

/* =========================
   SITE HEADER — polished UI
   ========================= */

.site-topbar {
  background: #0a0a0a;
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.topbar-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.topbar-marquee-track {
  display: flex;
  width: max-content;
  animation: topbar-marquee 38s linear infinite;
}

.topbar-marquee:hover .topbar-marquee-track {
  animation-play-state: paused;
}

.topbar-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  padding: 9px 0;
}

.topbar-marquee-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 6px;
  color: #e5e5e5;
}

.topbar-sep {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #737373;
  font-size: 11px;
}

@keyframes topbar-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-marquee-track {
    animation: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   HERO SLIDER
   ========================= */

.hero-section {
  padding: 0;
}

.hero-section__inner {
  padding: 0;
}

.hero-slider {
  /* Match banner image ratio (~1882x836) so mobile doesn't crop */
  aspect-ratio: 2251 / 1000;
  width: 100%;
  height: auto;
  min-height: 0;
  cursor: pointer;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: #f3f4f6;
  /* pan-y = page scroll; horizontal swipe handled in JS */
  touch-action: pan-y;
}

.hero-slide {
  display: block;
  text-decoration: none;
  color: inherit;
  touch-action: pan-y;
  -webkit-user-drag: none;
}

.hero-slide__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #f3f4f6;
  touch-action: pan-y;
  -webkit-user-drag: none;
  pointer-events: none; /* scroll passes through; link still receives taps via parent <a> */
  user-select: none;
}

@media (min-width: 640px) {
  .hero-section {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .hero-slider {
    aspect-ratio: auto;
    height: 400px;
    border-radius: 16px;
  }

  .hero-slide__img {
    object-fit: cover;
  }
}

@media (min-width: 768px) {
  .hero-slider {
    height: 460px;
  }
}

@media (min-width: 1024px) {
  .hero-slider {
    height: 500px;
  }
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-nav-prev {
  left: 12px;
}

.hero-nav-next {
  right: 12px;
}

.hero-slider:hover .hero-nav-btn,
.hero-slider:focus-within .hero-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.hero-nav-btn:hover {
  background: var(--primary-red);
  color: #fff;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--primary-red);
}

@media (min-width: 640px) {
  .hero-nav-btn {
    width: 44px;
    height: 44px;
  }

  .hero-nav-prev {
    left: 20px;
  }

  .hero-nav-next {
    right: 20px;
  }

  .hero-dots {
    bottom: 24px;
  }
}

/* Promo banner — responsive image slider */
.promo-banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 190px;
  max-height: 230px;
  background: #0f1012;
  touch-action: pan-y;
}

.promo-slide {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  touch-action: pan-y;
  -webkit-user-drag: none;
}

.promo-slide__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.promo-slide__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  -webkit-user-drag: none;
  pointer-events: none;
  user-select: none;
}

.promo-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.promo-nav-btn i {
  font-size: 20px;
  line-height: 1;
}

.promo-nav-prev { left: 12px; }
.promo-nav-next { right: 12px; }

.promo-banner-slider:hover .promo-nav-btn,
.promo-banner-slider:focus-within .promo-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.promo-nav-btn:hover {
  background: var(--primary-red);
  color: #fff;
}

.promo-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
}

.promo-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.promo-dot.is-active {
  width: 24px;
  background: var(--primary-red);
}

@media (min-width: 640px) {
  .promo-banner-slider {
    aspect-ratio: auto;
    height: 280px;
    min-height: 280px;
    max-height: none;
  }

  .promo-nav-btn {
    width: 40px;
    height: 40px;
  }

  .promo-nav-prev { left: 16px; }
  .promo-nav-next { right: 16px; }

  .promo-dots { bottom: 18px; }
}

@media (min-width: 1024px) {
  .promo-banner-slider {
    height: 315px;
    min-height: 315px;
  }
}

@media (max-width: 639px) {
  .promo-nav-btn {
    display: none !important;
  }
}

@media (hover: none) and (min-width: 640px) {
  .promo-nav-btn {
    opacity: 0.88;
    pointer-events: auto;
  }

  /* Touch devices: keep arrows lightly visible so slides can be changed */
  .hero-nav-btn {
    opacity: 0.88;
    pointer-events: auto;
  }
}

/* =========================
   NEW ARRIVALS
   ========================= */

.arrivals-section {
  padding: 48px 0 56px;
  background: #fafafa;
  border-top: 1px solid #f3f4f6;
}

.bestsellers-section {
  background: #fff;
}

.reviews-section {
  background: #fff;
}

.style-share-section {
  background: #fafafa;
}

.style-share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.style-share-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ececec;
  background: #fff;
}

.style-share-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.style-share-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.42);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.style-share-overlay i {
  font-size: 22px;
  line-height: 1;
}

.style-share-item:hover img {
  transform: scale(1.06);
}

.style-share-item:hover .style-share-overlay {
  opacity: 1;
}

@media (min-width: 640px) {
  .style-share-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .style-share-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.review-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  border-color: #e5e5e5;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.review-card-media {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #f0f0f0;
}

.review-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.review-card:hover .review-card-media img {
  transform: scale(1.06);
}

.review-card-body {
  min-width: 0;
  flex: 1;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
  color: #f59e0b;
  font-size: 13px;
  line-height: 1;
}

.review-text {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #374151;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-author {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  white-space: nowrap;
}

.review-verified i {
  font-size: 13px;
  line-height: 1;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.arrivals-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.arrivals-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  text-transform: uppercase;
}

.arrivals-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-red);
  background: rgba(217, 37, 52, 0.08);
  border-radius: 5px;
  line-height: 1;
}

.arrivals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.arrivals-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transform: none;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.arrivals-card:hover {
  border-color: rgba(217, 37, 52, 0.28);
  box-shadow: 0 14px 32px -18px rgba(15, 23, 42, 0.22);
  transform: none;
}

.arrivals-card .arrivals-wish-btn,
.arrivals-card .size-btn,
.arrivals-card .arrivals-cart-btn {
  cursor: pointer;
}

.arrivals-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f4f6;
  isolation: isolate;
}

.arrivals-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrivals-card:hover .arrivals-card-media img {
  transform: scale(1.04);
}

/* Discount on image */
.arrivals-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 42px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  color: #fff;
  background: var(--primary-red);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(217, 37, 52, 0.28);
  line-height: 1.1;
}

.arrivals-wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #374151;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.arrivals-wish-btn i {
  font-size: 18px;
  line-height: 1;
}

.arrivals-wish-btn:hover,
.arrivals-wish-btn.active {
  color: var(--primary-red);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.arrivals-wish-btn:active {
  transform: scale(0.94);
}

.arrivals-wish-btn.active i {
  color: var(--primary-red);
}

.arrivals-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  padding: 14px 14px 14px;
  min-width: 0;
}

.arrivals-card-category {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  line-height: 1.2;
}

.arrivals-card-name {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.arrivals-card:hover .arrivals-card-name {
  color: var(--primary-red);
}

/* Selling + old price */
.arrivals-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.arrivals-card-price .price-now {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: -0.02em;
  line-height: 1;
}

.arrivals-card-price .price-was {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  line-height: 1;
}

.arrivals-sizes {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.arrivals-sizes::-webkit-scrollbar {
  display: none;
}

.arrivals-sizes .size-btn {
  flex: 0 0 auto;
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.arrivals-sizes .size-btn:hover {
  border-color: #9ca3af;
  color: #111827;
}

.arrivals-sizes .size-btn:active {
  transform: scale(0.96);
}

.arrivals-sizes .size-btn.active {
  color: #fff;
  background: var(--primary-red);
  border-color: var(--primary-red);
  box-shadow: 0 4px 10px rgba(217, 37, 52, 0.22);
}

@keyframes size-nudge-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(217, 37, 52, 0);
  }
  40% {
    box-shadow: 0 0 0 3px rgba(217, 37, 52, 0.18);
  }
}

.size-selector--nudge {
  animation: size-nudge-pulse 0.7s ease-in-out 2;
  border-radius: 10px;
}

.size-selector--nudge .size-btn,
.size-btn--nudge {
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
  background: #fff5f5 !important;
}

.arrivals-cart-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  background: #171717;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
}

.arrivals-cart-btn i {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.arrivals-cart-btn:hover {
  background: var(--primary-red);
  box-shadow: 0 8px 18px -10px rgba(217, 37, 52, 0.55);
}

.arrivals-cart-btn:active {
  transform: scale(0.985);
}

@media (min-width: 640px) {
  .arrivals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .arrivals-section {
    padding: 52px 0 60px;
  }

  .arrivals-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .arrivals-card-body {
    padding: 15px 15px 16px;
  }

  .arrivals-card-name {
    font-size: 16px;
  }

  .arrivals-card-price .price-now {
    font-size: 17px;
  }

  .arrivals-sizes {
    flex-wrap: wrap;
    overflow: visible;
  }

  .arrivals-cart-btn {
    min-height: 44px;
    height: 44px;
    font-size: 14px;
  }
}

/* =========================
   SHOP BY CATEGORY
   ========================= */

.category-section {
  padding: 48px 0 56px;
  background: #fff;
}

.category-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.category-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  text-transform: uppercase;
}

.category-title-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary-red);
  flex-shrink: 0;
}

.category-view-all {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111827;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.25s ease;
}

.category-view-all-text {
  position: relative;
}

.category-view-all-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1.5px;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-view-all i {
  font-size: 17px;
  line-height: 1;
  color: var(--primary-red);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-view-all:hover {
  color: var(--primary-red);
  background: transparent;
  border: none;
  box-shadow: none;
}

.category-view-all:hover .category-view-all-text::after {
  transform: scaleX(1);
}

.category-view-all:hover i {
  transform: translate(2px, -2px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.categories-page-grid {
  gap: 16px;
}

.categories-page-desc {
  margin: 0;
  padding: 0 2px 2px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  color: #6B7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .categories-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .categories-page-desc {
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .categories-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #f8f8f8;
  border: 1px solid #ececec;
  border-radius: 8px;
  overflow: hidden;
  transform: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.category-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f4f6;
}

.category-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 24, 39, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.category-card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 14px 12px 16px;
  text-align: center;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  line-height: 1.25;
  transition: color 0.25s ease, gap 0.28s ease;
}

.category-card-arrow {
  display: inline-flex;
  font-size: 18px;
  line-height: 1;
  color: var(--primary-red);
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateX(-6px);
  transition:
    opacity 0.28s ease,
    max-width 0.28s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover {
  border-color: rgba(217, 37, 52, 0.28);
  background: #fff;
  box-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.22);
  transform: none;
}

.category-card:hover .category-card-media::after {
  opacity: 1;
}

.category-card:hover .category-card-media img {
  transform: scale(1.045);
  filter: brightness(1.03);
}

.category-card:hover .category-card-title {
  color: var(--primary-red);
  gap: 4px;
}

.category-card:hover .category-card-arrow {
  opacity: 1;
  max-width: 20px;
  transform: translateX(0);
}

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

  .category-card-title {
    font-size: 16px;
    padding: 15px 14px 17px;
  }
}

@media (min-width: 1024px) {
  .category-section {
    padding: 52px 0 60px;
  }

  .category-section-title {
    font-size: 22px;
  }

  .category-view-all {
    font-size: 14.5px;
  }

  .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }

  .category-card-title {
    font-size: 16.5px;
    padding: 16px 14px 18px;
  }

  .category-card {
    border-radius: 8px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px -6px rgba(15, 23, 42, 0.10),
    0 10px 28px -14px rgba(15, 23, 42, 0.12);
  transition: box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(17, 24, 39, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 18px -8px rgba(15, 23, 42, 0.14),
    0 14px 36px -16px rgba(15, 23, 42, 0.16);
}

.site-header-shell {
  position: relative;
}

.site-header-bar {
  --app-nav-icon: 24px;
  --app-nav-hit: 44px;
  display: grid;
  grid-template-columns: var(--app-nav-hit) 1fr var(--app-nav-hit);
  align-items: center;
  min-height: 64px;
  gap: 8px;
}

/* Mobile: search replaces header row (no page push) */
.header-search {
  --app-nav-icon: 24px;
  --app-nav-hit: 44px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 12px;
  background: #fff;
}

.header-search[hidden] {
  display: none !important;
}

.header-search__shell {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

.header-search__inner {
  display: grid;
  grid-template-columns: var(--app-nav-hit) minmax(0, 1fr) var(--app-nav-hit);
  align-items: center;
  width: 100%;
  gap: 8px;
}

.header-search__lead {
  width: var(--app-nav-hit);
  height: var(--app-nav-hit);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.header-search__lead i {
  font-size: var(--app-nav-icon);
  line-height: 1;
}

.header-search__field {
  display: block;
  min-width: 0;
}

.header-search__input {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.header-search__input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.header-search__input::-webkit-search-decoration,
.header-search__input::-webkit-search-cancel-button,
.header-search__input::-webkit-search-results-button,
.header-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.header-search__close {
  color: #1f2937;
}

.header-search__close:hover {
  color: var(--primary-red);
}

.header-search.is-open {
  animation: header-search-in 0.16s ease;
}

.site-header.is-search-open .site-header-bar {
  visibility: hidden;
}

@keyframes header-search-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .header-search {
    --app-nav-icon: 25px;
    --app-nav-hit: 44px;
    min-height: 64px;
    padding: 0 24px;
  }

  .header-search__input {
    height: 42px;
    font-size: 16px;
  }
}

/* Large screen: search under header, centered moderate width */
@media (min-width: 1024px) {
  .site-header.is-search-open .site-header-bar {
    visibility: visible;
  }

  .header-search {
    top: 100%;
    left: 0;
    right: 0;
    min-height: 0;
    padding: 10px 32px 12px;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
    background: #fff;
    box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.18);
  }

  .header-search__shell {
    max-width: 36rem;
    margin: 0 auto;
    padding: 0;
  }

  .header-search__lead {
    display: none;
  }

  .header-search__inner {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 6px;
  }

  .header-search__input {
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    font-weight: 500;
  }

  .header-search__input:focus {
    border-color: rgba(217, 37, 52, 0.4);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(217, 37, 52, 0.08);
  }
}

.site-header-left,
.site-header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header-left {
  justify-content: flex-start;
}

.site-header-right {
  justify-content: flex-end;
  gap: 2px;
}

.site-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.site-brand--mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(62vw, 220px);
}

.site-logo--mobile {
  height: 56px;
  max-width: 100%;
}

.site-logo--desktop {
  height: 64px;
}

.header-icon-btn,
.header-cart-btn {
  width: var(--app-nav-hit);
  height: var(--app-nav-hit);
}

.header-icon-btn i,
.header-cart-btn i {
  font-size: var(--app-nav-icon);
}

.header-icon-btn--menu i {
  font-size: var(--app-nav-icon);
}

@media (min-width: 640px) {
  .site-header-bar {
    --app-nav-icon: 25px;
    --app-nav-hit: 46px;
    min-height: 68px;
  }

  .site-logo--mobile {
    height: 58px;
  }
}

@media (min-width: 1024px) {
  .site-header-bar {
    display: flex;
    justify-content: space-between;
    min-height: 84px;
    gap: 24px;
  }

  .site-header-left,
  .site-header-right {
    flex: 0 0 auto;
    min-width: 200px;
  }

  .site-header-center {
    flex: 1 1 auto;
  }

  .header-icon-btn,
  .header-cart-btn {
    width: 44px;
    height: 44px;
  }

  .header-icon-btn i,
  .header-cart-btn i {
    font-size: 24px;
  }
}

/* Primary navigation */
.site-nav {
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary-red);
  background: transparent;
  outline: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--primary-red);
  font-weight: 700;
}

.nav-link--offers {
  color: #111827;
  font-weight: 700;
}

.nav-link--offers:hover,
.nav-link--offers:focus-visible,
.nav-link--offers.is-active {
  color: var(--primary-red);
}

.nav-sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-red);
  border-radius: 5px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(217, 37, 52, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-link--offers:hover .nav-sale-badge,
.nav-link--offers:focus-visible .nav-sale-badge {
  transform: translateY(-1px);
  background: var(--primary-red-hover);
}

/* Desktop Category mega menu — one card */
.nav-cat {
  position: relative;
}

.nav-cat__chevron {
  font-size: 1em;
  line-height: 1;
  color: currentColor;
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-cat:hover .nav-cat__trigger,
.nav-cat:focus-within .nav-cat__trigger {
  color: var(--primary-red);
}

.nav-cat:hover .nav-cat__trigger::after,
.nav-cat:focus-within .nav-cat__trigger::after {
  transform: scaleX(1);
}

.nav-cat:hover .nav-cat__chevron,
.nav-cat:focus-within .nav-cat__chevron {
  opacity: 1;
  transform: rotate(180deg);
}

.nav-cat__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 55;
  width: max-content;
  max-width: min(720px, calc(100vw - 48px));
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.nav-cat:hover .nav-cat__panel,
.nav-cat:focus-within .nav-cat__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.nav-cat__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 8px 28px;
}

.nav-cat__col {
  min-width: 0;
}

.nav-cat__title {
  display: block;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
  color: #111827;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-cat__title:hover {
  color: var(--primary-red);
}

.nav-cat__links,
.nav-cat__nested {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-cat__links > li + li {
  margin-top: 2px;
}

.nav-cat__sub-link,
.nav-cat__nested-link {
  display: block;
  padding: 6px 0;
  color: #4B5563;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-cat__sub-link {
  font-weight: 600;
  color: #1F2937;
}

.nav-cat__sub-link:hover,
.nav-cat__nested-link:hover {
  color: var(--primary-red);
}

.nav-cat__nested {
  margin: 0 0 4px 10px;
  padding-left: 8px;
  border-left: 2px solid #FEE2E2;
}

.nav-cat__nested-link {
  font-size: 12.5px;
  color: #6B7280;
}

.nav-cat::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

@media (max-width: 1100px) {
  .nav-cat__grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

/* Utility icons — Remix Icon, flat (no bg) */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.header-icon-btn,
.header-cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #1f2937;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-icon-btn i,
.header-cart-btn i {
  font-size: 26px;
  line-height: 1;
  display: block;
}

.header-icon-btn:hover,
.header-cart-btn:hover {
  color: var(--primary-red);
  background: transparent;
  transform: translateY(-1px);
}

.header-icon-btn:focus-visible,
.header-cart-btn:focus-visible {
  outline: 2px solid rgba(217, 37, 52, 0.35);
  outline-offset: 2px;
}

.header-count-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

.header-count-badge:not(.hidden) {
  display: inline-flex;
}

.header-count-badge--cart {
  top: 1px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  font-size: 10px;
  line-height: 17px;
}

@media (min-width: 1280px) {
  .nav-link {
    padding: 10px 16px;
    font-size: 17px;
  }

  .site-nav {
    gap: 6px;
  }
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--primary-red);
  background: rgba(217, 37, 52, 0.05);
}

@media (max-width: 639px) {
  .site-topbar {
    font-size: 12px;
  }

  .topbar-marquee-group {
    padding: 8px 0;
  }

  .topbar-sep {
    padding: 0 14px;
  }
}

/* =========================
   SIDE MENU + CART DRAWER UI
   ========================= */

.side-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.side-menu__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.side-menu__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
}

.side-menu__close i {
  font-size: 22px;
  line-height: 1;
}

.side-menu__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}

.side-menu__tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.side-menu__tab.is-active {
  color: var(--primary-red);
  background: #fff;
  border-color: rgba(217, 37, 52, 0.18);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.side-menu__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 20px;
  -webkit-overflow-scrolling: touch;
}

.side-menu__panel[hidden] {
  display: none !important;
}

.side-menu__label {
  margin: 14px 10px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Category list — same language as Pages links (no card/border box) */
.cat-tree {
  display: grid;
  gap: 2px;
}

.cat-tree__item {
  min-width: 0;
}

.cat-tree__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 2px;
}

.cat-tree__item--leaf > .cat-tree__name {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
}

.cat-tree__item--leaf > .cat-tree__name:hover {
  background: rgba(217, 37, 52, 0.06);
}

.cat-tree__name {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 10px 8px 10px 12px;
  color: #1f2937;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  border-radius: 12px 0 0 12px;
}

.cat-tree__name:hover,
.cat-tree__name:active {
  color: var(--primary-red);
}

.cat-tree__toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--primary-red);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.cat-tree__toggle:hover,
.cat-tree__toggle:active,
.cat-tree__toggle:focus {
  background: transparent;
  outline: none;
}

.cat-tree__toggle i {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  transition: transform 0.28s ease;
}

.cat-tree__item.is-open > .cat-tree__row > .cat-tree__toggle i {
  transform: rotate(180deg);
}

.cat-tree__item.is-open > .cat-tree__row > .cat-tree__name {
  color: var(--primary-red);
}

/* Nested branch — smooth open/close */
.cat-tree__branch {
  margin: 0 0 0 18px;
  padding: 0 0 0 12px;
  border-left: 2px solid rgba(217, 37, 52, 0.22);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease,
    margin 0.28s ease,
    padding 0.28s ease,
    visibility 0.32s ease;
}

.cat-tree__item.is-open > .cat-tree__branch {
  max-height: 720px;
  opacity: 1;
  visibility: visible;
  margin: 2px 0 6px 18px;
  padding: 2px 0 2px 12px;
}

.cat-tree__branch .cat-tree__name {
  min-height: 42px;
  padding-left: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}

.cat-tree__branch .cat-tree__item--leaf > .cat-tree__name {
  min-height: 42px;
  position: relative;
}

.cat-tree__branch .cat-tree__item--leaf > .cat-tree__name::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 999px;
  background: #d1d5db;
  flex-shrink: 0;
}

.cat-tree__branch .cat-tree__item--leaf > .cat-tree__name:hover::before {
  background: var(--primary-red);
}

.cat-tree__branch .cat-tree__branch {
  margin-left: 14px;
  border-left-color: rgba(217, 37, 52, 0.14);
}

.cat-tree__branch .cat-tree__branch .cat-tree__name {
  font-size: 13px;
  font-weight: 500;
}

.side-menu__nav {
  display: grid;
  gap: 2px;
}

.side-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #1f2937;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, color 0.18s ease;
}

.side-menu__link i {
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  width: 22px;
  text-align: center;
}

.side-menu__link span {
  flex: 1;
  min-width: 0;
}

.side-menu__link:hover,
.side-menu__link.is-active {
  background: rgba(217, 37, 52, 0.06);
  color: var(--primary-red);
}

.side-menu__link:hover i,
.side-menu__link.is-active i {
  color: var(--primary-red);
}

.side-menu__link--sale {
  color: var(--primary-red);
}

.side-menu__sale {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--primary-red);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-menu__footer {
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f3f4f6;
  background: #fafafa;
  text-align: center;
}

.side-menu__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.side-menu__social-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.side-menu__social-btn i {
  font-size: 24px;
  line-height: 1;
}

.side-menu__social-btn:active {
  transform: scale(0.96);
}

.side-menu__social-btn--wa {
  background: rgba(18, 140, 126, 0.12);
  color: #128c7e;
}

.side-menu__social-btn--fb {
  background: rgba(0, 132, 255, 0.12);
  color: #0084ff;
}

.side-menu__note {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #f3f4f6;
}

.cart-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cart-drawer__title-wrap > i {
  font-size: 22px;
  color: var(--primary-red);
}

.cart-drawer__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111827;
}

.cart-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--primary-red);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  position: static;
  top: auto;
  right: auto;
  box-shadow: none;
}

.cart-drawer__count.hidden {
  display: none;
}

.cart-drawer__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
}

.cart-drawer__close i {
  font-size: 22px;
  line-height: 1;
}

.cart-drawer__body {
  padding: 8px 16px 18px;
}

.cart-drawer__items {
  display: flex;
  flex-direction: column;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-line:last-child {
  border-bottom: none;
}

.cart-line__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  background: #f8fafc;
  display: block;
}

.cart-line__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-line__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-line__remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cart-line__remove i {
  font-size: 16px;
  line-height: 1;
}

.cart-line__remove:hover {
  color: var(--primary-red);
  background: rgba(217, 37, 52, 0.06);
}

.cart-line__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.3;
}

.cart-line__dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #93c5fd;
}

.cart-line__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.cart-line__qty {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  min-width: 96px;
  height: 34px;
  padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
}

.cart-line__qty .cart-qty-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cart-line__qty .cart-qty-btn:hover {
  background: #fff;
  color: #0f172a;
}

.cart-line__qty .cart-qty-btn:active {
  transform: scale(0.94);
}

.cart-line__qty-value {
  min-width: 22px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.cart-line__price {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e293b;
  line-height: 1;
  white-space: nowrap;
}

.cart-drawer__empty {
  padding: 48px 12px;
  text-align: center;
}

.cart-drawer__empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fef2f2;
  color: var(--primary-red);
}

.cart-drawer__empty-icon i {
  font-size: 28px;
}

.cart-drawer__empty h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.cart-drawer__empty p {
  margin: 0 0 18px;
  font-size: 13px;
  color: #6b7280;
}

.cart-drawer__empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary-red);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.cart-drawer__footer {
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eef2f7;
  background: #fff;
}

.cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #1e293b;
}

.cart-drawer__subtotal strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.cart-drawer__note {
  margin: 0 0 14px;
  font-size: 11.5px;
  color: #9ca3af;
}

.cart-drawer__view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cart-drawer__view:hover {
  border-color: #1e293b;
  color: #1e293b;
  background: #f8fafc;
}

.cart-drawer__checkout {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  background: var(--primary-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(217, 37, 52, 0.28);
}

.cart-drawer__checkout:hover {
  background: var(--primary-red-hover);
  color: #fff;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  position: relative;
  color: #a3a3a3;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(217, 37, 52, 0.14), transparent 55%),
    linear-gradient(180deg, #151515 0%, #101010 42%, #0b0b0b 100%);
  border-top: 1px solid rgba(217, 37, 52, 0.22);
  padding: 48px 0 28px;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav {
  display: contents;
}

.footer-nav-main,
.footer-nav-aside {
  display: contents;
}

.footer-brand {
  max-width: 100%;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 14px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-about {
  margin: 0 0 18px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.55;
  color: #a3a3a3;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d4d4d4;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a i {
  font-size: 16px;
  line-height: 1;
}

.footer-social a:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 360px;
}

.footer-newsletter input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-newsletter input::placeholder {
  color: #737373;
}

.footer-newsletter input:focus {
  border-color: rgba(217, 37, 52, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.footer-newsletter button {
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: var(--primary-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.footer-newsletter button:hover {
  background: var(--primary-red-hover);
}

.footer-heading {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-block;
  font-size: 13px;
  color: #a3a3a3;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #a3a3a3;
}

.footer-contact-list i {
  margin-top: 1px;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--primary-red);
}

.footer-contact-list a {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: #737373;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-legal a {
  font-size: 12px;
  color: #737373;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #d4d4d4;
}

/* Mobile: Shop+Help same row, Contact below; balanced padding & type */
@media (max-width: 1023px) {
  .site-footer {
    /* pull into body bottom-nav spacer so no double / fake gap under copyright */
    margin-bottom: calc(-1 * (var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px)));
    padding: 28px 0 calc(10px + var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  .footer-inner {
    padding: 0 16px;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 16px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

  .footer-logo img {
    height: 38px;
    object-position: center;
  }

  .footer-about {
    margin: 0 0 14px;
    max-width: 32ch;
    font-size: 13px;
    line-height: 1.5;
    color: #9ca3af;
  }

  .footer-social {
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .footer-social a i {
    font-size: 18px;
  }

  .footer-newsletter {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    gap: 8px;
  }

  .footer-newsletter input {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    border-radius: 10px;
    font-size: 14px;
  }

  .footer-newsletter button {
    flex-shrink: 0;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
  }

  /* Row 1: Shop | Help — Row 2: Contact | Policy */
  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 10px;
  }

  .footer-nav-main,
  .footer-nav-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    align-items: start;
    width: 100%;
    padding: 0 4px;
  }

  .footer-col {
    text-align: left;
    min-width: 0;
  }

  .footer-heading {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
  }

  .footer-contact,
  .footer-policy {
    text-align: left;
  }

  .footer-contact-list {
    gap: 10px;
  }

  .footer-contact-list li {
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
  }

  .footer-contact-list i {
    margin-top: 2px;
    font-size: 16px;
  }

  .footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 0;
    margin: 0;
    text-align: center;
  }

  .footer-copy {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #737373;
  }
}

@media (min-width: 640px) {
  .footer-inner {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    padding: 0 32px;
  }

  .site-footer {
    padding: 56px 0 36px;
  }

  .footer-grid {
    grid-template-columns: 1.35fr 0.7fr 0.7fr 0.95fr 0.85fr;
    gap: 36px;
    padding-bottom: 40px;
  }

  .footer-nav,
  .footer-nav-main,
  .footer-nav-aside {
    display: contents;
  }

  .footer-brand {
    max-width: 320px;
  }

  .footer-logo img {
    height: 44px;
  }

  .footer-about {
    line-height: 1.6;
  }

  .footer-newsletter {
    flex-direction: row;
    max-width: 360px;
  }

  .footer-newsletter input {
    flex: 1;
    min-width: 0;
  }

  .footer-newsletter button {
    flex-shrink: 0;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 28px;
  }
}

/* =========================
   PRODUCT DETAILS PAGE
   ========================= */

.product-page {
  background: #fff;
  padding-bottom: 88px;
}

.product-page-inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 14px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: #9ca3af;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.product-breadcrumb a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
  color: var(--primary-red);
}

.product-breadcrumb span {
  color: #111827;
  font-weight: 700;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-breadcrumb i {
  font-size: 15px;
  line-height: 1;
  color: #d1d5db;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.product-gallery-main {
  position: relative;
  order: 1;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #ececec;
  background: #f5f5f5;
  min-width: 0;
}

.product-thumbs {
  order: 2;
  display: flex;
  flex-direction: row;
  gap: 8px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.product-thumbs .product-thumb {
  width: 68px;
  flex: 0 0 68px;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 48px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.product-wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.product-wish-btn i {
  font-size: 20px;
  line-height: 1;
}

.product-wish-btn.active,
.product-wish-btn:hover {
  color: var(--primary-red);
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb.is-active,
.product-thumb:hover {
  border-color: var(--primary-red);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-info-top {
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f3f4f6;
}

.product-category {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.product-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111827;
}

.product-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 14px;
}

.product-rating-text {
  font-size: 13px;
  color: #6b7280;
}

.product-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.product-stock-badge i {
  font-size: 14px;
  line-height: 1;
}

.product-stock-badge.is-available {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.product-stock-badge.is-low {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}

.product-stock-badge.is-out {
  color: #b91c1c;
  background: rgba(217, 37, 52, 0.1);
}

.product-sku-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 9px;
  border-radius: 6px;
  line-height: 1;
}

.product-sku-tag strong {
  font-weight: 700;
  color: #111827;
}

.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.product-price-now {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-red);
  line-height: 1;
}

.product-price-was {
  font-size: 16px;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-save-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-red);
  background: rgba(217, 37, 52, 0.08);
  padding: 4px 8px;
  border-radius: 5px;
}

.product-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.product-options {
  display: grid;
  gap: 18px;
  padding: 18px 0;
}

.product-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.product-option-head strong {
  color: #111827;
  font-weight: 700;
}

.product-size-guide {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-red);
  text-decoration: none;
}

.product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-color-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px #e5e7eb;
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.product-color-btn span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-color-btn.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-red);
}

.product-color-btn:hover:not(:disabled):not(.is-disabled) {
  transform: scale(1.05);
}

.product-color-btn:disabled,
.product-color-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(1);
  pointer-events: none;
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-sizes .size-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.product-sizes .size-btn:hover:not(:disabled):not(.is-disabled) {
  border-color: #9ca3af;
}

.product-sizes .size-btn.active,
.product-sizes .size-btn.is-active {
  background: var(--primary-red, #D92534);
  color: #fff;
  border-color: var(--primary-red, #D92534);
  box-shadow: 0 4px 12px rgba(217, 37, 52, 0.25);
}

.product-sizes .size-btn:disabled,
.product-sizes .size-btn.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  border-style: dashed;
  text-decoration: line-through;
  background: #f8fafc;
  color: #94a3b8;
  pointer-events: none;
}

.product-purchase {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}

.product-qty-buy {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  align-items: stretch;
}

.product-qty {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  box-sizing: border-box;
}

.product-qty button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.product-qty button i {
  font-size: 18px;
  line-height: 1;
}

.product-qty button:hover {
  background: var(--primary-red);
  color: #fff;
  box-shadow: none;
}

.product-qty button:active {
  transform: scale(0.96);
}

.product-qty input {
  width: 40px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111827;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}

.product-qty input::-webkit-outer-spin-button,
.product-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-add-btn,
.product-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-add-btn {
  width: 100%;
  border: none;
  background: #111827;
  color: #fff;
}

.product-add-btn:hover {
  background: var(--primary-red);
}

.product-add-btn i {
  font-size: 18px;
  line-height: 1;
}

.product-buy-btn {
  position: relative;
  z-index: 0;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 1.5px solid var(--primary-red);
  background: rgba(217, 37, 52, 0.04);
  color: var(--primary-red);
}

.product-buy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-buy-btn:hover {
  border-color: var(--primary-red);
  color: #fff;
  background: rgba(217, 37, 52, 0.04);
}

.product-buy-btn:hover::before {
  transform: scaleX(1);
}

.product-add-btn.is-disabled,
.product-buy-btn.is-disabled,
.product-sticky-btn.is-disabled,
.product-add-btn:disabled,
.product-buy-btn:disabled,
.product-sticky-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.product-trust {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #f3f4f6;
  display: grid;
  gap: 10px;
}

.product-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4b5563;
}

.product-trust i {
  font-size: 18px;
  color: var(--primary-red);
}

.product-details-panel {
  margin-top: 40px;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.product-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0;
  border-bottom: 1px solid #ececec;
  background: #fafafa;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-tabs::-webkit-scrollbar {
  display: none;
}

.product-tab {
  flex: 1;
  min-width: max-content;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.product-tab i {
  font-size: 16px;
  line-height: 1;
}

.product-tab:hover {
  color: #111827;
  background: #fff;
}

.product-tab.is-active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
  background: #fff;
}

.product-tab-panels {
  padding: 22px 16px 24px;
}

.product-tab-panel {
  display: none;
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
}

.product-tab-panel.is-active {
  display: block;
}

.pd-panel-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111827;
}

.pd-desc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pd-desc-text {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #4b5563;
}

.pd-benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pd-benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  background: #fafafa;
}

.pd-benefit i {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(217, 37, 52, 0.08);
  color: var(--primary-red);
  font-size: 18px;
}

.pd-benefit strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
  color: #111827;
}

.pd-benefit span {
  font-size: 12.5px;
  line-height: 1.45;
  color: #6b7280;
}

.pd-desc-aside {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #ececec;
  background: #111827;
  color: #e5e5e5;
}

.pd-desc-aside h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.pd-desc-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pd-desc-aside li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.pd-desc-aside i {
  color: var(--primary-red);
  font-size: 16px;
  flex-shrink: 0;
}

.pd-spec-table {
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
}

.pd-spec-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13.5px;
}

.pd-spec-row:nth-child(odd) {
  background: #fafafa;
}

.pd-spec-row:last-child {
  border-bottom: none;
}

.pd-spec-row span {
  color: #6b7280;
  font-weight: 500;
}

.pd-spec-row strong {
  color: #111827;
  font-weight: 700;
}

.pd-spec-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.pd-spec-note a {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
}

.pd-spec-note a:hover {
  text-decoration: underline;
}

.pd-review-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fafafa;
}

.pd-review-score {
  text-align: center;
}

.pd-review-avg {
  display: block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #111827;
}

.pd-review-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 8px 0 6px;
  color: #f59e0b;
  font-size: 15px;
}

.pd-review-count {
  margin: 0;
  font-size: 12.5px;
  color: #6b7280;
}

.pd-review-bars {
  display: grid;
  gap: 7px;
}

.pd-bar-row {
  display: grid;
  grid-template-columns: 14px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

.pd-bar {
  height: 7px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.pd-bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: var(--primary-red);
  font-style: normal;
}

.pd-bar-row em {
  font-style: normal;
  text-align: right;
  font-weight: 600;
  color: #374151;
}

.pd-review-list {
  display: grid;
  gap: 12px;
}

.pd-review-card {
  padding: 14px 16px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
}

.pd-review-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pd-review-card-top strong {
  display: block;
  font-size: 13.5px;
  color: #111827;
}

.pd-review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
}

.pd-review-verified i {
  font-size: 13px;
}

.pd-review-card-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 13px;
}

.pd-review-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4b5563;
}

@media (min-width: 640px) {
  .product-tab-panels {
    padding: 26px 22px 28px;
  }

  .pd-benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-review-summary {
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 24px;
    padding: 20px;
  }

  .pd-review-score {
    text-align: left;
  }

  .pd-review-stars {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .pd-desc-layout {
    grid-template-columns: 1.5fr 0.9fr;
    gap: 24px;
    align-items: start;
  }

  .product-tab {
    font-size: 13.5px;
    min-height: 54px;
  }
}

.product-related {
  margin-top: 8px;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border-top: none;
}

.product-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #ececec;
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.06);
}

.product-sticky-price {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-sticky-price span:first-child {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-red);
}

.product-sticky-price span:last-child {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.product-sticky-btn:hover {
  background: var(--primary-red);
}

@media (min-width: 640px) {
  .product-page-inner {
    padding: 12px 24px 48px;
  }

  .product-breadcrumb {
    font-size: 14px;
    padding: 10px 14px;
    gap: 6px 8px;
    margin-bottom: 16px;
  }

  .product-breadcrumb span {
    max-width: 280px;
  }

  .product-gallery {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .product-gallery-main {
    order: 0;
  }

  .product-thumbs {
    order: 0;
    flex-direction: column;
    max-height: min(68vw, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 0;
  }

  .product-thumbs .product-thumb {
    width: 100%;
    flex: 0 0 auto;
  }

  .product-title {
    font-size: 28px;
  }

  .product-tab-panels {
    padding: 22px 20px 24px;
  }
}

@media (min-width: 1024px) {
  .product-page {
    padding-bottom: 0;
  }

  .product-page-inner {
    padding: 14px 32px 56px;
  }

  .product-breadcrumb {
    font-size: 14.5px;
    margin-bottom: 18px;
  }

  .product-breadcrumb span {
    max-width: none;
  }

  .product-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
  }

  .product-gallery {
    position: sticky;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    top: 100px;
  }

  .product-qty-buy {
    grid-template-columns: 140px 1fr;
  }

  .product-title {
    font-size: 32px;
  }

  .product-price-now {
    font-size: 32px;
  }

  .product-sticky-bar {
    display: none;
  }
}

/* =========================
   CHECKOUT PAGE
   ========================= */

.checkout-page {
  background: #f7f5f2;
  padding-bottom: 88px;
}

.checkout-page-inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.checkout-empty {
  text-align: center;
  padding: 48px 16px 56px;
  border: 1px solid #ece7e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px -22px rgba(15, 23, 42, 0.35);
}

.checkout-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(217, 37, 52, 0.08);
  color: var(--primary-red);
}

.checkout-empty__icon i {
  font-size: 28px;
}

.checkout-empty h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
}

.checkout-empty p {
  margin: 0 0 18px;
  font-size: 14px;
  color: #64748b;
}

.checkout-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1e293b;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.checkout-empty__cta:hover {
  background: var(--primary-red);
  color: #fff;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.checkout-card,
.checkout-summary__card {
  border: 1px solid #ece7e1;
  border-radius: 14px;
  background: #fff;
  padding: 18px 16px;
  box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.4);
}

.checkout-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.checkout-card__head-text {
  min-width: 0;
  flex: 1;
}

.checkout-card__icon {
  margin-top: 1px;
  font-size: 18px;
  line-height: 1;
  color: var(--primary-red);
  flex-shrink: 0;
}

.checkout-card__title {
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1e293b;
  line-height: 1.2;
}

.checkout-card__sub {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #64748b;
  letter-spacing: 0;
  text-transform: none;
}

.checkout-account__panel[hidden] {
  display: none !important;
}

.checkout-account__guest {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.checkout-account__guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.checkout-account__guest-badge i {
  font-size: 14px;
  line-height: 1;
}

.checkout-account__guest-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
  font-weight: 500;
}

.checkout-account__signin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed #e2e8f0;
  background: #fff;
}

.checkout-account__signin-row > span {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.checkout-account__signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 12px 0 14px;
  border: 1px solid #1e293b;
  border-radius: 999px;
  background: #1e293b;
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.checkout-account__signin-btn i {
  font-size: 16px;
  line-height: 1;
}

.checkout-account__signin-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.checkout-account__signin-btn:active {
  transform: scale(0.98);
}

.checkout-account__text {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
}

.checkout-account__signin {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.checkout-account__signin--center {
  margin-top: 14px;
  text-align: center;
}

.checkout-account__link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: #1e293b;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.checkout-account__link:hover {
  color: var(--primary-red);
}

.checkout-account__btn {
  margin-top: 14px;
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.checkout-account__btn:hover {
  background: var(--primary-red);
}

.checkout-account__btn:active {
  transform: scale(0.985);
}

.checkout-account__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.checkout-account__ghost {
  padding: 0;
  border: none;
  background: none;
  color: #64748b;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.checkout-account__ghost:hover {
  color: #1e293b;
}

.checkout-account__footer .checkout-account__link {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-account__dot {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1;
}

.checkout-fields {
  display: grid;
  gap: 14px;
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.checkout-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
}

.checkout-field label span {
  color: var(--primary-red);
}

.checkout-field input,
.checkout-field textarea,
.checkout-select select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
  appearance: none;
}

.checkout-field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-select select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 4px rgba(217, 37, 52, 0.1);
}

.checkout-field.is-invalid input,
.checkout-field.is-invalid textarea,
.checkout-field.is-invalid .checkout-select select {
  border-color: var(--primary-red);
  background: #fff7f7;
}

.checkout-select {
  position: relative;
}

.checkout-select select {
  padding-right: 40px;
  cursor: pointer;
}

.checkout-select select:disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
}

.checkout-select > i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.checkout-field .ss-field {
  width: 100%;
}

.checkout-field .ss-trigger {
  min-height: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-field .ss-trigger:hover {
  border-color: #cbd5e1;
}

.checkout-field .ss.open .ss-trigger,
.checkout-field .ss-trigger:focus-visible {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(217, 37, 52, 0.12);
}

.checkout-field .ss-trigger:disabled,
.checkout-field .ss.disabled .ss-trigger {
  color: #94a3b8 !important;
  background: #f8fafc !important;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.checkout-field.is-invalid .ss-trigger {
  border-color: var(--primary-red);
  background: #fff7f7;
}

/* Payment grid: 2 per row */
.checkout-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 580px) {
  .checkout-pay-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-pay-option {
  position: relative;
  display: block;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.checkout-pay-option:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.checkout-pay-option.is-selected {
  border-color: var(--primary-red);
  background: #fff8f8;
  box-shadow: 0 4px 14px -2px rgba(217, 37, 52, 0.12);
}

.checkout-pay-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-pay-option__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.checkout-pay-option__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.checkout-pay-option__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px;
  flex-shrink: 0;
}

.checkout-pay-option__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 17px;
  flex-shrink: 0;
}

.checkout-pay-option__badge--cod {
  background: #ecfdf5;
  color: #059669;
}

.checkout-pay-option__badge--bkash {
  background: #fdf2f8;
  color: #db2777;
}

.checkout-pay-option__badge--nagad {
  background: #fff7ed;
  color: #ea580c;
}

.checkout-pay-option__badge--rocket {
  background: #faf5ff;
  color: #8b5cf6;
}

.checkout-pay-option__badge--bank {
  background: #eff6ff;
  color: #2563eb;
}

.checkout-pay-option__title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-pay-option__radio-circle {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkout-pay-option.is-selected .checkout-pay-option__radio-circle {
  border-color: var(--primary-red);
}

.checkout-pay-option.is-selected .checkout-pay-option__radio-circle::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-red);
}

/* Polished Account Details Box */
.checkout-account-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.05);
}

.co-acc-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.co-acc-box-provider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.co-acc-box-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-red);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  flex-shrink: 0;
}

.co-acc-box-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.co-acc-box-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 7px;
  border-radius: 5px;
  background: #e2e8f0;
  color: #475569;
  margin-top: 2px;
}

/* Copy Card */
.co-acc-copy-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

@media (max-width: 580px) {
  .co-acc-copy-card {
    align-items: flex-start;
    width: 100%;
  }
}

.co-acc-copy-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.co-acc-copy-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.co-acc-copy-number {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 14.5px;
  color: #0f172a;
  letter-spacing: 0.05em;
}

.co-acc-copy-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.co-acc-copy-action:hover {
  background: var(--primary-red);
  transform: translateY(-1px);
}

.co-acc-copy-action:active {
  transform: scale(0.96);
}

/* Bank Details strip */
.co-acc-bank-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
}

.co-acc-bank-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.co-acc-bank-item .label {
  color: #64748b;
}

.co-acc-bank-item strong {
  color: #0f172a;
}

/* Instructions Banner */
.co-acc-instructions-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.co-acc-instructions-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #0369a1;
  font-weight: 500;
}

.checkout-summary {
  min-width: 0;
}

.checkout-summary__card {
  padding: 18px 16px 16px;
}

.checkout-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.checkout-summary__head h2 {
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1e293b;
}

.checkout-summary__count {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
}

.checkout-summary__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.checkout-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #fcfcfc;
}

.checkout-line__thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
  display: block;
}

.checkout-line__info {
  min-width: 0;
}

.checkout-line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.checkout-line__title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.checkout-line__price {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
  flex-shrink: 0;
}

.checkout-line__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.checkout-line__pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-line__qty {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.checkout-summary__totals {
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  display: grid;
  gap: 10px;
}

.checkout-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #64748b;
}

.checkout-summary__row strong {
  font-weight: 700;
  color: #1e293b;
}

.checkout-summary__row--total {
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e293b;
}

.checkout-summary__row--total strong {
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #1e293b;
}

/* Checkout Coupon Section */
.checkout-coupon {
  padding: 14px 0 16px;
  border-top: 1px solid #eef2f7;
  display: grid;
  gap: 10px;
}

.checkout-coupon__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 4px 5px 4px 12px;
  transition: all 0.2s ease;
}

.checkout-coupon__input-wrap:focus-within {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.checkout-coupon__icon {
  font-size: 17px;
  color: #64748b;
  margin-right: 8px;
  flex-shrink: 0;
}

.checkout-coupon__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  outline: none;
  padding: 6px 0;
}

.checkout-coupon__input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  color: #94a3b8;
}

.checkout-coupon__btn {
  padding: 7px 16px;
  border-radius: 9px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.checkout-coupon__btn:hover {
  background: #1e293b;
}

.checkout-coupon__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-coupon__error {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #e11d48;
}

/* Applied state */
.checkout-coupon__applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 10px 14px;
}

.checkout-coupon__applied-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.checkout-coupon__applied-info i {
  font-size: 18px;
  color: #059669;
}

.checkout-coupon__applied-code {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #065f46;
}

.checkout-coupon__applied-discount {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 2px 7px;
  border-radius: 6px;
}

.checkout-coupon__remove {
  background: transparent;
  border: none;
  color: #047857;
  font-size: 18px;
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.checkout-coupon__remove:hover {
  background: #d1fae5;
  color: #e11d48;
}

/* Suggestions chips */
.checkout-coupon__suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 12px;
  padding-top: 2px;
}

.checkout-coupon__suggestions-label {
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.checkout-coupon__suggestions-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.checkout-coupon__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checkout-coupon__chip:hover {
  background: #e2e8f0;
  border-color: #0f172a;
  border-style: solid;
  transform: translateY(-1px);
}

.checkout-coupon__chip-save {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
}

.checkout-summary__row--discount {
  color: #059669;
}

.checkout-summary__row--discount strong {
  color: #059669;
}

.checkout-place-btn {
  margin-top: 14px;
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.checkout-place-btn i {
  font-size: 18px;
  line-height: 1;
}

.checkout-place-btn:hover {
  background: var(--primary-red);
  box-shadow: 0 12px 24px -12px rgba(217, 37, 52, 0.55);
}

.checkout-place-btn:active {
  transform: scale(0.985);
}

.checkout-summary__secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}

.checkout-summary__secure i {
  margin-top: 1px;
  font-size: 15px;
  color: var(--primary-red);
  flex-shrink: 0;
}

.checkout-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #ece7e1;
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.06);
}

.checkout-sticky__price {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout-sticky__price span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.checkout-sticky__price strong {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.checkout-sticky__btn {
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: #1e293b;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.checkout-sticky__btn:hover {
  background: var(--primary-red);
}

@media (min-width: 640px) {
  .checkout-page-inner {
    padding: 12px 24px 48px;
  }

  .checkout-card,
  .checkout-summary__card {
    padding: 20px 22px;
  }

  .checkout-field-row {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-card__title,
  .checkout-summary__head h2 {
    font-size: 14.5px;
  }
}

@media (min-width: 1024px) {
  .checkout-page {
    padding-bottom: 48px;
  }

  .checkout-page-inner {
    padding: 14px 32px 56px;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
    gap: 22px;
  }

  .checkout-summary {
    position: sticky;
    top: 100px;
  }

  .checkout-sticky {
    display: none;
  }
}

/* =========================
   CART PAGE
   ========================= */

.cart-page {
  background: #f7f5f2;
  padding-bottom: 48px;
}

.cart-page-inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.cart-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.cart-page__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #1e293b;
  line-height: 1.2;
}

.cart-page__subtitle {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
}

.cart-page-empty {
  text-align: center;
  padding: 48px 16px 56px;
  border: 1px solid #ece7e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px -22px rgba(15, 23, 42, 0.35);
}

.cart-page-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(217, 37, 52, 0.08);
  color: var(--primary-red);
}

.cart-page-empty__icon i {
  font-size: 28px;
}

.cart-page-empty h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
}

.cart-page-empty p {
  margin: 0 0 18px;
  font-size: 14px;
  color: #64748b;
}

.cart-page-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1e293b;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.cart-page-empty__cta:hover {
  background: var(--primary-red);
  color: #fff;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.cart-page-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cart-page-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid #ece7e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.4);
}

.cart-page-line__thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f5f9;
  display: block;
}

.cart-page-line__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-page-line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-page-line__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #1e293b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-page-line__price {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e293b;
  white-space: nowrap;
  flex-shrink: 0;
}

.cart-page-line__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-page-line__pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.cart-page-line__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 2px;
}

.cart-page-line__qty {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  min-width: 104px;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
}

.cart-page-line__qty .cart-page-qty-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cart-page-line__qty .cart-page-qty-btn:hover {
  background: #fff;
  color: #0f172a;
}

.cart-page-line__qty-value {
  min-width: 22px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
}

.cart-page-line__unit {
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
}

.cart-page-remove-btn {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--primary-red);
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cart-page-remove-btn i {
  font-size: 18px;
  line-height: 1;
}

.cart-page-remove-btn:hover {
  background: rgba(217, 37, 52, 0.08);
}

.cart-page-summary__card {
  border: 1px solid #ece7e1;
  border-radius: 14px;
  background: #fff;
  padding: 18px 16px;
  box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.4);
}

.cart-page-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.cart-page-summary__head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1e293b;
}

.cart-page-summary__count {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
}

.cart-page-summary__totals {
  display: grid;
  gap: 10px;
}

.cart-page-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #64748b;
}

.cart-page-summary__row strong {
  font-weight: 700;
  color: #1e293b;
}

.cart-page-summary__row--total {
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e293b;
}

.cart-page-summary__row--total strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #1e293b;
}

.cart-page-checkout {
  margin-top: 16px;
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.cart-page-checkout:hover {
  background: var(--primary-red);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(217, 37, 52, 0.55);
}

.cart-page-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
}

.cart-page-continue:hover {
  color: var(--primary-red);
}

@media (min-width: 640px) {
  .cart-page-inner {
    padding: 12px 24px 48px;
  }

  .cart-page__title {
    font-size: 28px;
  }

  .cart-page-line {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 16px 18px;
    gap: 16px;
  }

  .cart-page-line__thumb {
    width: 104px;
    height: 104px;
  }

  .cart-page-summary__card {
    padding: 20px 22px;
  }
}

@media (min-width: 1024px) {
  .cart-page-inner {
    padding: 14px 32px 56px;
  }

  .cart-page-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
    gap: 22px;
  }

  .cart-page-summary {
    position: sticky;
    top: 100px;
  }
}

/* =========================
   MOBILE APP SHELL + TYPE
   ========================= */

:root {
  --mobile-bottom-nav-h: 60px;
  --fs-section-title: 18px;
  --fs-view-all: 12px;
  --fs-card-title: 13.5px;
  --fs-product-name: 13.5px;
  --fs-price-now: 15px;
  --fs-price-was: 12px;
  --fs-body: 13px;
  --fs-meta: 11.5px;
  --fs-badge: 9.5px;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1023px) {
  body {
    padding-bottom: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* —— App chrome —— */
  .site-topbar {
    font-size: 11px;
    letter-spacing: 0.01em;
  }

  .topbar-marquee-group {
    padding: 7px 0;
  }

  .topbar-marquee-item {
    font-size: 11px;
  }

  .site-logo--mobile {
    height: 56px;
  }

  .site-header-bar {
    min-height: 64px;
  }

  /* —— Section rhythm —— */
  .category-section,
  .arrivals-section {
    padding: 28px 0 32px;
  }

  .category-section-head,
  .arrivals-section-head {
    margin-bottom: 16px;
    gap: 10px;
  }

  .category-section-title,
  .arrivals-section-title {
    font-size: var(--fs-section-title);
    letter-spacing: -0.02em;
    gap: 7px;
    line-height: 1.2;
    flex-wrap: wrap;
    max-width: 70%;
  }

  #reviews .arrivals-section-title,
  .style-share-section .arrivals-section-title {
    font-size: 16.5px;
    max-width: 72%;
  }

  .arrivals-badge {
    min-height: 18px;
    padding: 0 7px;
    font-size: var(--fs-badge);
    letter-spacing: 0.04em;
  }

  .category-title-dot {
    width: 6px;
    height: 6px;
  }

  .category-view-all {
    font-size: var(--fs-view-all);
    gap: 5px;
    padding: 4px 0 6px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    max-width: 42%;
  }

  .category-view-all-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-view-all i {
    font-size: 14px;
    flex-shrink: 0;
  }

  /* —— Categories —— */
  .category-grid {
    gap: 10px;
  }

  .category-card {
    border-radius: 10px;
  }

  .category-card-title {
    font-size: var(--fs-card-title);
    padding: 10px 8px 12px;
    line-height: 1.25;
  }

  .category-card-arrow {
    font-size: 15px;
  }

  /* —— Product cards (app 2-col) —— */
  .arrivals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .arrivals-card {
    border-radius: 10px;
  }

  .arrivals-card-body {
    padding: 10px 10px 11px;
  }

  .arrivals-card-category {
    margin-bottom: 3px;
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }

  .arrivals-card-name {
    font-size: var(--fs-product-name);
    margin-bottom: 6px;
    line-height: 1.28;
    min-height: calc(1.28em * 2);
  }

  .arrivals-card-price {
    gap: 5px;
    margin-bottom: 9px;
  }

  .arrivals-card-price .price-now {
    font-size: var(--fs-price-now);
  }

  .arrivals-card-price .price-was {
    font-size: var(--fs-price-was);
  }

  .arrivals-discount-badge {
    top: 8px;
    left: 8px;
    min-width: 34px;
    padding: 4px 6px;
    font-size: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(217, 37, 52, 0.24);
  }

  .arrivals-wish-btn {
    top: 7px;
    right: 7px;
    width: 34px;
    height: 34px;
  }

  .arrivals-wish-btn i {
    font-size: 16px;
  }

  .arrivals-sizes {
    gap: 5px;
    margin-bottom: 9px;
    margin-left: -2px;
    margin-right: -2px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .arrivals-sizes .size-btn {
    min-width: 32px;
    height: 30px;
    padding: 0 7px;
    font-size: 11.5px;
    border-radius: 6px;
  }

  .arrivals-cart-btn {
    min-height: 38px;
    height: 38px;
    font-size: 12px;
    gap: 5px;
    border-radius: 8px;
  }

  .arrivals-cart-btn i {
    font-size: 15px;
  }

  /* —— Reviews —— */
  .review-card {
    padding: 12px;
    gap: 10px;
    border-radius: 10px;
  }

  .review-card-media {
    width: 52px;
    height: 52px;
  }

  .review-stars {
    font-size: 11.5px;
    margin-bottom: 6px;
  }

  .review-text {
    font-size: var(--fs-body);
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .review-author {
    font-size: var(--fs-meta);
  }

  .review-verified {
    font-size: 10.5px;
  }

  .review-verified i {
    font-size: 12px;
  }

  /* —— Style share —— */
  .style-share-grid {
    gap: 8px;
  }

  .style-share-item {
    border-radius: 8px;
  }

  .style-share-overlay i {
    font-size: 18px;
  }

  /* —— Promo —— */
  .promo-banner-section {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  /* —— Hero (full-bleed, natural banner ratio) —— */
  .hero-section {
    padding: 0 !important;
  }

  .hero-section__inner {
    max-width: none;
    padding: 0 !important;
    margin: 0;
  }

  .hero-slider {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    aspect-ratio: 2251 / 1000;
    height: auto !important;
  }

  .hero-slide__img {
    object-fit: contain;
    object-position: center center;
  }

  .site-logo--mobile {
    height: 56px;
  }

  .hero-dots {
    bottom: 10px;
    gap: 8px;
    padding: 6px 10px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
    /* Bigger tap target without changing visual much */
    box-shadow: 0 0 0 8px transparent;
  }

  .hero-dot.is-active {
    width: 22px;
  }

  .hero-nav-btn {
    width: 36px;
    height: 36px;
    opacity: 0.9;
    pointer-events: auto;
  }

  .hero-nav-prev {
    left: 8px;
  }

  .hero-nav-next {
    right: 8px;
  }

  /* —— Drawers / toast above bottom nav —— */
  #toast-container {
    bottom: calc(var(--mobile-bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    left: 12px;
  }

  /* Sticky bar only — body already clears the bottom nav */
  .checkout-page {
    padding-bottom: 72px;
  }

  .checkout-page-inner {
    padding-bottom: 20px;
  }

  .checkout-sticky {
    bottom: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: 10px;
  }

  .drawer-panel {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* —— Bottom tab bar —— */
  .mobile-bottom-nav {
    --app-nav-icon: 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    height: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
  }

  .mobile-bottom-nav__item {
    appearance: none;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    height: var(--mobile-bottom-nav-h);
    padding: 6px 2px 5px;
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s ease;
  }

  .mobile-bottom-nav__item i {
    font-size: var(--app-nav-icon);
    line-height: 1;
  }

  .mobile-bottom-nav__item > span:not(.mobile-bottom-nav__icon-wrap) {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav__item.is-active,
  .mobile-bottom-nav__item:active {
    color: var(--primary-red);
  }

  .mobile-bottom-nav__item.is-active i {
    transform: translateY(-0.5px);
  }

  .mobile-bottom-nav,
  .mobile-bottom-nav__item,
  .mobile-bottom-nav__icon-wrap {
    overflow: visible;
  }

  .mobile-bottom-nav__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.35em;
    line-height: 1;
  }

  .mobile-bottom-nav .cart-count-badge.mobile-bottom-nav__badge {
    position: absolute;
    top: -5px;
    right: -8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary-red);
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800;
    line-height: 1 !important;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
  }

  .mobile-bottom-nav .cart-count-badge.mobile-bottom-nav__badge.hidden {
    display: none !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  :root {
    --fs-section-title: 20px;
    --fs-view-all: 13px;
    --fs-card-title: 14.5px;
    --fs-product-name: 15px;
    --fs-price-now: 16px;
    --fs-price-was: 13px;
  }

  .arrivals-grid {
    gap: 14px;
  }

  .arrivals-card-body {
    padding: 14px 14px 16px;
  }

  .category-section,
  .arrivals-section {
    padding: 40px 0 48px;
  }
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* =========================
   WHATSAPP QUICK CHAT FAB
   ========================= */

.wa-fab {
  --wa-green: #25d366;
  --wa-green-deep: #1ebe57;
  --wa-green-dark: #128c7e;
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 44;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.wa-fab__btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #2fe574 0%, var(--wa-green) 48%, var(--wa-green-deep) 100%);
  box-shadow:
    0 10px 28px rgba(37, 211, 102, 0.42),
    0 2px 8px rgba(18, 140, 126, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.wa-fab__btn i {
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.wa-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: wa-fab-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.wa-fab__pulse--delay {
  animation-delay: 1.2s;
}

.wa-fab__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 8px 12px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.wa-fab__tip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #111827;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}

.wa-fab:hover .wa-fab__btn,
.wa-fab:focus-visible .wa-fab__btn {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.03);
  box-shadow:
    0 14px 32px rgba(37, 211, 102, 0.48),
    0 4px 12px rgba(18, 140, 126, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.wa-fab:hover .wa-fab__tip,
.wa-fab:focus-visible .wa-fab__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.wa-fab:active .wa-fab__btn {
  transform: translateY(0) scale(0.97);
}

.wa-fab:focus-visible {
  outline: none;
}

.wa-fab:focus-visible .wa-fab__btn {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow:
    0 0 0 5px rgba(37, 211, 102, 0.45),
    0 14px 32px rgba(37, 211, 102, 0.48);
}

@keyframes wa-fab-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  70% {
    transform: scale(1.55);
    opacity: 0;
  }

  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@media (max-width: 1023px) {
  .wa-fab {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(var(--mobile-bottom-nav-h) + 14px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
  }

  .wa-fab__btn {
    width: 54px;
    height: 54px;
  }

  .wa-fab__btn i {
    font-size: 28px;
  }

  /* Tooltip is hover-only; hide on touch layouts to avoid clutter */
  .wa-fab__tip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab__pulse,
  .wa-fab__pulse--delay {
    animation: none;
    opacity: 0;
  }

  .wa-fab__btn,
  .wa-fab__tip {
    transition: none;
  }
}

/* Keep FAB under open drawers */
.drawer-backdrop.open ~ .wa-fab,
body:has(.drawer-backdrop.open) .wa-fab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* ==========================================================================
   QUICK ADD / VARIATION SELECT MODAL (Clean, Professional & Compact)
   ========================================================================== */

.quick-add-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-add-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.quick-add-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.quick-add-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(6px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  max-height: calc(100vh - 32px);
}

.quick-add-modal.is-open .quick-add-dialog {
  transform: scale(1) translateY(0);
}

.quick-add-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quick-add-close:hover {
  background: #e5e7eb;
  color: #111827;
  transform: rotate(90deg);
}

.quick-add-body {
  padding: 20px 22px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.qa-product-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qa-thumb-wrap {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.qa-header-info {
  flex: 1;
  min-width: 0;
}

.qa-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 6px 0;
  padding-right: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qa-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.qa-price-now {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-red, #D92534);
  letter-spacing: -0.01em;
}

.qa-price-was {
  font-size: 13.5px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.qa-discount-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-red, #D92534);
  background: rgba(217, 37, 52, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.qa-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
}

.qa-stock-badge.is-out {
  color: #b91c1c;
}

.qa-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.qa-stock-badge.is-out .qa-stock-dot {
  background: #ef4444;
}

.qa-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 16px 0 14px;
}

.qa-option-section {
  margin-bottom: 16px;
}

.qa-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.qa-option-label {
  color: #475569;
  font-weight: 600;
}

.qa-option-selected {
  color: #0f172a;
  font-weight: 700;
}

.qa-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qa-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  background: #fff;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  transition: all 0.18s ease;
  user-select: none;
}

.qa-color-chip:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.qa-color-chip.is-active {
  border-color: var(--primary-red, #D92534);
  color: var(--primary-red, #D92534);
  background: rgba(217, 37, 52, 0.04);
  box-shadow: 0 0 0 1px var(--primary-red, #D92534);
}

.qa-color-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.qa-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qa-size-btn {
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.qa-size-btn:hover:not(:disabled) {
  border-color: #94a3b8;
  color: #0f172a;
}

.qa-size-btn.is-active {
  background: var(--primary-red, #D92534);
  color: #fff;
  border-color: var(--primary-red, #D92534);
  box-shadow: 0 4px 10px rgba(217, 37, 52, 0.25);
}

.qa-size-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-style: dashed;
  text-decoration: line-through;
  background: #f8fafc;
}

.qa-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.qa-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.qa-qty-btn {
  width: 34px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.qa-qty-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.qa-qty-val {
  min-width: 32px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.quick-add-footer {
  padding: 14px 22px 20px;
  background: #ffffff;
}

.quick-add-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  background: #171717;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-add-btn:hover:not(:disabled) {
  background: var(--primary-red, #D92534);
  box-shadow: 0 8px 18px -8px rgba(217, 37, 52, 0.55);
}

.quick-add-btn:active:not(:disabled) {
  transform: scale(0.985);
}

.quick-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #94a3b8;
}

