/* =========================================================
   Słodka Chwila — luxury pastel design system
   blush pink · cream · chocolate brown · warm gold
   ========================================================= */
:root {
  --cream: #fff8f2;
  --blush: #e99aa2;
  --blush-2: #f8dfe0;
  --rose: #b84a60;          /* accessible button colour (white text 5:1) */
  --rose-dark: #9d3d52;
  --brown: #4b2c24;
  --brown-2: #745248;
  --gold: #c49a5a;
  --white: #fff;
  --line: #eadbd4;
  --muted: #7a645d;
  --ok: #4d6b3a;
  --err: #a8232f;
  --err-bg: #fdeceb;
  --focus: #8d2f45;
  --shadow: 0 16px 40px #5a30200f;
  --radius: 18px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--brown); font-family: var(--sans); line-height: 1.5; }
body.lock { overflow: hidden; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); margin: 0; }
.note { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.block { display: block; }
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8d4b52; font-weight: 700; }
.h3 { font-family: var(--serif); font-size: 22px; margin: 28px 0 12px; }
.h4 { font-family: var(--serif); font-size: 19px; margin: 18px 0 8px; }
.h5 { font-size: 13px; margin: 18px 0 8px; font-weight: 700; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { top: 10px; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; background: var(--rose); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 7px 18px #b84a602e; transition: transform .2s, background .2s; }
.button:hover { background: var(--rose-dark); transform: translateY(-1px); }
.button:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.button.secondary { background: #fff; color: var(--brown); border: 1px solid var(--line); box-shadow: none; }
.button.secondary:hover { background: var(--blush-2); }
.button.dark { background: var(--brown); box-shadow: none; }
.button.dark:hover { background: #3a211b; }
.button.danger { background: #fff; color: var(--err); border: 1px solid #e3b4b6; box-shadow: none; }
.wide-btn { width: 100%; margin-top: 12px; }
.link-btn { border: 0; background: none; padding: 4px 2px; color: var(--rose-dark); text-decoration: underline; font-size: 13px; }
.icon-btn { position: relative; border: 1px solid var(--line); background: #fff; border-radius: 50%; width: 40px; height: 40px; display: inline-grid; place-items: center; color: var(--brown); }
.icon-btn:hover { background: var(--blush-2); }
.close-btn { border: 0; background: transparent; font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; color: var(--brown); flex: none; }
.close-btn:hover { background: var(--blush-2); }
.spinner { width: 15px; height: 15px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.announcement { background: var(--brown); color: #fff5ed; text-align: center; padding: 9px 16px; font-size: 12px; letter-spacing: .04em; }
.header { position: sticky; top: 0; z-index: 30; background: #fffaf6f2; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { max-width: 1220px; margin: auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: 25px; background: #fff; color: var(--brown); flex: none; }
.brand-logo { width: 46px; height: 46px; flex: none; display: block; }
.brand-name { display: block; font-family: var(--serif); font-size: 25px; font-style: italic; line-height: 1; }
.brand-sub { display: block; font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: .03em; margin-top: 3px; color: #8a6528; white-space: nowrap; }
.brand > span:last-child { min-width: 0; }
.links { display: flex; align-items: center; gap: 22px; margin: 0 auto; padding: 0; list-style: none; font-size: 13px; }
.links a { text-decoration: none; padding: 6px 2px; }
.links a:hover { color: var(--rose); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 2px; }
.lang-switch button { border: 0; background: transparent; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 700; color: var(--brown-2); }
.lang-switch button[aria-pressed="true"] { background: var(--brown); color: #fff; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brown-2); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.cart-count.has-items { background: var(--rose); }

/* ---------- hero ---------- */
.hero { max-width: 1220px; margin: 22px auto 0; padding: 0 24px; }
.hero-inner { min-height: 430px; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(120deg, #f9e5df, #f2cfd0); box-shadow: var(--shadow); }
.hero-copy { padding: 55px 40px; align-self: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 4vw, 60px); line-height: 1.05; margin: 18px 0; }
.hero p { line-height: 1.8; color: #5e443c; max-width: 460px; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-image { position: relative; min-height: 350px; background: url('https://images.unsplash.com/photo-1578985545062-69928b1d9587?auto=format&fit=crop&w=1100&q=85') center/cover, #f1c9c9; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f6d8d5 0%, transparent 35%); }
.hero-note { position: absolute; right: 25px; bottom: 25px; background: #fffaf0ec; padding: 15px 20px; border-radius: 14px; font-family: var(--serif); font-style: italic; transform: rotate(-3deg); z-index: 1; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1170px; margin: 0 auto; padding: 20px 24px; list-style: none; }
.benefit { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; font-size: 13px; border-right: 1px solid var(--line); }
.benefit:last-child { border: 0; }
.benefit > span { font-size: 22px; color: var(--gold); }
.benefit small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- sections ---------- */
.section { max-width: 1220px; margin: 58px auto; padding: 0 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); margin: 8px 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 640px; }

.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.category { display: block; padding: 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.category:hover, .product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category img { width: 100%; height: 170px; object-fit: cover; display: block; }
.category-body { display: block; padding: 15px; }
.category strong { font-family: var(--serif); font-size: 19px; font-weight: 500; display: block; }
.category small { display: block; color: var(--muted); margin-top: 6px; font-size: 13px; }

.notice { background: #fff4e0; border: 1px solid #ecd2a3; border-radius: 14px; padding: 13px 16px; font-size: 13px; line-height: 1.6; margin: 0 0 20px; }
.notice.warn { background: #fdeee9; border-color: #efc3b6; }

/* ---------- catalogue ---------- */
.catalog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 8px; }
.pills, .radio-row { display: flex; flex-wrap: wrap; gap: 9px; }
.tools-right { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-choice { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 10px 16px; font-size: 13px; }
.pill-choice:hover { border-color: var(--blush); }
.pill-choice[aria-pressed="true"] { border-color: var(--rose); background: var(--blush-2); font-weight: 700; }
.pill-radio { position: relative; display: inline-block; }
.pill-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill-radio span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 10px 16px; font-size: 13px; }
.pill-radio input:checked + span { border-color: var(--rose); background: var(--blush-2); font-weight: 700; }
.pill-radio input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.results-count { margin: 8px 0 14px; }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.product-media { display: block; padding: 0; border: 0; background: #f4e7df; width: 100%; }
.product-media img { width: 100%; height: 210px; object-fit: cover; display: block; }
.product-body { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 7px; }
.product p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; flex: 1; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.price { font-weight: 800; }
.product .button { width: 100%; padding: 11px; font-size: 13px; }
.product .button + .button { margin-top: 7px; }
.skeleton { pointer-events: none; }
.sk-img, .sk-line { background: linear-gradient(90deg, #f4e7df, #fbf1ea, #f4e7df); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.sk-img { height: 210px; }
.sk-line { height: 14px; border-radius: 7px; margin: 12px 0; }
.sk-line.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.state { grid-column: 1 / -1; text-align: center; background: #fff; border: 1px dashed #d8bcb3; border-radius: var(--radius); padding: 36px 20px; }
.state h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; }
.state p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.state-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.state-error { border-color: #e3b4b6; background: var(--err-bg); }
.custom-cta { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 27px 30px; border-radius: 20px; background: #f3d9d5; margin-top: 35px; }
.custom-cta h3 { font-family: var(--serif); font-size: 25px; margin: 0 0 7px; }
.custom-cta p { margin: 0; color: #5e443c; font-size: 14px; line-height: 1.6; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.field.inline { margin: 0; }
.field label, .fieldset legend { font-size: 13px; font-weight: 700; padding: 0; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cdb8af; border-radius: 10px; padding: 12px; background: #fff; }
.field textarea { min-height: 90px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--err); background: var(--err-bg); }
.field-error { color: var(--err); font-size: 13px; font-weight: 600; margin: 2px 0 0; }
.field-error::before { content: "⚠ "; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); }
.fieldset { border: 0; padding: 0; margin: 18px 0; min-width: 0; }
.fieldset legend { margin-bottom: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; cursor: pointer; }
.check input { accent-color: var(--rose); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.check a { color: var(--rose-dark); }
.check-field { margin: 14px 0; }
.error-summary { background: var(--err-bg); border: 1px solid #e3b4b6; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 13px; color: #6d1a22; }
.error-summary ul { margin: 6px 0 0; padding-left: 20px; }
.error-summary a { color: inherit; }
.error-summary p { margin: 4px 0 0; }

/* ---------- builder ---------- */
.builder-wrap { background: linear-gradient(135deg, #f7e5df, #fff7f0); padding: 50px 0; margin-top: 70px; scroll-margin-top: 70px; }
.builder { max-width: 1220px; margin: auto; padding: 0 24px; }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 24px; align-items: start; }
.builder-panel, .preview-panel { background: #fffdfa; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.preview-panel { position: sticky; top: 100px; }
.steps { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 0 14px; list-style: none; }
.step { white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px 8px 8px; font-size: 13px; color: var(--brown-2); display: inline-flex; align-items: center; gap: 8px; }
.step-n { width: 24px; height: 24px; border-radius: 50%; background: var(--blush-2); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.step.active { background: var(--brown); color: #fff; border-color: var(--brown); }
.step.active .step-n { background: #fff; color: var(--brown); }
.step.done { background: var(--blush-2); border-color: var(--blush-2); }
.step-title { font-family: var(--serif); font-size: 24px; margin: 8px 0 4px; }
.step-title:focus { outline: none; }
.step-error { background: var(--err-bg); border-radius: 10px; padding: 10px 14px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.choice { position: relative; display: block; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px; cursor: pointer; min-width: 0; }
.choice:hover { border-color: var(--blush); }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); background: #fff5f4; }
.choice:has(input:focus-visible), .check-card:has(input:focus-visible), .swatch-wrap:has(input:focus-visible), .option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-emoji { font-size: 24px; display: block; margin-bottom: 6px; }
.choice strong { font-size: 13px; display: block; }
.choice small { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }
.al { display: block; font-style: normal; font-size: 11px; color: #8a5a2b; margin-top: 6px; }
.option-list { display: grid; gap: 8px; }
.option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: 14px; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option:has(input:checked) { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); background: #fff5f4; }
.option small { color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch-wrap { position: relative; font-size: 12px; text-align: center; color: var(--muted); cursor: pointer; width: 70px; padding: 4px; border-radius: 10px; }
.swatch-wrap input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch { display: block; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); margin: 0 auto 6px; }
.swatch-wrap:has(input:checked) .swatch { box-shadow: 0 0 0 3px var(--rose); }
.swatch-wrap:has(input:checked) { color: var(--brown); font-weight: 700; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-card { position: relative; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 12px; font-size: 13px; cursor: pointer; }
.check-card input { accent-color: var(--rose); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.check-card:has(input:checked) { border-color: var(--rose); background: #fff5f4; }
.check-card small { color: var(--muted); }
.upload { border: 1.5px dashed #cdb8af; background: #fff8f5; padding: 16px; border-radius: 14px; }
.upload input[type=file] { max-width: 100%; font-size: 13px; }
.ref-box { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 13px; word-break: break-all; }
.ref-box img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.review { margin: 14px 0; }
.review > div { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---------- preview ---------- */
.preview-title { display: flex; justify-content: space-between; align-items: center; }
.preview-title h3 { font-family: var(--serif); font-size: 25px; margin: 0; }
.live-tag { font-size: 11px; color: #44602f; background: #edf3e5; padding: 6px 10px; border-radius: 999px; font-weight: 600; }
.cake-preview { border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #fae7e1, #fff7ed); margin: 14px 0; aspect-ratio: 4 / 3; }
.cake-preview svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 8px #6b3a2418); }
.pv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.layers { list-style: none; margin: 0; padding: 0; font-size: 12px; display: grid; gap: 5px; }
.layers li { display: flex; align-items: center; gap: 8px; }
.layer-sw { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #0002; flex: none; }
.preview-meta { display: grid; gap: 8px; }
.meta { background: #fff6f2; border-radius: 12px; padding: 10px 12px; }
.meta small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.meta strong { font-size: 13px; }
.price-lines { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.price-lines li, .summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; }
.price-lines li span, .summary-line span:first-child { color: var(--muted); }
.summary-total { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0; }
.summary-total strong { font-size: 22px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #fdeee9; color: #7a3326; border: 1px solid #efc3b6; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.chips.small .chip { font-size: 11px; padding: 2px 8px; }
.details { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; background: #fff; }
.details summary { cursor: pointer; padding: 10px 0; font-weight: 700; font-size: 13px; }
.ing-list { margin: 0 0 8px; padding-left: 18px; font-size: 13px; display: grid; gap: 6px; }

/* ---------- how / allergens ---------- */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.how-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.how-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blush-2); font-family: var(--serif); font-size: 18px; }
.how-steps strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.how-steps small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.al-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.al-grid li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.al-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13px; }
.al-table th, .al-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.al-table thead th { background: #fbeee8; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.al-table tr.group th { background: var(--cream); font-family: var(--serif); font-size: 16px; text-transform: none; letter-spacing: 0; }
.al-table tbody th[scope=row] { font-weight: 600; white-space: nowrap; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--brown); background: var(--cream); }
dialog::backdrop { background: #28150fb8; }
.dialog-body { padding: 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog-head h2 { font-size: 26px; margin: 0 0 6px; }
.modal { border-radius: 22px; width: min(920px, calc(100% - 28px)); max-width: calc(100% - 16px); max-height: calc(100vh - 28px); overflow: auto; }
.modal.wide { width: min(1040px, calc(100% - 28px)); }
.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; max-width: 100%; width: min(460px, 100%); overflow: auto; border-radius: 22px 0 0 22px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; }
.pd-media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: 16px; position: sticky; top: 0; display: block; }
.pd-buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0; }
.pd-total small { display: block; font-size: 12px; color: var(--muted); }
.pd-total strong { font-size: 24px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-actions .button { flex: 1; min-width: 160px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #cdb8af; border-radius: 999px; background: #fff; }
.qty button { border: 0; background: none; width: 38px; height: 38px; font-size: 18px; border-radius: 50%; }
.qty button:hover { background: var(--blush-2); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-item img, .cart-ph { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--blush-2); display: grid; place-items: center; font-size: 28px; }
.cart-lines { list-style: none; margin: 4px 0 8px; padding: 0; font-size: 12px; color: var(--muted); }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.co-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 10px; align-items: start; }
.co-summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: sticky; top: 0; }
.co-summary .h4:first-child { margin-top: 0; }
.sum-list { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; }
.sum-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.done { outline: none; }
.ref strong { font-size: 20px; letter-spacing: .04em; }
.next-steps { padding-left: 20px; font-size: 14px; line-height: 1.8; }

/* ---------- footer / toast ---------- */
.footer { background: var(--brown); color: #fff4ec; margin-top: 65px; padding: 40px 24px; }
.footer-inner { max-width: 1170px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer p, .footer a { font-size: 13px; color: #ecd6cd; line-height: 1.9; margin: 8px 0 0; }
.footer .brand-sub { color: #e9c9bd; }
.footer .brand-mark { color: #fff; background: transparent; }
.footer h4 { font-family: var(--serif); font-size: 18px; margin: 0; }
.footer-bottom { max-width: 1170px; margin: 25px auto 0; padding-top: 18px; border-top: 1px solid #ffffff2b; font-size: 12px; color: #d3b8ae; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.footer-bottom a { font-size: 12px; color: inherit; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); background: var(--brown); color: #fff; padding: 13px 20px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 300; box-shadow: var(--shadow); max-width: calc(100% - 28px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- partner panel ---------- */
.pa-wrap { max-width: 1220px; margin: 0 auto; padding: 24px; }
.pa-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin: 18px 0; }
.pa-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.pa-list, .pa-detail { background: #fffdfa; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-card { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; font-size: 13px; }
.req-card[aria-current="true"] { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); background: #fff5f4; }
.req-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eee; white-space: nowrap; }
.badge.new { background: #fff1c9; color: #7a5a00; }
.badge.confirmed { background: #e2f0d7; color: #36561f; }
.badge.changes { background: #e5ecfa; color: #274a86; }
.badge.declined { background: #f8dcdc; color: #8b2230; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.pa-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; margin: 8px 0; font-size: 13px; }
.pa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.history { font-size: 13px; padding-left: 18px; color: var(--muted); }

/* ---------- legal ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 24px; line-height: 1.8; }
.legal h2 { font-family: var(--serif); margin-top: 36px; }
.legal li { margin: 4px 0; }

/* ================= responsive ================= */
@media (max-width: 1000px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .links { gap: 14px; }
  .pa-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { gap: 12px; }
  .menu-btn { display: inline-grid; }
  .links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fffaf6; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: var(--shadow); }
  .nav-open .links { display: flex; }
  .links a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-actions { margin-left: auto; }
  .hero-copy { padding: 35px 25px; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .builder-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; order: -1; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(2) { border-right: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .pd-grid, .co-grid { grid-template-columns: 1fr; }
  .pd-media img { position: static; max-height: 300px; }
  .co-summary { position: static; order: -1; }
}
@media (max-width: 620px) {
  .announcement { font-size: 10px; }
  .nav { padding: 8px 12px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 17px; white-space: nowrap; }
  .brand-sub { font-size: 12px; margin-top: 2px; }
  .nav-actions { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
  .cart-count { top: -5px; right: -5px; min-width: 18px; height: 18px; font-size: 10px; }
  .lang-switch button { padding: 5px 8px; font-size: 11px; }
  .hero { padding: 0 14px; margin-top: 14px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 30px 22px 28px; }
  .hero h1 { font-size: 40px; }
  .hero-image { min-height: 240px; order: -1; }
  .hero-image::after { background: linear-gradient(180deg, transparent, #f6d8d5aa); }
  .hero-note { font-size: 12px; right: 12px; bottom: 12px; }
  .benefits { padding: 12px 14px; }
  .benefit { justify-content: flex-start; padding: 10px 5px; font-size: 12px; }
  .section { padding: 0 14px; margin: 42px auto; }
  .section-head { flex-direction: column; align-items: start; }
  .category img { height: 120px; }
  .category-body { padding: 12px; }
  .category strong { font-size: 16px; }
  .catalog-tools, .tools-right { flex-direction: column; align-items: stretch; }
  .products { gap: 10px; }
  .product-media img { height: 140px; }
  .product-body { padding: 11px; }
  .product h3 { font-size: 17px; }
  .product p { font-size: 12px; }
  .price-row { flex-direction: column; align-items: start; gap: 2px; }
  .product .button { font-size: 12px; padding: 10px 6px; }
  .builder-wrap { padding: 30px 0; }
  .builder { padding: 0 12px; }
  .builder-panel, .preview-panel { padding: 16px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .checks, .row2, .pv-cols { grid-template-columns: 1fr; }
  .review > div { grid-template-columns: 1fr auto; }
  .review dt { grid-column: 1 / -1; }
  .custom-cta { grid-template-columns: 1fr; padding: 22px; }
  .how-steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .dialog-body { padding: 18px; }
  .modal { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .drawer { border-radius: 0; }
  .kv { grid-template-columns: 1fr; }
  .lang-switch button { padding: 6px 9px; }
}
@media (max-width: 400px) {
  .nav-actions [data-action="goto-search"] { display: none; }   /* the catalogue has its own search field */
  .brand-name { font-size: 16px; }
  .nav-actions .button { padding: 8px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
