/* =========================================
   VELMORAS — Phase 2.5 Glossy + Glassy
   Premium USA-standard glass, gloss, aurora, sheen
   ========================================= */

/* ---------- 0. Solid bright cream page — no aurora, no grain, no overlays ---------- */
html, body {
  background-color: var(--cream) !important;
  background-image: none !important;
}
body { position: relative; }
/* Aurora + grain removed — were adding subtle dullness */
body::before, body::after { display: none !important; }
@keyframes auroraDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(-2%, 1%, 0) scale(1.06); }
  66%      { transform: translate3d(2%, -1%, 0) scale(1.03); }
}

/* ---------- 1. Sticky glass header ---------- */
.site-header {
  background: linear-gradient(180deg, rgba(246, 239, 230, 0.72) 0%, rgba(246, 239, 230, 0.55) 100%) !important;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(183, 110, 121, 0.14);
  transition: background 0.4s var(--anim-ease), backdrop-filter 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-header::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(246, 239, 230, 0.9) 0%, rgba(246, 239, 230, 0.78) 100%) !important;
  box-shadow: 0 10px 30px -18px rgba(58, 30, 38, 0.18);
  backdrop-filter: blur(28px) saturate(200%);
}

/* ---------- 2. Universal glass card (opt-in via .glass or auto on core cards) ---------- */
.categories-card,
.arrivals-card,
.filter-card,
.co-panel,
.cart-items,
.cart-summary,
.auth-card,
.account-side,
.account-panel,
.order-card,
.pd-main-img,
.pd-thumb,
.product-card,
.shop-card,
.newsletter,
.trust-bar,
.review-card,
.cat-tile,
.offer-banner-v2 {
  position: relative;
  isolation: isolate;
}

/* Top edge highlight — universal glass sheen */
.categories-card::before,
.arrivals-card::before,
.filter-card::before,
.co-panel::before,
.cart-items::before,
.cart-summary::before,
.auth-card::before,
.account-side::before,
.account-panel::before,
.order-card::before,
.product-card::before,
.shop-card::before,
.newsletter::before,
.trust-bar::before,
.review-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* ---------- 3. Cursor-tracked shine on cards ---------- */
.product-card,
.shop-card,
.cat,
.review-card,
.categories-card,
.arrivals-card,
.filter-card,
.auth-card {
  --mx: 50%;
  --my: 50%;
}
.product-card::after,
.shop-card::after,
.cat::after,
.review-card::after,
.categories-card::after,
.arrivals-card::after,
.filter-card::after,
.auth-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mx) var(--my),
              rgba(255, 255, 255, 0.28) 0%,
              rgba(255, 255, 255, 0.08) 30%,
              transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--anim-ease-out);
  border-radius: inherit;
  z-index: 2;
  /* mix-blend-mode removed — was darkening */
}
.product-card:hover::after,
.shop-card:hover::after,
.cat:hover::after,
.review-card:hover::after {
  opacity: 1;
}

/* ---------- 4. Glossy primary CTAs ---------- */
.btn-primary, .btn-dark {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.12) 100%),
    linear-gradient(135deg, var(--green), var(--green-2, #2d6a54)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 12px 30px -12px rgba(31, 74, 58, 0.55),
    0 4px 10px -4px rgba(31, 74, 58, 0.35) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Continuous glossy sheen — subtle */
.btn-primary::before, .btn-dark::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.7s var(--anim-ease-out);
  z-index: 1;
}
.btn-primary:hover::before, .btn-dark:hover::before {
  left: 130%;
}
.btn-primary:hover, .btn-dark:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 20px 40px -14px rgba(31, 74, 58, 0.65),
    0 0 0 4px rgba(31, 74, 58, 0.08) !important;
  transform: translateY(-2px);
}

/* ---------- 5. Glass secondary buttons (ghost/outline/light) ---------- */
.btn-ghost, .btn-light, .btn-outline {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.75) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 26px -14px rgba(58, 30, 38, 0.25) !important;
}

/* ---------- 6. Hero title — clean solid ink, no overlay ---------- */
.hero-title em {
  color: var(--ink);
}
/* Sheen overlay removed — was creating a darker rectangle behind the title */

/* ---------- 7. Category circle — glass with rim light ---------- */
.cat-img {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.6), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(183,110,121,0.10), transparent 55%),
    var(--cream-2) !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.7),
    inset 0 -8px 24px rgba(183,110,121,0.08),
    0 14px 28px -14px rgba(58, 30, 38, 0.2);
  border: 1px solid rgba(255,255,255,0.6) !important;
}

/* ---------- 8. Product card image bg — DISABLED (replaced by Nike-style neutral bg in style.css) ---------- */

/* ---------- 9. Newsletter — glossy blush ---------- */
.newsletter {
  background:
    radial-gradient(600px 220px at 50% -20%, rgba(255,255,255,0.85), transparent 60%),
    linear-gradient(160deg, var(--blush-2), var(--blush)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 20px 50px -22px rgba(183, 110, 121, 0.35);
}

/* ---------- 10. Cart badge — glass pill with glow ---------- */
.cart-badge {
  background: linear-gradient(180deg, #ea8f95, #d47a80) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 4px 10px -2px rgba(212, 122, 128, 0.5),
    0 0 0 2px var(--cream);
}

/* ---------- 11. Cat placeholder (Beauty / Jewelry / More) — glass ---------- */
.cat-placeholder .cat-img {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,0.6), rgba(232, 201, 130, 0.08)) !important;
}

/* ---------- 12. Offer banner — sheen sweep on hover ---------- */
.offer-banner-v2 {
  overflow: hidden;
}
.offer-banner-v2::after {
  content: '';
  position: absolute;
  top: -50%; left: -100%;
  width: 50%; height: 200%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
  transform: skewX(-15deg);
  transition: left 1s var(--anim-ease-out);
  pointer-events: none;
  z-index: 3;
}
.offer-banner-v2:hover::after {
  left: 150%;
}

/* ---------- 13. Star rating shimmer ---------- */
.stars {
  background: linear-gradient(120deg, #e8c982 0%, #d28b4a 40%, #f5d98a 50%, #d28b4a 60%, #e8c982 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 4s ease-in-out infinite;
}

/* ---------- 14. Discount circle — glass sphere ---------- */
.offer-discount {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(163, 91, 106, 0.7), transparent 55%),
    var(--blush) !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.5),
    inset 0 -6px 14px rgba(163, 91, 106, 0.35),
    0 20px 40px -14px rgba(163, 91, 106, 0.6) !important;
  border: 1px solid rgba(255,255,255,0.35);
}

/* ---------- 15. Icon-tint badges — glass tint ---------- */
.ic-yellow, .ic-green, .ic-pink, .trust-ic {
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.7), transparent 55%);
  background-size: cover;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 6px 14px -4px rgba(58, 30, 38, 0.15);
}

/* ---------- 16. Drawer — glass ---------- */
.drawer, .shop-filters {
  background: linear-gradient(180deg, rgba(246, 239, 230, 0.85), rgba(248, 235, 228, 0.75)) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-right: 1px solid rgba(255,255,255,0.6);
}
.drawer::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.6), transparent);
}

/* ---------- 17. Marquee — glossy dark bar ---------- */
.velm-announce {
  background:
    radial-gradient(700px 60px at 50% 0%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, #26583f 0%, #1f4a3a 100%) !important;
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 4px 14px -4px rgba(31, 74, 58, 0.35);
}
.velm-announce::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* ---------- 18. Icons circles (nav) — subtle glass on hover ---------- */
.icon-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6)) !important;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 10px -3px rgba(58, 30, 38, 0.2);
}

/* ---------- 19. Order status badges — glass ---------- */
.order-status {
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15)) !important;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ---------- 20. Extra depth for the whole page ---------- */
.section, .hero, .pd-wrap {
  position: relative;
}

/* Section top highlight bar */
.section:not(.newsletter-section):not(.trust-bar-section):not(.offer-section):not(.arrivals-section):not(.categories-section)::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  pointer-events: none;
}

/* ---------- 21. Refined product zoom lens — glass ---------- */
.pd-lens {
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.1)) !important;
  border: 1.5px solid rgba(255,255,255,0.9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 0 0 9999px rgba(30, 30, 30, 0.35),
    0 4px 14px rgba(0,0,0,0.15) !important;
}

/* ---------- 22. Category tile emoji — glossy ---------- */
.cat-empty {
  filter: drop-shadow(0 4px 8px rgba(183, 110, 121, 0.25))
          drop-shadow(0 1px 0 rgba(255,255,255,0.6));
}

/* ---------- 23. Focus rings — glass */
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(31, 74, 58, 0.12),
    0 0 0 1px rgba(31, 74, 58, 0.4);
}

/* ---------- 24. Prevent aurora/grain on print or when reduced ---------- */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .hero-title em, .stars { animation: none; -webkit-text-fill-color: currentColor; background: none; }
  .btn-primary::before, .btn-dark::before, .offer-banner-v2::after { display: none; }
}
@media print {
  body::before, body::after { display: none !important; }
}
