/* CZK PRINTING SERVICES — storefront styles. Theme colours come from /theme.css (admin-editable). */
:root {
  --brand: #1F3A8A; --accent: #E11D48; --ink: #0F172A;
  --bg: #ffffff; --bg-soft: #F6F7FB; --line: #E4E7EF; --muted: #5B6476;
  --ok: #15803D; --ok-bg: #E8F6EE; --warn: #B45309; --warn-bg: #FEF5E7; --bad: #B91C1C; --bad-bg: #FDECEC; --info-bg: #EEF3FF;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 22px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .no { color: var(--bad); } .danger { color: var(--bad); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .62rem 1.1rem; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, black); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: color-mix(in srgb, var(--brand) 7%, white); }
.btn-ghost { color: var(--ink); background: var(--bg-soft); }
.btn-ghost:hover { background: var(--line); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger-outline { border-color: var(--bad); color: var(--bad); background: #fff; }
.btn-sm { padding: .42rem .8rem; font-size: .85rem; }
.btn-xs { padding: .25rem .55rem; font-size: .78rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn.disabled, .btn:disabled { opacity: .55; pointer-events: none; }
.btn.loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
.link-btn.danger { color: var(--bad); }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }

/* Forms */
label { display: block; font-weight: 600; font-size: .9rem; margin: .9rem 0 .35rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .62rem .8rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand); }
input[type="file"] { padding: .5rem; background: var(--bg-soft); }
input[type="color"] { width: 3.2rem; height: 2.4rem; padding: .15rem; }
[aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: .85rem; margin: .3rem 0 0; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; margin: .6rem 0; }
.check input { margin-top: .3rem; flex: none; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
textarea { resize: vertical; }

/* Alerts / badges */
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; background: var(--info-bg); border-left: 4px solid var(--brand); }
.alert p:last-child { margin: 0; }
.alert-success { background: var(--ok-bg); border-color: var(--ok); }
.alert-error { background: var(--bad-bg); border-color: var(--bad); }
.alert-warning { background: var(--warn-bg); border-color: var(--warn); }
.flash-stack { margin-top: 1rem; }
.badge { display: inline-block; padding: .14rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.5; vertical-align: middle; background: var(--bg-soft); color: var(--muted); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-neutral { background: #EEF0F5; color: #3B4357; }

/* Header */
.announcement { background: var(--ink); color: #fff; text-align: center; font-size: .9rem; padding: .45rem 1rem; }
.promo-strip { background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent); font-weight: 600; text-align: center; padding: .45rem 0; font-size: .92rem; }
.promo-strip a { color: inherit; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; flex: none; }
.brand-logo { max-height: 48px; width: auto; object-fit: contain; }
.brand-mark { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: .8rem; letter-spacing: .04em; }
.brand-name { font-size: .98rem; letter-spacing: .02em; }
.header-search { flex: 1; max-width: 320px; }
.header-search input { border-radius: 999px; padding: .5rem 1rem; background: var(--bg-soft); border-color: transparent; }
.main-nav { display: flex; gap: .2rem; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; padding: .5rem .7rem; border-radius: 999px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--bg-soft); color: var(--brand); }
.cart-link { position: relative; color: var(--ink); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--bg-soft); }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; display: grid; place-items: center; padding: 0 .3rem; }
.nav-toggle { display: none; background: none; border: 0; width: 2.6rem; height: 2.6rem; padding: .6rem; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 10% -10%, color-mix(in srgb, var(--brand) 14%, white), transparent), radial-gradient(900px 400px at 100% 0, color-mix(in srgb, var(--accent) 10%, white), transparent); padding: clamp(2.5rem, 7vw, 5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.lead { font-size: 1.1rem; color: #334155; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hero-points li { background: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); display: grid; }
.hero-points span { color: var(--muted); font-size: .92rem; }
.hero-slider { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 5 / 2; max-height: 520px; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero-slider .slide.active { opacity: 1; z-index: 1; }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; inset: auto 0 12% 0; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.slide-caption h2 { font-size: clamp(1.5rem, 4vw, 2.8rem); }
.slider-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: .4rem; }
.slider-dots button { width: .7rem; height: .7rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; }
.slider-dots button[aria-current="true"] { background: #fff; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.section-head a { font-weight: 600; text-decoration: none; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.category-chip { display: flex; flex-direction: column; padding: 1rem 1.1rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; transition: border-color .15s, transform .15s, box-shadow .15s; }
.category-chip:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.category-chip small { color: var(--muted); font-weight: 500; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step span { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, white); color: var(--brand); font-weight: 800; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pc-media { position: relative; display: block; aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .pc-media img { transform: scale(1.04); }
.pc-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }
.pc-placeholder.large { aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius); }
.pc-badge { position: absolute; top: .7rem; left: .7rem; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.pc-badge.sale { background: var(--accent); }
.pc-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pc-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.pc-title { font-size: 1.04rem; margin: 0; }
.pc-title a { color: var(--ink); text-decoration: none; }
.pc-rating { display: flex; align-items: center; gap: .4rem; font-size: .82rem; }
.pc-desc { color: var(--muted); font-size: .88rem; margin: 0; }
.pc-price { display: flex; align-items: baseline; gap: .4rem; margin-top: auto; padding-top: .3rem; }
.pc-price strong { font-size: 1.2rem; }
.pc-price .from { font-size: .8rem; color: var(--muted); }
.pc-avail { font-size: .8rem; font-weight: 600; margin: 0; }
.pc-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.pc-actions form { display: contents; }

/* Stars (half-step classes, CSP friendly) */
.stars { --size: 1rem; position: relative; display: inline-block; font-size: var(--size); line-height: 1; letter-spacing: .1em; color: #D5D9E2; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; overflow: hidden; color: #F59E0B; width: 0; white-space: nowrap; }
.stars.lg { --size: 1.5rem; }
.stars.s-1::after { width: 10%; } .stars.s-2::after { width: 20%; } .stars.s-3::after { width: 30%; } .stars.s-4::after { width: 40%; } .stars.s-5::after { width: 50%; }
.stars.s-6::after { width: 60%; } .stars.s-7::after { width: 70%; } .stars.s-8::after { width: 80%; } .stars.s-9::after { width: 90%; } .stars.s-10::after { width: 100%; }

/* Page scaffolding */
.page { padding: 2rem 0 4rem; }
.page-head { margin-bottom: 1.5rem; }
.breadcrumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 2.5vw, 1.6rem); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--bg-soft); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty-state.small { padding: 1.5rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin: 2rem 0 0; }
.pagination .page { padding: .45rem .8rem; border-radius: 999px; background: var(--bg-soft); text-decoration: none; color: var(--ink); font-size: .9rem; }
.pagination .current { background: var(--brand); color: #fff; }

/* Catalog */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.filter-form label:first-child { margin-top: 0; }
.filter-form .btn { margin-top: .8rem; }
.price-range { display: flex; align-items: center; gap: .4rem; margin-top: .9rem; }
.price-range legend { font-size: .9rem; }

/* Product detail */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); cursor: zoom-in; position: relative; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .2s; transform-origin: center; }
.gallery-main.zooming img { transform: scale(2.2); }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .3rem; }
.gallery-thumbs .thumb { flex: none; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg-soft); cursor: pointer; }
.gallery-thumbs .thumb.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: 90px; }
.product-info h1 { margin-top: .2rem; }
.rating-link { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.price-box { background: var(--bg-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.price-now { font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.price-was { margin-left: .4rem; }
.line-total { margin-top: .3rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 0 0 1rem; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .7rem; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 600; font-size: .92rem; }
.variation-picker { display: grid; gap: .5rem; }
.variation-option { display: block; margin: 0; cursor: pointer; font-weight: 400; }
.variation-option input { position: absolute; opacity: 0; }
.vo-body { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; padding: .75rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, background .15s; }
.variation-option input:checked + .vo-body { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.variation-option input:focus-visible + .vo-body { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); }
.vo-name { font-weight: 700; }
.vo-meta { grid-column: 1; color: var(--muted); font-size: .85rem; }
.vo-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; }
.vo-tiers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3rem; }
.vo-tiers span { background: var(--ok-bg); color: var(--ok); font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .1rem .5rem; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.qty-row label { margin: 0; }
.qty-control { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 2.5rem; border: 0; background: var(--bg-soft); font-size: 1.2rem; cursor: pointer; }
.qty-control input { width: 4.5rem; border: 0; border-radius: 0; text-align: center; }
.note { background: var(--bg-soft); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 1rem 0; font-size: .92rem; }
.note p { margin: .3rem 0 0; }
.note-info { background: var(--info-bg); }
.order-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.2rem; }
.section-block { margin-top: 3rem; }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.8rem; font-size: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose-page h1 { margin-bottom: 1.2rem; }

/* Reviews */
.review-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; }
.rs-score { display: grid; justify-items: center; gap: .2rem; }
.rs-score .big { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.dist-row { display: grid; grid-template-columns: 9.5rem 1fr 2.5rem; gap: .6rem; align-items: center; font-size: .88rem; }
progress { width: 100%; height: .55rem; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); appearance: none; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress::-webkit-progress-value { background: #F59E0B; border-radius: 999px; }
progress::-moz-progress-bar { background: #F59E0B; border-radius: 999px; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.review-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.review-meta { color: var(--muted); font-size: .86rem; margin: .3rem 0 .5rem; }
.review-photos { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.review-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.review-reply { background: var(--bg-soft); border-left: 3px solid var(--brand); padding: .7rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: .6rem; font-size: .92rem; }
.review-reply p { margin: .2rem 0 0; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.review-card { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.review-card blockquote { margin: .7rem 0; font-size: .95rem; }
.review-form { margin-top: 2rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; color: #D5D9E2; cursor: pointer; margin: 0; line-height: 1; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #F59E0B; }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); }
.captcha { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.captcha label { margin: 0; }
.captcha input { width: 7rem; }
.inline-review { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }

/* Cart & checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .8rem; }
.cart-line.unavailable { opacity: .7; border-color: var(--warn); }
.cl-img { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cl-info h2 { font-size: 1.02rem; margin: 0 0 .2rem; }
.cl-info h2 a { color: var(--ink); text-decoration: none; }
.cl-info p { margin: 0 0 .2rem; }
.cl-qty { display: flex; gap: .4rem; align-items: center; }
.cl-qty input { width: 5rem; }
.cl-total { text-align: right; display: grid; gap: .2rem; justify-items: end; }
.summary h2 { font-size: 1.15rem; }
.summary.sticky { position: sticky; top: 90px; }
.totals { margin: 1rem 0; }
.totals div { display: flex; justify-content: space-between; padding: .3rem 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .7rem; font-size: 1.2rem; font-weight: 800; }
.summary-lines { list-style: none; padding: 0; margin: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.radio-card { margin: 0; cursor: pointer; font-weight: 400; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span { display: grid; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.radio-card input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, white); }
.radio-card input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); }
.upload-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-top: 1rem; }
.ub-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.ub-head .badge { margin-left: auto; }
.dropzone { display: grid; place-items: center; text-align: center; padding: 1.4rem; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); cursor: pointer; font-weight: 400; margin: .5rem 0; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, white); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.upload-item { display: grid; grid-template-columns: 52px 1fr auto auto; gap: .7rem; align-items: center; padding: .4rem; border-radius: 8px; background: var(--bg-soft); font-size: .88rem; }
.upload-item img, .file-icon { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; display: grid; place-items: center; background: #fff; font-size: .7rem; font-weight: 700; color: var(--muted); }
.upload-item .ui-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item progress { grid-column: 2 / -1; height: .4rem; }
.upload-item.error { background: var(--bad-bg); color: var(--bad); }

/* Order page */
.success-hero { display: flex; gap: 1.2rem; align-items: center; background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, white); }
.check-icon { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 1.6rem; font-weight: 800; }
.success-hero h1 { font-size: 1.5rem; }
.status-pills { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.25rem; }
.status-pills > div { display: grid; gap: .2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem; min-width: 150px; }
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.big-amount { font-size: 1.6rem; }
.pay-methods { display: grid; gap: .8rem; margin: 1rem 0 1.5rem; }
.pay-method { display: flex; gap: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.pay-method h3 { margin: 0 0 .4rem; }
.pay-method .qr { width: 130px; height: 130px; object-fit: contain; flex: none; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.acct { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; margin: 0 0 .2rem; }
.acct .muted { min-width: 8rem; font-size: .85rem; }
.proof-form { border-top: 1px solid var(--line); padding-top: 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot td { border: 0; padding: .3rem .6rem; }
.table tfoot .grand td { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.table-wrap { overflow-x: auto; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 .3rem; }
.timeline li { position: relative; display: flex; gap: .8rem; padding: 0 0 1rem; }
.timeline li::before { content: ""; position: absolute; left: .32rem; top: .9rem; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.tl-dot { flex: none; width: .8rem; height: .8rem; border-radius: 50%; background: var(--brand); margin-top: .35rem; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, white); }
.timeline p { margin: .2rem 0 0; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.error-card .error-code { font-size: 4rem; font-weight: 800; color: var(--brand); margin: 0; line-height: 1; }

/* Footer */
.site-footer { background: var(--ink); color: #CBD5E1; padding: 3rem 0 1.2rem; margin-top: 2rem; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .6rem; }
.footer-h { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.footer-grid p { margin: 0 0 .5rem; }
.social { display: flex; gap: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2rem; padding-top: 1rem; font-size: .82rem; }
.admin-link { opacity: .45; font-size: .78rem; }
.admin-link:hover { opacity: 1; }
.toast { max-width: min(92vw, 420px); text-align: center; font-size: .9rem; position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .75rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 99; font-weight: 600; }

/* Responsive */
@media (max-width: 1000px) {
  .header-search { display: none; }
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; display: none; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .75rem .5rem; }
  .cart-link { margin-left: auto; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-layout, .cart-layout, .checkout-layout, .order-layout, .contact-layout, .hero-inner { grid-template-columns: 1fr; }
  .product-info, .summary.sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 1.5rem); }
  .grid-2 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .pc-body { padding: .75rem; }
  .pc-desc { display: none; }
  .pc-actions .btn { flex: 1 1 100%; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cl-img { width: 72px; height: 72px; }
  .cl-qty, .cl-total { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .review-summary { grid-template-columns: 1fr; gap: 1rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .order-buttons { grid-template-columns: 1fr; }
  .footer-grid, .steps { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .pay-method { flex-direction: column; }
  .dist-row { grid-template-columns: 7.5rem 1fr 2rem; }
  .brand-name { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Prevent wide content (e.g. many gallery thumbnails) from stretching the page on phones */
html, body { overflow-x: clip; }
.product-layout > *, .catalog > *, .cart-layout > *, .checkout-layout > *, .order-layout > *, .contact-layout > *, .hero-inner > *, .grid-2 > * { min-width: 0; }
.gallery, .gallery-main, .gallery-thumbs { max-width: 100%; }
.gallery-thumbs { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.gallery-thumbs .thumb { scroll-snap-align: start; }
@media (max-width: 640px) {
  .gallery-thumbs .thumb { width: 64px; height: 64px; }
  .product-info h1 { font-size: 1.5rem; }
  .price-now { font-size: 1.6rem; }
  .breadcrumbs { font-size: .8rem; }
}

/* =====================================================================
   Home page — print-shop design (CMYK accents, print stack, reveals)
   ===================================================================== */
:root { --c: #00AEEF; --m: #EC008C; --y: #FFD200; --k: #111827; }
.cmyk-bar { display: grid; grid-template-columns: repeat(4, 1fr); height: 5px; }
.cmyk-bar span:nth-child(1) { background: var(--c); } .cmyk-bar span:nth-child(2) { background: var(--m); }
.cmyk-bar span:nth-child(3) { background: var(--y); } .cmyk-bar span:nth-child(4) { background: var(--k); }

.ph-hero { position: relative; overflow: hidden; background:
  radial-gradient(circle at 1px 1px, rgba(15, 23, 42, .07) 1px, transparent 1.4px) 0 0 / 14px 14px,
  radial-gradient(700px 380px at 85% 20%, color-mix(in srgb, var(--m) 14%, transparent), transparent 70%),
  radial-gradient(600px 380px at 0% 90%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%),
  #FBFBFE; }
.ph-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5rem); }
.ph-eyebrow { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); box-shadow: var(--shadow); }
.ph-eyebrow span { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; }
.dot-c { background: var(--c); } .dot-m { background: var(--m); } .dot-y { background: var(--y); }
.ph-title { position: relative; z-index: 0; font-size: clamp(2.2rem, 6.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; margin: 1rem 0 .9rem; font-weight: 900; }
.ph-title .ink { position: relative; white-space: nowrap; background: linear-gradient(90deg, var(--m), #7C3AED 55%, var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-title .ink::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em; border-radius: 99px; background: var(--y); opacity: .75; z-index: -1; }
.ph-lead { font-size: clamp(1rem, 2.2vw, 1.15rem); color: #3B4357; max-width: 34rem; }
.ph-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 1.4rem; }
.ph-trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 34rem; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.ph-trust li { display: flex; align-items: center; gap: .6rem; padding: .75rem .85rem; min-width: 0; }
.ph-trust li + li { border-left: 1px solid var(--line); }
.pt-icon { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; color: #0284C7; background: color-mix(in srgb, var(--c) 12%, white); }
.ph-trust li:nth-child(2) .pt-icon { color: var(--m); background: color-mix(in srgb, var(--m) 10%, white); }
.ph-trust li:nth-child(3) .pt-icon { color: #A16207; background: color-mix(in srgb, var(--y) 25%, white); }
.pt-text { display: grid; line-height: 1.2; min-width: 0; }
.pt-text strong { font-size: .88rem; }
.pt-text small { font-size: .74rem; color: var(--muted); }

/* Fanned stack of printed photos */
.ph-visual { display: grid; place-items: center; }
.print-stack { position: relative; width: min(420px, 88vw); aspect-ratio: 1 / 1.02; }
.print-card { position: absolute; margin: 0; background: #fff; padding: 10px 10px 34px; border-radius: 6px; box-shadow: 0 18px 40px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08); width: 58%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.print-card img, .print-blank { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.print-blank.tint-1 { background: linear-gradient(135deg, var(--c), #7C3AED); } .print-blank.tint-2 { background: linear-gradient(135deg, var(--m), var(--y)); } .print-blank.tint-3 { background: linear-gradient(135deg, var(--y), var(--c)); }
.print-card figcaption { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: .78rem; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; }
.pc-1 { left: 22%; top: 4%; transform: rotate(-3deg); z-index: 3; }
.pc-2 { left: 0; top: 30%; transform: rotate(-12deg); z-index: 2; }
.pc-3 { right: 0; top: 34%; transform: rotate(10deg); z-index: 1; }
.print-stack:hover .pc-1 { transform: rotate(0) translateY(-6px); }
.print-stack:hover .pc-2 { transform: rotate(-16deg) translateX(-8px); }
.print-stack:hover .pc-3 { transform: rotate(14deg) translateX(8px); }
.crop { position: absolute; width: 26px; height: 26px; border-color: #94A3B8; border-style: solid; opacity: .7; }
.crop-tl { left: -6px; top: -6px; border-width: 2px 0 0 2px; }
.crop-br { right: -6px; bottom: -6px; border-width: 0 2px 2px 0; }
.swatch { position: absolute; right: 4%; top: 2%; display: flex; gap: 4px; padding: 6px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); z-index: 4; }
.swatch i { width: 16px; height: 16px; border-radius: 4px; }
.swatch i:nth-child(1) { background: var(--c); } .swatch i:nth-child(2) { background: var(--m); } .swatch i:nth-child(3) { background: var(--y); } .swatch i:nth-child(4) { background: var(--k); }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid #94A3B8; border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--m); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* "View all products" button under the print stack */
.ph-visual { gap: 1.1rem; }
.print-stack { display: block; cursor: pointer; }
.all-products-btn { display: inline-flex; align-items: center; gap: .8rem; padding: .7rem .8rem .7rem .75rem; min-width: min(330px, 100%); background: #fff; color: var(--ink); text-decoration: none; border-radius: 16px; border: 1.5px solid var(--line); box-shadow: 0 10px 28px rgba(15, 23, 42, .12); position: relative; z-index: 5; transition: transform .15s, box-shadow .15s, border-color .15s; }
.all-products-btn:hover { transform: translateY(-2px); border-color: var(--m); box-shadow: 0 14px 34px rgba(236, 0, 140, .18); }
.apb-icon { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--m), #7C3AED 60%, var(--c)); }
.apb-text { display: grid; line-height: 1.25; flex: 1; }
.apb-text strong { font-size: 1.02rem; }
.apb-text small { color: var(--muted); font-size: .8rem; }
.apb-arrow { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--bg-soft); font-weight: 800; transition: transform .15s, background .15s; }
.all-products-btn:hover .apb-arrow { transform: translateX(3px); background: var(--y); }
/* Floating effect: overlaps the photo stack and gently bobs up and down */
.ph-visual { position: relative; }
.all-products-btn { margin-top: -3.2rem; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .94); animation: apb-float 3.6s ease-in-out infinite; box-shadow: 0 18px 36px rgba(15, 23, 42, .18), 0 4px 10px rgba(15, 23, 42, .08); }
.all-products-btn::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -22px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 23, 42, .22), transparent); z-index: -1; animation: apb-shadow 3.6s ease-in-out infinite; }
.all-products-btn:hover { animation-play-state: paused; }
.all-products-btn:hover::after { animation-play-state: paused; }
.print-stack { animation: stack-float 6s ease-in-out infinite; }
@keyframes apb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes apb-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .55; } }
@keyframes stack-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(.4deg); } }
@media (prefers-reduced-motion: reduce) { .all-products-btn, .all-products-btn::after, .print-stack { animation: none; } }

/* Category tiles */
.kicker { margin: 0 0 .2rem; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--m); }
.section-head h2 { margin: 0; }
.section-tight { padding: 0 0 clamp(2rem, 5vw, 3rem); }
.hero-slider.rounded { border-radius: var(--radius); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .8rem; }
.cat-tile { position: relative; display: grid; gap: .35rem; padding: 1.1rem 1rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.cat-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.cat-tile:nth-child(4n+2)::before { background: var(--m); } .cat-tile:nth-child(4n+3)::before { background: var(--y); } .cat-tile:nth-child(4n+4)::before { background: var(--k); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--brand) 9%, white); color: var(--brand); }
.cat-tile:nth-child(4n+2) .cat-icon { background: color-mix(in srgb, var(--m) 10%, white); color: var(--m); }
.cat-tile:nth-child(4n+3) .cat-icon { background: color-mix(in srgb, var(--y) 22%, white); color: #A16207; }
.cat-tile:nth-child(4n+1) .cat-icon { background: color-mix(in srgb, var(--c) 12%, white); color: #0284C7; }
.cat-name { font-weight: 800; line-height: 1.25; }
.cat-count { font-size: .8rem; color: var(--muted); }

/* How it works */
.step-line { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.step-line li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.1rem; }
.step-line li:not(:last-child)::after { content: "→"; position: absolute; right: -.85rem; top: 1.6rem; color: #94A3B8; font-weight: 800; z-index: 1; }
.step-no { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: #fff; font-weight: 900; margin-bottom: .7rem; background: var(--c); }
.step-line li:nth-child(2) .step-no { background: var(--m); } .step-line li:nth-child(3) .step-no { background: #EAB308; } .step-line li:nth-child(4) .step-no { background: var(--k); }
.step-line h3 { margin-bottom: .3rem; }
.step-line p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Final CTA band */
.ph-cta-band { background: var(--ink); color: #E2E8F0; }
.ph-cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(2.2rem, 6vw, 3.4rem) 0; }
.ph-cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.ph-cta-inner p { margin: 0; max-width: 38rem; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.site-footer { margin-top: 0; }

/* Scroll reveal (only when JS is running, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .ph-hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .ph-visual { order: -1; }
  .print-stack { width: min(330px, 80vw); }
  .step-line { grid-template-columns: 1fr 1fr; }
  .step-line li::after { display: none; }
}
@media (max-width: 640px) {
  .ph-hero-grid { padding-top: 1.4rem; gap: 1.4rem; }
  .print-stack { width: min(260px, 68vw); }
  .all-products-btn { width: calc(100% - 1.2rem); margin-top: -2.4rem; }
  .print-card { padding: 7px 7px 26px; }
  .print-card figcaption { font-size: .68rem; bottom: 5px; }
  .swatch i { width: 12px; height: 12px; }
  .ph-title { margin-top: .8rem; }
  .ph-cta .btn { flex: 1 1 100%; }
  .ph-trust li { flex-direction: column; text-align: center; gap: .4rem; padding: .8rem .35rem; }
  .pt-text strong { font-size: .8rem; }
  .pt-text small { font-size: .7rem; }
  .cat-tiles { display: flex; overflow-x: auto; gap: .7rem; padding: .3rem .1rem 1rem; margin: 0 -.75rem; padding-inline: .75rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .cat-tile { flex: 0 0 9.6rem; scroll-snap-align: start; }
  .step-line { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
  .ph-cta-inner .btn-row { width: 100%; } .ph-cta-inner .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .scroll-cue span { animation: none; } }

/* Floating round "View all products" button (home page) */
.float-products { position: fixed; z-index: 60; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--m), #7C3AED 60%, var(--c)); box-shadow: 0 10px 24px rgba(124, 58, 237, .35), 0 2px 6px rgba(15, 23, 42, .2); opacity: 0; visibility: hidden; transform: scale(.6); transition: opacity .22s, transform .25s cubic-bezier(.2, .8, .2, 1.2), visibility .22s; }
.float-products.show { opacity: 1; visibility: visible; transform: none; }
.float-products:active { transform: scale(.94); }
.fp-count { position: absolute; top: -4px; right: -4px; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: .7rem; font-weight: 800; box-shadow: 0 2px 6px rgba(15, 23, 42, .2); }
.fp-label { position: absolute; right: calc(100% + .6rem); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; padding: .35rem .65rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.float-products:hover .fp-label, .float-products:focus-visible .fp-label { opacity: 1; }
body.float-on .toast { bottom: 5.2rem; }
@media (prefers-reduced-motion: reduce) { .float-products { transition: none; } }

/* Catalog: products first; filters collapse on phones */
.cat-chips { display: none; }
.filter-toggle { display: none; }
@media (max-width: 1000px) {
  .cat-chips { display: flex; gap: .5rem; overflow-x: auto; margin: 0 -.75rem 1rem; padding: .2rem .75rem .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chips a { flex: none; padding: .5rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; }
  .cat-chips a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .catalog { gap: 1rem; }
  .filters { padding: 0; border: 0; background: none; }
  .filter-toggle { display: inline-flex; align-items: center; gap: .5rem; list-style: none; cursor: pointer; padding: .6rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .92rem; }
  .filter-toggle::-webkit-details-marker { display: none; }
  .filter-count { display: grid; place-items: center; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; background: var(--m); color: #fff; font-size: .72rem; }
  .filter-panel[open] .filter-form { margin-top: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
  .page-head { margin-bottom: 1rem; }
}

/* =====================================================================
   Order page: progress tracker + guided payment
   ===================================================================== */
.order-top { padding: 1.3rem 1.4rem; }
.order-top.needs-pay { border-color: color-mix(in srgb, #F59E0B 45%, white); background: linear-gradient(180deg, #FFFBEB, #fff 70%); }
.ot-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.ot-kicker { margin: 0 0 .2rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.needs-pay .ot-kicker { color: #B45309; }
.ot-title { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 0 .35rem; }
.ot-sub { margin: 0; color: #334155; max-width: 40rem; }
.ot-ref { display: grid; grid-template-columns: auto auto; gap: .15rem .6rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .8rem; }
.ot-ref .muted { grid-column: 1 / -1; }
.ot-ref .mono { font-weight: 800; }
.ot-track { margin: .8rem 0 0; }
.ot-note { margin: 1rem 0 0; }
.order-steps { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.order-steps li { position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center; font-size: .78rem; color: var(--muted); }
.order-steps li:not(:first-child)::before { content: ""; position: absolute; top: .95rem; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.order-steps li.os-done:not(:first-child)::before, .order-steps li.os-current:not(:first-child)::before { background: var(--ok); }
.os-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: .82rem; color: var(--muted); }
.os-done .os-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.os-current .os-dot { background: #F59E0B; border-color: #F59E0B; color: #fff; box-shadow: 0 0 0 5px rgba(245, 158, 11, .2); animation: pulse 1.8s ease-in-out infinite; }
.os-current .os-label { color: var(--ink); font-weight: 800; }
.os-done .os-label { color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(245, 158, 11, .08); } }

.copy-btn { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--brand); font: inherit; font-size: .8rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.copy-btn:hover { border-color: var(--brand); }
.copy-btn.copied { background: var(--ok); border-color: var(--ok); color: #fff; }

.pay-flow { border-width: 2px; border-color: color-mix(in srgb, var(--brand) 25%, white); }
.pay-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); margin-bottom: 1rem; }
.pay-head > div { display: grid; }
.pay-head .big-amount { font-size: 2rem; line-height: 1.1; }
.pay-due { text-align: right; }
.pay-due strong { color: #B45309; }
.proof-form { border: 0; padding: 0; }
.pay-step { padding: 1rem 0 1.2rem; }
.pay-step + .pay-step { border-top: 1px solid var(--line); }
.step-title { display: flex; align-items: center; gap: .6rem; font-size: 1.08rem; margin: 0 0 .9rem; }
.step-badge { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; flex: none; }
.method-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.method-option { margin: 0; cursor: pointer; font-weight: 400; }
.method-option input { position: absolute; opacity: 0; }
.mo-body { display: flex; align-items: center; gap: .75rem; padding: .85rem .9rem; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.method-option:hover .mo-body { border-color: color-mix(in srgb, var(--brand) 40%, white); }
.method-option input:checked + .mo-body { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.method-option input:focus-visible + .mo-body { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); }
.mo-logo { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; font-weight: 900; font-size: 1.15rem; color: #fff; background: #64748B; }
.mo-gcash { background: #007DFE; } .mo-maya { background: #00B464; } .mo-bank { background: #1E293B; } .mo-other { background: #7C3AED; }
.mo-text { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.mo-text small { color: var(--muted); }
.mo-check { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--line); }
.method-option input:checked + .mo-body .mo-check { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px #fff; }
.method-panel { margin-top: .2rem; }
.method-panel + .method-panel { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.method-panel-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.method-panel-grid:not(:has(.qr-box)) { grid-template-columns: 1fr; }
.qr-box { display: grid; justify-items: center; gap: .5rem; width: 190px; text-align: center; }
.qr-box img { width: 190px; height: 190px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; }
.copy-list { margin: 0; display: grid; gap: .5rem; }
.copy-row { display: grid; gap: .2rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.copy-row dt { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.copy-row dt small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.copy-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.copy-row dd > span { font-weight: 700; font-size: 1.02rem; word-break: break-word; }
.pay-instructions { margin: 1rem 0 .5rem; padding: 0; list-style: none; counter-reset: pi; display: grid; gap: .55rem; }
.pay-instructions li { counter-increment: pi; position: relative; padding-left: 2.1rem; font-size: .94rem; }
.pay-instructions li::before { content: counter(pi); position: absolute; left: 0; top: .05rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, white); color: var(--brand); font-weight: 800; font-size: .78rem; }
.pay-note { color: var(--muted); margin: .4rem 0 0; }
.proof-drop { display: grid; place-items: center; gap: .5rem; text-align: center; padding: 1.3rem 1rem; border: 2px dashed color-mix(in srgb, var(--brand) 35%, white); border-radius: 14px; background: color-mix(in srgb, var(--brand) 4%, white); cursor: pointer; font-weight: 400; margin: 0 0 .5rem; }
.proof-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.proof-drop span { display: grid; gap: .2rem; }
.proof-drop small { color: var(--muted); }
.proof-drop img { max-height: 220px; width: auto; border-radius: 10px; box-shadow: var(--shadow); }
.proof-drop.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.pay-submit { margin-top: 1.2rem; }
.more-pay { margin-top: .5rem; }
.more-pay > summary { list-style: none; }
.more-pay > summary::-webkit-details-marker { display: none; }

/* Progressive steps: with JavaScript, steps 2 and 3 appear once a method is chosen */
.js [data-pay-flow]:not(.has-method) [data-step="2"] .method-panel,
.js [data-pay-flow]:not(.has-method) [data-step="3"] { display: none; }
.js [data-pay-flow] .method-panel:not(.active) { display: none; }
.js [data-pay-flow] .method-panel + .method-panel { margin-top: 0; padding-top: 0; border: 0; }
[data-pick-hint] { display: none; }
.js [data-pay-flow]:not(.has-method) [data-pick-hint] { display: block; }
.js [data-pay-flow].has-method [data-step="2"], .js [data-pay-flow].has-method [data-step="3"] { animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .order-top { padding: 1.1rem 1rem; }
  .ot-ref { width: 100%; grid-template-columns: 1fr auto; }
  .order-steps li { font-size: .66rem; }
  .os-dot { width: 1.6rem; height: 1.6rem; font-size: .72rem; }
  .order-steps li:not(:first-child)::before { top: .8rem; }
  .pay-head .big-amount { font-size: 1.7rem; }
  .pay-due { text-align: left; }
  .method-picker { grid-template-columns: 1fr; }
  .method-panel-grid { grid-template-columns: 1fr; }
  .qr-box { width: 100%; }
}
