/* ═══════════════════════════════════════════════════════════════
   WARMÉ — Motion & Mobile-First Luxury Upgrade Layer
   ─ Top bar alignment, MISA-style editorial story, mobile pill nav,
     bottom-sheet product modal, quick-add cards & floating bag bar
   ═══════════════════════════════════════════════════════════════ */

/* ────── 1. TOP BAR FIX — proper 3-column alignment ────── */
html {
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

/* Desktop: Logo left, Nav center, Tools right */
@media (min-width: 801px) {
  .bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 78px;
    padding: 0 5%;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    justify-self: start;
  }

  .brand img {
    margin-left: 0
  }

  .nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .tools {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

/* Mobile: Compact header + smooth pill navigation bar */
@media (max-width: 800px) {
  .menu {
    display: none !important
  }

  .bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 54px;
    padding: 4px 4% 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    text-align: left;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .brand img {
    margin: 0;
    width: 22px;
    height: 22px;
    border-radius: 4px;
  }

  .brand small {
    display: inline-block;
    margin-top: 0;
    margin-left: 4px;
    font-size: 7.5px;
    letter-spacing: .18em;
    opacity: .75;
  }

  .tools {
    grid-column: 2;
    grid-row: 1;
    gap: 4px;
  }

  .icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    transition: background .2s ease;
  }

  .icon:active {
    background: #efe3d2;
  }

  .nav {
    display: flex !important;
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 7px 4% 8px;
    margin: 4px -4% 0;
    border-top: 1px solid var(--line);
    background: #fffdf8f5;
  }

  .nav::-webkit-scrollbar {
    display: none
  }

  .nav a {
    flex: 0 0 auto;
    padding: 6px 13px;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: .09em;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #5c4b3e;
    transition: all .22s ease;
  }

  .nav a.active {
    background: var(--ink);
    color: #fff8ed;
    border-color: var(--ink);
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 25
  }
}

.top-nav-note {
  display: none
}


/* ────── 2. 3D TRANSFORM BASE — shared depth system ────── */
.card,
.feature,
.giftmedia,
.storyvisual,
.frags a,
.story-chapter,
.story-hero-banner {
  transform-style: preserve-3d;
}

/* ────── 3. CARD ENTRANCE — staggered rise ────── */
.card.pop-in {
  animation: warmeRise .7s cubic-bezier(.2, .8, .2, 1) both
}

.card.pop-in:nth-child(2) {
  animation-delay: .07s
}

.card.pop-in:nth-child(3) {
  animation-delay: .14s
}

.card.pop-in:nth-child(4) {
  animation-delay: .21s
}

@keyframes warmeRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.975)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

/* ────── 4. CARD HOVER, SPOTLIGHT & QUICK-ADD LAYOUT ────── */
.card {
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid #eadcc9;
  border-radius: 14px;
  padding: 11px;
  box-shadow: 0 6px 20px rgba(42, 25, 15, 0.04);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-8px) rotateX(1.5deg) rotateY(-1deg);
  box-shadow: 0 20px 38px rgba(42, 25, 15, 0.11);
  border-color: #d1b894;
}

.card .media {
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  box-shadow: inset 0 0 0 1px rgba(42, 25, 15, 0.06);
  transition: box-shadow .3s ease;
}

.card .media img {
  filter: contrast(1.02) saturate(1.02);
}

.card:hover .media {
  box-shadow: inset 0 0 0 1px rgba(167, 123, 67, 0.4);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 5px 4px;
}

.card-notes {
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f2e7d8;
}

.card-footer b {
  font-size: 15px;
  letter-spacing: -.01em;
}

.quick-add {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.quick-add:hover,
.quick-add:active {
  background: var(--ink);
  color: #fff8ed;
}

.quick-add:active {
  transform: scale(.96);
}

/* Single-filtered Spotlight Card & 2-item Gift Grid */
.grid[data-count="1"] {
  grid-template-columns: minmax(0, 780px) !important;
  justify-content: start;
}

.card.card-spotlight {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 26px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border-color: #d6be9c;
  box-shadow: 0 18px 40px rgba(42, 25, 15, 0.09);
}

.card.card-spotlight .card-body {
  padding: 10px 12px 10px 4px;
}

.card.card-spotlight h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 6px 0 4px;
}

.card-spotlight-desc {
  margin: 12px 0 6px;
  color: #5c4e41;
  font-size: 13.5px;
  line-height: 1.65;
}

.card-spotlight-notes {
  margin: 10px 0 14px !important;
}

@media (min-width: 801px) {
  .grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 380px));
    gap: 26px;
  }
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.reset-mood-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--gold);
  background: #fdf6ec;
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: all .2s ease;
}

.reset-mood-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff8ed;
}

/* ────── 5. FILTER PILLS (Candles & Collections) ────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-pill {
  border: 1px solid #dccbb5;
  background: #fffaf2;
  color: #5c4b3e;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all .2s ease;
}

.filter-pill:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff8ed;
}

/* ────── 6. DEPTH REVEAL — scroll entrance ────── */
.feature,
.giftmedia,
.storyvisual {
  transition: transform .65s cubic-bezier(.2, .75, .2, 1), opacity .65s ease;
}

.depth-in {
  opacity: 0;
  transform: perspective(1000px) translateY(35px) rotateX(2.5deg);
}

.depth-in.is-visible {
  opacity: 1;
  transform: perspective(1000px) translateY(0) rotateX(0);
}

/* ────── 7. 4-FRAGRANCE MOOD TILES ("Four ways to unwind") ────── */
.frags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.frags a {
  position: relative;
  min-height: 215px;
  padding: 24px 22px 20px;
  border-radius: 16px;
  background: #fffaf2;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(42, 25, 15, 0.06);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), box-shadow .32s ease, border-color .25s ease;
}

.frags a .frag-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.frags a .frag-eyebrow {
  font: 600 9.5px/1.2 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .84;
}

.frags a .frag-badge {
  font: 600 8.5px/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid currentColor;
  opacity: .75;
}

.frags a .frag-body {
  margin: 4px 0;
}

.frags a .frag-title {
  font: 500 clamp(21px, 2vw, 25px)/1.14 var(--serif);
  letter-spacing: -.01em;
}

.frags a .frag-sub {
  font: 500 11.5px/1.4 var(--sans);
  opacity: .9;
  margin-top: 6px;
}

.frags a .frag-accord {
  font: 400 11px/1.45 var(--sans);
  opacity: .72;
  margin-top: 5px;
}

.frags a .frag-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font: 600 9.5px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .88;
}

.frags a .frag-cta span {
  transition: transform .25s ease;
}

.frags a:hover .frag-cta span {
  transform: translateX(4px);
}

.frags a:nth-child(1) {
  background: #fdf7ec;
  color: var(--ink);
  border-color: #dec9ac;
}

.frags a:nth-child(1) .frag-badge {
  background: rgba(167, 123, 67, 0.1);
}

.frags a:nth-child(1) .frag-cta {
  border-top-color: rgba(42, 25, 15, 0.12);
  color: #7d5829;
}

.frags a:nth-child(2) {
  background: #583623;
  color: #fdf5ea;
  border-color: #583623;
}

.frags a:nth-child(3) {
  background: #3d5443;
  color: #fff8ee;
  border-color: #3d5443;
}

.frags a:nth-child(4) {
  background: #1b2a21;
  color: #f6e7c9;
  border-color: #1b2a21;
}

.frags a:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(42, 25, 15, 0.15);
}

.frags a.active {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(42, 25, 15, 0.18);
}

/* ────── 8. HERO SLIDE — crisp editorial presentation ────── */
.hero .slide img {
  transform: scale(1.005);
  transition: transform 6s cubic-bezier(.22, 1, .36, 1);
  filter: contrast(1.03) saturate(1.03);
}

.hero .slide.is-current img {
  transform: scale(1.04);
}

.hero .slide .hero-copy>div {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease .15s, transform .65s ease .15s;
}

.hero .slide.is-current .hero-copy>div {
  opacity: 1;
  transform: none;
}


/* ═══════════════════════════════════════════════════════════════
   9. MISA-STYLE STORY PAGE — Editorial Z-Pattern Layout
   ═══════════════════════════════════════════════════════════════ */

.story-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.story-hero-banner {
  position: relative;
  width: 100%;
  height: min(46vh, 460px);
  min-height: 280px;
  overflow: hidden;
}

.story-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: brightness(.93);
  transition: transform 8s ease;
}

.story-hero-banner.in-view img {
  transform: scale(1.04);
}

.story-intro {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) 6% clamp(44px, 6vw, 85px);
  text-align: center;
}

.story-intro h1 {
  margin: 0;
  font: 500 clamp(36px, 5vw, 60px)/1.08 var(--serif);
  letter-spacing: -.02em;
  color: var(--ink);
}

.story-intro p {
  margin: 20px auto 0;
  max-width: 550px;
  color: #74675a;
  font-size: 16px;
  line-height: 1.85;
}

.story-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  margin: 0;
  min-height: 440px;
}

.story-chapter .story-text {
  padding: clamp(36px, 5vw, 80px) clamp(28px, 5vw, 72px);
}

.story-chapter .story-text h2 {
  margin: 0;
  font: 500 clamp(26px, 3.2vw, 44px)/1.12 var(--serif);
  letter-spacing: -.01em;
  color: var(--ink);
}

.story-chapter .story-text p {
  margin: 16px 0 0;
  color: #66594e;
  font-size: 15px;
  line-height: 1.85;
  max-width: 480px;
}

.story-chapter figure {
  margin: 0;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  max-height: 480px;
}

.story-chapter figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}

.story-chapter.reverse {
  direction: rtl;
}

.story-chapter.reverse>* {
  direction: ltr;
}

.story-chapter:hover figure img {
  transform: scale(1.035);
}

.story-chapter-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .75s cubic-bezier(.2, .8, .2, 1), transform .75s cubic-bezier(.2, .8, .2, 1);
}

.story-chapter-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-seal {
  text-align: center;
  padding: clamp(36px, 5vw, 70px) 0;
  color: var(--gold);
  font: 38px/1 var(--serif);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .6s ease, transform .6s ease;
}

.story-seal.is-visible {
  opacity: 1;
  transform: scale(1);
}


/* ═══════════════════════════════════════════════════════════════
   10. COLLECTION DEPTH CARDS & MODAL NOTES
   ═══════════════════════════════════════════════════════════════ */
.collection-grid .card {
  will-change: transform;
}

.collection-grid .card.depth-card {
  opacity: 0;
  transform: perspective(1100px) translateY(42px) rotateX(5deg) scale(.98);
}

.collection-grid .card.depth-card.depth-show {
  opacity: 1;
  transform: perspective(1100px) translateY(0) rotateX(0) scale(1);
  transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

.modal-handle {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #d9c8b2;
  margin: 0 auto 12px;
}

/* Laptop 2-column Product Modal */
.dialog.product-dialog {
  max-width: 720px;
  width: 100%;
  padding: 26px;
  text-align: left;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(30, 18, 12, 0.28);
  position: relative;
}

.dialog.product-dialog .close {
  position: absolute;
  top: 16px;
  right: 18px;
  float: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f6ede0;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 22px;
  z-index: 2;
  transition: background .2s ease;
}

.dialog.product-dialog .close:hover {
  background: #eadbc6;
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  align-items: center;
}

.modal-media {
  border-radius: 12px;
  overflow: hidden;
  background: #efe3d2;
  aspect-ratio: 3 / 4;
  box-shadow: inset 0 0 0 1px rgba(42, 25, 15, 0.08);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.modal-info h2 {
  font: 500 clamp(26px, 3vw, 34px)/1.12 var(--serif);
  margin: 4px 0 6px;
}

.modal-desc {
  margin: 10px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #5c4e41;
}

.notes-box {
  background: #f8efe2;
  border: 1px solid #e6d7c3;
  border-radius: 10px;
  padding: 11px 14px;
  margin: 14px 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  color: #4f3f32;
}

.notes-box div+div {
  margin-top: 4px;
}

.notes-box b {
  color: var(--ink);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 4px;
}

/* Floating Mobile Bag Bar */
.mobile-bag-bar {
  display: none;
}

/* ────── 11. HOME SMOOTH & CART DRAWER ────── */
.home-smooth .hero,
.home-smooth .benefits,
.home-smooth section {
  animation: pageIn .55s ease both;
}

@keyframes pageIn {
  from {
    opacity: .01;
    transform: translateY(9px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.panel {
  box-shadow: -20px 0 60px #2a190f1a;
}

.drawer.open .panel {
  animation: bagEnter .35s cubic-bezier(.2, .8, .2, 1);
}

@keyframes bagEnter {
  from {
    transform: translateX(100%)
  }

  to {
    transform: translateX(0)
  }
}

.panel h2 {
  font: 500 34px var(--serif)
}

.item {
  transition: background .2s ease
}

.item:hover {
  background: #fcf5e9
}


/* ═══════════════════════════════════════════════════════════════
   12. ULTRA-OPTIMISED MOBILE EXPERIENCE (<= 800px)
   ─ Contained visuals, 2x2 grid for the 4 fragrances, horizontal
     filter pills, bottom-sheet modal & floating sticky bag bar
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 800px) {

  body {
    padding-bottom: 68px;
    /* Space for floating bag bar */
  }

  /* --- Stacked Editorial Mobile Hero: 100% uncropped 16:9 photo on top + luxury copy panel below --- */
  .hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 10px 4% 0;
    border-radius: 18px;
    background: #1e110a;
    box-shadow: 0 14px 32px rgba(42, 25, 15, 0.15);
    overflow: hidden;
  }

  .slides {
    height: auto !important;
    align-items: stretch;
  }

  .slide {
    display: flex;
    flex-direction: column;
    height: auto !important;
  }

  .hero .slide img,
  .hero .slide.is-current img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    transform: none !important;
    filter: contrast(1.03) saturate(1.03);
    display: block;
  }

  .hero-copy {
    position: relative !important;
    inset: auto !important;
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 18px 5.5% 54px !important;
    background: linear-gradient(180deg, #26160d 0%, #1c1009 100%) !important;
    border-top: 1px solid rgba(229, 190, 131, 0.2);
  }

  .hero-copy div {
    max-width: 100% !important;
    width: 100%;
  }

  .hero .eyebrow {
    margin: 0 0 6px;
    font-size: 9px;
    letter-spacing: .16em;
    color: #e5be83;
  }

  .hero h1 {
    font-size: clamp(24px, 6.4vw, 31px) !important;
    line-height: 1.08;
  }

  .hero p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.5;
    margin: 7px 0 0;
    max-width: 100%;
    color: #efe1cf;
  }

  .hero .btn {
    margin-top: 12px;
    padding: 9px 16px;
    font-size: 9.5px;
    border-radius: 999px;
  }

  .dots {
    bottom: 16px;
    transform: translateX(-50%)
  }

  .arrows {
    right: 4.5%;
    bottom: 11px;
    gap: 6px
  }

  .arrows button {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 50%
  }

  .pause {
    left: 4.5%;
    bottom: 12px;
    padding: 6px 11px;
    font-size: 8.5px;
    border-radius: 999px
  }

  /* --- Compact 2x2 benefits bar --- */
  .benefits {
    margin: 12px 4% 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2d2bc;
  }

  .benefits div {
    padding: 11px 8px;
    font-size: 10px;
    border-bottom: 1px solid #e2d2bc;
  }

  .benefits div:nth-child(3),
  .benefits div:nth-child(4) {
    border-bottom: 0;
  }

  .benefits b {
    font-size: 9px;
    margin-bottom: 2px;
  }

  /* --- Compact sections & headers on phone (no double padding on .fragrance) --- */
  section:not(.fragrance) {
    padding: 36px 4% !important;
  }

  section.fragrance {
    padding: 0 !important;
    margin-top: 14px;
  }

  .fragrance>.fragrance-inner,
  .fragrance>div {
    padding: 34px 4% !important;
  }

  .head {
    margin-bottom: 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .head h1,
  .head h2 {
    font-size: clamp(24px, 6.2vw, 31px) !important;
  }

  .head p {
    font-size: 12.5px;
    line-height: 1.55;
    margin-top: 6px;
  }

  /* --- Horizontal scrollable filter pills on phone --- */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4% 16px;
    padding: 2px 4% 6px;
  }

  .filter-bar::-webkit-scrollbar {
    display: none
  }

  .filter-pill {
    flex: 0 0 auto;
    padding: 7px 13px;
    font-size: 9.5px;
  }

  /* --- Optimised 2x2 product grid with uncropped 3:4 candle imagery --- */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px !important;
  }

  .grid[data-count="1"] {
    grid-template-columns: 1fr !important;
  }

  .card {
    padding: 8px;
    border-radius: 13px;
  }

  .card.card-spotlight {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .card .media {
    aspect-ratio: 3 / 4;
    border-radius: 9px;
  }

  .card .tag {
    top: 7px;
    left: 7px;
    padding: 3.5px 7px;
    font-size: 7.5px;
  }

  .card-body {
    padding: 9px 3px 2px;
  }

  .card h3 {
    margin: 3px 0 0;
    font-size: clamp(13.5px, 3.8vw, 15.5px);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .card-notes {
    font-size: 8px;
    letter-spacing: .04em;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card .muted {
    font-size: 9.5px;
    margin-top: 2px;
    line-height: 1.35;
  }

  .card-footer {
    padding-top: 8px;
    margin-top: 8px;
    gap: 4px;
  }

  .card-footer b {
    font-size: 13px;
  }

  .quick-add {
    padding: 5px 9px;
    font-size: 8px;
  }

  /* --- Contained Feature blocks on phone (exact 16:9 ratio so all 4 candles/boxes fit uncropped) --- */
  .feature {
    grid-template-columns: 1fr;
    margin-top: 24px;
    border-radius: 14px;
    overflow: hidden;
  }

  .feature img {
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center center;
  }

  #contact .feature img {
    aspect-ratio: 4 / 3.5 !important;
    object-position: center 55%;
  }

  .feature div,
  .feature .feature-content {
    padding: 18px 16px !important;
  }

  .feature .feature-media {
    padding: 0 !important;
  }

  .feature h3 {
    font-size: clamp(20px, 5.4vw, 25px);
  }

  .feature p:not(.eyebrow) {
    font-size: 12.5px;
    margin: 7px 0 0;
    line-height: 1.55;
  }

  /* --- 2x2 Fragrance Mood Grid on phone ("Four ways to unwind") --- */
  .frags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .frags a {
    min-height: 148px;
    padding: 14px 13px 12px;
    border-radius: 13px;
    gap: 8px;
  }

  .frags a .frag-eyebrow {
    font-size: 8px;
    letter-spacing: .11em;
  }

  .frags a .frag-badge {
    font-size: 7.5px;
    padding: 3px 6px;
  }

  .frags a .frag-title {
    font-size: 16.5px;
    line-height: 1.15;
  }

  .frags a .frag-sub {
    font-size: 10px;
    margin-top: 4px;
  }

  .frags a .frag-accord {
    font-size: 9.5px;
    line-height: 1.35;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .frags a .frag-cta {
    padding-top: 8px;
    font-size: 8.5px;
  }

  /* --- Contained Gift collage on phone --- */
  .gift {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .giftmedia {
    min-height: 235px !important;
    max-height: 250px !important;
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
  }

  .giftmedia img:first-child {
    width: 76% !important;
    height: 215px !important;
    border-radius: 12px;
    object-fit: cover;
  }

  .giftmedia img:last-child {
    width: 46% !important;
    height: 130px !important;
    border: 5px solid var(--cream);
    border-radius: 10px;
    object-fit: cover;
  }

  .gift h2 {
    font-size: clamp(24px, 6.2vw, 32px);
  }

  /* --- Contained Story page layout on phone (16:9 banner so all 4 candles fit) --- */
  .story-page {
    padding: 0 4% 20px;
  }

  .story-hero-banner {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 10px;
    border-radius: 14px;
  }

  .story-intro {
    margin: 0 auto;
    padding: 26px 2% 20px;
  }

  .story-intro h1 {
    font-size: clamp(26px, 6.8vw, 34px)
  }

  .story-intro p {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 10px
  }

  .story-chapter,
  .story-chapter.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: auto;
    margin-bottom: 18px;
    background: #fffaf2;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
  }

  .story-chapter figure {
    order: -1;
    aspect-ratio: 4 / 3.4;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .story-chapter:first-of-type figure {
    aspect-ratio: 16 / 9 !important;
  }

  .story-chapter figure img {
    object-position: center 45%;
  }

  .story-chapter .story-text {
    padding: 18px 16px 20px;
  }

  .story-chapter .story-text h2 {
    font-size: clamp(20px, 5.5vw, 26px)
  }

  .story-chapter .story-text p {
    font-size: 12.5px;
    line-height: 1.6;
    margin-top: 8px
  }

  /* --- Slide-Up Bottom Sheet Product Modal on Phone --- */
  .modal.open {
    align-items: end;
    padding: 0;
  }

  .dialog,
  .dialog.product-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 12px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    animation: sheetUp .28s cubic-bezier(.2, .8, .2, 1);
    text-align: left;
  }

  @keyframes sheetUp {
    from {
      transform: translateY(100%)
    }

    to {
      transform: translateY(0)
    }
  }

  .modal-handle {
    display: block;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-media {
    aspect-ratio: 3 / 3.4;
    max-height: 260px;
    border-radius: 12px;
  }

  .modal-media img {
    object-position: center 48%;
  }

  .dialog h2 {
    font-size: 22px;
    margin: 4px 0;
  }

  .dialog .btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 11px;
  }

  /* --- Floating Mobile Bag Bar (Thumb-Zone Checkout Access) --- */
  .mobile-bag-bar.visible {
    position: fixed;
    left: 4%;
    right: 4%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ink);
    color: #fff8ed;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(30, 18, 12, 0.32);
    animation: sheetUp .25s ease;
  }

  .mobile-bag-bar .mbb-info {
    font-size: 12px;
    font-weight: 500;
  }

  .mobile-bag-bar .mbb-info b {
    color: #f3d4a0;
    margin-right: 6px;
  }

  .mobile-bag-bar .mbb-cta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: #fbf1e2;
    color: var(--ink);
    padding: 7px 12px;
    border-radius: 999px;
  }

  /* --- Mobile Scroll Pop-Out Animation for Candle Cards --- */
  .card {
    --scroll-pop: 1;
    --scroll-lift: 0px;
    --scroll-glow: 0;
    opacity: 0;
    transform: perspective(800px) translateY(32px) scale(.91);
    will-change: transform, opacity, box-shadow;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, border-color .28s ease;
  }

  .card.mobile-tilt {
    opacity: 1;
    animation: mobilePopOut .72s cubic-bezier(.22, 1, .36, 1) var(--card-stagger, 0ms) both;
    transform: perspective(800px) translateY(var(--scroll-lift, 0px)) scale(var(--scroll-pop, 1));
    box-shadow: 0 calc(6px + var(--scroll-glow, 0) * 14px) calc(16px + var(--scroll-glow, 0) * 18px) rgba(42, 25, 15, calc(0.06 + var(--scroll-glow, 0) * 0.09));
    border-color: rgba(167, 123, 67, calc(0.22 + var(--scroll-glow, 0) * 0.38));
  }

  .card.mobile-tilt .media img {
    transform: scale(calc(1 + var(--scroll-glow, 0) * 0.035));
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  }

  .card:active {
    transform: scale(.98) !important;
  }

  @keyframes mobilePopOut {
    0% {
      opacity: 0;
      transform: perspective(800px) translateY(34px) rotateX(4deg) scale(.9);
    }

    65% {
      opacity: 1;
      transform: perspective(800px) translateY(-4px) rotateX(0deg) scale(1.022);
    }

    100% {
      opacity: 1;
      transform: perspective(800px) translateY(var(--scroll-lift, 0px)) rotateX(0deg) scale(var(--scroll-pop, 1));
    }
  }

  .slides {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .slide {
    scroll-snap-align: start;
  }

  .mobile-parallax-reveal {
    opacity: 0;
    transform: translateY(26px) scale(.985);
    transition: opacity .55s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
  }

  .mobile-parallax-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .collection-grid .card.depth-card {
    transform: perspective(800px) translateY(20px) rotateX(2.5deg) scale(.985);
  }

  .collection-grid .card.depth-card.depth-show {
    transition-duration: .5s;
  }

  .panel {
    width: 100%;
    max-width: 420px;
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .item {
    grid-template-columns: 64px 1fr auto
  }

  .item img {
    width: 64px;
    height: 74px;
    border-radius: 8px
  }

  .qty button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fffaf2;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none
  }

  .card h3 {
    font-size: 13.5px;
  }

  .card-notes {
    font-size: 7.5px;
    letter-spacing: .03em;
  }
}


/* ═══════════════════════════════════════════════════════════════
   13. DESKTOP-SPECIFIC IMMERSIVE EFFECTS
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 801px) {

  .story-chapter figure {
    overflow: hidden;
    clip-path: inset(0);
  }

  .story-chapter figure img {
    will-change: transform;
  }

  .card {
    perspective: 1200px;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
  }

  .card:hover {
    transform: translateY(-10px) rotateX(2.5deg) rotateY(-1.5deg);
    box-shadow: 0 22px 44px #3b231518;
  }

  .story-chapter-reveal {
    transform: perspective(1200px) translateY(50px) rotateX(3deg);
  }

  .story-chapter-reveal.is-visible {
    transform: perspective(1200px) translateY(0) rotateX(0);
  }

  .reveal {
    will-change: opacity, transform;
  }

  .giftmedia {
    perspective: 1000px;
  }

  .giftmedia img {
    border-radius: 8px;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  }

  .giftmedia:hover img:first-child {
    transform: translateZ(15px) scale(1.02);
  }
}


/* ═══════════════════════════════════════════════════════════════
   14. SCROLL-DRIVEN VISUAL EFFECTS — for all pages
   ═══════════════════════════════════════════════════════════════ */

.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header.scrolled {
  box-shadow: 0 2px 24px #2a190f12;
}

.header.scrolled .bar {
  min-height: 60px;
  transition: min-height .3s ease;
}

@media (max-width: 800px) {
  .header.scrolled .bar {
    min-height: 48px;
  }
}

.eyebrow {
  display: inline-block;
  transition: transform .6s ease, opacity .6s ease;
}

@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth
  }
}


/* ═══════════════════════════════════════════════════════════════
   15. CHECKOUT, UPI QR GATEWAY & LIVE ORDER TRACKING (#track)
   ═══════════════════════════════════════════════════════════════ */

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* --- Bag Drawer Free Shipping Pill --- */
.bag-ship-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fdf6ec;
  border: 1px solid #e3d1ba;
  color: #5c4b3e;
  margin-bottom: 12px;
  text-align: center;
}

.bag-ship-pill.unlocked {
  background: #edf6ef;
  border-color: #b7d8be;
  color: #235331;
}

/* --- Checkout Dialog (Overrides .dialog max-width: 460px on laptop) --- */
.dialog.checkout-dialog {
  max-width: 920px !important;
  width: min(920px, 95vw) !important;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 30px;
  border-radius: 18px;
  background: var(--cream);
  text-align: left;
  box-shadow: 0 24px 60px rgba(30, 18, 12, 0.28);
}

.checkout-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-header h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 34px);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
  gap: 28px;
  align-items: start;
}

.checkout-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.co-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.co-form-row.co-form-row-3 {
  grid-template-columns: 1.2fr 1.2fr .9fr;
}

.co-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  min-width: 0;
}

.co-form-row .co-field {
  margin-bottom: 0;
}

.co-field label {
  font-size: 11px;
  font-weight: 600;
  color: #4d3d30;
}

.co-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d9c8b2;
  border-radius: 9px;
  background: #fffdf9;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.co-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(167, 123, 67, 0.14);
}

/* --- Payment Method Selector Cards --- */
.pay-methods {
  display: grid;
  gap: 10px;
}

.pay-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 11px;
  background: #fffdf9;
  border: 1.5px solid #dfd0bc;
  cursor: pointer;
  transition: all .2s ease;
}

.pay-card:hover {
  border-color: #bfa17c;
}

.pay-card.active {
  background: #fdf6ec;
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(42, 25, 15, 0.06);
}

.pay-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pay-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.pay-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-card-top b {
  font-size: 13px;
  color: var(--ink);
}

.pay-card-body small {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.pay-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: #235331;
  color: #fff8ed;
  white-space: nowrap;
}

.co-submit-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 11.5px;
}

.co-trust-bar {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

/* --- Checkout Summary Box --- */
.co-summary-box {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.co-summary-box h3 {
  margin: 0 0 14px;
  font: 500 22px var(--serif);
}

.co-summary-items {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.co-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
}

.co-item img {
  width: 50px !important;
  height: 60px !important;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.co-item b {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-item small {
  color: var(--muted);
  font-size: 11px;
}

.co-item span {
  font-weight: 600;
  color: var(--ink);
}

.co-summary-lines {
  padding: 14px 0 10px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.co-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #59493b;
}

.co-line.co-total {
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink);
}

.co-ship-perk {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fdf5e8;
  border: 1px solid #e5d4bc;
  font-size: 11px;
  color: #5a4635;
  text-align: center;
}

/* --- UPI QR Payment Gateway Modal (#paymentgatewaymodal) --- */
.dialog.gateway-dialog {
  max-width: 430px !important;
  width: min(430px, 94vw) !important;
  padding: 0 !important;
  border-radius: 18px;
  overflow: hidden;
  background: #fffdf9;
  text-align: left;
  border: 1px solid #dccab2;
  box-shadow: 0 24px 60px rgba(30, 18, 12, 0.35);
}

.gw-header {
  background: linear-gradient(135deg, #24150d 0%, #3b2416 100%);
  color: #fff8ed;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gw-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.gw-brand img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.gw-brand b {
  display: block;
  font-size: 14px;
  letter-spacing: .03em;
}

.gw-brand small {
  display: block;
  font-size: 11px;
  color: #d9c2a3;
}

.gw-amount {
  background: rgba(255, 248, 237, 0.14);
  border: 1px solid rgba(229, 190, 131, 0.35);
  color: #f7dfb9;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.gw-body {
  padding: 18px 20px 20px;
}

.rzp-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f3e8d8;
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.rzp-tab {
  border: 0;
  background: transparent;
  color: #5c4b3c;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 7px;
  transition: all .2s ease;
}
.rzp-tab.active {
  background: var(--ink);
  color: #fff8ed;
  box-shadow: 0 3px 10px rgba(42, 25, 15, 0.16);
}
.gw-section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.gw-app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.gw-app-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dfd0bc;
  background: #fffaf2;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
  transition: all .2s ease;
}
.gw-app-btn:hover {
  border-color: var(--gold);
  background: #fdf3e4;
}
.gw-app-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.gw-app-icon.gpay { background: #1a73e8 }
.gw-app-icon.phonepe { background: #5f259f }
.gw-app-icon.paytm { background: #00baf2 }
.gw-app-icon.bhim { background: #2c6e49 }
.gw-divider {
  margin: 10px 0 6px;
  text-align: center;
  position: relative;
}
.gw-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}
.gw-divider span {
  position: relative;
  background: #fffdf9;
  padding: 0 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.gw-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.gw-qr-frame {
  width: 200px;
  height: 200px;
  padding: 8px;
  border-radius: 16px;
  background: #17120e;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 26px rgba(42, 25, 15, 0.16);
  display: grid;
  place-items: center;
}

.gw-qr-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.gw-upi-id-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  background: #fdf6ec;
  border: 1px solid #dfd0bc;
  font-size: 12.5px;
}

.gw-copy-btn {
  border: 1px solid var(--gold);
  background: #fffdf9;
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gw-open-app-btn {
  width: 100%;
  display: inline-block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #edf6ef;
  border: 1px solid #b7d8be;
  color: #1f4e2c;
  font-size: 12px;
  font-weight: 600;
}

.gw-utr-box {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gw-utr-box label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.gw-utr-box input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #d9c8b2;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
}

.gw-confirm-btn {
  width: 100%;
  margin: 4px 0 0 !important;
  padding: 13px 16px !important;
  border-radius: 10px !important;
}

.gw-footer {
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  background: #faf3e8;
}

.gw-cancel {
  border: 0;
  background: none;
  color: #7c3526;
  font-size: 11.5px;
  font-weight: 600;
}

/* --- Live Order Tracking View (#track) --- */
.track-shell {
  max-width: 900px;
  margin: 0 auto;
}

.track-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  background: #fffaf2;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(42, 25, 15, 0.05);
}

.track-search-bar input {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfd0bc;
  background: #fffdf9;
  padding: 13px 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}

.track-search-bar input:focus {
  outline: none;
  border-color: var(--gold);
}

.track-search-bar .btn {
  margin: 0;
  border-radius: 10px;
  padding: 13px 22px;
  white-space: nowrap;
}

.track-recent {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.track-recent-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.track-result-container {
  margin-top: 22px;
}

/* --- Active Order Tracking Card --- */
.track-card {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 14px 34px rgba(42, 25, 15, 0.06);
  overflow: hidden;
}

.track-wa-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #edf6ef;
  border: 1px solid #b7d8be;
}

.track-wa-banner b {
  display: block;
  font-size: 13px;
  color: #1c4727;
}

.track-wa-banner p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #2f5c3b;
}

.track-wa-btn {
  margin: 0 !important;
  background: #1f5c30 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-size: 10.5px !important;
  white-space: nowrap;
}

.track-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.track-card-head h2 {
  margin: 2px 0 4px;
  font: 500 clamp(24px, 3vw, 32px) var(--serif);
}

.track-card-head p {
  margin: 0;
  font-size: 12.5px;
}

.track-head-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.track-awb-badge {
  font-size: 11.5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fdf5e8;
  border: 1px solid #e2d0b7;
  color: #4f3d2e;
}

/* --- 5-Stage Tracking Progress Timeline --- */
.track-progress-bar {
  height: 6px;
  background: #eadbc8;
  border-radius: 999px;
  overflow: hidden;
  margin: 22px 0;
}

.track-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #235331);
  border-radius: 999px;
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}

.track-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.track-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: .45;
  transition: opacity .3s ease;
}

.track-step.done,
.track-step.current {
  opacity: 1;
}

.track-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #cbb69b;
  background: #fffdf9;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #6e5a49;
  flex-shrink: 0;
}

.track-step.done .track-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff8ed;
}

.track-step.current .track-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(167, 123, 67, 0.2);
}

.track-step-body b {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.track-step-body p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* --- Order Details & Items Grid inside #track --- */
.track-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  margin-top: 22px;
}

.track-box {
  background: #fdf7ee;
  border: 1px solid #e6d6c0;
  border-radius: 13px;
  padding: 18px;
  min-width: 0;
}

.track-box h4 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.track-box p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #4f3f32;
  line-height: 1.5;
  word-break: break-word;
}

.track-gift-note {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fffaf2;
  border-left: 3px solid var(--gold);
  font-size: 12px;
  color: #584638;
}

.track-items-list {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5d5bf;
}

.track-item-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
}

.track-item-row img {
  width: 48px !important;
  height: 58px !important;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.track-item-row b {
  display: block;
  font-size: 13px;
}

.track-item-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.track-item-row span {
  font-weight: 600;
  color: var(--ink);
}

.track-pay-meta {
  padding-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
}

.track-pay-meta>div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #5b4a3c;
}

.track-total-row {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid #e5d5bf;
  font-size: 14.5px;
  color: var(--ink) !important;
}

/* --- Mobile Responsive Overrides for Checkout, Gateway & Order Tracking --- */
@media (max-width: 800px) {
  .dialog.checkout-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh;
    padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .co-form-row,
  .co-form-row.co-form-row-3 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .co-summary-box {
    padding: 15px;
  }

  .dialog.gateway-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px 22px 0 0;
  }

  .track-search-bar {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .track-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .track-wa-banner {
    padding: 12px 14px;
  }

  .track-wa-btn {
    width: 100%;
    text-align: center;
  }

  .track-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .track-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .track-details-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   16. REDUCED MOTION — accessibility override
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .card.pop-in,
  .card.mobile-tilt {
    animation: none;
  }

  .card,
  .feature,
  .giftmedia,
  .storyvisual,
  .frags a,
  .hero .slide img,
  .hero .slide .hero-copy>div,
  .story-chapter figure img,
  .story-chapter-reveal,
  .section-reveal,
  .mobile-parallax-reveal,
  .feature.mobile-depth-in,
  .story-seal,
  .story-hero-banner img {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .depth-in,
  .collection-grid .card.depth-card {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .frags a:hover {
    transform: none;
    box-shadow: none;
  }

  .home-smooth .hero,
  .home-smooth .benefits,
  .home-smooth section,
  .drawer.open .panel {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}