:root {
  --ink: #263c34;
  --paper: #fffdf7;
  --pink: #f3c9c1;
  --line: #bec9bb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 'DM Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #8b4639; outline-offset: 4px; }
h1, h2, h3, h4, .logo { font-family: 'Bricolage Grotesque', sans-serif; line-height: 1.1; }
h1 { margin: 0; font-size: clamp(2.8rem, 6.2vw, 5.4rem); letter-spacing: -.055em; }
h1 em { display: block; color: #8b4639; }
h2 { margin: 0 0 20px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px max(5vw, 20px); }
header { border-bottom: 1px solid var(--line); }
footer { background: #e6ecdf; flex-wrap: wrap; }
.logo { font-weight: 800; letter-spacing: -.045em; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.logo span { color: #a65343; margin-left: 4px; }
.button, .bag { display: inline-block; border: 1px solid var(--ink); border-radius: 100px; padding: 10px 19px; font-weight: 700; }
.button { background: var(--ink); color: white; }
.bag { background: transparent; white-space: nowrap; }
.bag span { margin-left: 3px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 455px; }
.hero-copy { align-self: center; padding: 52px 5vw; }
.hero-copy p { font-size: 1.15rem; max-width: 33ch; margin: 20px 0 28px; }
.hero-art { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); aspect-ratio:1; max-height:680px; overflow:hidden; }
.hero-product-tile { position:relative; min-width:0; min-height:0; border:0; display:grid; grid-template-rows:minmax(0,1fr) auto; place-items:center; padding:clamp(10px,2vw,24px) clamp(8px,1.7vw,22px) 14px; background:#f4c7b4; transition:filter .2s ease; }
.hero-product-tile:nth-child(2){background:#e4d5ef}.hero-product-tile:nth-child(3){background:#e8c9cb}.hero-product-tile:nth-child(4){background:#e1e9d6}
.hero-product-tile:hover{filter:brightness(1.035)}
.hero-tile-art{display:grid;place-items:center;width:100%;height:100%;min-height:0}
.hero-tile-art .calendar-stand{width:min(88%,260px);margin:8px}
.hero-tile-art .planner-book{width:min(51%,175px);margin:4px 0 13px}
.hero-tile-art .sock-pair,.hero-tile-art .tumbler-picture{width:min(88%,265px);max-height:100%;margin:0}
.hero-tile-art .sock-photo,.hero-tile-art .tumbler-photo{border-radius:9px;max-height:100%;object-fit:contain}
.hero-tile-label{font-weight:700;font-size:clamp(.7rem,1.35vw,.95rem);color:#263c34;text-align:center;margin-top:10px}
@media(max-width:480px){.hero-art{aspect-ratio:1.12}.hero-tile-art .calendar-stand{width:83%}.hero-tile-art .planner-book{width:49%}.hero-tile-label{font-size:.72rem}.hero-product-tile{padding:7px 8px 9px}}
.doodle-art { display: block; width: 100%; max-height: 105px; object-fit: contain; }
.sample-page .doodle-art { margin: 0 auto 10px; }
.shop { padding: 56px max(5vw, 20px) 65px; max-width: 1400px; margin: auto; }
.preview-options { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-options button, .cart-row button { background: var(--paper); border: 1px solid var(--line); border-radius: 40px; padding: 8px 14px; }
button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
#collection-title { font-size: 1.65rem; margin: 34px 0 16px; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.product-art { display: grid; width: 100%; place-items: center; background: #e6ecdf; border: 0; aspect-ratio: 5 / 4; padding: clamp(10px, 2.5vw, 24px); }
.product:nth-child(2) .product-art { background: #f5e7e1; }
.product-picture { display: block; width: 100%; object-fit: contain; }
.product-art .product-picture { height: 100%; min-height: 0; transition: transform .2s ease; }
#preview .product-picture { max-height: 58vh; }
.product-art:hover .product-picture { transform: rotate(-3deg); }
.planner-book {
  display: block;
  position: relative;
  width: min(54%, 234px);
  margin: 8px 10px 14px;
  border-radius: 2px 5px 5px 2px;
  box-shadow: 2px 3px #c4b5aa, 3px 4px #fffaf1, 4px 6px #c4b5aa,
    5px 7px #fffaf1, 6px 9px #c4b5aa, 11px 16px 22px #49372e47;
  transform: rotate(-5deg);
}
.planner-book .product-picture,
.product-art .planner-book .product-picture,
#preview .planner-book .product-picture {
  height: auto;
  max-height: none;
  border-radius: inherit;
  transform: none;
}
#preview .planner-book { width: min(72%, 250px, 34vh); transform: none; }
.product-summary { padding: 15px; }
.product-summary h4 { font-size: 1.3rem; margin: 0 0 6px; }
.product-summary p, .cart-row p { margin: 4px 0; }
.price { font-weight: 700; }
dialog { color: var(--ink); background: var(--paper); border: 0; border-radius: 16px; width: min(920px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 46px clamp(16px, 4vw, 36px) 25px; }
dialog::backdrop { background: #1f3229a8; }
.close { position: absolute; top: 5px; right: 12px; border: 0; background: transparent; font-size: 1.8rem; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.preview-panel { background: #e6ecdf; border-radius: 12px; padding: clamp(10px, 3vw, 20px); }
.preview-options { margin-bottom: 16px; }
#preview { display: grid; place-items: center; }
.sample-page { width: 100%; padding: clamp(8px, 2vw, 16px); background: white; border-radius: 4px; }
.sample-page h3 { margin: 0 0 14px; }
.sample-page h4 { margin: 16px 0 3px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: .875rem; }
.calendar-grid > * { min-height: 31px; border: 1px solid #e2e8df; padding: 2px; text-align: center; }
.writing-lines { height: 36px; background: repeating-linear-gradient(transparent 0 16px, #dde5da 16px 18px); }
.recipient-label { font-weight: 700; }
#cart { max-width: 480px; }
.cart-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fine { font-size: .875rem; }
#toast:not(:empty) { position: fixed; bottom: 16px; right: 16px; max-width: calc(100% - 32px); background: var(--ink); color: white; padding: 12px 18px; border-radius: 10px; }
@media (max-width: 640px) {
  header > a:not(.logo) { display: none; }
  .hero, .product-detail { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 20px; }
  .hero-art { width:100%; max-height:none; }
  .shop { padding-top: 34px; }
  .products { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-art .product-picture { transition: none; }
}

[hidden] { display: none !important; }
.products { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
.product-link { display: block; width: 100%; padding: 0; border: 0; background: white; text-align: left; }
.product-link:focus-visible { outline-offset: -4px; }
.product:nth-child(3) .product-art { background: #eee5f3; }
.product-summary { display: grid; gap: 5px; }
.product-summary strong { font: 700 1.3rem 'Bricolage Grotesque', sans-serif; }
.product-field { display: grid; gap: 6px; margin: 14px 0; font-weight: 700; }
.product-field select, .product-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.product-field .fine { font-weight: 400; }
.template-name { font-weight: 700; margin-bottom: 0; }
.template-name:empty { display: none; }
.button:disabled { opacity: .55; cursor: default; }

.sock-pair {
  position: relative;
  width: min(100%, 460px);
  container-type: inline-size;
  margin: auto;
}
.sock-photo { display: block; width: 100%; border-radius: 10px; }
.sock-lettering {
  position: absolute;
  top: 36%;
  left: 23%;
  width: 19%;
  transform: translate(-50%, -50%) rotate(-3deg);
  color: #593751;
  mix-blend-mode: multiply;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  font: 700 clamp(11px, 4.5cqi, 22px)/1 'Kalam', 'Segoe Print', cursive;
  text-shadow: .025em .045em #59375145;
  mask-image: repeating-linear-gradient(93deg, #000 0 2px, #000c 2px 3px, #000 3px 4px);
}
.sock-lettering:last-child { left: 65%; transform: translate(-50%, -50%) rotate(2deg); }
.bag-sock-text, .bag-calendar-signature { overflow-wrap: anywhere; }
.sock-pair[data-color="rose"] .sock-lettering { color: #9d4258; }
.sock-pair[data-color="sage"] .sock-lettering { color: #355c48; }
.sample-page:has(.calendar-grid) h3, .calendar-grid strong { color: var(--calendar-accent); }

.calendar-stand {
  position: relative;
  display: block;
  width: min(100%, 340px);
  padding: 5px 5px 9px;
  border-radius: 4px;
  background: #d9b4a6;
  box-shadow: 4px 6px #926a5b, 8px 14px 14px #48332935;
}
.calendar-rings {
  position: absolute;
  inset: -4px 16px auto;
  height: 13px;
  background: repeating-linear-gradient(90deg, transparent 0 8px, #796453 8px 11px, #d7be9d 11px 13px, transparent 13px 19px);
}
.calendar-stand .sample-page { padding: 10px 8px 5px; }

.preview-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(63px, 18%, 80px);
  gap: 6px;
  overflow-x: auto;
  padding: 5px 5px 9px;
}
.preview-gallery button { min-width: 0; padding: 4px 2px; border-radius: 8px; font-size: .69rem; line-height: 1.2; }
.preview-gallery img { display: block; width: 100%; height: 36px; object-fit: contain; background: #fff6ea; border-radius: 4px; margin-bottom: 3px; }
#preview > .calendar-stand { width: calc(100% - 8px); margin: 4px 4px 7px; }
.calendar-sheet {
  --calendar-accent: #873e4e;
  --calendar-trim: #e8dcd0;
  background: #fff8ed;
  border: 1px solid var(--calendar-trim);
  border-radius: 9px;
  container-type: inline-size;
  padding: clamp(8px, 2vw, 17px);
}
.green-month { --calendar-accent: #405e49; }
.lavender-month { --calendar-accent: #604a73; }
.calendar-spread { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); align-items: center; gap: clamp(7px, 3cqi, 16px); }
.calendar-page-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; margin: 0 0 7px; }
.calendar-sheet .calendar-page-heading h3 { color: var(--calendar-accent); font-size: clamp(.9rem, 6cqi, 1.85rem); line-height: 1.05; margin: 0; }
.calendar-year { color: #4b6650; font-size: clamp(.58rem, 2.9cqi, .8rem); line-height: 1; }
.calendar-sheet .calendar-grid { gap: 2px; font-size: clamp(.55rem, 3.2cqi, .88rem); font-weight: 700; line-height: 1.05; }
.calendar-sheet .calendar-grid abbr { text-decoration: none; }
.calendar-sheet .calendar-grid > * { border-radius: 4px; border-color: var(--calendar-trim); }
.calendar-sheet .calendar-grid strong { min-height: 0; padding: 4px 0; color: #35483c; background: #e7eddf; }
.calendar-sheet .calendar-grid strong:is(:first-child, :nth-child(7)) { background: #f2d6d2; }
.calendar-sheet .calendar-grid > span { min-height: clamp(18px, 8cqi, 39px); text-align: left; padding: 2px; background: #fffcf7; }
.calendar-grid .calendar-valentine { color: #a0455e; }
.calendar-grid .calendar-valentine { position: relative; }
.calendar-valentine small { position: absolute; right: 2px; bottom: 1px; font-size: .7em; }
.calendar-scene { text-align: center; }
.calendar-scene .doodle-art { width: 100%; max-height: none; margin: 0; mix-blend-mode: multiply; }
.calendar-note-doodles { color: #a25765; font-size: clamp(.65rem, 1.6vw, .95rem); }
.calendar-caption { color: var(--calendar-accent); margin: 3px 0 0; font-size: clamp(.67rem, 3.4cqi, 1.05rem); line-height: 1.1; text-wrap: balance; }
.product-art .calendar-stand .calendar-grid > span { min-height: 16px; }
.calendar-stand .calendar-caption { font-size: .75rem; }


.calendar-sheet {
  font-family: 'Kalam', 'Segoe Print', cursive;
}
.calendar-sheet h3, .calendar-sheet h4 { font-family: inherit; }
.calendar-sheet .writing-lines { height: 54px; }

.calendar-cover {
  container-type: inline-size;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1400 / 1320;
  padding: 0;
  overflow: hidden;
  border: 1px solid #eadbd0;
  border-radius: 8px;
  background: #fff8ed;
  color: #873e4e;
  text-align: center;
  font-family: 'Kalam', 'Segoe Print', cursive;
}
.calendar-stand:has(.calendar-cover) .calendar-rings { z-index: 2; }
.calendar-cover-art { position: absolute; inset: 0; }
.calendar-collage { width: 100%; height: 100%; display: block; object-fit: fill; }
.calendar-cover-copy { position: relative; z-index: 1; width: 50%; margin: auto; }
.calendar-cover-year {
  display: flex;
  justify-content: center;
  gap: .04em;
  font-size: clamp(1.2rem, 12cqi, 4rem);
  font-weight: 700;
  line-height: 1.05;
}
.calendar-cover-year span:nth-child(2n) { color: #4b6650; transform: rotate(7deg); }
.calendar-cover-year span:nth-child(odd) { transform: rotate(-6deg); }
.calendar-cover-year span:nth-child(3) { color: #755786; }
.calendar-cover-kind { display: block; margin-top: 3px; color: #4b6650; font-size: clamp(.75rem, 4.7cqi, 1.2rem); font-weight: 700; line-height: 1.15; }
.calendar-cover-message { margin: 5px 0 3px; font-size: clamp(.55rem, 3.8cqi, 1.25rem); font-weight: 700; line-height: 1.12; text-wrap: balance; }
.calendar-cover-signature { overflow-wrap: anywhere; margin: 6px 0 0; color: #4b6650; font-size: clamp(.48rem, 3cqi, 1rem); line-height: 1.15; }
.calendar-cover-sparkles { color: #a25765; font-size: clamp(.7rem, 4.6cqi, 1.25rem); }
.calendar-cover-art .doodle-art { max-height: none; mix-blend-mode: multiply; }

.sock-pair[data-style="heritage"] .sock-lettering { left: 18%; top: 40%; width: 19%; color: #fff0d3; mix-blend-mode: normal; text-shadow: 0 1px #202c3d; }
.sock-pair[data-style="heritage"] .sock-lettering:last-child { left: 62%; }
.sock-pair[data-style="adventure"] .sock-lettering { left: 18%; top: 38%; width: 20%; }
.sock-pair[data-style="adventure"] .sock-lettering:last-child { left: 62%; }

.tumbler-picture { position: relative; width: min(100%, 460px); margin: auto; container-type: inline-size; }
.tumbler-photo { display: block; width: 100%; border-radius: 10px; }
.tumbler-engraving {
  position: absolute;
  top: 41%;
  left: 45.5%;
  width: 27%;
  transform: translate(-50%, -50%);
  font: 400 clamp(10px, 3.6cqi, 17px)/1.1 'Kalam', 'Segoe Print', cursive;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.tumbler-picture[data-doodle]:not([data-doodle="leaves"]) .tumbler-engraving { left: 47%; top: 56%; }
.tumbler-picture[data-color="mint"] .tumbler-engraving { color: #536b55; opacity: .82; mix-blend-mode: multiply; }
.tumbler-picture[data-color="mint"][data-doodle="grow"] .tumbler-engraving { left: 46%; color: #6b8069; opacity: .9; }
.tumbler-picture[data-color="mint"][data-doodle="leaves"] .tumbler-engraving { color: #758777; opacity: .76; }
.tumbler-picture[data-color="navy"] .tumbler-engraving { color: #c3cbd0; opacity: .88; }
.tumbler-picture[data-color="navy"][data-doodle="leaves"] .tumbler-engraving { color: #bcc5cb; }


.planner-preview-options { display: flex; flex-wrap: wrap; gap: 5px; }
.planner-preview-options button { font-size: .78rem; padding: 5px 9px; }
.journal-preview-page { display: block; width: min(100%, 360px); height: auto; box-shadow: 2px 4px 12px #42352a30; border-radius: 5px; }

.returns-policy { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 16px; }
.returns-policy h2 { margin: 0 0 6px; font-size: 1.15rem; }
.returns-policy p { max-width: 68ch; margin: 0; }
#bag-returns { text-decoration: underline; }

.calendar-shipping { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .875rem; }
.calendar-shipping h3 { margin: 0 0 4px; font-size: 1rem; }
.calendar-shipping p { margin: 4px 0; }

#test-checkout { max-width: 510px; }
#test-checkout-back { margin-top: 12px; }
#test-checkout-result { overflow-wrap: anywhere; }
#open-test-checkout { margin-right: 6px; }
.proof-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:10px 0; }
.proof-row p { flex-basis:100%; margin:0; font-weight:700; }
.proof-row select { padding:8px; max-width:100%; font:inherit; }
.exact-artwork-preview { background:#fffdf7; border:1px solid #d5d9cd; border-radius:10px; padding:12px; text-align:center; margin:0 0 12px; }
.exact-artwork-preview h4 { margin:0 0 8px; font-size:1rem; }
.exact-artwork-preview canvas { display:block; width:auto; max-width:100%; max-height:330px; margin:auto; object-fit:contain; background:repeating-conic-gradient(#e9e9e9 0 25%,#fff 0 50%) 50% / 14px 14px; }
.exact-artwork-preview .fine { margin:8px 0 0; }
.photo-reference-caption { margin:8px 0 5px; text-align:center; font-size:.8rem; color:#52665a; }
.actual-product-mockup { display:block; width:100%; height:auto; border-radius:10px; }
.sock-photo[hidden],.tumbler-photo[hidden] { display:none; }
.ad-consent[hidden] {display:none}
.ad-consent {position:fixed;z-index:1000;bottom:18px;left:50%;transform:translateX(-50%);width:min(94vw,720px);background:#fffdf7;border:1px solid #bec9bb;box-shadow:0 8px 30px #263c3433;border-radius:14px;padding:18px;display:flex;gap:16px;align-items:center}
.ad-consent h2 {font-size:1.15rem;margin:0 0 6px}
.ad-consent p {font-size:.9rem;margin:0}
.ad-consent-actions {display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
.ad-consent-actions button {white-space:nowrap;background:#fffdf7;color:var(--ink);border:1px solid var(--ink)}
@media(max-width:600px){.ad-consent {flex-direction:column;align-items:stretch}.ad-consent-actions button{flex:1}}

.pixel-diagnostic {margin-top:12px}.pixel-diagnostic pre {white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.85rem;background:#fffdf7;padding:12px;border-radius:8px}


/* Compact gift-shop experience on phones; desktop composition stays intact. */
.mobile-hero-note{display:none}
@media(max-width:640px){
  header{padding:13px 17px;gap:12px;background:#fffdf7}
  header .logo{font-size:1.48rem;white-space:nowrap;letter-spacing:-.055em}
  header .bag{padding:7px 12px;font-size:.85rem;border-color:#d6c7b8;background:#f8e5de;min-height:40px}
  .hero{min-height:0;display:flex;flex-direction:column;gap:0;background:#fffaf0;padding-bottom:23px;border-bottom:1px solid #eaded0}
  .hero-copy{position:relative;padding:22px 23px 18px;text-align:center;align-self:stretch}
  .mobile-hero-note{display:inline-block;font:700 1rem 'Kalam','Segoe Print',cursive;color:#a04f56;background:#fbe3db;padding:4px 13px;border-radius:24px;transform:rotate(-3deg);margin-bottom:9px}
  .hero h1{font-size:clamp(2.1rem,8.8vw,3.4rem);line-height:1.04;letter-spacing:-.055em;max-width:15ch;margin:0 auto}
  .hero h1 em{display:inline;color:#a05248;font-weight:700}
  .hero-copy p{font-size:.95rem;line-height:1.45;max-width:34ch;margin:12px auto 15px;color:#506255}
  .hero-copy .button{font-size:.9rem;padding:10px 22px;min-height:44px;background:#354f41;box-shadow:0 3px 0 #d1bfa9}
  .hero-art{display:grid;width:auto;aspect-ratio:auto;max-height:none;margin:0 18px;gap:10px;grid-template-rows:repeat(2,minmax(0,1fr));overflow:visible}
  .hero-product-tile{height:clamp(136px,39vw,220px);padding:9px 7px 10px;grid-template-rows:minmax(0,1fr) auto;border-radius:16px;border:1px solid #00000008;box-shadow:0 3px 0 #47383013;overflow:hidden}
  .hero-product-tile:nth-child(1){background:#f6d3bd;transform:rotate(-1.25deg)}
  .hero-product-tile:nth-child(2){background:#e5d8ee;transform:rotate(1.25deg)}
  .hero-product-tile:nth-child(3){background:#f1d5d8;transform:rotate(1deg)}
  .hero-product-tile:nth-child(4){background:#dce9d4;transform:rotate(-1deg)}
  .hero-tile-art .calendar-stand{width:min(78%,150px);margin:3px;padding:3px 3px 5px;box-shadow:2px 3px #926a5b,5px 8px 8px #48332924}
  .hero-tile-art .calendar-rings{height:8px;inset:-3px 7px auto;background-size:auto 8px}
  .hero-tile-art .planner-book{width:min(45%,92px);margin:4px 0 5px}
  .hero-tile-art .sock-pair,.hero-tile-art .tumbler-picture{width:min(83%,150px)}
  .hero-tile-art .sock-photo,.hero-tile-art .tumbler-photo{border-radius:12px}
  .hero-tile-label{font:700 .79rem 'DM Sans',sans-serif;margin:4px 0 0;line-height:1.12}
  .hero-tile-art .calendar-cover-year{font-size:clamp(.75rem,12cqi,1.6rem)}
  .hero-tile-art .calendar-cover-kind{font-size:.48rem;margin-top:1px}
  .hero-tile-art .calendar-cover-message{font-size:.43rem;margin:2px 0}
  .hero-tile-art .calendar-cover-signature{font-size:.35rem;margin:2px 0}
  .shop{padding:25px 17px 40px}
  .shop h2{font-size:1.85rem;letter-spacing:-.045em;margin:0 0 16px}
  .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product{border-radius:15px;box-shadow:0 3px 0 #4738300b}
  .product-art{padding:10px;aspect-ratio:1}
  .product-summary{padding:11px;gap:4px}
  .product-summary strong{font-size:1rem;line-height:1.16;overflow-wrap:anywhere}
  .product-summary .price{font-size:1rem}
  .product-summary > span:not(.price){font-size:.8rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  footer{padding:20px 17px}
}
@media(prefers-reduced-motion:reduce){.hero-product-tile{transition:none}}

.hero-art.lifestyle-gallery{position:relative;display:block;aspect-ratio:1;max-height:680px;overflow:hidden;background:#f8ecdf}
.gallery-image-wrap{position:relative;width:100%;height:100%;touch-action:pan-y}
.gallery-image-wrap img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-prev,.gallery-next{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:1px solid #fff8ee;background:#fffdf4df;color:#354f41;font-size:1.9rem;line-height:1;display:grid;place-items:center;box-shadow:0 2px 10px #372b2220}
.gallery-prev{left:14px}.gallery-next{right:14px}
.gallery-prev:hover,.gallery-next:hover{background:#fffdf4}
.gallery-dots{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;background:#fffdf5e8;padding:3px 7px;border-radius:30px;box-shadow:0 3px 12px #35271d15}
.gallery-dots button{position:relative;width:28px;height:28px;border:0;background:transparent;border-radius:50%;padding:0}
.gallery-dots button::before{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:#a68c77;top:50%;left:50%;transform:translate(-50%,-50%)}
.gallery-dots button[aria-pressed="true"]::before{width:14px;border-radius:8px;background:#385544}
.gallery-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:640px){
  .hero-art.lifestyle-gallery{margin:0 18px;aspect-ratio:1.1;max-height:none;width:auto;border-radius:22px;box-shadow:0 4px 0 #ddc7a8}
  .gallery-prev,.gallery-next{width:38px;height:38px;font-size:1.65rem}
  .gallery-prev{left:9px}.gallery-next{right:9px}.gallery-dots{bottom:9px}
}

/* Sunlit, photographic calendar mockup with live printable artwork over paper. */
.product-art.calendar-lifestyle-card { padding: 0; overflow: hidden; background: #f0dfc9; }
.calendar-lifestyle-photo { display:block; width:100%; height:100%; object-fit:cover; object-position:center 48%; }
.calendar-photo-preview { display:block; position:relative; width:100%; max-width:520px; aspect-ratio:1; background: url('assets/calendar-lifestyle-blank.webp') center/100% 100% no-repeat; border-radius:12px; overflow:hidden; }
.calendar-photo-preview .calendar-cover { position:absolute; left:16%; top:23.4%; width:68%; height:55.7%; aspect-ratio:auto; background:transparent; border:0; border-radius:0; mix-blend-mode:multiply; }
.calendar-photo-preview .calendar-collage { filter:contrast(1.12) saturate(1.18); }
.calendar-photo-preview .calendar-cover-year { font-weight:400; gap:.015em; }
.calendar-photo-preview .calendar-cover-year span { transform:none; color:#785d83; }
.calendar-photo-preview .calendar-cover-kind { font-weight:400; color:#4d684c; margin-top:2px; }
.calendar-photo-preview .calendar-cover-message { font-weight:400; color:#914d53; }
.calendar-photo-preview .calendar-cover-signature { color:#52694f; }
.preview-panel:has(.calendar-photo-preview) { background:#f5ead9; }
.calendar-sheet .calendar-scene .doodle-art { filter:contrast(1.1) saturate(1.13); }

/* Phone checkout: keep controls visible and avoid cramped fields. */
.checkout-proofs { margin:14px 0; padding:12px; border:1px solid var(--line); border-radius:12px; }
.checkout-proofs summary { cursor:pointer; font-weight:600; }
@media(max-width:640px){
  dialog { width:calc(100% - 20px); max-width:100%; max-height:calc(100dvh - 20px); margin:auto; padding:16px 14px 18px; overflow:auto; overscroll-behavior:contain; scroll-padding-top:52px; }
  dialog > .close { position:sticky; top:0; display:grid; place-items:center; margin:0 0 4px auto; width:44px; height:44px; z-index:5; border-radius:50%; background:#fffdf7; box-shadow:0 2px 7px #263c341c; font-size:1.65rem; line-height:1; }
  .product-detail { gap:16px; }
  .product-copy, .preview-panel { min-width:0; }
  .preview-panel { padding:8px; }
  #preview .calendar-photo-preview,#preview .sock-pair,#preview .tumbler-picture { max-width:min(100%,320px); }
  #preview .planner-book { max-width:180px; }
  .preview-gallery { grid-auto-columns:72px; margin-bottom:5px; padding:4px 2px 8px; }
  .preview-gallery button { min-height:54px; }
  .product-copy h2 { font-size:clamp(1.65rem,7vw,2.1rem); margin-bottom:14px; }
  .product-copy p { overflow-wrap:anywhere; }
  .product-field select,.product-field input { min-height:46px; font-size:16px; min-width:0; }
  .product-purchase { position:sticky; bottom:-18px; display:flex; align-items:center; gap:12px; background:#fffdf7; padding:12px 0 max(10px,env(safe-area-inset-bottom)); z-index:3; border-top:1px solid #e3d8c9; }
  .product-purchase .price { margin:0; white-space:nowrap; }
  .product-purchase #add { flex:1; min-height:48px; }
  #cart .button,#test-checkout-form .button,#test-checkout-back { min-height:46px; width:100%; margin:6px 0; }
  #test-checkout-back { border:1px solid var(--line); border-radius:30px; background:var(--paper); }
  .cart-row { align-items:flex-start; }
  .cart-row > div { min-width:0; overflow-wrap:anywhere; }
  .cart-row button { flex-shrink:0; min-height:44px; padding:8px 10px; }
  .proof-row select { min-height:44px; width:100%; }
  .proof-row .button { width:100%; min-height:44px; }
  .gallery-prev,.gallery-next { width:44px; height:44px; }
  .gallery-dots button { width:38px; height:38px; }
  .ad-consent { max-height:calc(100dvh - 32px); overflow:auto; padding:12px 14px; bottom:max(10px,env(safe-area-inset-bottom)); gap:8px; }
  .ad-consent-actions button { min-height:44px; }
}
