:root {
      --background: 30 33% 98%;
      --foreground: 18 22% 15%;
      --border: 24 18% 84%;
      --primary: 14 25% 18%;
      --primary-foreground: 36 40% 96%;
      --secondary: 28 26% 93%;
      --muted: 28 24% 90%;
      --muted-foreground: 20 10% 42%;
      --gold: 40 58% 56%;
      --gold-foreground: 14 22% 15%;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      background: hsl(var(--background));
      color: hsl(var(--foreground));
      font-family: "Manrope", system-ui, -apple-system, sans-serif;
      line-height: 1.5;
    }

    .font-heading {
      font-family: "Cormorant Garamond", Georgia, serif;
      letter-spacing: 0.02em;
    }

    .section-subheading {
      font-size: 0.72rem;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: hsl(var(--muted-foreground));
    }

    .section-heading {
      font-family: "Cormorant Garamond", Georgia, serif;
      font-size: clamp(2rem, 4.3vw, 3.4rem);
      font-weight: 500;
      line-height: 1.05;
      margin: 0;
    }

    .btn-primary {
      background: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
      border: 1px solid transparent;
      padding: 0.72rem 1.4rem;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      opacity: 0.92;
    }

    .btn-outline-gold {
      border: 1px solid hsl(var(--gold));
      color: hsl(var(--gold));
      padding: 0.72rem 1.4rem;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      transition: all 0.25s ease;
    }

    .btn-outline-gold:hover {
      background: hsl(var(--gold) / 0.12);
    }

    .badge-sale,
    .badge-new {
      font-size: 0.62rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 0.26rem 0.48rem;
      font-weight: 600;
      backdrop-filter: blur(6px);
    }

    .badge-sale {
      background: hsl(2 72% 56% / 0.92);
      color: #fff;
    }

    .badge-new {
      background: hsl(154 66% 33% / 0.92);
      color: #fff;
    }

    .image-zoom {
      transition: transform 0.7s ease;
    }

    .group:hover .image-zoom {
      transform: scale(1.06);
    }

    .product-card-hover {
      transition: transform 0.25s ease;
    }

    .product-card-hover:hover {
      transform: translateY(-2px);
    }

    .animate-fade-up {
      animation: fade-up 0.9s ease both;
    }

    @keyframes fade-up {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    #lovable-badge {
      position: fixed;
      right: 16px;
      bottom: 16px;
      z-index: 9999;
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      background: hsl(var(--primary));
      color: hsl(var(--primary-foreground));
      border: 1px solid hsl(var(--primary-foreground) / 0.2);
      padding: 8px 10px;
      gap: 8px;
      box-shadow: 0 10px 28px hsl(var(--foreground) / 0.25);
      transition: opacity 0.24s ease, transform 0.24s ease;
    }

    #lovable-badge a {
      color: inherit;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    #lovable-badge-text {
      font-size: 11px;
      letter-spacing: 0.04em;
      opacity: 0.88;
    }

    #lovable-badge-divider {
      width: 1px;
      height: 18px;
      background: hsl(var(--primary-foreground) / 0.22);
    }

    #lovable-badge-close {
      border: 0;
      background: transparent;
      color: inherit;
      display: grid;
      place-items: center;
      cursor: pointer;
      opacity: 0.8;
      padding: 0;
    }

    #lovable-badge-close:hover {
      opacity: 1;
    }

    #lovable-badge.closing {
      opacity: 0;
      transform: translateY(8px);
      pointer-events: none;
    }
  
    .vastra-header { transition: box-shadow 0.2s ease; }
    .vastra-nav-row { transition: height 0.2s ease; }
    .vastra-header.is-scrolled .vastra-nav-row { height: 58px; }
    .vastra-logo { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.65rem; letter-spacing: 0.16em; color: #111; text-decoration: none; white-space: nowrap; line-height: 1; }
    .vastra-center { flex: 1; justify-content: center; min-width: 0; }
    .vastra-search-wrap { position: relative; width: 100%; max-width: 280px; min-width: 170px; flex-shrink: 0; }
    .vastra-search { width: 100%; border: 1px solid #e8e8e5; background: #fafaf8; border-radius: 999px; height: 36px; padding: 0 12px 0 36px; font-size: 12.5px; color: #222; outline: none; }
    .vastra-search::placeholder { color: #8a8a86; }
    .vastra-search:focus { border-color: #cfcfc8; background: #fff; }
    .vastra-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #787873; pointer-events: none; }
    .vastra-nav-links { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
    .vastra-link { position: relative; border-radius: 999px; padding: 8px 10px; font-size: 12.5px; font-weight: 500; color: #555; text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease; background: transparent; border: 0; cursor: pointer; font-family: inherit; line-height: 1.1; }
    .vastra-link:hover, .vastra-link:focus-visible { color: #111; background: #f5f5f3; outline: none; }
    .vastra-link.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -5px; height: 1.5px; background: #111; border-radius: 2px; }
    .vastra-offers { color: #e05c20; background: #fff3ee; }
    .vastra-offers:hover, .vastra-offers:focus-visible { color: #c94c14; background: #ffe8de; }
    .vastra-dropdown { position: relative; }
    .vastra-link-btn { display: inline-flex; align-items: center; gap: 5px; }
    .vastra-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 185px; background: #fff; border: 1px solid #ecebe8; border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,0.08); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.18s ease; z-index: 60; }
    .vastra-dropdown:hover .vastra-menu, .vastra-dropdown:focus-within .vastra-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .vastra-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: #444; font-size: 12.5px; text-decoration: none; }
    .vastra-menu a:hover { background: #f6f6f4; color: #111; }
    .vastra-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
    .vastra-icon-btn { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #3f3f3c; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
    .vastra-icon-btn:hover { background: #f3f3f1; color: #111; }
    .vastra-cart-btn { position: relative; }
    .vastra-cart-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #e05c20; border: 1px solid #fff; }
    @media (max-width: 1200px) { .vastra-nav-links { gap: 2px; } .vastra-link { padding: 8px 8px; } }
    @media (max-width: 1024px) { .vastra-nav-links { display: none; } .vastra-search-wrap { max-width: 320px; } }
    @media (max-width: 640px) { .vastra-search-wrap { max-width: 220px; min-width: 130px; } .vastra-logo { font-size: 1.4rem; } }

.home-glass-header.is-scrolled { background: rgba(255,255,255,0.82); border-color: rgba(229,229,229,0.95); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }


.nav-dd .nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
  z-index: 100;
}

.nav-dd .nav-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #444;
  font-size: 12.5px;
  text-decoration: none;
}

.nav-dd .nav-menu a:hover {
  background: #f6f6f4;
  color: #111;
}

.nav-dd:hover .nav-menu,
.nav-dd:focus-within .nav-menu,
.nav-dd.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dd.open .nav-dd-btn svg,
.nav-dd:hover .nav-dd-btn svg {
  transform: rotate(180deg);
}

/* ── Wishlist & Cart Animations ── */

/* Wishlist heart pop */
.js-wishlist-btn {
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.js-wishlist-btn.is-wishlisted svg {
  color: #e53e3e;
  filter: drop-shadow(0 0 4px rgba(229, 62, 62, 0.4));
  transition: color 0.15s, filter 0.2s;
}
.js-wishlist-btn:not(.is-wishlisted) svg {
  transition: color 0.15s, filter 0.15s;
  filter: none;
}
.js-wishlist-btn.animate-heart {
  animation: heartPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes heartPop {
  0% { transform: scale(1); }
  20% { transform: scale(0.7); }
  45% { transform: scale(1.25); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* Ring burst on wishlist add */
.js-wishlist-btn.is-wishlisted::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #e53e3e;
  opacity: 0;
  animation: ringBurst 0.4s ease-out;
  pointer-events: none;
}
@keyframes ringBurst {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Floating particles burst on wishlist add */
.wishlist-particle {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  animation: particleBurst 0.45s ease-out forwards;
}
@keyframes particleBurst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

/* Add to cart button states */
#js-add-to-cart {
  position: relative;
  overflow: hidden;
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease, box-shadow 0.35s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#js-add-to-cart:active:not(.is-adding) {
  transform: scale(0.95);
}
#js-add-to-cart.is-adding {
  pointer-events: none;
}
#js-add-to-cart.is-success {
  background: #16a34a !important;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35);
}

/* Checkmark draw animation */
.cart-check-svg {
  overflow: visible;
}
.cart-check-svg polyline {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.4s 0.1s ease forwards;
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* Cart button shimmer */
#js-add-to-cart::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: none;
  pointer-events: none;
}
#js-add-to-cart.is-success::after {
  animation: btnShimmer 0.6s 0.2s ease forwards;
}
@keyframes btnShimmer {
  to { left: 150%; }
}

/* Cart button ripple */
.cart-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: rippleOut 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* Flying product clone */
.fly-clone {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  will-change: transform, opacity, width, height, top, left;
}
.fly-clone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cart icon shake when item arrives */
.cart-icon-shake {
  animation: iconShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes iconShake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  45% { transform: rotate(-8deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
}

/* Header badge bounce */
.badge-bounce {
  animation: badgeBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badgeBounce {
  0% { transform: scale(0.3); }
  50% { transform: scale(1.4); }
  75% { transform: scale(0.85); }
  100% { transform: scale(1); }
}

/* Toast notification */
.cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.08) inset;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
  max-width: 90vw;
}
.cart-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cart-toast .toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-toast .toast-icon svg polyline {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 0.35s 0.15s ease forwards;
}
.cart-toast .toast-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.cart-toast a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
  opacity: 0.8;
  font-weight: 600;
  transition: opacity 0.2s;
}
.cart-toast a:hover { opacity: 1; }
.cart-toast .toast-progress {
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.cart-toast .toast-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: toastCountdown 2.8s linear forwards;
}
@keyframes toastCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* Fly-to-cart animation */
.fly-to-cart {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.65s ease,
              width 0.65s ease,
              height 0.65s ease;
}

/* Cart item enter */
.cart-item-enter {
  animation: cartItemSlideIn 0.35s ease-out both;
}
@keyframes cartItemSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Quantity change flash */
.qty-flash {
  animation: qtyFlash 0.3s ease;
}
@keyframes qtyFlash {
  0% { background: transparent; }
  50% { background: hsl(var(--gold) / 0.15); }
  100% { background: transparent; }
}
