/* MintMouse — Design tokens & global overrides
   Premium boutique tone: serif headlines, mint/sage palette, generous whitespace.
*/

:root {
  --color-mint: #A8C8B5;
  --color-mint-soft: #D4E5DC;
  --color-sage: #4A7C6A;
  --color-sage-deep: #2F5A4D;
  --color-cream: #FAF7F2;
  --color-cream-warm: #F4EFE6;
  --color-charcoal: #2A2A2A;
  --color-muted: #6B7280;
  --color-border: #E5E0D8;
  --color-coral: #E07856;
  --color-coral-soft: #FCEAE2;
  --color-gold: #C9A961;

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;

  --shadow-soft: 0 1px 2px rgba(42,42,42,0.04), 0 4px 12px rgba(42,42,42,0.06);
  --shadow-medium: 0 2px 4px rgba(42,42,42,0.06), 0 12px 32px rgba(42,42,42,0.08);
  --shadow-strong: 0 4px 12px rgba(42,42,42,0.08), 0 24px 48px rgba(42,42,42,0.12);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 250ms;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Brand tokens for Tailwind class extension */
.bg-cream { background-color: var(--color-cream); }
.bg-cream-warm { background-color: var(--color-cream-warm); }
.bg-mint { background-color: var(--color-mint); }
.bg-mint-soft { background-color: var(--color-mint-soft); }
.bg-sage { background-color: var(--color-sage); }
.bg-sage-deep { background-color: var(--color-sage-deep); }
.bg-coral { background-color: var(--color-coral); }
.bg-coral-soft { background-color: var(--color-coral-soft); }

.text-cream { color: var(--color-cream); }
.text-sage { color: var(--color-sage); }
.text-sage-deep { color: var(--color-sage-deep); }
.text-charcoal { color: var(--color-charcoal); }
.text-muted { color: var(--color-muted); }
.text-coral { color: var(--color-coral); }
.text-gold { color: var(--color-gold); }

.border-border { border-color: var(--color-border); }
.border-sage { border-color: var(--color-sage); }
.border-mint { border-color: var(--color-mint); }

.ring-sage:focus-visible { outline: 2px solid var(--color-sage); outline-offset: 2px; }

/* Buttons — premium boutique style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
  min-height: 44px;
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-sage-deep);
  color: var(--color-cream);
}
.btn-primary:hover { background: var(--color-charcoal); }

.btn-secondary {
  background: transparent;
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}
.btn-secondary:hover { background: var(--color-charcoal); color: var(--color-cream); }

.btn-ghost {
  background: transparent;
  color: var(--color-charcoal);
}
.btn-ghost:hover { background: var(--color-cream-warm); }

.btn-shop-pay {
  background: #5A31F4;
  color: white;
  font-weight: 600;
}
.btn-shop-pay:hover { background: #4A28D6; }

.btn-apple-pay {
  background: #000;
  color: white;
  font-weight: 500;
}
.btn-apple-pay:hover { background: #1a1a1a; }

.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover { background: #1DA851; }

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all var(--duration) var(--ease-out);
}
.card-hover:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

/* Product card */
.product-card { cursor: pointer; }
.product-card .product-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-cream-warm);
  aspect-ratio: 4/5;
}
.product-card .product-image,
.product-card .product-image-hover {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out);
}
.product-card .product-image-hover { opacity: 0; }
.product-card:hover .product-image { opacity: 0; }
.product-card:hover .product-image-hover { opacity: 1; transform: scale(1.03); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
}
.badge-sale { background: var(--color-coral); color: white; }
.badge-new { background: var(--color-sage-deep); color: white; }
.badge-stock { background: var(--color-cream); color: var(--color-coral); border: 1px solid var(--color-coral); text-transform: none; letter-spacing: 0; font-size: 0.75rem; font-weight: 500; }
.badge-eco { background: var(--color-mint-soft); color: var(--color-sage-deep); }
.badge-oos { background: white; color: var(--color-muted); border: 1px solid var(--color-border); text-transform: none; letter-spacing: 0; font-size: 0.75rem; font-weight: 500; }

/* Star rating */
.star-row { display: inline-flex; gap: 1px; }
.star { width: 14px; height: 14px; color: var(--color-gold); }

/* Hero */
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage);
}

/* Newsletter modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42,42,42,0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow-strong);
  transform: translateY(20px);
  transition: transform 350ms var(--ease-out);
}
.modal-backdrop.open .modal-card { transform: translateY(0); }

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 480px;
  background: white;
  z-index: 110;
  transform: translateX(100%);
  transition: transform 350ms var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-strong);
}
.cart-drawer.open { transform: translateX(0); }
.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(42,42,42,0.4);
  backdrop-filter: blur(2px);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100%;
  max-width: 360px;
  background: white;
  z-index: 110;
  transform: translateX(-100%);
  transition: transform 350ms var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }

/* Free shipping progress */
.shipping-bar {
  height: 6px;
  background: var(--color-cream-warm);
  border-radius: 999px;
  overflow: hidden;
}
.shipping-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-mint), var(--color-sage));
  border-radius: 999px;
  transition: width 400ms var(--ease-out);
}

/* Size selector */
.size-btn {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.625rem 0.25rem;
  min-height: 68px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
}
.size-btn > span {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
.size-btn:hover:not(.size-oos) { border-color: var(--color-charcoal); }
.size-btn.selected { border-color: var(--color-charcoal); background: var(--color-charcoal); color: white; }
.size-btn.selected .size-cm { color: rgba(255,255,255,0.7); }
.size-btn.size-oos {
  color: var(--color-muted);
  cursor: not-allowed;
  background: var(--color-cream-warm);
}
.size-btn.size-oos::before {
  content: '';
  position: absolute;
  inset: 50% 8px auto 8px;
  border-top: 1px solid var(--color-muted);
  transform: rotate(-12deg);
  transform-origin: center;
}
.size-cm {
  font-size: 0.625rem;
  color: var(--color-muted);
  margin-top: 1px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.size-low-stock-pill {
  position: absolute;
  top: -7px;
  right: -4px;
  background: var(--color-coral);
  color: white;
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  z-index: 2;
}

/* Image gallery */
.gallery-main {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-cream-warm);
  position: relative;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumb {
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 200ms;
  background: var(--color-cream-warm);
  position: relative;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--color-charcoal); }
.gallery-thumb.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tabs */
.tab-btn {
  padding: 1rem 0;
  margin-right: 2rem;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-muted);
  transition: all 200ms;
}
.tab-btn.active { color: var(--color-charcoal); border-bottom-color: var(--color-charcoal); }
.tab-btn:hover { color: var(--color-charcoal); }
.tab-content { display: none !important; }
.tab-content.active { display: block !important; animation: fadeIn 250ms var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Filter sidebar */
.filter-section { border-bottom: 1px solid var(--color-border); padding: 1.25rem 0; }
.filter-section:first-child { padding-top: 0; }
.filter-section:last-child { border-bottom: none; }
.filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  margin-bottom: 0.75rem;
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--color-charcoal);
  cursor: pointer;
}
.filter-checkbox:hover { color: var(--color-sage-deep); }
.filter-checkbox input { width: 16px; height: 16px; accent-color: var(--color-sage-deep); }
.filter-count { color: var(--color-muted); font-size: 0.8125rem; margin-left: auto; }

/* Color swatches */
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: inline-block;
}

/* Locale picker */
.locale-picker { position: relative; }
.locale-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-medium);
  display: none !important;
  min-width: 160px;
  z-index: 50;
}
.locale-menu.open { display: block !important; }
.locale-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  background: transparent;
}
.locale-menu button:hover { background: var(--color-cream); }
.locale-menu button.active { background: var(--color-cream-warm); font-weight: 500; }

/* Marquee for trust strip */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

/* Reviews */
.review-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin: 4px 0;
}
.review-bar-track {
  flex: 1;
  height: 6px;
  background: var(--color-cream-warm);
  border-radius: 999px;
  overflow: hidden;
}
.review-bar-fill {
  height: 100%;
  background: var(--color-gold);
  border-radius: 999px;
}

/* Filter chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  background: var(--color-cream-warm);
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 200ms;
}
.chip:hover, .chip.active { background: var(--color-charcoal); color: white; border-color: var(--color-charcoal); }

/* Sticky mobile add-to-cart */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  z-index: 40;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
  display: none;
}
@media (max-width: 768px) {
  .sticky-mobile-cta { display: flex; gap: 0.5rem; align-items: center; }
}

/* Subtle animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--color-sage-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Forms */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.9375rem;
  transition: border-color 200ms;
  min-height: 44px;
}
.input:focus { outline: none; border-color: var(--color-sage-deep); box-shadow: 0 0 0 3px rgba(74,124,106,0.12); }

/* Misc helpers */
.divider { height: 1px; background: var(--color-border); border: none; }
.gold-stars-bg { background: linear-gradient(180deg, transparent, rgba(201,169,97,0.05)); }

/* Grain overlay for cream sections (subtle premium texture) */
.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

/* Lucide icons sizing */
[data-lucide] { width: 1.25rem; height: 1.25rem; stroke-width: 1.6; flex-shrink: 0; }
.icon-sm [data-lucide] { width: 1rem; height: 1rem; }
.icon-lg [data-lucide] { width: 1.5rem; height: 1.5rem; }
.icon-xl [data-lucide] { width: 2rem; height: 2rem; stroke-width: 1.4; }

/* Skip-to-content link — visible only on keyboard focus (a11y baseline) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--color-sage-deep);
  color: var(--color-cream);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* Mobile filter sheet (collection page) — slides up from bottom, reuses drawer pattern */
.filter-sheet-button {
  position: sticky;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  margin: 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  border: none;
  width: fit-content;
}
.filter-sheet-button:hover { background: var(--color-sage-deep); }
.filter-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-height: 88vh;
  background: white;
  z-index: 110;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: translateY(100%);
  transition: transform 350ms var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.filter-sheet.open { transform: translateY(0); }
.filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.filter-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.filter-sheet-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-cream);
  flex-shrink: 0;
}

/* Cart drawer trust strip — reassurance at moment of decision */
.cart-trust-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-cream-warm);
  font-size: 0.6875rem;
  color: var(--color-muted);
  text-align: center;
  gap: 0.5rem;
}
.cart-trust-strip > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.cart-trust-strip [data-lucide] {
  width: 0.875rem; height: 0.875rem;
  color: var(--color-sage-deep);
}
.cart-trust-strip a { color: var(--color-sage-deep); text-decoration: none; }
.cart-trust-strip a:hover { text-decoration: underline; }

/* OOS Notify-me modal (lightweight, reuses modal-backdrop) */
.notify-modal { z-index: 120; }
.notify-modal .modal-card { max-width: 420px; padding: 2rem; }

/* Mobile-visible hero badges (override the hidden md:* utilities for mobile) */
@media (max-width: 767px) {
  .hero-badge-mobile-show { display: flex !important; }
  .hero-product-card-mobile {
    position: relative !important;
    margin-top: 1rem;
    bottom: auto !important;
    left: auto !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-product-card-mobile > div { flex: 1; }
}
