/* Multi-page website: page headings, breadcrumbs, home tiles, product page, wellness packages, cart page. */
.page-loading { text-align: center; padding: 120px 20px; }
.page-head { text-align: center; margin-bottom: 10px; }
.page-head h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; color: var(--green); margin-top: 8px; }
.page-head .intro { max-width: 720px; margin: -10px auto 30px; }
.crumbs { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--clay); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.center-cta { text-align: center; padding-top: 50px; padding-bottom: 70px; }
.center-cta .btn { margin: 6px; }
.center .btn { margin: 6px; }
.pd-back { margin-top: 26px; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.pd-back a { color: var(--clay); text-decoration: none; }

/* menu: current page */
.nav a.active { color: var(--green); border-bottom: 2px solid var(--gold); }
@media (max-width: 1180px) { .nav a.active { border-bottom: 0; background: var(--paper-2); } }

/* cart link in the header + floating button */
a.cart-btn, a.fab-cart { text-decoration: none; }
.cart-word { font-size: 16px; }
.toast a { color: var(--gold-2); font-weight: 700; }
.toast.show a { pointer-events: auto; }
.pin.pinned { border-style: solid; border-color: var(--green); color: var(--green); }

/* home tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* framed prints: each photo mounted on a cream card with a thin gold line, title underneath */
.tile { display: block; text-decoration: none; background: var(--card); padding: 12px 12px 0; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(42, 33, 24, .08); transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 33, 24, .14); }
.tile img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; outline: 1px solid rgba(176, 138, 62, .55); outline-offset: -7px;
  filter: sepia(.22) saturate(.82) contrast(.96) brightness(1.02); /* one warm tone, so the four photos read as a set */ }
.tile span { display: block; text-align: center; padding: 14px 6px 16px; }
.tile b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--green); }
.tile em { font-size: 16px; font-style: italic; color: var(--gold); }

/* product cards are links to their own page */
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card .sizes-line { font-size: 15px; color: var(--ink-soft); }

/* product page */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 60px); align-items: start; }
.pd-img { position: relative; background: var(--card); border: 1px solid var(--line); padding: 10px; }
.pd-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pd-img .badge { position: absolute; left: 22px; top: 22px; background: var(--green); color: #F4E8C8; font-family: var(--serif); font-weight: 700; font-size: 15px; padding: 4px 12px; }
.pd-img .badge.out { background: #6E6253; }
.pd-img .badge.pre { background: var(--clay); }
.pd-txt .label { text-align: left; }
.pd-txt h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; color: var(--green); margin: 6px 0 8px; }
.pd-price { font-family: var(--serif); font-weight: 700; font-size: 32px; color: var(--ink); }
.pd-txt .pre-note { color: var(--clay); font-style: italic; }
.pd-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.pd-sizes .size { font-family: var(--text); font-size: 17px; padding: 6px 18px; border: 1px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.pd-sizes .size.on { background: var(--green); border-color: var(--green); color: #F6EBD0; }
.pd-buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qty.big { margin: 0; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.qty.big button { width: 32px; height: 32px; font-size: 20px; }
.qty.big em { font-size: 20px; min-width: 22px; }
.pd-add { cursor: pointer; font-size: 20px; padding: 13px 34px; }
.pd-add:disabled { background: #B9AE98; border-color: #B9AE98; cursor: not-allowed; }
.pd-incart { margin-top: 12px; color: var(--green); font-style: italic; min-height: 1.6em; }
.pd-incart a { color: var(--clay); font-weight: 600; }
.pd-txt h3 { font-family: var(--serif); font-size: 24px; color: var(--green); margin: 22px 0 6px; }

/* wellness packages */
.packs .disclaimer, .pk-detail .disclaimer { max-width: 760px; margin: 0 auto 34px; font-size: 15px; line-height: 1.55; font-style: italic; color: var(--ink-soft); text-align: center; border: 1px dashed var(--line); padding: 14px 18px; background: var(--card); }
.group-title { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--green); margin: 30px 0 16px; text-align: left !important; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pk-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); padding: 22px; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.pk-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 33, 24, .14); }
.pk-card h3 { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--green); line-height: 1.1; }
.pk-card p { color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.pk-items { font-size: 15px; color: var(--green); font-weight: 600; }
.pk-card .cta { margin-top: auto; font-family: var(--serif); font-weight: 700; color: var(--clay); font-size: 18px; }
.pk-detail .inc { font-family: var(--serif); font-size: 26px; color: var(--green); margin-bottom: 12px; }
.pk-list { display: flex; flex-direction: column; gap: 12px; }
.pk-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); padding: 12px; text-decoration: none; color: inherit; }
.pk-row img, .pk-row .ph0 { width: 84px; height: 84px; object-fit: cover; background: var(--paper-2); }
.pk-row-txt b { display: block; font-family: var(--serif); font-size: 22px; color: var(--green); }
.pk-row-txt em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-style: normal; font-size: 15px; color: var(--ink-soft); }
.pk-row-price { text-align: right; font-size: 15px; color: var(--ink-soft); }
.pk-row-price b { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.pk-row-price small { display: block; color: var(--clay); font-style: italic; }
.pk-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--gold); margin-top: 18px; padding-top: 14px; font-size: 20px; }
.pk-total b { font-family: var(--serif); font-size: 30px; }
.pk-add { cursor: pointer; font-size: 20px; padding: 13px 34px; margin-top: 10px; }

/* cart page */
.cart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.cart-lines .line { grid-template-columns: 84px 1fr auto; }
.cart-lines .line img, .cart-lines .line .ph0 { width: 84px; height: 84px; }
.cart-lines .line-txt a { text-decoration: none; }
.cart-lines .line-txt b { font-size: 22px; }
.cartpage .co-sum .btn { display: block; }

@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .pd-grid, .cart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cart-word { display: none; }
  .tiles { gap: 10px; }
  .tile b { font-size: 21px; }
  .pk-row { grid-template-columns: 64px 1fr; }
  .pk-row img, .pk-row .ph0 { width: 64px; height: 64px; }
  .pk-row-price { grid-column: 2; text-align: left; }
  .pk-row-price b { display: inline; margin-left: 6px; }
}

/* phones: compact floating cart (icon + count) so it never covers buttons; room for it at the bottom */
@media (max-width: 520px) {
  .fab-cart { padding: 14px; right: 14px; bottom: 16px; }
  .fab-cart .fab-txt { display: none; }
  .fab-cart .fab-count { position: absolute; top: -4px; right: -4px; }
  body { padding-bottom: 76px; }
}

/* How to Order: four ways (website, online shop, app, WhatsApp) */
.order .ways { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .order .ways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .order .ways { grid-template-columns: 1fr; } }
.pd-sizes .size.soldout { color: #9A8F7E; border-style: dashed; }
.pd-sizes .size.soldout.on { background: #B9AE98; border-color: #B9AE98; color: #fff; }
.pd-sizes .size small { font-size: 12px; }

/* oil bottles: taller 3:4 frame showing the whole bottle, cap to base (ghee keeps the square crop) */
.card .ph.tall { aspect-ratio: 3 / 4; }
.pd-img.tall img { aspect-ratio: 3 / 4; }
.ph.tall img, .pd-img.tall img { object-fit: cover; object-position: 50% 18%; }

/* products page: ghee and oils in their own rows, so every photo in a row is the same shape */
.products .group-title { text-align: center !important; margin-top: 10px; }
.products .grid + .group-title { margin-top: 46px; }
