/* House of Rex: classy, light-hearted. Cream paper, deep forest ink, berry + gold accents. */
:root {
  --cream: #f7f2ea;
  --paper: #fffdf9;
  --ink: #1c2233;
  --forest: #1f2d4f;
  --forest-deep: #162241;
  --berry: #9e2b32;
  --gold: #b98b3e;
  --blush: #f1e2d6;
  --sage: #e8eaf3;
  --muted: #6b6a63;
  --line: #e4dccf;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--berry); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

/* Placeholders still to decide: visible on purpose */
.tbc { background: #fff1b8; color: #6b5200; border-radius: 4px; padding: 0 .3em; font-style: normal; }

.eyebrow {
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow-light { color: #e8c98a; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--forest);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--forest-deep); }
.btn-small { padding: .55em 1.1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-cream { background: var(--cream); color: var(--forest-deep); border-color: var(--cream); }
.btn-cream:hover { background: #fff; }
.btn-soft { background: #5f6b8a; border-color: #5f6b8a; }

/* Announcement + header */
.announce { background: var(--berry); color: #fff; text-align: center; font-size: .9rem; padding: .55em 16px; }
.announce a { text-decoration: none; }
.announce .tbc { color: #6b5200; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, calc((100vw - var(--wrap)) / 2));
  background: rgba(247, 242, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: inline-flex; align-items: flex-end; color: var(--forest); line-height: 0; }
.logo-mark svg { display: block; overflow: visible; }
.logo-footer .logo-mark { color: var(--ink); }
.logo-word { font: 600 1.35rem/1 var(--serif); white-space: nowrap; }
.logo-word em { font-weight: 400; color: var(--gold); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Frames: white mount inside a moulding */
.frame {
  margin: 0;
  background: var(--paper);
  padding: 0;
  border: 14px solid #262220;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 40px -18px rgba(28, 34, 51, .45), 0 3px 8px rgba(28, 34, 51, .12);
  aspect-ratio: 1;
}
/* The mount: margins are % of the frame's own width, so it scales with any frame size */
.frame > * { width: 82%; height: 82%; margin: 9%; }
.frame img { object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.frame-black { border-color: #262220; }
.frame-oak { border-color: #b88a5a; border-image: linear-gradient(135deg, #c99a68, #9c6f43 50%, #c49563) 1; }
.frame-gold { border-image: linear-gradient(135deg, #d8b46a, #9e7630 45%, #e4c37f 70%, #a67d36) 1; }
.frame-white { border-color: #f4f1ec; box-shadow: 0 18px 40px -20px rgba(28, 34, 51, .35), 0 0 0 1px var(--line); }
.frame-tilt { transform: rotate(-2.5deg); }

/* Layout wrappers */
main > section { padding: 96px max(16px, calc((100vw - var(--wrap)) / 2)); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
  padding-top: 72px !important;
}
.lede { font-size: 1.2rem; color: #3d4250; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "\2726"; color: var(--gold); margin-right: .45em; }
.hero-art { max-width: 480px; justify-self: center; width: 100%; }
.hero-caption { text-align: center; margin-top: 28px; font: italic 400 1.1rem/1.4 var(--serif); }
.hero-caption span { display: block; color: var(--muted); font-size: .95rem; }

/* Collection index cards */
.collections-index {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding-top: 0 !important;
}
.ci-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid var(--line);
  background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ci-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(28, 34, 51,.4); }
.ci-card strong { font: 600 1.4rem/1.2 var(--serif); }
.ci-card span:last-child { color: var(--muted); font-size: .93rem; }
.ci-kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ci-funny { border-top: 4px solid var(--gold); }
.ci-occasion { border-top: 4px solid var(--forest); }
.ci-seasonal { border-top: 4px solid var(--berry); }
.ci-memory { border-top: 4px solid #8f9ab3; }

/* Collections */
.collection-head { max-width: 640px; margin-bottom: 48px; }
.collection-head p:last-child { color: #4a4f5c; font-size: 1.08rem; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.product .frame { margin-bottom: 26px; max-width: 460px; }
.product-body { max-width: 460px; }
.product-body p { color: #4a4f5c; }
.price { font-weight: 600; color: var(--ink) !important; }

#funny { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Feature (special occasions) */
.collection-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-art { max-width: 500px; width: 100%; justify-self: center; }
.tags { list-style: none; padding: 0; margin: 4px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .35em .95em; font-size: .9rem; }

/* Seasonal (Christmas) */
.seasonal {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, #26386a 0%, var(--forest-deep) 60%, #0f1730 100%);
  color: #f4eee3;
}
.seasonal h2 em { color: #f0b9a8; }
.seasonal .collection-head p:last-child { color: #cfd6e4; }
.snow {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 200px 160px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60px 200px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 260px 40px, #fff 50%, transparent 51%);
  background-size: 300px 240px;
  animation: snow 18s linear infinite;
}
@keyframes snow { to { background-position: 0 240px; } }
@media (prefers-reduced-motion: reduce) { .snow { animation: none; } }
.seasonal > * { position: relative; }
.product-light .product-body p { color: #cfd6e4; }
.product-light .price { color: #fff !important; }
.frame-placeholder { border-color: #0d1428; }
.placeholder-art {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: repeating-linear-gradient(45deg, #9e2b32 0 14px, #8a242b 14px 28px);
  color: #fff; padding: 12%;
}
.ph-star { font-size: 2.6rem; color: #f2cf7b; }
.ph-title { font: italic 600 1.6rem/1.15 var(--serif); }
.ph-sub { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.deadline {
  align-self: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  padding: 40px; background: rgba(255,255,255,.04);
}
.deadline-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: #e8c98a; }
.deadline-date { font: 600 2.6rem/1.1 var(--serif); display: inline-block; margin-bottom: 16px; }
.deadline p:not(.deadline-kicker):not(.deadline-date) { color: #d8deea; }

/* Memory: calmer, softer, no jokes */
.memory { background: var(--sage); }
.memory-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.memory h2 { font-weight: 400; }
.memory .frame { max-width: 480px; width: 100%; justify-self: center; }
.memory-copy p { color: #454b58; font-size: 1.08rem; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blush); color: var(--berry); font: italic 600 1.3rem/1 var(--serif); margin-bottom: 18px;
}
.steps p { color: #4a4f5c; margin: 0; }

/* The frame */
.the-frame { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: center; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.frame-large { max-width: 380px; width: 100%; }
.spec { list-style: none; padding: 0; margin: 0; }
.spec li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec li:last-child { border-bottom: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 1.2rem/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; color: #4a4f5c; }

/* CTA */
.cta { background: var(--berry); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #f6dede; font-size: 1.1rem; }
.cta .cta-note { display: block; width: fit-content; margin: 28px auto 0; color: #6b5200; font-size: .95rem; }

/* Footer */
.site-footer {
  padding: 48px max(16px, calc((100vw - var(--wrap)) / 2));
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px;
  color: var(--muted); font-size: .9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { text-decoration: none; }
.site-footer p { margin: 0 0 0 auto; }

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .site-header .btn-small { margin-left: auto; }
  .hero, .collection-feature, .memory-inner, .the-frame { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 340px; }
  .collections-index { grid-template-columns: repeat(2, 1fr); }
  .the-frame .frame-large { max-width: 320px; justify-self: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  main > section { padding-top: 64px; padding-bottom: 64px; }
  .products, .steps { grid-template-columns: 1fr; gap: 36px; }
  .collections-index { grid-template-columns: 1fr; }
  .frame { border-width: 10px; }
  .logo-word { font-size: 1.15rem; }
  .deadline { padding: 28px; }
  .site-footer p { margin-left: 0; }
}

/* ===================== Inner pages ===================== */
.page { padding: 40px max(16px, calc((100vw - var(--wrap)) / 2)) 96px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 .5em; color: var(--line); }

/* Collection page */
.collection-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.collection-hero p { color: #4a4f5c; font-size: 1.1rem; max-width: 36em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .45em 1em; font: 500 .9rem var(--sans); color: var(--ink); text-decoration: none; }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.card-link { text-decoration: none; display: block; }
.card-link .frame { transition: transform .2s ease; margin-bottom: 20px; }
.card-link:hover .frame { transform: translateY(-4px) rotate(-.6deg); }
.card-link h3 { margin-bottom: .25em; }
.card-link p { color: #4a4f5c; margin: 0 0 .4em; }
.badge { display: inline-block; font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: .5em .8em; border-radius: 999px; background: var(--blush); color: var(--berry); margin-bottom: 10px; }
.coming { opacity: .9; }
.coming .frame { filter: saturate(.6); }
.soon-art { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, #efe6d8 0 12px, #e9dfcf 12px 24px); color: var(--muted); font: italic 500 1.15rem/1.3 var(--serif); padding: 12%; }
.band { margin-top: 72px; border-radius: var(--radius); background: var(--forest); color: #f4eee3; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h3 { margin: 0; color: #fff; }
.band p { margin: 0; color: #cfd6e4; }

/* Product page */
.product-page { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.gallery { position: sticky; top: 100px; }
.gallery .frame { max-width: 520px; margin: 0 auto; transition: border-color .2s ease; }
.thumbs { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.thumbs button { width: 74px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.thumbs button.is-active { border-color: var(--forest); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; }
.buy h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .2em; }
.buy .lede { font-size: 1.1rem; }
.buy-price { font: 600 1.6rem/1 var(--serif); margin: 18px 0 28px; }
.buy-price small { font: 400 .9rem var(--sans); color: var(--muted); margin-left: .5em; }
.form-step { border-top: 1px solid var(--line); padding: 24px 0; }
.form-step > label:not(.dropzone), .form-step legend { display: flex; align-items: baseline; gap: 10px; font: 600 1.05rem/1.3 var(--sans); margin-bottom: 12px; padding: 0; }
.form-step legend { float: left; width: 100%; }
.form-step legend + * { clear: both; }
fieldset.form-step { border-left: 0; border-right: 0; border-bottom: 0; margin: 0; min-width: 0; }
.step-tag { font: italic 600 .95rem/1 var(--serif); color: var(--berry); }
.hint { font-size: .88rem; color: var(--muted); margin: 8px 0 0; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed #cdbfa9; border-radius: var(--radius); padding: 28px; text-align: center; background: var(--paper); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone.is-over { border-color: var(--forest); background: #fbf8f2; }
.dropzone strong { font-family: var(--serif); font-size: 1.15rem; }
.dropzone span { color: var(--muted); font-size: .9rem; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.previews { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.input { width: 100%; font: 400 1rem var(--sans); padding: .8em 1em; border: 1px solid #d6cbb9; border-radius: 10px; background: #fff; color: var(--ink); }
.input:focus { outline: 2px solid var(--forest); outline-offset: 1px; border-color: transparent; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4em .9em .4em .45em; font-size: .9rem; cursor: pointer; }
.swatch i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatch input:checked + span { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.swatch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.buy-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.buy-actions .btn { text-align: center; font-size: 1.05rem; }
.assurances { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; color: #4a4f5c; font-size: .93rem; }
.assurances li::before { content: "\2726"; color: var(--gold); margin-right: .5em; }
.xmas-note { background: #fbeceb; border: 1px solid #efcfcc; color: #7a2228; border-radius: 10px; padding: 12px 16px; font-size: .92rem; margin: 0 0 8px; }
.xmas-note .tbc { color: #6b5200; }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 96px; }
.details-grid h3 { font-size: 1.2rem; }
.details-grid p { color: #4a4f5c; margin: 0; }

/* Memorial variant: quieter */
.page-memorial { background: var(--sage); }
.page-memorial .buy h1 { font-weight: 400; }
.page-memorial .btn { background: #55607c; border-color: #55607c; }
.page-memorial .btn:hover { background: #465170; }
.gentle-note { background: rgba(255,255,255,.6); border-radius: var(--radius); padding: 20px 24px; color: #454b58; margin: 0 0 8px; }
.gentle-note strong { font-family: var(--serif); font-weight: 600; display: block; margin-bottom: 4px; color: var(--ink); }

/* Basket / checkout */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel h2 { font-size: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; background: #fff; cursor: pointer; }
.radio-card input { margin-top: 4px; accent-color: var(--forest); }
.radio-card strong { display: block; }
.radio-card span { color: var(--muted); font-size: .9rem; }
.radio-card .rc-price { margin-left: auto; font-weight: 600; color: var(--ink); white-space: nowrap; }
.line-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.line-item .frame { border-width: 6px; box-shadow: 0 6px 14px -8px rgba(28, 34, 51,.4); }
.line-item h3 { font-size: 1.15rem; margin: 0 0 4px; }
.line-item p { margin: 0; color: var(--muted); font-size: .88rem; }
.totals { display: grid; gap: 10px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font: 600 1.3rem var(--serif); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.secure { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 12px; }

/* Confirmation */
.confirm { max-width: 760px; margin: 0 auto; text-align: center; }
.confirm .frame { max-width: 260px; margin: 0 auto 36px; transform: rotate(2deg); }
.timeline { list-style: none; padding: 0; margin: 48px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; counter-reset: t; }
.timeline li { position: relative; padding-top: 44px; font-size: .92rem; color: #4a4f5c; }
.timeline li::before { counter-increment: t; content: counter(t); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); font: italic 600 1rem/1 var(--serif); color: var(--muted); }
.timeline li.done::before { background: var(--forest); border-color: var(--forest); color: #fff; }
.timeline strong { display: block; color: var(--ink); }

@media (max-width: 980px) {
  .collection-hero, .product-page, .checkout { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { position: static; }
  .details-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .panel { padding: 22px; }
  .line-item { grid-template-columns: 72px 1fr; }
  .line-item > :last-child { grid-column: 2; }
}

/* Format choice: framed vs digital */
.format-step legend { font-family: var(--serif); font-size: 1.15rem; }
.format-card { position: relative; }
.format-card b { color: var(--forest); font-weight: 600; }
.format-card:has(input:checked) { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.format-card { align-items: center; }
.format-flag { display: inline-block; vertical-align: 2px; margin-left: 6px; background: var(--gold); color: #fff; font: 600 .62rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .45em .65em; border-radius: 999px; font-style: normal; }
.extra-copy { margin-top: 14px; }
[hidden] { display: none !important; }

/* Digital preview: square file + phone */
.digital-set { display: flex; align-items: flex-end; justify-content: center; gap: 28px; }
.digital-set figure { margin: 0; text-align: center; }
.digital-set figcaption { margin-top: 12px; font-size: .88rem; font-weight: 600; }
.digital-set figcaption span { font-weight: 400; color: var(--muted); }
.digital-square { flex: 1 1 0; max-width: 340px; }
.digital-square img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(28, 34, 51,.5); }
.phone { flex: 0 0 auto; width: 150px; }
.phone-screen { position: relative; border: 7px solid #1b1b1d; border-radius: 26px; overflow: hidden; box-shadow: 0 18px 40px -16px rgba(28, 34, 51,.55); aspect-ratio: 9 / 16; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
/* The wallpaper fills the whole phone screen (centred, trimmed at the sides), the same for every design */
.phone-screen img { object-position: 50% 50%; }
.phone-time { position: absolute; top: 16%; left: 0; right: 0; text-align: center; color: #fff; font: 600 1.6rem/1 var(--sans); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
@media (max-width: 640px) { .digital-set { gap: 16px; } .phone { width: 112px; } }
.incl { color: var(--forest); font-weight: 600; }
.digital-thumb { margin: 0; position: relative; }
.digital-thumb img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 14px -8px rgba(28, 34, 51,.4); }
.digital-thumb::after { content: "Digital"; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); background: var(--forest); color: #fff; font: 600 .62rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .4em .6em; border-radius: 999px; }
.digital-ready { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 28px auto 0; max-width: 560px; color: #4a4f5c; font-size: .95rem; }

/* Clickable portraits and "see all" links */
.product-link { display: block; text-decoration: none; color: inherit; }
.product-link .frame { transition: transform .2s ease, box-shadow .2s ease; }
.product-link:hover .frame { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 24px 44px -18px rgba(28, 34, 51, .5), 0 3px 8px rgba(28, 34, 51, .12); }
.product-link:hover .frame-tilt { transform: rotate(-2.5deg) translateY(-4px); }
.product-link:focus-visible .frame { outline: 3px solid var(--gold); outline-offset: 4px; }
.product-body h3 a { text-decoration: none; color: inherit; }
.product-body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.see-all { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--forest); text-decoration: none; border-bottom: 1px solid currentColor; }
.see-all:hover { color: var(--berry); }
.feature-copy .see-all { margin-left: 18px; }
.see-all-light { color: #f0d9a6; }
.see-all-light:hover { color: #fff; }

/* Discount code */
.discount { margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.discount label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.discount-row { display: flex; gap: 8px; }
.discount-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.discount-row .btn { flex: 0 0 auto; }
.discount-msg { margin: 8px 0 0; font-size: .88rem; min-height: 1.2em; }
.discount-msg.is-error { color: var(--berry); }
.discount-msg.is-ok { color: var(--forest); font-weight: 600; }
#discountLine span:last-child { color: var(--forest); font-weight: 600; }

/* Several pets in one portrait */
.pet-count { margin-bottom: 10px; }
.pet-count .swatch span { padding: .45em 1em; }
.pet-count small { color: var(--muted); margin-left: 4px; }
.pet-hint { margin: 0 0 12px; color: var(--forest); font-weight: 500; }
.pet-group + .pet-group { margin-top: 16px; }
.pet-label { font: italic 600 1rem var(--serif); margin: 0 0 6px; }
.pet-count .swatch span { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.pet-count small { margin-left: 2px; font-weight: 400; }
.pet-count small b { font-weight: 500; }

/* Portraits: no drag-to-save or selection highlight (they are also watermarked) */
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* Free preview step */
.preview-step { background: var(--paper); border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 22px !important; margin: 8px 0 18px; }
.preview-badge { background: var(--gold); color: #fff; font: 600 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .45em .65em; border-radius: 999px; }
.consent-note { font-size: .85rem; color: var(--muted); margin: 4px 0 8px; }
.consent-note a { color: inherit; }
.optout { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 0 0 14px; cursor: pointer; }
.optout input { accent-color: var(--forest); width: 16px; height: 16px; }
.preview-msg { color: var(--berry); font-size: .88rem; margin: 8px 0 0; min-height: 1.2em; }
.preview-result { margin-top: 14px; }
.preview-img { position: relative; max-width: 320px; }
.preview-img img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 30px -16px rgba(28, 34, 51, .5); }
.preview-stamp { position: absolute; top: 12px; left: 12px; background: var(--berry); color: #fff; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: .5em .8em; border-radius: 6px; transform: rotate(-4deg); }
.preview-result p { font-size: .92rem; color: #4a4f5c; margin: 12px 0 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Basket quantities */
.qty-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 30px; height: 30px; border: 0; background: none; font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; border-radius: 50%; }
.qty button:hover:not(:disabled) { background: var(--cream); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .92rem; }
.remove-link { border: 0; background: none; padding: 0; color: var(--muted); font: 500 .85rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.remove-link:hover { color: var(--berry); }
.empty-basket { text-align: center; padding: 20px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.empty-basket p { color: var(--muted); }
.optout.consent { align-items: flex-start; font-size: .88rem; }
.optout.consent input { margin-top: 3px; flex: 0 0 auto; }

/* Rolling review banner */
.review-ticker { background: var(--ink); color: #f4eee3; overflow: hidden; white-space: nowrap; font-size: .85rem; height: 34px; display: flex; align-items: center; }
.rt-track { display: inline-flex; animation: rt-scroll 60s linear infinite; }
.review-ticker:hover .rt-track, .review-ticker:focus-within .rt-track { animation-play-state: paused; }
.rt-run { display: inline-flex; align-items: center; flex: 0 0 auto; }
.rt-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; }
.rt-stars { color: #e4c37f; letter-spacing: 1px; }
.rt-half { display: inline-block; width: .55em; overflow: hidden; vertical-align: bottom; }
.rt-name { color: #b8bfd0; font-style: italic; }
.rt-sep { color: var(--gold); opacity: .7; }
.rt-placeholder .rt-text, .rt-placeholder .rt-name { background: rgba(255, 241, 184, .16); border-radius: 4px; padding: 0 .35em; color: #fff1b8; font-style: normal; }
@keyframes rt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rt-track { animation: none; } .review-ticker { overflow-x: auto; } }

/* Big Brother / Big Sister options */
.sub-label { font-weight: 600; font-size: .92rem; margin: 14px 0 8px; }
.sub-label:first-of-type { margin-top: 0; }
.optional { font-weight: 400; color: var(--muted); }
.design-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.design-opt { position: relative; cursor: pointer; text-align: center; font-size: .85rem; font-weight: 500; }
.design-opt input { position: absolute; opacity: 0; }
.design-opt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid transparent; display: block; margin-bottom: 6px; }
.design-opt input:checked + img { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest); }
.design-opt input:focus-visible + img { outline: 2px solid var(--gold); outline-offset: 2px; }
.due-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; max-width: 360px; }
#signPreview b { letter-spacing: .04em; }
.add-on { margin-top: 12px; }
.add-on-upload { margin: 0 0 6px; }
.dropzone-sm { padding: 16px; }
.preview-options { display: block; margin-top: 8px; padding: 10px 12px; background: var(--cream); border-radius: 8px; font-size: .86rem; }

/* Reviews page */
.reviews-hero { margin-bottom: 36px; }
.reviews-summary { font-size: 1.1rem; color: #4a4f5c; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.review-card blockquote { margin: 0; font: italic 400 1.12rem/1.45 var(--serif); }
.review-card figcaption { color: var(--muted); font-size: .9rem; margin-top: auto; }
.review-card.is-placeholder blockquote, .review-card.is-placeholder figcaption { background: #fff1b8; color: #6b5200; border-radius: 4px; padding: 0 .3em; font-style: normal; align-self: flex-start; }
@media (max-width: 980px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }

/* Turnstile bot check */
.turnstile-box { margin: 0 0 12px; min-height: 0; }

/* Added photos: thumbnails with a remove button */
.previews .thumb { position: relative; display: inline-block; }
.previews .thumb img { display: block; }
.thumb-x { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; font: 600 14px/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding: 0; }
.thumb-x:hover { background: var(--berry); }
.photo-count { margin: 6px 0 0; }
.dropzone.is-full { opacity: .5; pointer-events: none; }

.preview-quality { display: block; margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--gold); background: #fffaf0; font-size: .86rem; color: #4a4f5c; }

/* Preview couldn't be shown: reason + tips */
.preview-problem { margin-top: 12px; padding: 14px 16px; border-radius: 10px; background: #fbeceb; border: 1px solid #efcfcc; color: #5c1d22; font-size: .9rem; }
.preview-problem p { margin: 0 0 6px; }
.preview-problem ul { margin: 6px 0 8px; padding-left: 18px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--forest); font: 600 .9rem var(--sans); text-decoration: underline; cursor: pointer; }
/* Low-resolution photo warning */
.previews .thumb.is-small img { outline: 2px solid #d99a00; outline-offset: 1px; }
.previews .thumb.is-small::after { content: "!"; position: absolute; bottom: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%; background: #d99a00; color: #fff; font: 700 12px/20px var(--sans); text-align: center; border: 2px solid #fff; }
.photo-count.is-warning { color: #8a5a00; font-weight: 500; }
.photo-tips { background: var(--cream); border-radius: 10px; padding: 10px 12px; font-size: .86rem; color: #4a4f5c; margin: 0 0 12px; }

/* Breadcrumb: the current page name is a span too; don't give it the faint separator colour */
.crumbs span[id] { color: var(--ink); margin: 0; font-weight: 500; }

/* Phone menu */
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; padding: 0 10px; margin-left: 4px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-header.menu-open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(28, 34, 51, .35); padding: 6px 16px 12px; }
  .site-header.menu-open .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.02rem; }
  .site-header.menu-open .nav a:last-child { border-bottom: 0; }
}

/* Four-card collections */
@media (min-width: 981px) { .grid-3.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; } }

/* Homepage: four designs in a row (two on tablets and phones) */
.products.products-4 { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.products.products-4 .product .frame, .products.products-4 .product-body { max-width: none; }
.products.products-4 h3 { font-size: 1.25rem; }
.products.products-4 .product-body p { font-size: .95rem; }
@media (max-width: 980px) { .products.products-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .products.products-4 { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .products.products-4 .frame { border-width: 7px; } .products.products-4 h3 { font-size: 1.05rem; }
  .products.products-4 .product-body p:not(.price) { display: none; } }

/* Collection pages: sub-category quick links and headings */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 10px 0; background: var(--cream); }
@media (min-width: 761px) { .subnav { position: sticky; top: 74px; z-index: 5; } }
.chip-sm { padding: .35em .9em; font-size: .85rem; }
.chip-sm small { color: var(--muted, #7a726a); margin-left: 2px; }
.chip-sm:hover { border-color: var(--ink); }
.sub-section { scroll-margin-top: 128px; margin-top: 36px; }
.subnav + .sub-section { margin-top: 20px; }
.sub-title { font: 600 1.5rem var(--serif, Fraunces, Georgia, serif); margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tags-links a { color: inherit; text-decoration: none; }
.tags-links a:hover { text-decoration: underline; }

/* Example gallery (product + memorial pages) */
.frame.has-gallery { position: relative; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 253, 249, .92); color: var(--ink); font: 400 28px/1 var(--serif); cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(28, 34, 51, .45); display: grid; place-items: center; padding: 0 0 3px; margin: 0 !important; width: 40px !important; height: 40px !important; z-index: 2; }
.gal-arrow:hover { background: #fff; }
.gal-prev { left: -8px; } .gal-next { right: -8px; }
.gal-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px auto 4px; max-width: 520px; }
.gal-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.gal-dot.is-active { background: var(--forest); }
.gal-count { font: 500 .8rem var(--sans); color: var(--muted); margin-left: 6px; }

/* Homepage hero: The King plus a small frame cycling through other designs */
.hero-art { position: relative; }
.hero-more { position: absolute; left: -18%; bottom: 12%; width: 42%; z-index: 2; text-decoration: none; transform: rotate(3deg); transition: transform .25s ease; }
.hero-more:hover { transform: rotate(3deg) translateY(-4px); }
.hero-more .frame { border-width: 9px; box-shadow: 0 18px 36px -14px rgba(28, 34, 51, .5); }
.hero-more img { transition: opacity .35s ease; }
.hero-more img.is-fading { opacity: 0; }
.hero-more-label { display: block; margin-top: 8px; text-align: center; font: 500 .8rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: .25em .8em; width: fit-content; margin-inline: auto; white-space: nowrap; }
@media (max-width: 980px) { .hero-more { left: -6%; width: 40%; } }

/* Christmas: rich red, gentle snow, a gold garland. Classy, not loud. */
.seasonal { background: radial-gradient(120% 90% at 20% 0%, #a3262f 0%, #7d1820 55%, #5a0f15 100%); }
.seasonal .collection-head p:last-child, .product-light .product-body p { color: #f3dcd6; }
.seasonal h2 em { color: #f4d58d; }
.frame-placeholder { border-color: #3b0a0e; }
.deadline { background: rgba(0,0,0,.12); border-color: rgba(244, 213, 141, .35); }
.deadline p:not(.deadline-kicker):not(.deadline-date) { color: #f3dcd6; }
.garland { position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, #f4d58d 0 5px, transparent 6px) 0 6px / 90px 40px repeat-x,
    radial-gradient(circle at 50% 100%, #2f6b45 0 4px, transparent 5px) 45px 18px / 90px 40px repeat-x,
    radial-gradient(120% 60% at 50% 0%, transparent 62%, rgba(244, 213, 141, .55) 63% 66%, transparent 67%) 0 0 / 90px 40px repeat-x; }
.ci-seasonal { border-top-color: #a3262f; }

/* Call to action: brand blue, not red */
.cta { background: var(--forest); }
.cta p { color: #dfe4f0; }

/* FAQ: full width of the page, like the other sections */
.faq { max-width: none; margin: 0; }
.faq details p { max-width: 80ch; }

/* 8x8 frame: no border, the print fills the frame */
.frame.frame-nomount > img { width: 100%; height: 100%; margin: 0; }

/* Christmas collection page: red, with gentle snow and a gold garland */
.christmas-hero { position: relative; overflow: hidden; border-radius: var(--radius); padding: 64px 48px 44px; margin-bottom: 28px;
  background: radial-gradient(120% 100% at 15% 0%, #a3262f 0%, #7d1820 55%, #5a0f15 100%); color: #f7efe4; }
.christmas-hero > * { position: relative; }
.christmas-hero .snow, .christmas-hero .garland { position: absolute; }
.christmas-hero h1 { color: #fff; }
.christmas-hero h1 em { color: #f4d58d; }
.christmas-hero .eyebrow { color: #f4d58d; }
.christmas-hero p { color: #f3dcd6; }
.christmas-hero .chip { background: rgba(255,255,255,.08); border-color: rgba(244,213,141,.45); color: #fff; }
.christmas-hero .chip.is-active { background: #f4d58d; border-color: #f4d58d; color: #5a0f15; }
.page-christmas .band { background: #7d1820; }
.page-christmas .sub-title { border-bottom-color: #e7c9c4; }
@media (max-width: 760px) { .christmas-hero { padding: 52px 22px 28px; } }

/* Collection pages: sub-category sections are inside .page, so they must not pick up the homepage section padding */
.page > .sub-section { padding: 0; }
/* Badges sit on the picture's corner, so every card's title lines up */
.card-link { position: relative; }
.card-link .badge { position: absolute; top: 22px; left: 22px; margin: 0; z-index: 1; box-shadow: 0 2px 8px -2px rgba(28, 34, 51, .35); }
@media (max-width: 760px) { .hero-more { left: 2%; width: 38%; bottom: 14%; } }
/* "See all" links: same place and spacing in every homepage section */
.feature-copy .see-all, .memory-copy .see-all { margin: 0 0 22px; }

/* Christmas decorations: heavier snow in two layers, hanging baubles, holly and a soft snowdrift */
.seasonal .snow, .christmas-hero .snow { opacity: .85;
  background-image:
    radial-gradient(2.5px 2.5px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 200px 160px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 60px 200px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 260px 40px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 160px 20px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 90px 130px, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 240px 210px, #fff 50%, transparent 51%),
    radial-gradient(2.2px 2.2px at 10px 110px, #fff 50%, transparent 51%);
  background-size: 280px 230px; animation-duration: 14s; }
.snow.snow-far { opacity: .45; background-size: 170px 150px; animation: snow-far 26s linear infinite; filter: blur(.4px);
  background-image:
    radial-gradient(1.4px 1.4px at 15px 25px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 90px 70px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 140px 120px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 50px 140px, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 120px 10px, #fff 50%, transparent 51%); }
@keyframes snow-far { to { background-position: 30px 150px; } }
@media (prefers-reduced-motion: reduce) { .snow.snow-far { animation: none; } }
.xmas-baubles { position: absolute; top: 0; right: 4%; width: min(320px, 34vw); height: auto; pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); transform-origin: top center; animation: sway 6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .xmas-baubles { animation: none; } }
.xmas-holly { position: absolute; top: 46px; left: 1.5%; width: 110px; height: auto; pointer-events: none; opacity: .95;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); transform: rotate(-10deg); }
.xmas-drift { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; pointer-events: none; }
.seasonal > .xmas-baubles, .seasonal > .xmas-holly, .seasonal > .xmas-drift,
.christmas-hero > .xmas-baubles, .christmas-hero > .xmas-holly, .christmas-hero > .xmas-drift,
.seasonal > .snow, .christmas-hero > .snow { position: absolute; }
.seasonal .collection-head, .christmas-hero .collection-head { position: relative; }
.christmas-hero .xmas-holly { top: 40px; width: 80px; }
.christmas-hero .xmas-baubles { width: min(260px, 30vw); }
@media (max-width: 760px) {
  .xmas-baubles { width: 46vw; right: 0; opacity: .9; }
  .xmas-holly { width: 70px; top: 40px; }
}
.xmas-holly { top: 2px; left: .5%; width: 96px; transform: rotate(-6deg); }
.christmas-hero .xmas-holly { top: 0; width: 72px; }
.seasonal .snow:not(.snow-far), .christmas-hero .snow:not(.snow-far) { background-size: 200px 170px; }
.snow.snow-far { opacity: .6; background-size: 120px 110px; }
/* Text and products sit above the falling snow and decorations */
.seasonal > .collection-head, .seasonal > .products, .christmas-hero > div:not(.snow):not(.garland), .christmas-hero > nav { position: relative; z-index: 2; }
.seasonal > .snow, .seasonal > .garland, .seasonal > svg, .christmas-hero > .snow, .christmas-hero > .garland, .christmas-hero > svg { z-index: 1; }
.seasonal { padding-bottom: 130px; }
.christmas-hero { padding-bottom: 92px; }
.christmas-hero .xmas-drift { height: 64px; }
@media (max-width: 760px) { .christmas-hero { padding-bottom: 76px; } }

/* In Memory page */
.page-memorial .subnav { background: var(--sage); }
.page-memorial .band .btn-cream, .page-memorial .band .btn { background: #f4eee3; border-color: #f4eee3; color: var(--ink); }
.page-memorial .band .btn:hover { background: #fff; }
/* Memorial cards: hover shows the lifelike version; a line says both styles are available */
.frame.has-alt { position: relative; }
.frame.has-alt .card-alt { position: absolute; inset: 0; margin: 9%; width: 82%; height: 82%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.card-link:hover .frame.has-alt .card-alt, .card-link:focus-visible .frame.has-alt .card-alt { opacity: 1; }
.finish-note { font: 500 .8rem var(--sans) !important; letter-spacing: .04em; color: #55607c !important; margin: -.1em 0 .35em !important; }

/* Single-design sub-categories sharing one row: each keeps its own heading */
.sub-shared .sub-cell { scroll-margin-top: 128px; }
.sub-shared .sub-title { font-size: 1.25rem; }

/* Screenshot deterrent */
.shot-guard img { filter: blur(18px) !important; transition: filter .1s; }
.shot-note { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 1000; max-width: min(92vw, 440px);
  background: var(--forest); color: #f4eee3; border-radius: 14px; padding: 16px 20px; font: 400 .95rem/1.45 var(--sans);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.shot-note strong { display: block; font: 600 1.05rem var(--serif); color: #fff; margin-bottom: 4px; }
.shot-note.is-on { opacity: 1; transform: translate(-50%, 0); }
.site-footer .copyright { display: inline-block; margin-top: 6px; opacity: .75; font-size: .8rem; }

/* Homepage hero: smooth crossfade between examples */
.hero-more .frame { position: relative; }
.hero-more .hero-layer { position: absolute; inset: 0; margin: 9%; width: 82%; height: 82%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.hero-more .hero-layer.is-on { opacity: 1; }
.hero-more .hero-layer:not(.is-on) { transition: none; }
.hero-more-label { transition: opacity .45s ease; }
.hero-more-label.is-fading { opacity: 0; }
.hero-more img.is-fading { opacity: 1; }

/* Collection cards: five across */
.collections-index { grid-template-columns: repeat(5, 1fr); }
.ci-fashion { border-top: 4px solid #1c2233; }
@media (max-width: 980px) { .collections-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .collections-index { grid-template-columns: 1fr; } }

/* Memory section: header like the other sections, then watercolour / lifelike side by side */
.memory { position: relative; padding-top: 170px !important; }
.memory-products { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
.memory-cta { align-self: center; padding: 32px; border-radius: var(--radius); background: rgba(255,255,255,.55); border: 1px solid var(--line); }
.memory-cta p { color: #4a4f5c; }
@media (max-width: 980px) { .memory-products { grid-template-columns: 1fr 1fr; } .memory-cta { grid-column: 1 / -1; } }
@media (max-width: 520px) { .memory-products { grid-template-columns: 1fr; } }

/* Christmas decorations spilling down from the Christmas section */
.xmas-spill { position: absolute; left: 0; right: 0; top: 0; height: 170px; pointer-events: none; overflow: hidden; }
.xmas-spill svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }

/* Frame style picture cards (shown as soon as a printed format is chosen) */
.frame-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.frame-opt { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 16px 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.frame-opt input { position: absolute; opacity: 0; pointer-events: none; }
.frame-opt strong { font: 600 1rem var(--serif); }
.frame-opt > span:last-child { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.frame-opt:has(input:checked) { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest) inset; }
.frame-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.mini-frame { width: 64px; height: 64px; border: 6px solid #262220; background: var(--paper); display: grid; margin-bottom: 4px;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.35); }
.mini-frame i { display: block; background: linear-gradient(135deg, #c98a4b, #8e5a2e 60%, #5b3a22); }
.mini-frame.has-mount i { margin: 9px; }
@media (max-width: 420px) { .frame-choice { grid-template-columns: 1fr; } }
#frameStep.is-white .mini-frame { border-color: #f4f1ec; box-shadow: 0 4px 10px -4px rgba(0,0,0,.35), 0 0 0 1px var(--line); }
#frameStep.is-prompt { animation: framePrompt 1.4s ease; }
@keyframes framePrompt { 0%, 60% { box-shadow: 0 0 0 3px var(--gold); border-radius: 12px; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* House style: every design is shown in a frame with no border (the print fills the frame).
   The white border only appears when a customer picks the 10x10 frame on a design page. */
.frame > img { width: 100%; height: 100%; margin: 0; }
.frame.frame-mount > img { width: 82%; height: 82%; margin: 9%; }
.frame.has-alt .card-alt, .hero-more .hero-layer { inset: 0; margin: 0; width: 100%; height: 100%; }
.hero-more .frame { border-width: 8px; }

/* ---------- Basket page ---------- */
.basket-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .2em; }
.basket-lede { margin-bottom: 36px; min-height: 1.5em; }
.basket { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: start; }
.basket-item { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.basket-item:first-child { padding-top: 0; }
.basket-pic { display: block; text-decoration: none; }
.basket-pic .frame { border-width: 9px; }
.basket-pic .digital-thumb { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(28,34,51,.5); }
.basket-pic .digital-thumb img { display: block; width: 100%; height: auto; }
.basket-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.basket-head h2 { font-size: 1.5rem; margin: 0; }
.basket-head h2 a { color: inherit; text-decoration: none; }
.basket-head h2 a:hover { text-decoration: underline; }
.basket-price { font: 600 1.25rem var(--serif); white-space: nowrap; }
.basket-format { margin: 6px 0 10px; font-weight: 500; }
.basket-details { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.basket-details li { font-size: .82rem; color: #4a4f5c; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .2em .75em; }
.basket-demo { font-size: .82rem; color: var(--muted); margin: 0 0 10px; }
.upsell { display: block; width: 100%; text-align: left; margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed var(--gold); background: #fbf5e8; color: var(--ink); font: inherit; transition: background .15s; }
.upsell:hover { background: #f6ecd4; }
.upsell strong { display: block; font-size: .95rem; }
.upsell span { font-size: .82rem; color: #4a4f5c; }
.basket-items > .see-all { margin-top: 24px; }
.basket-summary { position: sticky; top: 100px; }
.basket-summary h2 { margin-bottom: 18px; }
.basket-summary .totals small { color: var(--muted); font-weight: 400; }
.basket-summary .grand small { font: 400 .8rem var(--sans); color: var(--muted); }
.basket-pay { width: 100%; margin-top: 20px; justify-content: center; text-align: center; }
.pay-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--sage); font-size: .9rem; }
.basket-summary .secure { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.basket-promises { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .88rem; color: #4a4f5c; }
.basket-promises li { padding-left: 22px; position: relative; }
.basket-promises li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.basket-empty { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; max-width: 860px; padding: 24px 0 40px; }
.basket-empty h2 { font-size: 2rem; }
.basket-empty-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.basket-empty-links .btn { margin-right: 8px; }
@media (max-width: 980px) { .basket { grid-template-columns: 1fr; gap: 32px; } .basket-summary { position: static; } }
@media (max-width: 620px) {
  .basket-item { grid-template-columns: 110px 1fr; gap: 16px; }
  .basket-head { flex-direction: column; gap: 2px; }
  .basket-head h2 { font-size: 1.25rem; }
  .basket-empty { grid-template-columns: 1fr; gap: 24px; } .basket-empty .frame { max-width: 200px; }
}
.site-header a[href="basket.html"] { white-space: nowrap; }

/* Design pages: stay blank until the chosen design is filled in (no flash of another design) */
.page.is-loading > * { visibility: hidden; }
.showcase { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.showcase .optout { margin: 0; font-size: .9rem; }
.showcase-note { margin: 8px 0 0 26px; font-size: .8rem; color: var(--muted); }
.basket-private { font-size: .82rem; color: #4a4f5c; margin: 0 0 10px; }

/* Design pages: the "What you'll receive / Photos / Delivery" boxes use the page's own width */
.page > .details-grid { padding: 0; gap: 48px; }
.details-grid p { max-width: 40ch; line-height: 1.6; }
@media (max-width: 900px) { .page > .details-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Print sizes: portrait frames (5x7, and 6x8 / 8x10 in an 11x9 frame) ---------- */
.frame.r-5x7 { aspect-ratio: 5 / 7; }
.frame.r-9x11 { aspect-ratio: 9 / 11; }
.frame > img { width: 100%; height: 100%; margin: 0; object-fit: cover; }
/* 6x8 print with a border: the print sits 1.5 inches in from each side of the 9x11 frame */
.frame.r-9x11.frame-mount > img { width: 66.67%; height: 72.73%; margin: 16.67%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.frame-choice-3 { grid-template-columns: repeat(3, 1fr); }
.frame-opt { align-content: start; }
.frame-opt .opt-price { font: 600 1rem var(--serif); margin-top: 4px; }
.mini-frame { border-width: 5px; width: 46px; height: 46px; }
.mini-frame.m-5x7 { width: 42px; height: 58px; }
.mini-frame.m-9x11 { width: 46px; height: 56px; }
.mini-frame.has-mount i { margin: 7px 6px; }
@media (max-width: 560px) { .frame-choice-3 { grid-template-columns: 1fr; } .frame-opt { grid-template-columns: 56px 1fr auto; text-align: left; justify-items: start; align-items: center; column-gap: 12px; }
  .frame-opt .mini-frame { grid-row: 1 / span 2; justify-self: center; } .frame-opt strong { grid-column: 2; } .frame-opt > span:not(.mini-frame) { grid-column: 2; } .frame-opt .opt-price { grid-column: 3; grid-row: 1 / span 2; } }

.basket-pic .frame.r-5x7, .basket-pic .frame.r-9x11 { border-width: 8px; }

/* Policy pages */
.prose-page > h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .2em; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.35rem; margin: 1.8em 0 .4em; }
.prose p, .prose li { color: #3d4250; line-height: 1.65; }
.prose ul { padding-left: 1.2em; }

/* The 5x7 print is physically smaller than the 8x10, so its frame is shown smaller */
.gallery .frame.r-5x7 { width: 68%; margin-left: auto; margin-right: auto; }
.basket-pic .frame.r-5x7 { width: 74%; margin-left: auto; margin-right: auto; }

.discount-note { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }

/* Order confirmation */
.confirm { width: 100%; max-width: 640px; box-sizing: border-box; padding: 0; }
.confirm h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.confirm-items, .confirm-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.confirm-items li { display: flex; flex-direction: column; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.confirm-items li span { color: var(--muted); font-size: .92rem; }
.confirm-total { font: 600 1.15rem var(--serif); }
.confirm-steps li { padding-left: 22px; position: relative; color: #3d4250; }
.confirm-steps li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.confirm-links { margin-top: 26px; }

/* Example pictures are portrait: every frame defaults to the 8x10 print shape (11x9 inch frame) */
.frame { aspect-ratio: 9 / 11; }
.mini-frame { aspect-ratio: auto; }
.confirm-ref { font: 600 1.05rem var(--serif); margin: 0 0 14px; color: var(--ink); }
.confirm-ref b { letter-spacing: .08em; color: var(--gold); }

.customer-pets { margin-top: 56px; }
.customer-pets .muted { color: var(--muted); margin: -4px 0 18px; }

/* ---------- Reviews ---------- */
.reviews-page .muted { color: var(--muted); }
.review-form { background: var(--paper, #fffdf9); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 0 0 32px; max-width: 640px; }
.review-form h2 { margin-top: 0; }
.stars { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars legend { float: left; width: 100%; font-weight: 600; margin-bottom: 6px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 2.2rem; line-height: 1; color: #d8cfbf; cursor: pointer; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.review-form .field { display: block; margin: 0 0 16px; font-weight: 600; }
.review-form .field .muted { font-weight: 400; }
.review-form textarea, .review-form input[type=text] { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.review-form .check { display: block; margin: 0 0 16px; font-size: .95rem; }
.review-form .error { color: #9e2b32; margin: 0 0 12px; }
.thanks { background: #eef5ea; border-radius: 10px; padding: 14px 18px; max-width: 640px; }
.review-list { display: grid; gap: 16px; max-width: 760px; }
.review { background: var(--paper, #fffdf9); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.review-stars { color: var(--gold); font-size: 1.25rem; letter-spacing: 2px; }
.review-body { margin: 8px 0; }
.review-who { margin: 0; font-size: .88rem; color: var(--muted); }

/* Discount code box in the basket */
.code-box { margin: 0 0 16px; }
.code-box label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-transform: uppercase; background: #fff; }
.code-msg { margin: 8px 0 0; font-size: .88rem; color: #9e2b32; }
.code-msg.ok { color: #2f6b45; }

/* "Made for our customers": small, all the same size */
.customer-pets .grid-3, .customer-pets .grid-4 { grid-template-columns: repeat(auto-fill, minmax(120px, 150px)); gap: 14px; justify-content: start; }
.customer-pets .frame { border-width: 5px; max-width: none; width: 100%; margin: 0; box-shadow: 0 8px 18px -10px rgba(28, 34, 51, .45); }
.customer-pets .card-link { display: block; }
.customer-pets .card-link:hover .frame { transform: translateY(-2px); }

.preview-problem .problem-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.preview-warning { display: block; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #fbeee5; color: #7a3a1d; font-size: .92rem; }

/* How many pets: a dropdown, with a note that appears for several pets */
.pet-count-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 4px; }
.pet-count-label { font-weight: 600; }
.pet-select { width: auto; min-width: 150px; padding-right: 34px; }
.multi-pet-note { background: #fff7e6; border: 1px solid #ecd49a; border-radius: 10px; padding: 11px 14px; font-size: .9rem; color: #4a4f5c; margin: 10px 0 12px; line-height: 1.5; }
.multi-pet-note b { color: var(--navy, #1f2d4f); }
/* Photos that may make a likeness difficult */
.photo-issues { list-style: none; margin: 8px 0 0; padding: 0; font-size: .86rem; color: #8a5a00; }
.photo-issues li { margin: 3px 0; }
.photo-issues li::before { content: "! "; font-weight: 700; }
.photo-warn { background: #fff7e6; border: 1px solid #e3b64c; border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; font-size: .92rem; color: #4a4f5c; }
.photo-warn strong { display: block; margin-bottom: 6px; color: #7a4e00; }
.photo-warn ul { margin: 0 0 12px; padding-left: 20px; }
.photo-warn .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-warn button { font: inherit; font-weight: 600; border-radius: 999px; padding: .55em 1.2em; cursor: pointer; border: 1.5px solid #1f2d4f; background: #1f2d4f; color: #fff; }
.photo-warn button.alt { background: #fff; color: #1f2d4f; }

.pet-name-field { display: block; margin-top: 10px; }
.pet-name-field[hidden] { display: none; }
.pet-name-field span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }

/* Where the likeness may differ, and the "upload a specific photo" remake */
.likeness-tips { background: #fff7e6; border: 1px solid #ecd49a; border-radius: 12px; padding: 14px 16px; margin: 14px 0; font-size: .93rem; color: #4a4f5c; }
.likeness-tips ul { margin: 6px 0 10px; padding-left: 20px; }
.likeness-tips .tips-head { margin: 0; color: #7a4e00; }
.likeness-tips .tips-ask { margin: 8px 0 10px; }
.likeness-tips .regen-form { margin-top: 12px; display: grid; gap: 10px; }
.likeness-tips .regen-form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.likeness-tips .regen-form input[type=file] { font-weight: 400; }
.likeness-tips .regen-form button { justify-self: start; }
