/* ==========================================================================
   MEMZ — luxury layer (loaded after app.css)
   Quiet confidence: light serif display type, hairlines, generous space, staged product scenes.
   Palette stays strictly on-brand: Burgundy #6C141E · Cream #F5DABE · Deep Green #0F3C39
   ========================================================================== */
:root {
  --font-display: "Cormorant Garamond", "Fraunces", Georgia, serif;
  --sand: #f6efe7;
  --sand-2: #efe5d9;
  --hair: #e8ddd0;
  --container: 1360px;
}

body { font-size: 15px; letter-spacing: .005em; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.container { max-width: var(--container); padding-inline: clamp(16px, 4.2vw, 72px); }

/* ---------- Utility strip + header ---------- */
.utility { background: var(--sand); color: var(--green); font-size: 12.5px; }
.utility-in { display: flex; align-items: center; gap: 28px; padding-block: 9px; }
.utility-in > span { display: inline-flex; align-items: center; gap: 8px; }
.utility .icon { color: var(--burgundy); }
.utility .deliver-to { color: var(--muted); }
.utility .deliver-to b { color: var(--burgundy); font-weight: 600; }

.site-header { background: #fff; backdrop-filter: none; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--hair); box-shadow: 0 6px 24px rgba(58, 10, 17, .05); }
.header-main { grid-template-columns: 1fr auto 1fr; padding-block: 16px; gap: 16px; }
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 6px; }
.hdr-right { justify-content: flex-end; }
.hdr-btn { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 0; background: transparent; color: var(--burgundy); font-size: 14px; font-weight: 500; border-radius: 999px; transition: background .2s; }
.hdr-btn:hover { background: var(--sand); }
.brand { display: block; }
.brand img { height: 42px; }
.bag-wrap { position: relative; display: inline-flex; }
.bag-count { position: absolute; top: -6px; right: -9px; font-style: normal; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--burgundy); color: var(--cream-100); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.menu-panel { border-radius: 14px; border-color: var(--hair); }

.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--hair); box-shadow: 0 24px 40px rgba(58, 10, 17, .08); padding-block: 28px 32px; animation: fade .2s; }
.search-big { display: flex; align-items: center; gap: 16px; border-bottom: 1.5px solid var(--burgundy); padding-bottom: 10px; color: var(--burgundy); }
.search-big input { flex: 1; border: 0; background: transparent; font: 500 clamp(1.4rem, 3vw, 2.1rem) var(--font-display); color: var(--burgundy); outline: none; min-width: 0; }
.search-big input::placeholder { color: #b8a39a; }
.search-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.search-chips a { padding: 8px 18px; border-radius: 999px; background: var(--sand); color: var(--burgundy); font-size: 13.5px; font-weight: 500; }
.search-chips a:hover { background: var(--cream); }

/* Drawer */
.drawer { width: min(92vw, 420px); padding: 0; background: #fff; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--hair); }
.drawer-head img { height: 34px; }
.drawer nav { padding: 8px 24px 40px; }
.drawer-label { margin: 26px 0 6px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.drawer .drawer-link { display: flex; justify-content: space-between; align-items: center; border: 0; border-bottom: 1px solid var(--hair); padding: 15px 0; font: 500 1.55rem var(--font-display); color: var(--burgundy); }
.drawer .drawer-link.small { font: 500 1rem var(--font-body); padding: 11px 0; color: var(--ink); }
.drawer .drawer-link:hover { color: var(--green); padding-left: 6px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { margin-top: 6px; }
.hero-track { min-height: clamp(440px, 58vh, 620px); border-radius: 20px; }
.hero-slide { display: flex; align-items: center; justify-content: flex-end; padding: 0 clamp(24px, 7vw, 120px); transition: opacity .9s ease, visibility .9s; }
.hero-slide.active { position: relative; min-height: inherit; }
.hero-slide.burgundy { background: linear-gradient(115deg, #3a0a11 0%, var(--burgundy) 52%, #8a1d2a 100%); }
.hero-slide.green { background: linear-gradient(115deg, #071f1e 0%, var(--green) 52%, #1b5a55 100%); }
.hero-slide.cream { background: linear-gradient(115deg, #efc9a0 0%, var(--cream) 50%, #fbebd7 100%); color: var(--burgundy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58, 10, 17, 0) 30%, rgba(58, 10, 17, .62)); }
.hero-mark { position: absolute; left: -3%; top: 4%; width: 54%; opacity: .07; pointer-events: none; }
.hero-slide.cream .hero-mark { filter: invert(1) sepia(1) hue-rotate(300deg) saturate(3); opacity: .08; }
.hero-arch { position: absolute; left: clamp(24px, 9%, 150px); bottom: 0; width: clamp(220px, 32%, 400px); height: 84%; border: 1px solid rgba(245, 218, 190, .4); border-bottom: 0; border-radius: 999px 999px 0 0; display: grid; place-items: center; color: var(--cream); background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0)); }
.hero-arch::before { content: ""; position: absolute; inset: 14px 14px 0; border: 1px solid rgba(245, 218, 190, .22); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hero-arch svg { width: 58%; stroke-width: .9; animation: drift 7s ease-in-out infinite; }
.hero-slide.cream .hero-arch { border-color: rgba(108, 20, 30, .3); color: var(--burgundy); background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0)); }
.hero-slide.cream .hero-arch::before { border-color: rgba(108, 20, 30, .16); }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-copy { position: relative; z-index: 2; max-width: 520px; text-align: left; }
.hero-copy h2 { font-size: clamp(2.7rem, 5.2vw, 4.9rem); font-weight: 500; line-height: 1.04; color: inherit; margin: 0 0 18px; }
.hero-copy p { font-size: 1.08rem; line-height: 1.6; opacity: .88; margin: 0 0 30px; max-width: 42ch; }
.btn-pill { display: inline-flex; align-items: center; padding: 16px 36px; border-radius: 999px; background: #fff; color: var(--burgundy); font-weight: 600; font-size: 15px; transition: transform .2s, box-shadow .2s; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.hero-arrow { background: #fff; width: 44px; height: 44px; display: grid; place-items: center; color: var(--burgundy); }
.hero-arrow .flip { transform: rotate(180deg); }
.hero-ctrl { position: absolute; right: 28px; bottom: 24px; z-index: 4; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; border-radius: 999px; background: rgba(58, 10, 17, .38); backdrop-filter: blur(8px); }
.hero-lines { display: flex; gap: 8px; }
.hero-lines button { position: relative; width: 44px; height: 14px; padding: 0; border: 0; background: transparent; }
.hero-lines button::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(255, 255, 255, .4); border-radius: 2px; }
.hero-lines button i { position: absolute; left: 0; top: 6px; height: 2px; width: 0; background: #fff; border-radius: 2px; }
.hero-lines button.on i { animation: fill 6s linear forwards; }
@keyframes fill { to { width: 100%; } }
.hero-pause { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; display: grid; place-items: center; padding: 0; }
.hero-pause:hover { background: rgba(255, 255, 255, .2); }
.hero-dots { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(36px, 5vw, 64px) 0; }
.section-head { align-items: center; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(2rem, 3.1vw, 2.9rem); margin: 0; }
.pill-link { display: inline-flex; padding: 10px 22px; border-radius: 999px; background: var(--sand); color: var(--burgundy); font-size: 13.5px; font-weight: 600; transition: .2s; white-space: nowrap; }
.pill-link:hover { background: var(--cream); }

/* Carousel */
.rail { grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; padding: 2px 0 6px; }
.rail-wrap { position: relative; }
.rail-progress { position: relative; height: 2px; background: var(--hair); margin-top: 22px; border-radius: 2px; }
.rail-progress i { position: absolute; left: 0; top: 0; height: 100%; width: 25%; background: var(--burgundy); border-radius: 2px; transition: left .12s linear; }
.rail-btn { top: 36%; display: grid; place-items: center; width: 46px; height: 46px; border: 0; box-shadow: 0 6px 22px rgba(58, 10, 17, .16); opacity: 0; transition: opacity .25s, background .2s; }
.rail-wrap:hover .rail-btn { opacity: 1; }
.rail-btn.l { left: -22px; } .rail-btn.r { right: -22px; }

/* Product card */
.pcard { border-radius: 0; background: transparent; }
.pcard:hover { transform: none; box-shadow: none; }
.pcard-media { aspect-ratio: 1 / 1; border-radius: 14px; background: var(--sand); }
.pcard:hover .pimg, .pcard:hover .scene { transform: scale(1.035); }
.pimg, .scene { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tag { top: 12px; left: auto; right: 12px; border-radius: 4px; background: rgba(108, 20, 30, .82); color: var(--cream-100); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; padding: 4px 10px; }
.tag.sale { background: var(--green); }
.pcard-body { padding: 14px 2px 0; gap: 3px; }
.price { gap: 6px; margin: 0; align-items: baseline; }
.price small { font-size: 11px; font-weight: 700; color: var(--burgundy); letter-spacing: .04em; }
.price b { font-size: 18px; font-weight: 700; color: var(--burgundy); letter-spacing: 0; }
.price s { font-size: 13px; color: var(--muted); }
.pcard-name { font-size: 14px; font-weight: 400; color: var(--ink); min-height: 2.7em; line-height: 1.35; }
.pcard-name:hover { color: var(--burgundy); }
.add-fab { right: 12px; bottom: 12px; width: 42px; height: 42px; display: grid; place-items: center; }
.soldout { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 36px 22px; }

/* Staged placeholder scene (until real photography is uploaded) */
.scene { position: relative; width: 100%; height: 100%; overflow: hidden; display: block; background: var(--sand); }
.scene.t2 { background: #f4e6e3; } .scene.t3 { background: #e6eeeb; } .scene.t4 { background: #f8ead8; }
.scene::before { content: ""; position: absolute; inset: auto 0 0; height: 48%; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(108, 20, 30, .06)); }
.scene-glyph { position: absolute; left: 50%; transform: translateX(-50%); bottom: 24%; width: 52%; height: auto; color: var(--burgundy); stroke-width: 1.1; z-index: 2; }
.scene.t3 .scene-glyph { color: var(--green); }
.scene-plinth { position: absolute; left: 24%; right: 24%; bottom: 0; height: 32%; border-radius: 4px 4px 0 0; background: repeating-linear-gradient(90deg, #e1c19d 0 7px, #cfa982 7px 10px); z-index: 1; }
.scene-plinth::before { content: ""; position: absolute; left: -3%; right: -3%; top: -9px; height: 18px; border-radius: 50%; background: #fbf5ec; box-shadow: 0 2px 4px rgba(58, 10, 17, .12); }
.scene.t3 .scene-plinth { background: repeating-linear-gradient(90deg, #cde0db 0 7px, #b8d0ca 7px 10px); }

/* Bubbles + arches */
.bubble-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 26px 20px; }
.bubble { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.bubble-disc { width: min(100%, 150px); aspect-ratio: 1; border-radius: 50%; background: #efe7de; display: grid; place-items: center; overflow: hidden; transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .3s; }
.bubble-disc img { width: 100%; height: 100%; object-fit: cover; }
.bubble-disc .glyph { width: 50%; color: var(--burgundy); stroke-width: 1.2; transition: transform .4s; }
.bubble:hover .bubble-disc { background: var(--cream); transform: translateY(-4px); }
.bubble:hover .glyph { transform: scale(1.08); }
.bubble-label { font-size: 15px; color: var(--green); font-weight: 500; }
.arches .bubble-disc { width: min(100%, 158px); aspect-ratio: .86; border-radius: 999px 999px 0 0; align-items: end; padding-bottom: 14%; background: linear-gradient(180deg, var(--sand), var(--sand-2)); }
.arches .bubble-disc .glyph { width: 52%; }

/* Stories */
.story-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story { position: relative; min-height: clamp(360px, 40vw, 500px); border-radius: 14px; overflow: hidden; padding: 30px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.story:hover { transform: translateY(-4px); }
.story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(20, 4, 8, .55)); }
.story-glyph { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); width: 46%; height: auto; stroke-width: .7; opacity: .55; z-index: -1; transition: transform .8s; }
.story:hover .story-glyph { transform: translateX(-50%) scale(1.06) rotate(-2deg); }
.story h3 { color: inherit; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.08; margin: 0 0 16px; max-width: 14ch; }
.s-burgundy { background: radial-gradient(90% 70% at 50% 0%, #8a1d2a, var(--burgundy) 60%, #3a0a11); }
.s-green { background: radial-gradient(90% 70% at 50% 0%, #1b5a55, var(--green) 60%, #071f1e); }
.s-cream { background: radial-gradient(90% 70% at 50% 0%, #fbebd7, var(--cream) 60%, #e8b98f); color: var(--burgundy); }
.s-cream::after { background: none; }
.btn-outline-light { display: inline-block; padding: 8px 22px; border: 1px solid currentColor; border-radius: 999px; font-size: 13.5px; font-weight: 500; transition: .2s; }
.story:hover .btn-outline-light { background: #fff; color: var(--burgundy); border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); margin-top: clamp(56px, 8vw, 110px); }
.footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-block: 72px 56px; }
.footer-brand img { height: auto; width: min(100%, 300px); margin-bottom: 18px; }
.footer-brand p { color: var(--cream); opacity: .75; font-size: 14.5px; line-height: 1.65; max-width: 34ch; }
.footer-top h4 { font-size: 12px; letter-spacing: .16em; color: rgba(245, 218, 190, .6); margin-bottom: 14px; }
.footer-top a { color: #fff; opacity: .9; padding: 5px 0; font-size: 14.5px; }
.footer-top a:hover { opacity: 1; text-decoration: none; color: var(--cream); }
.footer-bottom { border-top-color: rgba(245, 218, 190, .18); align-items: center; padding-block: 22px; font-size: 13px; }
.footer-bottom .pay i { font-style: normal; border: 1px solid rgba(245, 218, 190, .4); border-radius: 6px; padding: 4px 12px; font-size: 12px; }
.to-top { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--green); display: grid; place-items: center; }
.to-top .up { transform: rotate(-90deg); }

/* ---------- Inner pages in the same voice ---------- */
.page-head h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); }
.breadcrumbs { font-size: 12.5px; letter-spacing: .04em; }
.filters { background: var(--sand); border-radius: 14px; }
.filters h4 { font: 600 11.5px var(--font-body); letter-spacing: .16em; }
.filter-list a { border-radius: 8px; }
.filter-list a.on { background: var(--burgundy); }
.chip { border-radius: 999px; background: var(--sand); }
.pdp-media { border-radius: 16px; background: var(--sand); }
.pdp h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.05; }
.pdp .price b { font-size: 2rem; } .pdp .price small { font-size: 14px; }
.perks { background: var(--sand); border-radius: 14px; }
.panel { border-radius: 14px; border-color: var(--hair); }
.panel.soft { background: var(--sand); }
.cart-thumb { border-radius: 10px; }
.cart-thumb .scene-glyph { width: 52%; }
.auth-card { border-radius: 20px; border-color: var(--hair); box-shadow: 0 30px 60px rgba(58, 10, 17, .08); }
.thumb .scene::before, .thumb .scene-plinth::before { display: none; }
.thumb .scene-glyph { width: 56%; bottom: 14%; } .thumb .scene-plinth { height: 22%; left: 18%; right: 18%; }
.btn { letter-spacing: .01em; }
.btn-primary { box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rail { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .utility-in > span:not(:first-child):not(.spacer) { display: none; }
  .utility .deliver-to { display: inline-flex !important; margin-left: auto; }
  .hdr-btn span:not(.bag-wrap) { display: none; }
  .brand img { height: 34px; }
  .hero-slide { justify-content: center; padding: 56px 24px 90px; text-align: center; }
  .hero-copy { text-align: center; } .hero-copy p { margin-inline: auto; }
  .hero-arch { display: none; }
  .hero-arrow { display: none; }
  .hero-ctrl { right: 50%; transform: translateX(50%); }
  .story-row { grid-template-columns: 1fr; }
  .story { min-height: 320px; }
  .rail-btn { display: none; }
}
@media (max-width: 640px) {
  .rail { grid-auto-columns: 62%; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; }
  .bubble-row { grid-template-columns: repeat(3, 1fr); }
  .utility .deliver-to { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .hero-arch svg { animation: none; } }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk .icon { color: var(--burgundy); flex: none; margin-top: 1px; }

/* ---------- Checkout phone field + call-center cues ---------- */
.phone-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.phone-input:focus-within { border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(108, 20, 30, .12); }
.phone-input .prefix { display: grid; place-items: center; padding: 0 14px; background: var(--sand); color: var(--burgundy); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.phone-input input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; letter-spacing: .04em; }
.tel { color: var(--burgundy); font-weight: 600; white-space: nowrap; }
.tel:hover { text-decoration: underline; }
.tbl tr.needs-call td:first-child { box-shadow: inset 3px 0 0 var(--burgundy); }
.call-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--sand); }
.occasion-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: var(--sand); color: var(--burgundy); margin: 4px 0 8px; }
.due { display: inline-block; margin-top: 3px; padding: 2px 9px; border-radius: 999px; background: var(--burgundy); color: var(--cream-100); font-size: .72rem; font-weight: 600; }
.occasion-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); }
.occasion-row .icon { color: var(--burgundy); }
.occasion-row b { margin-left: auto; color: var(--burgundy); }
