:root {
  /* From `web/src/styles/globals.css` for template 010 */
  --main-color-light: var(--main-color-light-010);
  --main-color-normal: var(--main-color-normal-010);
  --main-color-deep: var(--main-color-deep-010);

  --main-color-light-010: 22, 93%, 90%;
  --main-color-normal-010: 22, 93%, 55%;
  --main-color-deep-010: 22, 93%, 50%;
}

/* Tailwind-like helper colors (used by classnames in template10) */
.bg-mainColorLight {
  background-color: hsl(var(--main-color-light));
}
.bg-mainColorNormal {
  background-color: hsl(var(--main-color-normal));
}
.bg-mainColorDeep {
  background-color: hsl(var(--main-color-deep));
}
.text-mainColorNormal {
  color: hsl(var(--main-color-normal));
}
.hover\:text-mainColorNormal:hover {
  color: hsl(var(--main-color-normal));
}
.hover\:bg-mainColorDeep:hover {
  background-color: hsl(var(--main-color-deep));
}
.hover\:bg-mainColorNormal:hover {
  background-color: hsl(var(--main-color-normal));
}

/* Alpha variants referenced by template10 */
.bg-mainColorNormalAlpha-50 {
  background-color: hsla(var(--main-color-normal), 0.5);
}
.bg-mainColorNormalAlpha-20 {
  background-color: hsla(var(--main-color-normal), 0.2);
}
.bg-mainColorNormalAlpha-80 {
  background-color: hsla(var(--main-color-normal), 0.8);
}

/* Border utilities used by templates */
.border-mainColorLight {
  border-color: hsl(var(--main-color-light));
}
.border-mainColorNormal {
  border-color: hsl(var(--main-color-normal));
}

/* Gradient helpers for classes used in templates */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}
.from-mainColorNormal {
  --tw-gradient-from: hsl(var(--main-color-normal));
}
.to-mainColorNormalAlpha-50 {
  --tw-gradient-to: hsla(var(--main-color-normal), 0.5);
}

/* Match `Carousel` button styling from the React component */
.hero-nav-btn {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  backdrop-filter: blur(6px);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  background-color: hsla(var(--main-color-normal), 0.5);
}
.hero-nav-btn:hover {
  background-color: hsl(var(--main-color-normal));
}

@media (min-width: 768px) {
  .hero-nav-btn {
    display: flex;
  }
}

/* Minimal Swiper pagination styling (keep close to default) */
.swiper-pagination-bullet {
  opacity: 0.75;
}
.swiper-pagination-bullet-active {
  background: hsl(var(--main-color-normal));
  opacity: 1;
}

/* ---------- Top nav (centered + hover dropdown) ---------- */
.topnav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 5rem; /* 80px */
}
.topnav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.25rem;
}
.topnav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #0a0a0a;
  font-weight: 500;
  transition: color 200ms ease, opacity 200ms ease;
  padding: 0.25rem 0;
}
.topnav-link:hover {
  color: #0a0a0a;
  opacity: 0.92;
}
.topnav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 2px;
  background: hsl(var(--main-color-normal));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
  opacity: 0.9;
}
.topnav-link:hover::after {
  transform: scaleX(1);
}

.topnav-item {
  position: relative;
}
.topnav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb; /* gray-200 */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition: opacity 160ms ease, visibility 160ms ease, translate 160ms ease;
  z-index: 60;
}
.topnav-item:hover .topnav-dropdown,
.topnav-item:focus-within .topnav-dropdown {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.topnav-dd-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #0a0a0a;
  font-size: 0.875rem;
  transition: background-color 160ms ease, color 160ms ease;
}
.topnav-dd-link:hover {
  background: hsla(var(--main-color-normal), 0.12);
  color: hsl(var(--main-color-deep));
}

/* Top nav right: search / account / cart (line icons) */
.topnav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 640px) {
  .topnav-actions {
    gap: 0.35rem;
  }
}
.topnav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #111827;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
a.topnav-icon-btn {
  text-decoration: none;
}
.topnav-icon-btn:hover {
  color: hsl(var(--main-color-deep));
  background: hsla(var(--main-color-normal), 0.1);
}
.topnav-icon-btn svg {
  width: 22px;
  height: 22px;
}
.topnav-cart-wrap {
  position: relative;
}
.topnav-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.topnav-cart-badge.topnav-cart-badge--hidden {
  display: none;
}

@media (max-width: 768px) {
  .topnav {
    grid-template-columns: auto 1fr;
  }
  .topnav-menu {
    display: none; /* use mobile drawer instead */
  }
  .topnav-dropdown {
    left: auto;
    right: 0;
    transform: none;
  }
}

/* ---------- Mobile drawer nav (matches provided screenshots) ---------- */
.topnav-mobile-btn {
  display: none;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.topnav-mobile-btn:hover {
  border-color: hsla(var(--main-color-normal), 0.5);
  color: hsl(var(--main-color-deep));
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(92vw, 360px);
  background: #fff;
  z-index: 81;
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}
.mobile-drawer-open .mobile-drawer-overlay {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
}
.mobile-drawer-close {
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #111827;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.mobile-drawer-close:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.mobile-drawer-nav {
  padding: 10px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-radius: 12px;
  color: #111827;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}
.mobile-drawer-link:hover {
  background: hsla(var(--main-color-normal), 0.12);
  color: hsl(var(--main-color-deep));
}

.mobile-accordion-panel {
  padding: 4px 10px 10px;
  display: none;
}
.mobile-accordion-open .mobile-accordion-panel {
  display: block;
}
.mobile-accordion-item {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: #374151;
  font-weight: 500;
}
.mobile-accordion-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid #eee;
}
.mobile-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 12px;
}
.mobile-social-link {
  color: #111827;
  opacity: 0.9;
  transition: color 160ms ease, opacity 160ms ease;
}
.mobile-social-link:hover {
  color: hsl(var(--main-color-deep));
  opacity: 1;
}

@media (max-width: 768px) {
  .topnav-mobile-btn {
    display: inline-flex;
    justify-self: end;
  }
}

/* ---------- PDP buy box (qty + buttons) ---------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  height: 40px;
  background: #fff;
}
.qty-btn {
  width: 42px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: #fff;
  transition: background-color 160ms ease;
}
.qty-btn:hover {
  background: #f3f4f6;
}
.qty-input {
  width: 54px;
  height: 40px;
  text-align: center;
  font-weight: 600;
  color: #111827;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}
.btn-black {
  background: #000;
  color: #fff;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 160ms ease, transform 160ms ease;
}
.btn-black:hover {
  opacity: 0.92;
}
.btn-gray {
  background: #9b6f6f; /* muted brown/pink like screenshot */
  color: #fff;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 160ms ease, transform 160ms ease;
}
.btn-gray:hover {
  opacity: 0.92;
}
.btn-bag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0 0.875rem;
  border-radius: 6px;
  border: 1px solid hsl(var(--main-color-normal));
  background: hsla(var(--main-color-normal), 0.06);
  color: hsl(var(--main-color-normal));
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.btn-bag:hover {
  background: hsla(var(--main-color-normal), 0.12);
}
.btn-bag:focus-visible {
  outline: 2px solid hsl(var(--main-color-normal));
  outline-offset: 2px;
}
.btn-bag svg {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
}
.btn-buy-now {
  background: hsl(var(--main-color-normal));
  color: #fff;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}
.btn-buy-now:hover {
  background: hsl(var(--main-color-deep));
  opacity: 0.95;
}

/* Checkout — validated fields (Shopify-like errors) */
.checkout-field {
  margin-bottom: 0;
}
.checkout-control {
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout-control:focus:not(.checkout-control--error) {
  box-shadow: 0 0 0 2px hsla(var(--main-color-normal), 0.35);
  border-color: hsl(var(--main-color-normal));
}
.checkout-control--error,
.checkout-control.checkout-control--error {
  border-width: 2px !important;
  border-color: #c62828 !important;
  box-shadow: none !important;
}
.checkout-control--error:focus,
.checkout-control.checkout-control--error:focus {
  box-shadow: none !important;
  border-color: #c62828 !important;
}
.checkout-field-error {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: #c62828;
}
.checkout-field-error[hidden] {
  display: none !important;
}
.checkout-address-wrap {
  position: relative;
}
.checkout-address-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  pointer-events: none;
}
.checkout-address-icon svg {
  width: 20px;
  height: 20px;
}

/* Checkout — searchable select (country/state) */
.checkout-native-select.is-enhanced {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.checkout-select {
  position: relative;
}
.checkout-select-trigger {
  width: 100%;
  height: 44px;
  padding: 0 0.75rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout-select-trigger:hover {
  border-color: #9ca3af;
}
.checkout-select.is-open .checkout-select-trigger,
.checkout-select-trigger:focus-visible {
  outline: none;
  border-color: hsl(var(--main-color-normal));
  box-shadow: 0 0 0 2px hsla(var(--main-color-normal), 0.35);
}
.checkout-select-value {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}
.checkout-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checkout-select-caret {
  width: 18px;
  height: 18px;
  color: #9ca3af;
  flex-shrink: 0;
}
.checkout-flag {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.checkout-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  display: none;
}
.checkout-select.is-open .checkout-select-panel {
  display: block;
}
.checkout-select-search {
  padding: 10px 10px 8px;
  border-bottom: 1px solid #e5e7eb;
}
.checkout-select-search-inner {
  position: relative;
}
.checkout-select-search-inner svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
}
.checkout-select-search input {
  width: 100%;
  height: 38px;
  padding: 0 10px 0 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
}
.checkout-select-search input:focus {
  border-color: hsl(var(--main-color-normal));
  box-shadow: 0 0 0 2px hsla(var(--main-color-normal), 0.2);
}
.checkout-select-list {
  max-height: 320px;
  overflow: auto;
  padding: 6px;
}
.checkout-select-item {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 10px;
  border-radius: 8px;
  color: #111827;
  font-size: 14px;
  cursor: pointer;
}
.checkout-select-item:hover {
  background: #f3f4f6;
}
.checkout-select-item[aria-selected="true"] {
  background: hsla(var(--main-color-normal), 0.12);
}

/* Stripe Elements (checkout card fields) */
.stripe-element-wrap {
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stripe-element-wrap:focus-within:not(.stripe-element-wrap--error) {
  border-color: hsl(var(--main-color-normal));
  box-shadow: 0 0 0 2px hsla(var(--main-color-normal), 0.35);
}
.stripe-element-wrap--error {
  border-width: 2px;
  border-color: #c62828;
  box-shadow: none;
}
.stripe-element-error {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: #c62828;
}

/* Checkout — payment method switcher (card / Shop Pay / PayPal) */
.payment-methods {
  background: #fff;
}
.payment-method-header {
  position: relative;
  transition: background-color 0.15s ease;
}
.payment-method-header.payment-method-header--selected {
  background: #f9fafb;
  box-shadow: inset 0 0 0 2px #111827;
  z-index: 1;
}
.payment-brand-shop {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #5a31f4;
  font-family: system-ui, sans-serif;
}
.payment-brand-paypal {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #003087;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.payment-card-lock {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #9ca3af;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-card-lock svg {
  width: 18px;
  height: 18px;
}
.stripe-element-wrap--cardnum {
  padding-right: 40px;
}
.payment-cvc-hint {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  font-size: 12px;
}
.stripe-element-wrap--cvc {
  padding-right: 40px;
}

/* PayPal checkout panel (SDK buttons + billing radios) */
.paypal-billing-row.paypal-billing-row--selected {
  box-shadow: inset 0 0 0 2px #0070ba;
  background: #f0f7ff;
}
.paypal-buttons-mount {
  max-width: 100%;
}
.paypal-buttons-mount iframe {
  z-index: 1;
}

/* Product list — category filter (desktop pills + mobile dropdown) */
.product-cat-bar {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .product-cat-bar {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
  }
}

.product-cat-mobile {
  position: relative;
  z-index: 40;
}
@media (min-width: 768px) {
  .product-cat-mobile {
    display: none !important;
  }
}

.product-cat-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-cat-dropdown-trigger:hover {
  border-color: #d1d5db;
}
.product-cat-mobile.is-open .product-cat-dropdown-trigger {
  border-color: hsl(var(--main-color-normal));
  box-shadow: 0 0 0 1px hsla(var(--main-color-normal), 0.35);
}
.product-cat-trigger-prefix {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}
.product-cat-trigger-value {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}
.product-cat-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: transform 0.2s ease;
}
.product-cat-mobile.is-open .product-cat-chevron {
  transform: rotate(180deg);
}

.product-cat-dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  max-height: min(70vh, 360px);
  overflow-y: auto;
}
.product-cat-dropdown-panel.is-open {
  display: block;
}

.product-cat-dropdown-item {
  display: block;
  padding: 12px 16px;
  margin: 2px 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.product-cat-dropdown-item:hover {
  background: #f1f5f9;
}
.product-cat-dropdown-item.is-active {
  background: hsl(var(--main-color-normal));
  color: #fff;
}

.product-cat-pills-desktop {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
@media (min-width: 768px) {
  .product-cat-pills-desktop {
    display: flex;
  }
}

.product-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.product-cat-pill:hover:not(.is-active) {
  border-color: #cbd5e1;
  color: #0f172a;
}
.product-cat-pill.is-active {
  background: hsl(var(--main-color-normal));
  color: #fff;
  border-color: hsl(var(--main-color-normal));
}

/* Product detail — variant pills (color / specs), H5-friendly tap targets */
.pd-variant-section {
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}
.pd-variant-label {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 10px;
  line-height: 1.4;
}
.pd-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pd-variant-pill {
  appearance: none;
  margin: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 22px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111827;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pd-variant-pill:hover:not(.is-selected) {
  border-color: #d1d5db;
}
.pd-variant-pill:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}
.pd-variant-pill.is-selected {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* Product detail — size buttons (rectangular, black selected) */
.pd-variant-options--size {
  gap: 12px;
}
.pd-variant-size-btn {
  appearance: none;
  margin: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 44px;
  min-width: 88px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #0a0a0a;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pd-variant-size-btn:hover:not(.is-selected) {
  border-color: #9ca3af;
}
.pd-variant-size-btn:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}
.pd-variant-size-btn.is-selected {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Product detail — color image swatches */
.pd-variant-options--swatch {
  gap: 12px;
  align-items: flex-start;
}
.pd-variant-swatch {
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  background: transparent;
  border-radius: 8px;
  line-height: 0;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.15s ease;
}
.pd-variant-swatch:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}
.pd-variant-swatch img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}
@media (min-width: 640px) {
  .pd-variant-swatch img {
    width: 80px;
    height: 80px;
  }
}
.pd-variant-swatch.is-selected {
  box-shadow: inset 0 0 0 2px #000;
}
.pd-variant-swatch:not(.is-selected):hover {
  box-shadow: inset 0 0 0 2px #d1d5db;
}

/* ---------- H5 cart drawer (like screenshot) ---------- */
.cart-fab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 70;
  height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}
.cart-fab-badge {
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(92vw, 420px);
  background: #fff;
  z-index: 91;
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}
.cart-open .cart-overlay {
  opacity: 1;
  visibility: visible;
}
.cart-open .cart-drawer {
  transform: translateX(0);
}
.cart-header {
  background: #000;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}
.cart-close {
  height: 36px;
  width: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  transition: background-color 160ms ease;
}
.cart-close:hover { background: rgba(255,255,255,0.14); }
.cart-body {
  padding: 14px 16px;
  overflow: auto;
  flex: 1;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}
.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.cart-title {
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}
.cart-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.cart-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.cart-trash {
  height: 30px;
  width: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  color: #111827;
}
.cart-trash:hover { background: #f3f4f6; }
.cart-price {
  font-weight: 800;
  color: #111827;
  margin-top: 10px;
  text-align: right;
}
.cart-footer {
  border-top: 2px solid #000;
  padding: 12px 16px 16px;
}
.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}
.cart-checkout {
  height: 48px;
  width: 100%;
  background: #000;
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
}
.cart-checkout:hover { opacity: 0.92; }

/* Footer accordion (index mobile) */
.footer-accordion {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}
.footer-acc-item {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}
.footer-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111827;
  background: transparent;
  border: none;
  cursor: pointer;
}
.footer-acc-icon {
  font-size: 18px;
  line-height: 1;
  color: #111827;
}
.footer-acc-panel {
  padding: 0 0 14px 0;
}
.footer-acc-link {
  display: block;
  padding: 10px 0;
  color: #111827;
  font-size: 14px;
}
.footer-acc-link:hover {
  color: hsl(var(--main-color-normal));
}
.footer-acc-text {
  padding: 10px 0;
  font-size: 14px;
  color: #111827;
}
@media (min-width: 768px) {
  .footer-accordion {
    border-top: 0;
  }
  .footer-acc-item {
    border-bottom: 0;
  }
  .footer-acc-trigger,
  .footer-acc-panel {
    display: none;
  }
}
.cart-view {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: #111827;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cart-fab { display: inline-flex; }
  .cart-drawer { width: 92vw; }
}

/* Global search overlay (nav toolbar) — above header & cart drawer */
body.search-overlay-active {
  overflow: hidden;
}

/* Fullscreen loading overlay (cart checkout) */
.checkout-loading body {
  overflow: hidden;
}
.checkout-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
}
.checkout-loading::after {
  content: "Loadding";
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-overlay.search-overlay--open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Panel at ~1/3 viewport height (not stuck to top) */
.search-overlay-panel {
  position: absolute;
  z-index: 1;
  top: 33.333vh;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
  .search-overlay-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(42rem, calc(100% - 32px));
    max-width: 42rem;
  }
}

.search-overlay-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  min-height: 56px;
}

.search-overlay-icon {
  flex-shrink: 0;
  display: flex;
  color: #9ca3af;
}

.search-overlay-icon svg {
  width: 22px;
  height: 22px;
}

.search-overlay-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.4;
  color: #111827;
}

.search-overlay-input::placeholder {
  color: #9ca3af;
}

.search-overlay-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -6px -8px -6px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.search-overlay-close:hover {
  color: #374151;
  background: #f3f4f6;
}

.search-overlay-close svg {
  width: 22px;
  height: 22px;
}

.search-overlay-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0 18px 12px;
}

@media (min-width: 640px) {
  .search-overlay-divider {
    margin: 0 18px 16px;
  }
}
