/* Torogoz Essence: site styles.
   Colours and fonts come from the brand kit. Change a colour here and it changes everywhere. */

@font-face { font-family: "Cardo"; src: url("../fonts/Cardo-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/Cardo-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Variable.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --forest: #1D3130;
  --cream: #F6F2EA;
  --terracotta: #C56F3E;
  --terracotta-dark: #A85A2C;
  --gold: #E7A33E;
  --glow: #F4D58A;
  --night: #142322;
  --night-card: #1D3130;
  --night-line: #3A4F4D;
  --teal: #204E57;
  --turquoise: #58B2A8;
  --mint: #E6F2EF;
  --mint-deep: #D6ECE8;
  --mist: #EEE8F3;
  --lavender-dark: #5E4A8C;
  --muted: #3F5250;
  --line: #DCD3C3;
  --serif: "Cardo", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--forest); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { body { font-size: 17px; line-height: 1.7; } .wrap { padding: 0 40px; } }

/* ---------- the flickering flame ---------- */
.has-flame { position: relative; display: block; line-height: 0; }
.has-flame > img { width: 100%; height: auto; }
.flame { position: absolute; overflow: visible; transform-origin: 50% 100%; animation: flicker 2.8s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(244, 213, 138, .55)); }
.flame .core { transform-box: fill-box; transform-origin: 50% 100%; animation: core 1.9s ease-in-out infinite; }
.logo .flame { left: 24.795%; top: 73.13%; width: 2.87%; height: 16.23%; }
.mark .flame { left: 54.71%; top: 76.6%; width: 7.125%; height: 18.67%; }
.big-flame { overflow: visible; transform-origin: 50% 100%; animation: flicker 2.8s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(244, 213, 138, .5)); }
.big-flame .core { transform-box: fill-box; transform-origin: 50% 100%; animation: core 1.9s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 18% { transform: scale(.96, 1.06) skewX(-3deg); } 40% { transform: scale(1.03, .95) skewX(2deg); } 63% { transform: scale(.98, 1.04) skewX(-1.5deg); } 82% { transform: scale(1.01, .98) skewX(1deg); } }
@keyframes core { 0%, 100% { transform: scale(1, 1); opacity: 1; } 50% { transform: scale(.88, 1.1); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .flame, .flame .core, .big-flame, .big-flame .core { animation: none; } }
/* the mark's flame sits right of centre: this shift centres it */
.mark.centred { transform: translateX(-8.25%); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 10; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: block; width: 150px; }
.logo .on-dark { display: none; }
.dark-top .logo .on-light { display: none; }
.dark-top .logo .on-dark { display: block; }
.nav { display: none; }
.nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.icons { display: flex; align-items: center; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: inherit; background: none; border: 0; position: relative; border-radius: 50%; }
.icon-btn svg { width: 22px; height: 22px; }
.count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: var(--night); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.count[hidden] { display: none; }
.menu { display: none; padding: 4px 20px 20px; }
.menu.open { display: flex; flex-direction: column; }
.menu a { color: inherit; text-decoration: none; font-family: var(--serif); font-size: 26px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dark-top .menu a { border-color: var(--night-line); }
.dark-top { background: var(--night); color: #F6F2EA; }
.mint-top { background: var(--mint); }
@media (min-width: 900px) {
  .logo { width: 210px; }
  .site-header .bar { min-height: 92px; }
  .nav { display: flex; gap: 32px; align-items: center; }
  .menu-btn, .menu, .menu.open { display: none; }
  .bag-btn { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 26px; border: 1px solid transparent; font-weight: 500; text-decoration: none; font-size: 16px; text-align: center; }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--teal); color: #fff; }
.btn-mint { background: var(--mint-deep); color: var(--forest); }
.btn-mint:hover { background: #C4E2DC; color: var(--forest); }
.btn-gold { background: var(--gold); color: var(--night); font-weight: 600; }
.btn-gold:hover { background: var(--glow); color: var(--night); }
.btn-teal { background: var(--teal); color: #fff; font-weight: 600; }
.btn-teal:hover { background: var(--forest); color: #fff; }
.btn-line-gold { border-color: var(--gold); color: var(--glow); }
.btn-line-gold:hover { background: rgba(231, 163, 62, .12); color: var(--glow); }
.btn-line { border-color: var(--forest); color: var(--forest); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- photo placeholders ---------- */
.ph { background: #EFE8DB url("../img/pattern-cream.png") center / 180px; }
.ph-dark { background: linear-gradient(rgba(36, 64, 62, .86), rgba(36, 64, 62, .86)), url("../img/pattern-forest.png") center / 180px; }
.photo { width: 100%; height: 100%; object-fit: cover; }

/* ---------- labels ---------- */
.when { font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.mint-sec .when, .morning .when { color: var(--teal); }
.mist-sec .when { color: var(--lavender-dark); }
.night .when { color: var(--glow); }

/* ---------- home hero ---------- */
.hero { padding: 16px 0 44px; }
.hero .inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hero .mark { width: 230px; }
.hero h1 { font-size: 40px; margin-top: 8px; }
.hero .text { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero .sub { color: var(--muted); max-width: 300px; }
.hero .ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; margin-top: 10px; }
.hero .ctas .btn { padding: 0 12px; }
@media (min-width: 900px) {
  .hero { padding: 40px 0 90px; }
  .hero .inner { flex-direction: row-reverse; justify-content: space-between; text-align: left; gap: 48px; }
  .hero .mark { width: 420px; flex: 0 0 auto; }
  .hero .mark.centred { transform: none; }
  .hero .text { max-width: 640px; align-items: flex-start; gap: 0; }
  .hero h1 { font-size: 80px; letter-spacing: -.015em; }
  .hero .sub { max-width: none; margin-top: 20px; }
  .hero .ctas { display: flex; gap: 12px; margin-top: 28px; }
  .hero .ctas .btn { padding: 0 30px; }
}

/* ---------- soap section (morning) ---------- */
.mint-sec { background: var(--mint); padding: 48px 0 52px; }
.mint-sec h2 { font-size: 36px; margin-bottom: 10px; }
.mint-sec .lede { color: #2E4A4F; max-width: 460px; }
.soap-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 20px 4px; margin: 0 -20px; scrollbar-width: none; }
.soap-row::-webkit-scrollbar { display: none; }
.soap-card { flex: 0 0 230px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; color: var(--forest); text-decoration: none; }
.soap-card .tile { height: 230px; border-radius: 18px; background: #FBFAF6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.soap-card .bar { width: 150px; height: 104px; border-radius: 14px; box-shadow: 0 10px 0 -2px var(--mint-deep); }
.soap-card .name { font-family: var(--serif); font-size: 21px; line-height: 1.25; margin-top: 4px; }
.soap-card .meta { font-size: 14px; color: var(--teal); }
.see-all { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; margin-top: 8px; }
@media (min-width: 900px) {
  .mint-sec { padding: 88px 0; }
  .mint-sec .grid { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: start; }
  .mint-sec h2 { font-size: 52px; }
  .soap-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; padding: 0; margin: 0; }
  .soap-row .soap-card:nth-child(2) { margin-top: 48px; }
  .soap-row .soap-card:nth-child(3) { margin-top: 96px; }
  .soap-card .tile { height: 280px; border-radius: 20px; }
}

/* ---------- story (afternoon) ---------- */
.mist-sec { background: var(--mist); padding: 48px 0; }
.mist-sec h2 { font-size: 32px; margin-bottom: 12px; }
.mist-sec a { color: var(--lavender-dark); }
@media (min-width: 900px) {
  .mist-sec { padding: 80px 0; }
  .mist-sec .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 1020px; margin: 0 auto; }
  .mist-sec h2 { font-size: 46px; }
  .mist-sec .body { padding-top: 40px; }
}

/* ---------- candle section (evening) ---------- */
.night { background: var(--night); color: #E9E3D6; }
.night a { color: var(--glow); }
.night h1, .night h2, .night h3 { color: #F6F2EA; }
.candle-hero { position: relative; min-height: 470px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 0 24px 40px;
  background: radial-gradient(circle at 50% 30%, rgba(244, 213, 138, .55) 0, rgba(231, 163, 62, .22) 80px, rgba(20, 35, 34, 0) 230px); }
.candle-hero .big-flame { position: absolute; top: 72px; left: calc(50% - 28px); width: 56px; height: 86px; }
.candle-hero .wick { position: absolute; top: 156px; left: calc(50% - 1px); width: 2px; height: 20px; background: #0C1514; }
.candle-hero h2 { font-size: 40px; margin-bottom: 12px; }
.candle-hero p { max-width: 460px; }
.candle-body { padding-bottom: 44px; }
.feature { display: flex; flex-direction: column; text-decoration: none; color: #E9E3D6; background: var(--night-card); border-radius: 10px; overflow: hidden; }
.feature .pic { height: 300px; position: relative; }
.feature .pic .label, .pdp .label { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: #C9D2CC; }
.feature .info { padding: 16px 18px 18px; }
.feature .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.feature .name { font-family: var(--serif); font-size: 24px; color: #F6F2EA; }
.feature .scent { font-size: 14px; color: var(--glow); }
.candle-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 20px 4px; margin: 0 -20px; scrollbar-width: none; }
.candle-row::-webkit-scrollbar { display: none; }
.candle-card { flex: 0 0 200px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: #E9E3D6; }
.candle-card .pic { height: 180px; border-radius: 10px; overflow: hidden; }
.candle-card .name { font-family: var(--serif); font-size: 18px; color: #F6F2EA; line-height: 1.25; }
.candle-card .meta { font-size: 13px; color: var(--glow); }
.candle-body .actions { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
@media (min-width: 900px) {
  .candle-hero { min-height: 560px; padding-bottom: 64px; background: radial-gradient(circle at 50% 28%, rgba(244, 213, 138, .5) 0, rgba(231, 163, 62, .2) 120px, rgba(20, 35, 34, 0) 360px); }
  .candle-hero .big-flame { top: 70px; left: calc(50% - 36px); width: 72px; height: 111px; }
  .candle-hero .wick { top: 178px; height: 24px; }
  .candle-hero h2 { font-size: 68px; max-width: 820px; }
  .candle-body { padding-top: 24px; padding-bottom: 96px; }
  .candle-body .grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; }
  .feature .pic { height: 520px; }
  .candle-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; overflow: visible; padding: 0; margin: 0; }
  .candle-card .pic { height: 260px; }
  .candle-body .actions { flex-direction: row; align-items: center; gap: 24px; }
}

.pattern-band { height: 120px; background: var(--forest) url("../img/pattern-forest.png") center / 220px; }
@media (min-width: 900px) { .pattern-band { height: 180px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #E9E3D6; padding: 40px 0 36px; }
.site-footer a { color: var(--glow); }
.site-footer .grid { display: flex; flex-direction: column; gap: 28px; }
.signup label { display: block; font-size: 14px; color: #F6F2EA; margin-bottom: 8px; }
.signup .row { display: flex; gap: 8px; }
.signup input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #76906E; background: transparent; color: #F6F2EA; font: inherit; border-radius: 4px; }
.signup input::placeholder { color: #9AA8A4; }
.signup button { height: 48px; padding: 0 18px; border: 0; background: var(--gold); color: var(--night); font-weight: 600; border-radius: 4px; }
.signup .msg { font-size: 14px; color: var(--glow); margin-top: 8px; min-height: 1em; }
.social { display: flex; gap: 10px; }
.social a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--night-line); display: inline-flex; align-items: center; justify-content: center; color: #F6F2EA; }
.social a:hover { border-color: var(--gold); color: var(--glow); }
.social svg { width: 22px; height: 22px; }
.contact { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; border-top: 1px solid #2A3E3C; padding-top: 20px; color: #9AA8A4; }
.legal a { color: #C9D2CC; }
@media (min-width: 900px) {
  .site-footer { padding: 64px 0 40px; }
  .site-footer .grid { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .signup { flex: 0 1 460px; }
  .contact { flex-direction: row; gap: 28px; font-size: 15px; }
}

/* ---------- collection pages ---------- */
.page-head { padding-top: 28px; padding-bottom: 24px; }
.page-head h1 { font-size: 40px; margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 560px; }
.night .page-head p { color: #E9E3D6; }
.collection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; padding-bottom: 56px; }
.collection .soap-card, .collection .candle-card { flex: none; }
.collection .soap-card .tile { height: 180px; }
.collection .soap-card .bar { width: 110px; height: 76px; }
.collection .candle-card .pic { height: 210px; }
@media (min-width: 900px) {
  .page-head { padding-top: 56px; padding-bottom: 40px; }
  .page-head h1 { font-size: 64px; }
  .collection { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; padding-bottom: 96px; }
  .collection .soap-card .tile { height: 320px; }
  .collection .soap-card .bar { width: 170px; height: 118px; }
  .collection .candle-card .pic { height: 400px; }
  .collection .candle-card .name, .collection .soap-card .name { font-size: 24px; }
}
.empty { padding: 20px 0 60px; color: var(--muted); }
.night .empty { color: #C9D2CC; }

/* ---------- product page ---------- */
.pdp { padding-top: 4px; padding-bottom: 8px; }
.pdp .gallery { display: flex; flex-direction: column; gap: 10px; }
.pdp .main-pic { position: relative; height: 420px; border-radius: 14px; overflow: hidden; }
.morning .pdp .main-pic { background: #FBFAF6; border-radius: 22px; display: flex; align-items: center; justify-content: center; }
.morning .pdp .main-pic .bar { width: 210px; height: 144px; border-radius: 18px; box-shadow: 0 14px 0 -3px var(--mint-deep); }
.pdp .main-pic .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(244, 213, 138, .35) 0, rgba(20, 35, 34, 0) 200px); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumbs button { height: 72px; border-radius: 8px; padding: 0; border: 2px solid transparent; overflow: hidden; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.morning .thumbs button[aria-current="true"] { border-color: var(--teal); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { padding: 26px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.buy h1 { font-size: 40px; }
.buy .scent { font-family: var(--serif); font-style: italic; font-size: 20px; }
.night .buy .scent { color: var(--glow); }
.morning .buy .scent { color: var(--teal); }
.buy .price { font-size: 20px; font-weight: 500; margin-top: 6px; }
.buy .desc { margin-top: 8px; }
.buy .controls { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.qty { display: flex; align-items: center; border: 1px solid var(--night-line); border-radius: 26px; height: 52px; }
.morning .qty { border-color: #B8CFC9; background: #F6FAF8; }
.qty button { width: 46px; height: 50px; border: 0; background: none; color: inherit; font-size: 20px; }
.qty output { width: 26px; text-align: center; font-weight: 500; }
.buy .add { flex: 1; max-width: 320px; height: 52px; }
.buy .note { min-height: 26px; font-size: 14px; margin-top: 4px; }
.night .buy .note { color: var(--glow); }
.morning .buy .note { color: var(--teal); }
.field-notes { margin-top: 22px; padding: 20px; border: 1px solid var(--terracotta); border-radius: 4px; }
.field-notes h2 { font-style: italic; font-size: 22px; margin-bottom: 12px; }
.field-notes dl { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); row-gap: 10px; font-size: 15px; }
.field-notes dt { color: var(--muted); }
.night .field-notes dt { color: #B9C4BE; }
.field-notes dd { margin: 0; }
.care { padding-top: 40px; padding-bottom: 8px; }
.care h2 { font-style: italic; font-size: 28px; margin-bottom: 16px; }
.care ol, .care ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.care ol li { display: flex; gap: 16px; }
.care ol .n { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--gold); width: 18px; flex: none; }
.care ul li { display: flex; gap: 14px; }
.care ul li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--turquoise); }
.care .warn { font-size: 14px; color: #B9C4BE; margin-top: 16px; }
.pair { padding-top: 40px; padding-bottom: 48px; }
.pair h2 { font-size: 26px; margin-bottom: 14px; }
.pair-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; text-decoration: none; }
.pair-card.to-morning { background: var(--mint); color: var(--forest); }
.pair-card.to-evening { background: var(--night); color: #E9E3D6; }
.pair-card .pic { flex: 0 0 96px; height: 96px; border-radius: 10px; overflow: hidden; }
.pair-card .kind { font-size: 13px; font-weight: 500; }
.pair-card.to-morning .kind { color: var(--teal); }
.pair-card.to-evening .kind { color: var(--glow); }
.pair-card .name { font-family: var(--serif); font-size: 20px; }
.pair-card.to-evening .name { color: #F6F2EA; }
.morning-top { background: var(--mint); }
@media (min-width: 900px) {
  .pdp { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; padding-top: 24px; padding-bottom: 80px; }
  .pdp .main-pic { height: 640px; border-radius: 16px; }
  .morning .pdp .main-pic { height: 620px; border-radius: 24px; }
  .morning .pdp .main-pic .bar { width: 320px; height: 220px; border-radius: 24px; box-shadow: 0 18px 0 -4px var(--mint-deep); }
  .thumbs { gap: 12px; }
  .thumbs button { height: 110px; }
  .buy { padding-top: 24px; }
  .buy h1 { font-size: 64px; }
  .buy .scent { font-size: 24px; }
  .care { padding-top: 0; padding-bottom: 80px; }
  .care h2 { font-size: 40px; margin-bottom: 28px; }
  .care ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .care ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .care ol li { flex-direction: column; gap: 8px; border-top: 1px solid var(--night-line); padding-top: 18px; }
  .care ol .n { font-size: 40px; width: auto; }
  .care ul li { flex-direction: column; gap: 12px; border-top: 1px solid #B8CFC9; padding-top: 18px; }
  .care ul li::before { margin-top: 0; flex: none; width: 10px; height: 10px; }
  .pair { display: flex; gap: 32px; align-items: center; padding-top: 0; padding-bottom: 96px; }
  .pair h2 { flex: 1; font-size: 40px; margin: 0; }
  .pair-card { flex: 1 1 520px; padding: 18px; gap: 20px; }
  .pair-card .pic { flex-basis: 140px; height: 120px; }
  .pair-card .name { font-size: 26px; }
}

/* ---------- bag ---------- */
.bag { padding-bottom: 64px; }
.bag-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bag-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-item .pic { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; }
.bag-item .name { font-family: var(--serif); font-size: 20px; color: var(--forest); text-decoration: none; }
.bag-item .meta { font-size: 14px; color: var(--muted); }
.bag-item .line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.bag-item .qty { height: 44px; border-color: var(--line); }
.bag-item .qty button { height: 42px; width: 42px; }
.bag-item .remove { background: none; border: 0; color: var(--teal); text-decoration: underline; min-height: 44px; padding: 0 4px; font-size: 14px; }
.summary { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.summary .total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 500; }
.summary .small { font-size: 14px; color: var(--muted); }
.summary .btn { width: 100%; }
.summary .err { color: #9A3B1E; font-size: 15px; min-height: 1em; }
@media (min-width: 900px) {
  .bag .grid { display: grid; grid-template-columns: 7fr 4fr; gap: 56px; align-items: start; }
  .bag-item { grid-template-columns: 120px 1fr; gap: 20px; }
  .bag-item .pic { width: 120px; height: 120px; }
  .summary { margin-top: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #FBF9F4; }
}

/* ---------- text pages ---------- */
.text-page { max-width: 720px; padding-bottom: 72px; }
.text-page h2 { font-size: 28px; margin: 32px 0 10px; }
.text-page p, .text-page li { margin-bottom: 12px; }
.text-page .fill { background: #FBEBD9; padding: 0 4px; border-radius: 3px; }
.mist-page { background: var(--cream); }
.story-mark { width: 220px; margin: 8px auto 0; }
@media (min-width: 900px) { .text-page { padding-bottom: 110px; } .text-page h2 { font-size: 34px; } }
.morning .pdp-band { background: var(--mint); padding-bottom: 28px; }
.morning .field-notes { background: var(--cream); }
.morning { background: var(--cream); }
.mist-page { background: var(--cream); }
.mist-page { display: flow-root; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- the line-drawn torogoz (homepage) ---------- */
.hero .hero-bird { width: 300px; max-width: 100%; }
.candle-hero { min-height: 0; justify-content: flex-start; padding: 20px 24px 40px;
  background: radial-gradient(circle at 50% 248px, rgba(244, 213, 138, .45) 0, rgba(231, 163, 62, .18) 70px, rgba(20, 35, 34, 0) 200px); }
.candle-hero .bird-wrap { width: 260px; margin-bottom: 16px; }
@media (min-width: 900px) {
  .hero .hero-bird { width: 440px; flex: 0 0 auto; }
  .candle-hero { min-height: 0; padding: 40px 40px 64px;
    background: radial-gradient(circle at 50% 400px, rgba(244, 213, 138, .42) 0, rgba(231, 163, 62, .16) 100px, rgba(20, 35, 34, 0) 300px); }
  .candle-hero .bird-wrap { width: 400px; margin-bottom: 20px; }
}
.lb { display: block; width: 100%; height: auto; overflow: visible; }
.lb .d path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lbdraw 1.1s ease-out forwards; }
.lb .d1 path { animation-delay: .1s; } .lb .d2 path { animation-delay: .6s; }
.lb .d3 path { animation-delay: .8s; animation-duration: 1.5s; } .lb .d4 path { animation-delay: 1.7s; } .lb .d5 path { animation-delay: 2s; }
.lb .dots { opacity: 0; animation: lbin .6s 2.2s forwards; }
.lb .lbflame { opacity: 0; animation: lbin .5s 2.8s forwards, lbflick 2.8s 3.3s ease-in-out infinite; }
.lb .lb2 { animation-delay: 3s, 3.6s; }
.lb .lbcore { transform-box: fill-box; transform-origin: 50% 100%; animation: lbcore 1.9s ease-in-out infinite; }
.lb .sway { transform-origin: 205px 232px; animation: lbsway 7s 3.4s ease-in-out infinite; }
.night-bird .lbflame { filter: drop-shadow(0 0 6px rgba(244, 213, 138, .7)); }
@keyframes lbdraw { to { stroke-dashoffset: 0; } }
@keyframes lbin { to { opacity: 1; } }
@keyframes lbflick { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 20% { transform: scale(.94, 1.08) skewX(-4deg); } 45% { transform: scale(1.04, .94) skewX(3deg); } 70% { transform: scale(.97, 1.05) skewX(-2deg); } }
@keyframes lbcore { 50% { transform: scale(.85, 1.12); opacity: .85; } }
@keyframes lbsway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2.2deg); } }
@media (prefers-reduced-motion: reduce) {
  .lb .d path { animation: none; stroke-dashoffset: 0; }
  .lb .dots, .lb .lbflame { animation: none; opacity: 1; }
  .lb .sway, .lb .lbcore { animation: none; }
}

/* ---------- Our story: bird in flight ---------- */
.story-bird { width: 320px; max-width: 100%; margin: 8px auto 0; }
.story-trail { display: block; width: 60px; height: 70px; margin: 10px 0 0 calc(50% - 30px); }
.text-page .story-trail + h2 { margin-top: 6px; }
.lb .d6 path { animation-delay: 2.3s; }
.lb .wingL { transform-origin: 176px 156px; animation: wingL 4.5s 3.2s ease-in-out infinite; }
@keyframes wingL { 50% { transform: rotate(-6deg); } }
.lb .trail { opacity: 0; animation: lbin 1.2s 3.4s forwards; }
@media (min-width: 900px) { .story-bird { width: 420px; } }
@media (prefers-reduced-motion: reduce) { .lb .wingL { animation: none; } .lb .trail { animation: none; opacity: 1; } }
