/* ============================================================
   Luxe Meds — Modern layer (loads AFTER style.css, storefront only)
   Re-themes the design tokens so every page (cart, checkout,
   account…) follows the new look, then restyles header, hero,
   cards and footer. Pure CSS 3D — no libraries, CSP-safe.
   Admin pages do not load this file and are unchanged.
   Round 7: 3D scrolling backdrop, scroll progress, header
   elevation, aurora hero, sheen buttons, glow cards, reveal
   fallback. All new generic-element styling is scoped to
   body:not(.admin-body):not(.admin-login-body).
   ============================================================ */
@property --tint { syntax: '<color>'; inherits: true; initial-value: #0E8A86; }
:root {
  color-scheme: light;
  --navy: #0B5C5A; --navy-dark: #0A2A2C;          /* brand teal / deep teal ink */
  --gold: #C9A227; --gold-light: #E9D589;
  --cream: #EEF6F4; --border: #D8E4E1;
  --ink: #12292B; --ink-soft: #4F6466;
  --aqua: #5FD3C8; --sand: #E7DED2;
  --radius: 14px; --shadow: 0 10px 30px rgba(10, 42, 44, .10);
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
h1, h2, h3, h4 { letter-spacing: -.02em; }
.section-title { text-align: left; font-size: clamp(26px, 3.2vw, 38px); }
.home .section-title { font-size: clamp(26px, 3.2vw, 38px); }
.home .section { padding: 72px 0; }

/* ---- Buttons ---- */
.btn { border-radius: 999px; padding: 13px 26px; }
.btn-primary { background: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); box-shadow: 0 10px 24px -8px rgba(11, 92, 90, .6); transform: translateY(-1px); }
.btn-outline { border-color: #B9CFCB; }

/* ---- Header: frosted glass ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .8); box-shadow: 0 1px 0 var(--border); }
@supports (backdrop-filter: blur(1px)) { .site-header { backdrop-filter: blur(16px) saturate(1.5); } }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 46px; width: auto; }
.footer-logo img { height: 50px; }
.main-nav > a { border-bottom: 0; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.main-nav > a:hover { background: var(--cream); }
.main-nav > a.active, .main-nav .nav-dropdown > a.active { background: var(--cream); color: var(--navy); border-bottom: 0; }
.main-nav .nav-dropdown > a { padding: 8px 14px; border-radius: 999px; display: inline-block; }
.main-nav .cart-link { background: var(--navy-dark); color: #fff; }
.main-nav .cart-link:hover { background: var(--navy); color: #fff; }
.cart-badge { background: var(--aqua); color: var(--navy-dark); }
.dropdown-menu { border-radius: 16px; padding: 8px; box-shadow: 0 20px 40px -12px rgba(10, 42, 44, .25); }
.dropdown-menu a { border-radius: 10px; }

/* ---- Hero: deep-teal stage, 3D product ring ---- */
.lm-hero { position: relative; overflow: hidden; color: #fff; --tint: #0E8A86; transition: --tint .9s ease;
  --glow: color-mix(in srgb, var(--tint) 60%, #1aa59f);
  background: radial-gradient(760px 520px at 74% 52%, color-mix(in srgb, var(--glow) 60%, transparent), transparent 70%), linear-gradient(160deg, #0A2A2C 0%, #05191B 100%); }
.lm-hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; min-height: min(80vh, 700px); padding-top: 48px; padding-bottom: 48px; }
.lm-hero--solo .lm-hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 88px 20px; }
.lm-hero h1 { color: #fff; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.03; letter-spacing: -.035em; margin: 0 0 20px; max-width: 14ch; }
.lm-hero p { color: rgba(255, 255, 255, .78); font-size: clamp(16px, 1.5vw, 19px); max-width: 44ch; }
.lm-hero .btn-primary { background: #fff; color: var(--navy-dark); }
.lm-hero .btn-primary:hover { background: var(--aqua); }
.lm-hero .btn-outline { border-color: rgba(255, 255, 255, .4); color: #fff; }
.lm-hero .btn-outline:hover { background: #fff; color: var(--navy-dark); border-color: #fff; }
.lm-picker { display: flex; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.lm-picker-label { font-size: 14px; color: rgba(255, 255, 255, .7); min-width: 7.5em; }
.lm-picker-label strong { color: #fff; font-weight: 600; }
.lm-swatches { display: flex; gap: 10px; }
.lm-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: var(--c); cursor: pointer; padding: 0; transition: transform .2s, border-color .2s, box-shadow .2s; }
.lm-swatch:hover { transform: scale(1.12); }
.lm-swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); transform: scale(1.15); }

.lm-hero-text { position: relative; z-index: 2; }
.lm-stage { --w: clamp(170px, 19vw, 260px); position: relative; height: calc(var(--w) * 1.25 + 70px); perspective: 1400px; touch-action: pan-y; }
.lm-stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 56px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 80%, transparent), transparent); filter: blur(8px); pointer-events: none; }
.lm-ring { position: absolute; inset: 0 0 36px; transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.lm-card { position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 4 / 5; margin: calc(var(--w) * -.625) 0 0 calc(var(--w) * -.5);
  transform: translateX(calc(var(--o, 0) * var(--w) * .8)) translateZ(calc(var(--ao, 0) * -170px)) rotateY(calc(var(--o, 0) * -30deg));
  border-radius: 22px; overflow: hidden; background: var(--sand); box-shadow: 0 34px 60px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12);
  filter: brightness(.5) saturate(.8); opacity: 1; transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .7s, opacity .5s; }
.lm-card.is-front { filter: none; }
.lm-card.is-away { opacity: 0; pointer-events: none; }
.lm-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.lm-card.is-front:hover img { transform: scale(1.04); }
.lm-card-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(5, 25, 27, .85)); }
.lm-card-cap strong { font-size: 14.5px; font-weight: 700; }
.lm-card-cap .lm-card-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.lm-card-cap s { color: rgba(255, 255, 255, .62); font-weight: 400; font-size: .9em; text-decoration-thickness: 1px; }

/* ---- Men / Women tiles ---- */
.lm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: -48px; position: relative; z-index: 2; }
.lm-tile { position: relative; display: flex; align-items: flex-end; min-height: 240px; padding: 28px; border-radius: 24px; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, #0E6F6C, #0A2A2C); box-shadow: 0 24px 40px -18px rgba(10, 42, 44, .55);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.lm-tile.is-tilting, .product-card.is-tilting { transition: transform .08s linear; }
.lm-tile img { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); transition: transform .6s; }
.lm-tile:hover img { transform: scale(1.05); }
.lm-tile-title { display: block; font-family: var(--font-heading); font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.lm-tile-sub { display: inline-block; margin-top: 10px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 600; font-size: 14px; backdrop-filter: blur(6px); }
.lm-tile:hover .lm-tile-sub { background: #fff; color: var(--navy-dark); }

/* ---- Category tiles ---- */
.home .category-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.category-card, .home .category-card { position: relative; background: var(--cream); color: var(--navy-dark); border: 1px solid var(--border); border-radius: 20px; padding: 26px 22px; min-height: 130px; justify-content: space-between;
  box-shadow: 0 14px 28px -18px rgba(10, 42, 44, .5);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .25s, color .25s, box-shadow .3s ease, border-color .25s ease; }
.category-card:hover, .home .category-card:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-4px); box-shadow: 0 26px 44px -20px rgba(10, 42, 44, .65); z-index: 2; }
.category-card-name, .home .category-card-name { font-size: 20px; font-weight: 700; }
.category-card-cta, .home .category-card-cta { color: inherit; opacity: .7; }

/* ---- Product cards: sand photo plate + 3D tilt (JS sets --rx/--ry/--mx/--my) ---- */
.product-card, .product-card:hover { border: 0; background: transparent; box-shadow: none; overflow: visible; border-radius: 20px; position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.product-card-img, .product-card-img.ratio-4-3 { aspect-ratio: 4 / 5; border-radius: 20px; background: var(--sand);
  box-shadow: 0 16px 30px -16px rgba(10, 42, 44, .4), 0 0 0 1px rgba(10, 42, 44, .06);
  transition: box-shadow .45s cubic-bezier(.2, .8, .2, 1); }
.product-card-img.ratio-1-1 { aspect-ratio: 1 / 1; }
.product-card-img.ratio-3-4 { aspect-ratio: 3 / 4; }
.product-card:hover .product-card-img { box-shadow: 0 32px 50px -18px rgba(10, 42, 44, .5), 0 0 0 1px rgba(10, 42, 44, .09); }
.product-card-img img { object-position: 50% 12%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .38), transparent 60%); }
.product-card:hover .product-card-img::after { opacity: 1; }
.product-card-body, .home .product-card-body { padding: 14px 4px 4px; }
.home .product-grid, .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 22px; }
.tag-sale, .tag-set { border-radius: 999px; padding: 5px 12px; }
.tag-set { background: var(--navy-dark); }
.color-dot { width: 15px; height: 15px; }
.section-alt { background: linear-gradient(180deg, var(--cream), #fff); }

/* ---- Colour range (real catalogue chart, tilted in 3D) ---- */
.lm-colors { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.lm-colors h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 16px; }
.lm-chart { perspective: 1400px; }
.lm-chart img { width: 100%; height: auto; border-radius: 22px; background: #fff; box-shadow: 0 40px 70px -30px rgba(10, 42, 44, .55);
  transform: rotateY(-14deg) rotateX(4deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.lm-chart:hover img { transform: rotateY(0) rotateX(0) scale(1.02); }

/* ---- Trust row: open columns, no boxes ---- */
.trust-grid { text-align: left; gap: 0; }
.trust-item { padding: 6px 28px; border-left: 2px solid var(--border); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item h3 { font-size: 18px; color: var(--navy); }

/* ---- Custom order band ---- */
.home .custom-cta { background: none; padding-top: 24px; }
.custom-cta-inner { position: relative; overflow: hidden; padding: 52px clamp(24px, 5vw, 64px); border-radius: 32px; color: #fff; background: linear-gradient(130deg, #0E6F6C, #0A2A2C 70%); }
.custom-cta-inner h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); max-width: 16ch; }
.custom-cta-inner p { color: rgba(255, 255, 255, .78); max-width: 42ch; margin: 0; }
.custom-cta-inner .btn-primary { background: #fff; color: var(--navy-dark); position: relative; z-index: 1; }
.lm-chips { position: absolute; right: 22%; top: 50%; width: 120px; height: 150px; transform-style: preserve-3d; transform: translateY(-50%) rotateX(55deg) rotateZ(-30deg); pointer-events: none; opacity: .9; }
.lm-chips i { position: absolute; inset: 0; border-radius: 16px; box-shadow: 0 18px 30px rgba(0, 0, 0, .3); }
.lm-chips i:nth-child(1) { background: #5FD3C8; transform: translateZ(0); }
.lm-chips i:nth-child(2) { background: #2E4E8C; transform: translateZ(26px); }
.lm-chips i:nth-child(3) { background: #7A2E4A; transform: translateZ(52px); }

/* ---- Footer ---- */
.site-footer { margin-top: 72px; background: linear-gradient(180deg, #0A2A2C, #05191B); border-radius: 36px 36px 0 0; }
.footer-grid h4 { text-transform: none; letter-spacing: 0; font-size: 15px; }
.footer-grid a:hover { color: var(--aqua); }
.footer-logo { color: #fff; }
.footer-logo span { color: var(--aqua); }

/* ---- Forms / inner-page polish ---- */
.auth-card, .checkout-block, .account-card, .review-form-wrap, .custom-step { border-radius: 20px; }
.cart-summary, .custom-order-summary { border-radius: 22px; }
.filter-chip { padding: 7px 16px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .lm-hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
  .lm-hero h1 { max-width: 14ch; }
  .lm-stage { --w: clamp(130px, 38vw, 200px); }
  .lm-tiles { grid-template-columns: 1fr; margin-top: -28px; }
  .lm-colors { grid-template-columns: 1fr; gap: 32px; }
  .lm-chips { display: none; }
  .trust-item, .trust-item:first-child { border-left: 0; padding: 14px 0; border-top: 1px solid var(--border); }
}
@media (max-width: 780px) {
  .main-nav > a, .main-nav .nav-dropdown > a { padding: 6px 0; border-radius: 0; background: none !important; }
  .main-nav .cart-link { padding: 8px 16px; border-radius: 999px; background: var(--navy-dark) !important; }
  .home .section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .home .product-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .lm-tile { min-height: 200px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-ring, .lm-card, .lm-hero, .lm-tile, .product-card, .lm-chart img { transition: none; }
  .lm-chart img { transform: none; }
}

/* ---- Round 2 polish ---- */
.lm-points { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0 0 28px; }
.lm-points li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.lm-points li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--aqua) center / 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%230A2A2C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lm-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(520px 320px at 12% 8%, rgba(95, 211, 200, .16), transparent 70%); }
.lm-picker-label { min-width: 0; }
.lm-card-cap { padding-top: 56px; }
.lm-card.is-front .lm-card-cap strong { font-size: 16px; }
.section-title::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--navy), var(--aqua)); }
.lm-colors h2::after, .section-title.center::after { display: none; }
.lm-tile { box-shadow: 0 28px 44px -20px rgba(10, 42, 44, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.site-header { box-shadow: 0 1px 0 var(--border), 0 12px 30px -22px rgba(10, 42, 44, .45); }
@media (max-width: 900px) { .lm-stage { --w: clamp(140px, 42vw, 210px); } .logo img { height: 40px; } }

/* ============================================================
   Round 3 — dark header on every page, dark accents, compact mobile
   ============================================================ */
.site-header { background: rgba(10, 42, 44, .92); box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px -20px rgba(0, 0, 0, .6); }
.main-nav > a, .main-nav .nav-dropdown > a { color: rgba(255, 255, 255, .88); }
.main-nav > a:hover, .main-nav .nav-dropdown > a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.main-nav > a.active, .main-nav .nav-dropdown > a.active { background: rgba(255, 255, 255, .14); color: #fff; }
.main-nav .cart-link { background: var(--aqua); color: var(--navy-dark); }
.main-nav .cart-link:hover { background: #fff; color: var(--navy-dark); }
.cart-badge { background: var(--navy-dark); color: #fff; }
.dropdown-menu { background: #0F3436; border: 1px solid rgba(255, 255, 255, .1); }
.dropdown-menu a { color: rgba(255, 255, 255, .88); }
.dropdown-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-toggle span { background: #fff; }
.category-card, .home .category-card { background: var(--navy-dark); color: #fff; border-color: rgba(255, 255, 255, .08); }
.category-card:hover, .home .category-card:hover { background: var(--navy); border-color: rgba(255, 255, 255, .14); }
.category-card-cta, .home .category-card-cta { color: var(--aqua); opacity: 1; }
.category-card:hover .category-card-cta { color: #fff; }
.cart-summary { background: var(--navy-dark); color: #fff; }
.cart-summary h1, .cart-summary h2, .cart-summary h3, .cart-summary p, .cart-summary .summary-row, .cart-summary .summary-line-item { color: #fff; }
.cart-summary .summary-row.total-row { border-top-color: rgba(255, 255, 255, .2); }
.cart-summary .btn-primary { background: #fff; color: var(--navy-dark); }
.cart-summary .btn-outline { border-color: rgba(255, 255, 255, .4); color: #fff; }

@media (max-width: 900px) {
  .lm-stage { order: -1; --w: clamp(120px, 34vw, 180px); height: calc(var(--w) * 1.25 + 50px); }
  .lm-hero-inner { padding-top: 24px; padding-bottom: 36px; gap: 20px; }
  .lm-card { border-radius: 16px; }
}
@media (max-width: 900px) {
  .main-nav { background: #0A2A2C; }
  .main-nav .cart-link { background: var(--aqua) !important; color: var(--navy-dark); }
  .main-nav > a, .main-nav .nav-dropdown > a { color: rgba(255, 255, 255, .9); }
  .dropdown-menu { background: transparent; border: 0; }
}
@media (max-width: 600px) {
  .logo img { height: 34px; }
  .lm-hero h1 { font-size: clamp(30px, 9vw, 38px); max-width: none; margin-bottom: 14px; }
  .lm-hero p { font-size: 15px; }
  .lm-points { margin-bottom: 20px; }
  .lm-points li { padding: 5px 11px; font-size: 12.5px; }
  .lm-picker { margin-top: 22px; }
  .home .section { padding: 36px 0; }
  .section-title, .home .section-title { font-size: 22px; margin-bottom: 18px; }
  .section-title::after { width: 34px; height: 3px; margin-top: 8px; }
  .lm-tiles { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -22px; }
  .lm-tile { min-height: 140px; padding: 14px; border-radius: 18px; }
  .lm-tile-title { font-size: 18px; }
  .lm-tile-sub { margin-top: 6px; padding: 5px 12px; font-size: 12.5px; }
  .home .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card, .home .category-card { min-height: 76px; padding: 14px; border-radius: 16px; gap: 4px; }
  .category-card-name, .home .category-card-name { font-size: 15px; }
  .category-card-cta, .home .category-card-cta { font-size: 12px; }
  .home .product-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .product-card-img, .product-card-img.ratio-4-3 { aspect-ratio: 5 / 6; border-radius: 16px; }
  .product-card-body, .home .product-card-body { padding: 10px 2px 2px; }
  .product-card-body h3, .home .product-card-body h3 { font-size: 13px; }
  .price-final, .home .product-card .price-final { font-size: 14.5px; }
  .lm-colors { gap: 20px; }
  .lm-colors h2 { font-size: 24px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust-item, .trust-item:first-child { border: 0; padding: 0; }
  .trust-item h3 { font-size: 15px; }
  .trust-item p { font-size: 13px; }
  .custom-cta-inner { padding: 28px 20px; border-radius: 24px; }
  .custom-cta-inner h2 { font-size: 24px; }
  .site-footer { margin-top: 40px; border-radius: 24px 24px 0 0; padding-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* Small buttons keep their compact size (the pill .btn padding above would otherwise win) */
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---- Hero 3D cards: compact captions on tablets/phones ---- */
.lm-card-cap { transition: opacity .4s; }
@media (max-width: 900px) {
  .lm-card-cap { padding: 30px 10px 9px; font-size: 11.5px; }
  .lm-card-cap strong, .lm-card.is-front .lm-card-cap strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lm-card:not(.is-front) .lm-card-cap { opacity: 0; }
}
@media (max-width: 600px) {
  .lm-card-cap { padding: 20px 8px 7px; font-size: 11px; }
  .lm-card-cap strong, .lm-card.is-front .lm-card-cap strong { font-size: 11.5px; }
}

/* ============================================================
   Round 5 — every page: shared title banner, forms, and per-page polish
   ============================================================ */
html { scroll-behavior: smooth; }
::selection { background: var(--aqua); color: var(--navy-dark); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* ---- Forms (storefront + admin) ---- */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], select, textarea,
.form-group input, .form-group select, .form-group textarea { border-radius: 12px; border: 1.5px solid var(--border); background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(14, 138, 134, .16); }
.alert { border-radius: 14px; }
.badge { border-radius: 999px; }

/* ---- Shared title banner (shop, custom order, track, account, cart, checkout, legal, confirmation) ---- */
.shop-header, .legal-header, .confirmation-head { position: relative; overflow: hidden; text-align: left; margin-bottom: 28px; padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 48px); border-radius: 28px; color: #fff;
  background: radial-gradient(520px 260px at 92% 0%, rgba(95, 211, 200, .3), transparent 70%), linear-gradient(130deg, #0E6F6C, #0A2A2C 75%); box-shadow: 0 26px 46px -28px rgba(10, 42, 44, .75); }
.shop-header::after, .legal-header::after, .confirmation-head::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 36px rgba(255, 255, 255, .035), 0 0 0 72px rgba(255, 255, 255, .02); pointer-events: none; }
.shop-header h1, .legal-header h1, .confirmation-head h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; margin: 0 0 8px; }
.shop-header p, .legal-header p, .confirmation-head p, .shop-header .field-hint { color: rgba(255, 255, 255, .8); margin: 0; max-width: 62ch; }
.shop-header .btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.shop-header .btn-outline:hover { background: #fff; color: var(--navy-dark); }
.account-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---- Shop: filters ---- */
.filter-bar { gap: 14px 28px; margin-bottom: 30px; }
.filter-label { font-weight: 700; color: var(--navy-dark); }
.filter-chip { border-radius: 999px; border: 1.5px solid var(--border); background: #fff; transition: all .2s; }
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.active { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.product-card-cat { color: var(--navy); font-weight: 600; font-size: 12px; }

/* ---- Product page ---- */
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.breadcrumb a { color: var(--navy); font-weight: 600; }
.product-detail-grid { gap: clamp(24px, 4vw, 56px); align-items: start; }
.product-gallery .product-detail-img { border-radius: 28px; background: var(--sand); box-shadow: 0 34px 60px -32px rgba(10, 42, 44, .55); }
.product-detail-info h1 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; }
.product-detail-info .price-final { font-size: 30px; color: var(--navy); }
.fabric-option, .size-option { border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.fabric-option:hover, .size-option:hover { border-color: var(--navy); }
.stock-chip, .trust-mini { border-radius: 999px; }
.reviews-summary { background: var(--cream); border-radius: 22px; padding: 24px; }
@media (min-width: 901px) { .product-detail-info { position: sticky; top: 92px; } }

/* ---- Custom order ---- */
.custom-step { border-radius: 22px; padding: 24px; box-shadow: 0 16px 32px -26px rgba(10, 42, 44, .5); }
.step-num { background: linear-gradient(135deg, var(--aqua), var(--navy)); color: #fff; }
.option-card { border-radius: 14px; padding: 10px 16px; transition: border-color .2s, box-shadow .2s, background .2s, transform .2s ease; }
.option-card:hover { border-color: var(--navy); transform: translateY(-1px); }
.option-card:active { transform: translateY(0); }
.option-card:has(input:checked), .option-card.selected { border-color: var(--navy); background: var(--cream); box-shadow: 0 0 0 4px rgba(14, 138, 134, .14); }
.custom-order-summary { background: linear-gradient(160deg, #0E6F6C, #0A2A2C); border-radius: 26px; box-shadow: 0 30px 50px -28px rgba(10, 42, 44, .8); }
.summary-list dt, .summary-price strong { color: var(--aqua); }
.custom-order-summary .btn-primary { background: #fff; color: var(--navy-dark); }
.custom-order-summary .btn-primary:hover { background: var(--aqua); }

/* ---- Cart & checkout ---- */
.cart-item { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 14px 18px; margin-bottom: 12px; box-shadow: 0 14px 28px -24px rgba(10, 42, 44, .5); }
.cart-item-img img, .cart-item-img .img-placeholder { border-radius: 14px; background: var(--sand); }
.line-total { font-weight: 700; color: var(--navy); }
.empty-cart { text-align: center; padding: 56px 20px; border: 2px dashed var(--border); border-radius: 26px; background: var(--cream); }
.cart-summary { border-radius: 26px; padding: 26px; box-shadow: 0 30px 50px -28px rgba(10, 42, 44, .8); }
.checkout-block { border-radius: 22px; padding: 24px; box-shadow: 0 16px 32px -26px rgba(10, 42, 44, .5); }
.payment-method-option { border-radius: 14px; transition: border-color .2s, background .2s; }
.payment-method-option:has(input:checked), .payment-method-option.selected { border-color: var(--navy); background: var(--cream); }
@media (min-width: 901px) { .cart-summary, .checkout-summary { position: sticky; top: 92px; align-self: start; } }

/* ---- Track order, confirmation, account ---- */
.track-order-form { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 24px; box-shadow: 0 16px 32px -26px rgba(10, 42, 44, .5); margin-bottom: 24px; }
.order-ref-card { border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 16px 32px -26px rgba(10, 42, 44, .5); }
.tracker-dot { box-shadow: 0 0 0 4px var(--cream); }
.tracker-step.done .tracker-dot { background: linear-gradient(135deg, var(--aqua), var(--navy)); border-color: transparent; color: #fff; }
.account-card { border-radius: 22px; box-shadow: 0 16px 32px -26px rgba(10, 42, 44, .5); }
.account-grid { gap: 22px; }
.account-orders-table th, .account-orders-table td { white-space: normal; overflow-wrap: break-word; padding: 12px 14px; }
.legal-container { max-width: 860px; }
.legal-toc { background: var(--cream); border-radius: 18px; padding: 20px 24px; }

/* ---- Sign in / register / password pages: dark stage + floating card ---- */
.section:has(.auth-card) { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 84px) 0; background: radial-gradient(640px 380px at 70% 10%, rgba(95, 211, 200, .22), transparent 70%), linear-gradient(160deg, #0A2A2C, #05191B); }
.auth-card { border: 0; border-radius: 28px; padding: clamp(26px, 5vw, 40px); box-shadow: 0 44px 80px -30px rgba(0, 0, 0, .75); }
.auth-card h1 { font-size: 28px; }

/* ---- Gentle scroll reveal (CSS only; ignored by browsers without support) ---- */
@keyframes lm-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@supports (animation-timeline: view()) {
  .product-card, .category-card, .lm-tile, .trust-item, .cart-item, .custom-step, .checkout-block, .account-card, .lm-colors > *, .custom-cta-inner {
    animation: lm-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .product-card, .category-card, .lm-tile, .trust-item, .cart-item, .custom-step, .checkout-block, .account-card, .lm-colors > *, .custom-cta-inner { animation: none; } }

@media (max-width: 600px) {
  .shop-header, .legal-header, .confirmation-head { border-radius: 22px; padding: 24px 20px; margin-bottom: 20px; }
  .shop-header h1, .legal-header h1, .confirmation-head h1 { font-size: 26px; }
  .custom-step, .checkout-block, .account-card, .track-order-form { padding: 18px; border-radius: 18px; }
  .cart-item { padding: 12px; border-radius: 16px; }
  .cart-summary, .custom-order-summary { padding: 20px; border-radius: 22px; }
  .auth-card { border-radius: 22px; }
}

/* ============================================================
   Round 6 — darkish teal tint on every page
   One mid-tone background behind everything; cards stay white so
   they lift off it. Tweak the three gradient colours below to make
   the whole site lighter or deeper. (Admin keeps its own background.)
   ============================================================ */
:root { --border: #B3CBC7; --ink-soft: #35504F; --page-top: #B5D0CC; --page-mid: #CCDFDC; --page-bottom: #D9E8E5; }
body:not(.admin-body):not(.admin-login-body) {
  background-color: var(--page-mid);
  background-image:
    radial-gradient(900px 520px at 88% -4%, rgba(95, 211, 200, .38), transparent 70%),
    radial-gradient(700px 560px at -4% 38%, rgba(11, 92, 90, .16), transparent 70%),
    linear-gradient(180deg, var(--page-top) 0, var(--page-mid) 55%, var(--page-bottom) 100%);
  background-repeat: no-repeat;
}
.section-alt { background: rgba(255, 255, 255, .38); }
.btn-outline { border-color: rgba(11, 92, 90, .55); color: var(--navy-dark); }
.btn-outline:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.filter-chip, .category-card .category-card-cta { box-shadow: none; }
.trust-item { border-left-color: rgba(10, 42, 44, .18); }
.breadcrumb a, .product-card-cat { color: var(--navy-dark); }
.product-card-body h3, .product-card-body h3 a { color: var(--navy-dark); }

/* ============================================================
   Round 7 — 3D scrolling backdrop + eye-catching polish
   Depth planes drift as you scroll (JS drives --pFar/--pMid/--pNear,
   rAF + transforms only). Everything survives JS-off: the planes
   default to 0 and shapes keep their gentle idle float.
   ============================================================ */

/* ---- Insurance: never on admin ---- */
.admin-body #lmBg3d, .admin-login-body #lmBg3d,
.admin-body .lm-progress, .admin-login-body .lm-progress { display: none !important; }

/* ---- Scroll progress bar ---- */
.lm-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90;
  background: linear-gradient(90deg, var(--aqua), #2FA79E 45%, var(--gold));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .lm-progress { animation: lm-progress-grow linear both; animation-timeline: scroll(root block); }
  @keyframes lm-progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---- 3D scrolling backdrop ---- */
.lm-bg3d { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  perspective: 1100px; contain: layout paint style; }
.lm-bg-plane { position: absolute; inset: -12%; will-change: transform;
  transform: translate3d(0, var(--pFar, 0px), 0); }
.lm-bg-mid  { transform: translate3d(0, var(--pMid, 0px), 0); }
.lm-bg-near { transform: translate3d(0, var(--pNear, 0px), 0); }

/* Far plane: soft aurora orbs (pure radial gradients — no blur filters) */
.lm-orb { position: absolute; border-radius: 50%; }
.lm-orb--aqua { width: 62vmax; height: 62vmax; left: -18vmax; top: -22vmax; opacity: .9;
  background: radial-gradient(closest-side, rgba(95, 211, 200, .5), rgba(95, 211, 200, .15) 46%, transparent 72%);
  animation: lm-orb-drift 26s ease-in-out infinite alternate; }
.lm-orb--gold { width: 44vmax; height: 44vmax; right: -14vmax; top: 8vmax;
  background: radial-gradient(closest-side, rgba(201, 162, 39, .32), rgba(201, 162, 39, .1) 48%, transparent 74%);
  animation: lm-orb-drift 32s ease-in-out -8s infinite alternate-reverse; }
.lm-orb--teal { width: 56vmax; height: 56vmax; left: 20vmax; bottom: -26vmax;
  background: radial-gradient(closest-side, rgba(11, 92, 90, .34), rgba(11, 92, 90, .12) 50%, transparent 76%);
  animation: lm-orb-drift 38s ease-in-out -16s infinite alternate; }
@keyframes lm-orb-drift { from { translate: 0 0; } to { translate: 3.5vmax 2.5vmax; } }

/* Mid plane: frosted 3D shapes — capsule, medical crosses, ring, pill.
   Percentages are relative to the bleed plane (inset -12%), i.e. they are
   pre-converted so the shapes land inside the live viewport. */
.lm-shape { position: absolute; display: block; }
.lm-shape--capsule { width: clamp(64px, 8vw, 118px); height: clamp(128px, 16vw, 236px); left: 15%; top: 22%;
  border-radius: 999px; rotate: 24deg;
  background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .10) 62%, rgba(95, 211, 200, .18));
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 24px 44px -22px rgba(10, 42, 44, .45), inset 0 0 0 6px rgba(255, 255, 255, .18);
  animation: lm-float-a 11s ease-in-out infinite alternate; }
.lm-shape--cross { width: clamp(46px, 5.5vw, 86px); aspect-ratio: 1; right: 14%; top: 17%;
  background: linear-gradient(150deg, rgba(95, 211, 200, .6), rgba(14, 138, 134, .34));
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
  filter: drop-shadow(0 14px 20px rgba(10, 42, 44, .28));
  animation: lm-float-b 9s ease-in-out -3s infinite alternate; }
.lm-shape--ring { width: clamp(56px, 7vw, 104px); aspect-ratio: 1; right: 17%; bottom: 25%;
  border-radius: 50%; border: clamp(10px, 1.4vw, 18px) solid rgba(255, 255, 255, .5);
  box-shadow: 0 18px 34px -18px rgba(10, 42, 44, .4), inset 0 0 0 1px rgba(255, 255, 255, .5);
  animation: lm-float-a 13s ease-in-out -6s infinite alternate-reverse; }
.lm-shape--pill { width: clamp(54px, 6vw, 92px); height: clamp(20px, 2.4vw, 34px); left: 34%; bottom: 30%;
  border-radius: 999px; rotate: -18deg;
  background: linear-gradient(120deg, rgba(95, 211, 200, .75), rgba(201, 162, 39, .45));
  box-shadow: 0 14px 26px -14px rgba(10, 42, 44, .45);
  animation: lm-float-b 10s ease-in-out -2s infinite alternate; }
.lm-shape--cross2 { width: clamp(30px, 3.6vw, 54px); aspect-ratio: 1; left: 20%; bottom: 16%; opacity: .85;
  background: linear-gradient(150deg, rgba(201, 162, 39, .6), rgba(201, 162, 39, .28));
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
  animation: lm-float-b 12s ease-in-out -7s infinite alternate-reverse; }
@keyframes lm-float-a { from { translate: 0 -12px; rotate: 23deg; } to { translate: 0 16px; rotate: 27deg; } }
@keyframes lm-float-b { from { translate: 0 10px; scale: 1; } to { translate: 0 -14px; scale: 1.06; } }

/* Near plane: drifting micro-dots (depth-of-field sparkle) */
.lm-dots { position: absolute; inset: 0; }
.lm-dots--a { background-image: radial-gradient(circle, rgba(10, 42, 44, .17) 1.5px, transparent 1.6px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 78%);
  animation: lm-dots-a 26s ease-in-out infinite alternate; will-change: transform; }
.lm-dots--b { background-image: radial-gradient(circle, rgba(11, 92, 90, .12) 2.2px, transparent 2.3px);
  background-size: 92px 92px; background-position: 23px 31px;
  -webkit-mask-image: radial-gradient(110% 80% at 60% 60%, #000 30%, transparent 75%);
          mask-image: radial-gradient(110% 80% at 60% 60%, #000 30%, transparent 75%);
  animation: lm-dots-b 34s ease-in-out infinite alternate; will-change: transform; }
/* Translations equal whole background tiles -> the pattern loops seamlessly,
   and animating transform keeps everything on the compositor. */
@keyframes lm-dots-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-44px, -88px, 0); } }
@keyframes lm-dots-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(92px, -184px, 0); } }

/* Perspective grid — the "3D floor" hint, fades out radially */
.lm-bg-grid { position: absolute; inset: -14%; pointer-events: none; opacity: .55; will-change: transform;
  transform: translate3d(0, var(--pFar, 0px), 0) rotateZ(var(--rFar, 0deg));
  background-image:
    linear-gradient(rgba(11, 92, 90, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 92, 90, .075) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(105% 85% at 50% 45%, transparent 30%, #000 68%, transparent 96%);
          mask-image: radial-gradient(105% 85% at 50% 45%, transparent 30%, #000 68%, transparent 96%); }

/* ---- Header elevation on scroll ---- */
.site-header { transition: background .35s ease, box-shadow .35s ease; }
.site-header.is-scrolled { background: rgba(7, 30, 32, .97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07), 0 18px 40px -22px rgba(0, 0, 0, .75); }

/* ---- Storefront-scoped polish (never leaks to admin) ---- */
body:not(.admin-body):not(.admin-login-body) {
  /* branded scrollbar */
  scrollbar-width: thin; scrollbar-color: #2E7A76 transparent;
}
body:not(.admin-body):not(.admin-login-body)::-webkit-scrollbar { width: 10px; }
body:not(.admin-body):not(.admin-login-body)::-webkit-scrollbar-track { background: transparent; }
body:not(.admin-body):not(.admin-login-body)::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2E7A76, #0B5C5A); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }

/* Buttons: gradient core + sheen sweep */
body:not(.admin-body):not(.admin-login-body) .btn { position: relative; overflow: hidden; }
body:not(.admin-body):not(.admin-login-body) .btn::after { content: ""; position: absolute; top: 0; bottom: 0;
  left: -68%; width: 46%; transform: skewX(-22deg) translateX(0);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); opacity: 0; pointer-events: none; }
body:not(.admin-body):not(.admin-login-body) .btn:hover::after { opacity: 1; animation: lm-btn-sheen .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes lm-btn-sheen { from { transform: skewX(-22deg) translateX(0); } to { transform: skewX(-22deg) translateX(480%); } }
body:not(.admin-body):not(.admin-login-body) .btn-primary {
  background: linear-gradient(135deg, #0E6F6C, var(--navy-dark)); box-shadow: 0 12px 26px -12px rgba(11, 92, 90, .65); }
body:not(.admin-body):not(.admin-login-body) .btn-primary:hover {
  box-shadow: 0 18px 34px -12px rgba(11, 92, 90, .75); }

/* White buttons on dark surfaces keep their look (match the scoped
   specificity above so the gradient core never overrides them) */
body:not(.admin-body):not(.admin-login-body) .lm-hero .btn-primary,
body:not(.admin-body):not(.admin-login-body) .custom-cta-inner .btn-primary,
body:not(.admin-body):not(.admin-login-body) .cart-summary .btn-primary,
body:not(.admin-body):not(.admin-login-body) .custom-order-summary .btn-primary {
  background: #fff; color: var(--navy-dark); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); }
body:not(.admin-body):not(.admin-login-body) .lm-hero .btn-primary:hover,
body:not(.admin-body):not(.admin-login-body) .custom-cta-inner .btn-primary:hover,
body:not(.admin-body):not(.admin-login-body) .cart-summary .btn-primary:hover,
body:not(.admin-body):not(.admin-login-body) .custom-order-summary .btn-primary:hover {
  background: var(--aqua); color: var(--navy-dark); }
body:not(.admin-body):not(.admin-login-body) .lm-hero .btn-outline,
body:not(.admin-body):not(.admin-login-body) .cart-summary .btn-outline,
body:not(.admin-body):not(.admin-login-body) .custom-order-summary .btn-outline,
body:not(.admin-body):not(.admin-login-body) .shop-header .btn-outline {
  border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); }
body:not(.admin-body):not(.admin-login-body) .lm-hero .btn-outline:hover,
body:not(.admin-body):not(.admin-login-body) .cart-summary .btn-outline:hover,
body:not(.admin-body):not(.admin-login-body) .custom-order-summary .btn-outline:hover,
body:not(.admin-body):not(.admin-login-body) .shop-header .btn-outline:hover {
  background: #fff; color: var(--navy-dark); border-color: #fff; }
.lm-hero .btn-primary { background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.lm-hero .btn-primary:hover { background: var(--aqua); }

/* Product cards: conic glow ring + lift on hover */
body:not(.admin-body):not(.admin-login-body) .product-card::before {
  content: ""; position: absolute; inset: -2px; border-radius: 23px; padding: 2px; opacity: 0;
  background: conic-gradient(from 140deg, rgba(95, 211, 200, 0), rgba(95, 211, 200, .85), rgba(201, 162, 39, .6), rgba(95, 211, 200, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  transition: opacity .4s ease; pointer-events: none; z-index: 2; }
body:not(.admin-body):not(.admin-login-body) .product-card:hover::before { opacity: 1; }
body:not(.admin-body):not(.admin-login-body) .product-card:hover {
  transform: perspective(900px) translateY(-5px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
body:not(.admin-body):not(.admin-login-body) .tag-sale {
  background: linear-gradient(120deg, var(--gold), #E4BE45, var(--gold)); background-size: 220% 100%;
  animation: lm-tag-shimmer 3.4s ease-in-out infinite; color: #fff; }
@keyframes lm-tag-shimmer { from, to { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* Category cards: sliding arrow */
.category-card .category-card-cta, .home .category-card-cta { display: inline-flex; align-items: center; }
.category-card .category-card-cta::after, .home .category-card-cta::after {
  content: "\2192"; margin-left: 7px; display: inline-block; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.category-card:hover .category-card-cta::after, .home .category-card:hover .category-card-cta::after { transform: translateX(5px); }

/* Trust row: branded icons */
.trust-item { position: relative; }
.trust-item::before { content: ""; display: block; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
  background: var(--cream) center / 24px no-repeat; border: 1px solid var(--border);
  box-shadow: 0 10px 20px -12px rgba(10, 42, 44, .4); }
.trust-item:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5C5A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5-8 4.5-8-4.5L12 3z'/%3E%3Cpath d='M4 12.5L12 17l8-4.5'/%3E%3Cpath d='M4 17L12 21.5 20 17'/%3E%3C/svg%3E"); }
.trust-item:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5C5A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3.5' width='16' height='17' rx='3'/%3E%3Cpath d='M8.5 9l1.6 1.6L13.5 7'/%3E%3Cpath d='M8.5 15.5h7'/%3E%3C/svg%3E"); }
.trust-item:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5C5A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.4-3 8.4-7 10-4-1.6-7-5.6-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2.2 2.2L15.5 9.8'/%3E%3C/svg%3E"); }
.trust-item:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5C5A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='3'/%3E%3Ccircle cx='7' cy='17' r='3'/%3E%3Cpath d='M9.5 8.8L20 19.5M9.5 15.2L20 4.5'/%3E%3C/svg%3E"); }

/* Custom-order CTA: sweeping light + breathing glow */
.custom-cta-inner::before { content: ""; position: absolute; top: 0; left: 0; width: 55%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: translateX(-110%); animation: lm-cta-sweep 4.6s ease-in-out infinite; pointer-events: none; will-change: transform; }
.custom-cta-inner::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 300px; height: 300px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(95, 211, 200, .3), transparent 72%);
  animation: lm-cta-glow 5.5s ease-in-out infinite alternate; }
@keyframes lm-cta-sweep { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(220%); } }
@keyframes lm-cta-glow { from { opacity: .5; } to { opacity: 1; } }

/* Inner-page banners: rotating dashed halo */
.shop-header::before, .legal-header::before, .confirmation-head::before {
  content: ""; position: absolute; left: -44px; top: -44px; width: 148px; height: 148px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .3); animation: lm-spin 44s linear infinite; pointer-events: none; }
@keyframes lm-spin { to { transform: rotate(360deg); } }

/* Auth pages: floating orbs on the dark stage */
.section:has(.auth-card)::before, .section:has(.auth-card)::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.section:has(.auth-card)::before { width: 300px; height: 300px; left: -90px; top: -60px;
  background: radial-gradient(closest-side, rgba(95, 211, 200, .2), transparent 72%); animation: lm-cta-glow 6s ease-in-out infinite alternate; }
.section:has(.auth-card)::after { width: 380px; height: 380px; right: -120px; bottom: -140px;
  background: radial-gradient(closest-side, rgba(201, 162, 39, .16), transparent 72%); animation: lm-cta-glow 7.5s ease-in-out -3s infinite alternate-reverse; }

/* Cart & checkout micro-polish */
.cart-item { position: relative; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.cart-item::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--aqua), var(--navy)); opacity: 0; transition: opacity .3s; }
.cart-item:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -22px rgba(10, 42, 44, .6); }
.cart-item:hover::before { opacity: 1; }
.cart-summary { box-shadow: 0 30px 50px -28px rgba(10, 42, 44, .8), 0 0 70px -30px rgba(95, 211, 200, .5); }
.payment-method-option { transition: border-color .2s, background .2s, translate .2s; }
.payment-method-option:hover { translate: 3px 0; }
.checkout-block .step-num { animation: lm-step-pulse 3.2s ease-in-out infinite; }
@keyframes lm-step-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(95, 211, 200, .45); } 50% { box-shadow: 0 0 0 7px rgba(95, 211, 200, 0); } }

/* ---- Hero: aurora sheen, grain, floating accents, entrance ---- */
.lm-hero::after { content: ""; position: absolute; inset: -30%; opacity: .8;
  background: conic-gradient(from 190deg at 68% 42%,
    transparent 0deg, rgba(95, 211, 200, .12) 52deg, transparent 118deg,
    rgba(201, 162, 39, .08) 196deg, transparent 268deg, rgba(95, 211, 200, .07) 320deg, transparent 360deg);
  animation: lm-hero-aurora 26s linear infinite; pointer-events: none; will-change: transform; }
@keyframes lm-hero-aurora { to { transform: rotate(360deg); } }
.lm-hero-inner::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lm-hero-text::after { content: ""; position: absolute; right: 22%; top: -14px; width: 20px; height: 20px; opacity: .45;
  background: rgba(95, 211, 200, .8);
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
  animation: lm-float-b 7s ease-in-out infinite alternate; pointer-events: none; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .lm-hero h1 { background: linear-gradient(180deg, #FFFFFF 55%, #CFF3EE); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; }
}
.lm-hero-text > * { animation: lm-rise-in .75s cubic-bezier(.2, .8, .2, 1) backwards; }
.lm-hero-text > *:nth-child(1) { animation-delay: .05s; }
.lm-hero-text > *:nth-child(2) { animation-delay: .14s; }
.lm-hero-text > *:nth-child(3) { animation-delay: .23s; }
.lm-hero-text > *:nth-child(4) { animation-delay: .32s; }
.lm-hero-text > *:nth-child(5) { animation-delay: .41s; }
.lm-stage { animation: lm-rise-in .9s cubic-bezier(.2, .8, .2, 1) .28s backwards; }
@keyframes lm-rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* Tiles: gloss sweep on hover */
.lm-tile::after { content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-18deg); transition: left .7s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.lm-tile:hover::after { left: 130%; }

/* Section titles + banners join the scroll reveal (CSS scroll-driven) */
@supports (animation-timeline: view()) {
  .section-title, .shop-header, .legal-header, .order-ref-card {
    animation: lm-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
}

/* IntersectionObserver fallback (JS adds html[data-reveal]) */
html[data-reveal] .lm-reveal { opacity: 0; translate: 0 26px;
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), translate .7s cubic-bezier(.2, .8, .2, 1); }
html[data-reveal] .lm-reveal.lm-inview { opacity: 1; translate: 0 0; }

/* ---- Footer aurora edge + texture ---- */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 211, 200, .65), rgba(201, 162, 39, .4), transparent); pointer-events: none; }
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220px; pointer-events: none; opacity: .5;
  background: radial-gradient(560px 200px at 18% 0%, rgba(95, 211, 200, .14), transparent 70%),
              radial-gradient(560px 200px at 82% 0%, rgba(201, 162, 39, .1), transparent 70%); }

/* ---- Responsive & accessibility guards ---- */
@media (max-width: 780px) {
  .lm-shape--ring, .lm-shape--pill, .lm-shape--cross2 { display: none; }
  .lm-orb--gold { opacity: .7; }
  .lm-hero-text::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-progress { animation: none; transform: none; }
  .lm-bg3d, .lm-bg-plane, .lm-bg-grid { transform: none !important; }
  .lm-orb, .lm-shape, .lm-dots, .lm-hero::after, .lm-hero-text::after,
  .custom-cta-inner::before, .custom-cta-inner::after,
  .shop-header::before, .legal-header::before, .confirmation-head::before,
  .section:has(.auth-card)::before, .section:has(.auth-card)::after,
  .checkout-block .step-num, body:not(.admin-body):not(.admin-login-body) .tag-sale { animation: none !important; }
  .lm-hero-text > *, .lm-stage { animation: none !important; }
  .lm-tile::after { display: none; }
  html[data-reveal] .lm-reveal { opacity: 1; translate: none; transition: none; }
  body:not(.admin-body):not(.admin-login-body) .product-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
}

/* ============================================================
   Round 8 — card visual effects polish (storefront only)
   Subtle, additive refinements for product / category / hero /
   option cards: stacking fix so lifted cards + their glow ring
   paint above neighbours, press & keyboard-focus feedback, and
   a gentle title tint on hover. No layout, content or data
   changes; every effect is decorative and non-essential info
   is never hidden behind a hover.
   ============================================================ */

/* Lifted cards (and their glow ring / shadow) must paint above
   neighbouring cards instead of being clipped by them. */
body:not(.admin-body):not(.admin-login-body) .product-card:hover,
body:not(.admin-body):not(.admin-login-body) .product-card:focus-visible { z-index: 2; }

/* Gentle press feedback while the card link is being clicked. */
body:not(.admin-body):not(.admin-login-body) .product-card:active {
  transform: perspective(900px) translateY(-2px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition-duration: .12s;
}

/* Keyboard users get the same glow ring pointer users see. */
body:not(.admin-body):not(.admin-login-body) .product-card:focus-visible::before { opacity: 1; }

/* Product title eases to the brand teal on hover (mobile: no change). */
body:not(.admin-body):not(.admin-login-body) .product-card .product-card-body h3 { transition: color .3s ease; }
body:not(.admin-body):not(.admin-login-body) .product-card:hover .product-card-body h3,
body:not(.admin-body):not(.admin-login-body) .product-card:focus-visible .product-card-body h3 { color: var(--navy); }

/* ---- Reduced motion: new effects switch off, content stays identical ---- */
@media (prefers-reduced-motion: reduce) {
  .category-card, .home .category-card,
  .product-card .product-card-body h3,
  .product-card-img, .product-card-img img,
  .lm-card img, .option-card { transition: none; }
  .category-card:hover, .home .category-card:hover,
  .lm-card.is-front:hover img,
  .product-card:hover .product-card-img img,
  .option-card:hover, .option-card:active { transform: none; }
  body:not(.admin-body):not(.admin-login-body) .product-card:active { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
}

/* ============================================================
   Winter Collection promo card (homepage lm-colors section).
   Takes over the floating-card tilt from .lm-chart img so the
   image and its text overlay tilt together as one card.
   ============================================================ */
.lm-chart .lm-winter-card { display: block; position: relative; border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 70px -30px rgba(10, 42, 44, .55);
  transform: rotateY(-14deg) rotateX(4deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1);
  -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.lm-chart:hover .lm-winter-card, .lm-chart .lm-winter-card:focus-visible { transform: rotateY(0) rotateX(0) scale(1.02); }
.lm-chart .lm-winter-card:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.lm-chart .lm-winter-card img { display: block; width: 100%; height: auto; border-radius: 0; background: none; box-shadow: none; transform: none; transition: none; }
.lm-winter-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 96px 30px 28px; color: #fff;
  background: linear-gradient(180deg, rgba(5, 25, 27, 0) 0%, rgba(5, 25, 27, .38) 30%, rgba(5, 25, 27, .9) 100%); }
.lm-winter-badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #062523; background: var(--aqua); }
.lm-winter-title { font-size: clamp(22px, 2.6vw, 33px); font-weight: 800; line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.lm-winter-sub { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); max-width: 40ch; }
.lm-winter-cta { margin-top: 8px; display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; background: #fff; color: var(--navy-dark);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); transition: background .25s ease; }
.lm-winter-card:hover .lm-winter-cta { background: var(--aqua); }
@media (max-width: 600px) {
  .lm-winter-overlay { padding: 64px 20px 20px; gap: 6px; }
  .lm-winter-sub { font-size: 13.5px; }
  .lm-winter-cta { margin-top: 6px; padding: 10px 17px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-chart .lm-winter-card { transition: none; transform: none; }
  .lm-chart:hover .lm-winter-card { transform: none; }
  .lm-winter-cta { transition: none; }
}
