/* AK Fabrics home (loaded after shop.css): ivory page, white cards, serif headings, one 20px gutter */
body[data-shop="home"] {
  --iv: #F7F4EE; --ink: #141414; --mute: #6F6A60; --line: #E6E0D5; --g: 20px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  background: var(--iv); padding-bottom: 0;
}
body[data-shop="home"] .shop-hdr { background: rgba(247, 244, 238, .92); }
body[data-shop="home"] .shop-hdr-in { padding: 0 var(--g); }
body[data-shop="home"] .shop-hdr.scrolled { box-shadow: none; border-color: var(--line); }
body[data-shop="home"] .logo b { font-weight: 700; letter-spacing: .24em; font-size: 1rem; }
body[data-shop="home"] .logo span { letter-spacing: .46em; }
body[data-shop="home"] .wrap { max-width: 1120px; margin: 0 auto; padding: 0; }

/* hero */
.hm { padding: 26px var(--g) 8px; }
.hm h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 11vw, 4.6rem); line-height: 1.02; letter-spacing: -.012em; }
.hm h1 em { color: var(--brand); font-weight: 500; }
.hm-trust { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .76rem; font-weight: 500; color: var(--mute); white-space: nowrap; }
.hm-trust i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); margin: 0 8px; }
.hm-deal { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); font-size: .84rem; color: var(--mute); }
.hm-deal b { display: block; color: var(--ink); font-size: .92rem; font-weight: 700; margin-bottom: 1px; }
.hm-deal svg { width: 18px; height: 18px; flex: none; color: var(--ink); }

/* stacked category cards: each head row (name + price) stays visible once the next card covers it */
.stack { --head: 54px; padding: 14px var(--g) 0; }
.pc {
  --p: 0; --s: 1;
  position: sticky; top: calc(var(--hdr) + 6px + var(--n) * var(--head)); z-index: calc(var(--n) + 1);
  display: block; margin: 0; padding: 0 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  text-decoration: none; color: var(--ink);
  box-shadow: 0 24px 36px -26px rgba(20, 20, 20, .45);
    opacity: 0; translate: 0 22px; transition: opacity .6s var(--ease), translate .6s var(--ease);
}
.pc.in { opacity: 1; translate: 0 0; }
.pc:not(:last-of-type) { margin-bottom: 9vh; }
.pc-head { height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px; }
.pc-name { font-family: var(--serif); font-size: 1.62rem; font-weight: 600; line-height: 1; letter-spacing: -.005em; white-space: nowrap; }
.pc-name i { font: 600 .68rem/1 'Plus Jakarta Sans', sans-serif; font-style: normal; letter-spacing: .12em; color: var(--mute); margin-right: 10px; vertical-align: .3em; }
.pc-price { margin-left: auto; font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-price small { font-size: .58rem; font-weight: 600; letter-spacing: .16em; color: var(--mute); margin-right: 5px; vertical-align: .12em; }
.pc-arrow { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.pc-arrow svg { width: 16px; height: 16px; }
.pc-price s { font-weight: 400; color: var(--mute); font-size: .8rem; margin-left: 6px; }
.pc-img { position: relative; aspect-ratio: 1 / 1; max-height: calc(100vh - var(--hdr) - 6px - 4 * var(--head) - 82px); border-radius: 16px; overflow: hidden; background: #ece7df; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
/* linen photo has more silk around the fabric than the others: zoom so the fabric fills the frame like the lawn card */
.pc-img img[src*="linen-home"] { transform: scale(1.3); }
.pc-tag { position: absolute; left: 10px; top: 10px; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .64rem; font-weight: 800; letter-spacing: .14em; }
.pc-tag.sale { background: var(--brand); color: #fff; }
.pc-tag.new { background: var(--ink); color: #fff; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px 0; }
.pc-meta { font-size: .76rem; font-weight: 500; color: var(--mute); line-height: 1.35; }
.pc-go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: gap .3s var(--ease); }
.pc-go svg { width: 15px; height: 15px; }
.pc:hover .pc-go { gap: 13px; }

/* last panel slides over the 4th card, so every card stops the same way */
.pc-cover { position: relative; z-index: 10; margin: 0 calc(-1 * var(--g)) 0; padding: 8px var(--g) calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; min-height: calc(100vh - var(--hdr) - 6px - 4 * var(--head)); background: var(--iv); border-radius: 26px 26px 0 0; box-shadow: 0 -22px 30px -22px rgba(20, 20, 20, .4); }
@supports (height: 1svh) { .pc-img { max-height: calc(100svh - var(--hdr) - 6px - 4 * var(--head) - 82px); } .pc-cover { min-height: calc(100svh - var(--hdr) - 6px - 4 * var(--head)); } }
.trust { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.trust li { flex: 1; display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.trust li:last-child { border-bottom: 0; }
.trust-ic { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.trust-ic svg { width: 27px; height: 27px; }
.trust-tx b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.trust-tx span { display: block; margin-top: 4px; font-size: .84rem; color: var(--mute); line-height: 1.4; }

/* WhatsApp button would sit on the card buttons: show it only after the stack */
body[data-shop="home"]:not(.fab-ok) .fab { opacity: 0; transform: translateY(120px); pointer-events: none; }

/* desktop: plain 2x2 grid, no stacking */
@media (min-width: 900px) {
  body[data-shop="home"] { --g: 32px; }
  .hm { padding-top: 56px; padding-bottom: 12px; }
  .hm h1 { font-size: 5rem; max-width: 12ch; }
  .hm-deal { max-width: 420px; }
  .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 28px; }
  .pc { position: relative; top: auto; }
  .pc:not(:last-of-type) { margin-bottom: 0; }
  .pc-arrow { display: none; }
  .pc-head { --head: 64px; height: 64px; }
  .pc-cover { grid-column: 1 / -1; margin: 12px 0 0; border-radius: 0; box-shadow: none; min-height: 0; display: block; padding: 28px 0 56px; }
  .trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .trust li { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pc:not(:last-of-type) { margin-bottom: 14px; }
  .pc { position: relative; top: auto; opacity: 1; translate: none; transition: none; }
}

/* scroll cue: tells the visitor there is more below the first card */
.cue { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 0); display: flex; align-items: center; gap: 6px; padding: 10px 16px 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .5); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.cue svg { width: 16px; height: 16px; animation: cueBob 1.4s ease-in-out infinite; }
.cue.off { opacity: 0; transform: translate(-50%, 20px); }
@keyframes cueBob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (min-width: 900px), (prefers-reduced-motion: reduce) { .cue svg { animation: none; } }

.trust li:last-child .trust-tx { padding-right: 62px; }
@media (min-width: 900px) { .trust { display: grid; } .trust li { flex: none; } .trust li:last-child .trust-tx { padding-right: 0; } .pc-img { max-height: none; } }
