/* KlikKlak — public site styles. Plain CSS, no framework. */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-700.woff2) format("woff2"); }

:root {
  --bg: #F5F5F0;
  --card: #EBEBEB;
  --text: #1A1A1A;
  --muted: #5E5E58;
  --line: #D8D8D1;
  --white: #FFFFFF;
  --red: #E63946;
  --blue: #457B9D;
  --yellow: #F4A261;
  --radius: 16px;
  --gap: 24px;
  --pad: 32px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--text); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--pad); }
.main { flex: 1; padding-top: 40px; padding-bottom: 72px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 245, 240, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { display: inline-flex; color: var(--text); width: max-content; transition: opacity .2s; }
.logo:hover { opacity: .7; }
.logo svg { height: 26px; width: 118px; fill: currentColor; }
.main-nav { display: flex; gap: 48px; font-size: 15px; }
.main-nav a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.main-nav a[aria-current] { border-bottom-color: var(--text); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.cart-link { font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 0; }
.cart-link:hover { opacity: .7; }
.cart-count:not(:empty)::before { content: " ("; }
.cart-count:not(:empty)::after { content: ")"; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 14px; }
.site-footer__in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin-top: 8px; }
.logo--footer svg { height: 22px; width: 100px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.footer-links a, .linklike { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; letter-spacing: inherit; text-transform: inherit; }
.footer-links a:hover, .linklike:hover { color: var(--text); }
.footer-copy { margin-top: 24px; font-size: 12px; }
.footer-ig { color: var(--muted); }

/* ---------- Intro / headings ---------- */
.intro { margin-bottom: 32px; max-width: 900px; }
.intro--home { margin-bottom: 28px; }
.intro--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.intro__title { font-weight: 400; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.intro--home .intro__title { font-size: clamp(30px, 3.4vw, 46px); }
.intro__text { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 62ch; }
.section { margin-top: 72px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.section__title { font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; }
.section__link { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.section__link:hover { color: var(--text); }
.more { margin-top: 32px; text-align: center; }
.empty { padding: 64px 0; text-align: center; color: var(--muted); }
.empty p + p { margin-top: 20px; }
.empty--404 { padding: 96px 0; }
.empty--404 .intro__title { color: var(--text); margin-bottom: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- Badges & prices ---------- */
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.5; text-decoration: none; white-space: nowrap;
}
.badge--red { background: var(--red); color: var(--white); }
.badge--blue { background: var(--blue); color: var(--white); }
.badge--yellow { background: var(--yellow); color: var(--text); }
.badge--dark { background: var(--text); color: var(--white); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 700; }
.price__was { color: var(--muted); font-weight: 400; font-size: .88em; }
.price__off { color: var(--red); font-size: .85em; }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.card, .tile { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.card__link, .tile__link { display: flex; height: 100%; color: inherit; text-decoration: none; padding: 28px; gap: 24px; }
.card__media, .tile__media { display: flex; align-items: center; justify-content: center; min-width: 0; }
.card__img, .tile__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.card__link:hover .card__img, .tile__link:hover .tile__img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card__title { font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.card__desc { color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { margin-top: 6px; font-size: 15px; }
.card__badge { position: absolute; top: 20px; right: 20px; }
.card.is-unavailable .card__img { opacity: .55; }
.img-placeholder { width: 100%; aspect-ratio: 1; border-radius: 12px; background: repeating-linear-gradient(45deg, #e3e3e3 0 12px, #e8e8e8 12px 24px); }

/* tall: image above, text below (4 columns) */
.card--tall { min-height: 440px; }
.card--tall .card__link { flex-direction: column; }
.card--tall .card__media { flex: 1; min-height: 0; padding-top: 16px; }
.card--tall .card__img { max-height: 280px; }

/* half: text left, image right (6 columns) */
.card--half { min-height: 340px; }
.card--half .card__link { flex-direction: row; align-items: stretch; }
.card--half .card__body { flex: 1 1 45%; justify-content: flex-end; }
.card--half .card__media { flex: 1 1 55%; order: 2; }
.card--half .card__img { max-height: 260px; }
.card--half .card__title { font-size: 20px; }
.card--half .card__badge { left: 20px; right: auto; }

/* wide: featured (8) or full row (12) */
.card--wide { min-height: 440px; }
.span-12.card--wide { min-height: 400px; }
.card--wide .card__link { flex-direction: row; padding: 40px; align-items: stretch; }
.card--wide .card__body { flex: 1 1 45%; justify-content: flex-end; gap: 10px; }
.card--wide .card__media { flex: 1 1 55%; order: 2; }
.card--wide .card__img { max-height: 360px; }
.card--wide .card__title { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.02em; }
.card--wide .card__desc { font-size: 15px; -webkit-line-clamp: 3; max-width: 42ch; }
.card--wide .price { font-size: 18px; }
.card--wide .card__badge { top: 24px; right: 24px; }

/* uniform shop grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.card--grid .card__link { flex-direction: column; padding: 20px; gap: 16px; }
.card--grid .card__media { aspect-ratio: 1; padding: 12px; }
.card--grid .card__title { font-size: 16px; }

/* collection tiles */
.tile { min-height: 360px; }
.tile__link { flex-direction: column; }
.tile__media { flex: 1; min-height: 0; }
.tile__img { max-height: 260px; }
.tile--wide .tile__img { max-height: 320px; }
.tile__body { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile__title { font-weight: 400; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.tile__count { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* ---------- Shop filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field select, .field input, .field textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 16px; line-height: 1.3; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A1A1A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(69, 123, 157, .2); }
.field--select { min-width: 200px; }
.filters .field--select select { border-radius: 999px; padding-top: 10px; padding-bottom: 10px; }
.chips { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.chips legend { padding: 0; margin-bottom: 6px; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--text)); }
.chip--red { --c: var(--red); } .chip--blue { --c: var(--blue); } .chip--yellow { --c: var(--yellow); } .chip--dark { --c: var(--text); }
.chip input:checked + span { background: var(--c); border-color: var(--c); color: var(--white); font-weight: 700; }
.chip--yellow input:checked + span { color: var(--text); }
.chip input:checked + span::before { background: currentColor; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.filters__end { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.filters__clear { color: var(--muted); font-size: 14px; }
.result-count { font-size: 14px; margin-bottom: 20px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); background: var(--white); font-size: 15px; }
.pagination [aria-current] { background: var(--text); color: var(--white); border-color: var(--text); font-weight: 700; }
.pagination .pagination__gap { border: 0; background: none; min-width: 20px; padding: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--text);
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--text); transition: background .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--text); color: var(--white); }
.btn--dark:hover { background: #333; border-color: #333; }
.btn--ghost:hover { background: var(--text); color: var(--white); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 6px 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.gallery__main { background: var(--card); border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery__zoom { width: 100%; height: 100%; border: 0; background: none; padding: 40px; cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
.gallery__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery__thumb { flex: 0 0 80px; height: 80px; border-radius: 12px; border: 2px solid transparent; background: var(--card); padding: 6px; cursor: pointer; transition: border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--text); }
.pinfo { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.pinfo__badges { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.pinfo__badges:empty { display: none; }
.pinfo__title { font-weight: 700; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.025em; }
.price--lg { font-size: 26px; }
.pinfo__lead { color: var(--muted); font-size: 17px; }
.buy { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.buy__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field--qty { max-width: 120px; }
.stock-note { font-size: 14px; }
.howto { background: var(--card); border-radius: var(--radius); padding: 20px 22px; font-size: 14px; }
.howto__title { font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.howto ol { margin: 0 0 10px; padding-left: 20px; }
.howto li + li { margin-top: 4px; }
.howto a { color: var(--muted); }
.pinfo__desc .pinfo__subtitle, .pinfo__subtitle { font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.pinfo__meta { font-size: 14px; }

.rich { font-size: 16px; line-height: 1.7; }
.rich > * + * { margin-top: 14px; }
.rich h2 { font-weight: 400; font-size: 22px; letter-spacing: -.01em; margin-top: 28px; }
.rich h3 { font-weight: 700; font-size: 17px; margin-top: 20px; }
.rich ul, .rich ol { padding-left: 22px; }
.rich a { color: var(--blue); }
.prose { max-width: 760px; }
.prose .rich { margin-top: 28px; }

.zoom { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 24px; border: 0; background: rgba(245, 245, 240, .98); }
.zoom[open] { display: flex; align-items: center; justify-content: center; }
.zoom::backdrop { background: rgba(26, 26, 26, .3); }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.zoom__close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--text); color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; }

/* ---------- Cart & checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line:first-child { border-top: 1px solid var(--line); }
.line__media { width: 96px; height: 96px; background: var(--card); border-radius: 12px; padding: 8px; display: flex; }
.line__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line__body { display: flex; flex-direction: column; gap: 6px; }
.line__title { font-weight: 700; text-decoration: none; }
.line__qty input { width: 80px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.line__remove { font-size: 13px; text-transform: none; letter-spacing: 0; text-decoration: underline; }
.summary { background: var(--card); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 24px); }
.summary--inline { position: static; margin: 32px 0; }
.summary__title { font-weight: 700; font-size: 17px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary__note { font-size: 13px; }
.summary__edit { font-size: 14px; color: var(--muted); }
.mini { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.mini__media { width: 64px; height: 64px; background: var(--bg); border-radius: 10px; padding: 6px; display: flex; }
.mini__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mini__body { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }

.checkout-form { display: flex; flex-direction: column; gap: 28px; }
.fs { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fs__title { font-size: 20px; letter-spacing: -.01em; padding: 0; margin-bottom: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.field textarea { resize: vertical; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.field__error { color: #B3222E; font-size: 13px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--text); }
.check.has-error span { color: #B3222E; }
.reserve-info { background: var(--card); border-radius: var(--radius); padding: 20px 22px; font-size: 14px; }
.reserve-info__title { font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.reserve-info ul { margin: 0; padding-left: 20px; }
.reserve-info li + li { margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 15px; background: var(--white); border-left: 4px solid var(--blue); }
.notice--error { border-left-color: var(--red); }
.notice--success { border-left-color: #2E8B57; }

.thanks { max-width: 720px; }
.thanks .badge { margin-bottom: 16px; }
.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.steps b { display: block; }

/* ---------- Cookie banner & toast ---------- */
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: flex-start; pointer-events: none; }
.cookie[hidden] { display: none; }
.cookie__box { pointer-events: auto; max-width: 540px; width: 100%; background: var(--white); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(26, 26, 26, .18); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cookie__title { font-weight: 700; font-size: 16px; }
.cookie__text { font-size: 14px; color: var(--muted); }
.cookie__text a { color: var(--text); }
.cookie__prefs { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.cookie__prefs[hidden] { display: none; }
.switch { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.switch input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--text); }
.switch b { display: block; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__actions .btn { flex: 1 1 auto; padding: 11px 16px; font-size: 14px; }
.cookie__actions [hidden] { display: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--text); color: var(--white); padding: 12px 14px 12px 20px; border-radius: 999px; font-size: 14px; display: flex; align-items: center; gap: 14px; box-shadow: 0 10px 30px rgba(26, 26, 26, .25); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.toast a { color: var(--white); font-weight: 700; background: rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gap: 16px; --pad: 24px; }
  .card--wide .card__link { padding: 32px; }
  .product { gap: 36px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}

@media (max-width: 900px) {
  .card--tall, .card--wide { min-height: 380px; }
  .card__link { padding: 22px; }
  .card--wide .card__link { padding: 28px; }
  .card--tall .card__img { max-height: 220px; }
  .card--half .card__link { flex-direction: column; }
  .card--half .card__media { order: -1; }
  .card--half .card__badge { left: auto; right: 20px; }
  .product { grid-template-columns: 1fr; }
  .pinfo { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 760px) {
  :root { --pad: 16px; --header-h: 60px; }
  .main { padding-top: 24px; padding-bottom: 56px; }
  .site-header__in { grid-template-columns: auto 1fr; }
  .logo svg { height: 22px; width: 100px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39;
    flex-direction: column; gap: 0; padding: 8px var(--pad) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 22px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current] { border-bottom-color: var(--line); font-weight: 700; }

  .bento { grid-template-columns: 1fr; }
  .bento > [class*="span-"] { grid-column: 1 / -1; }
  .card--tall, .card--half, .card--wide, .span-12.card--wide { min-height: 0; }
  .card__link, .card--wide .card__link { flex-direction: column !important; padding: 20px; gap: 16px; }
  .card__media, .card--half .card__media, .card--wide .card__media { order: -1; flex: none; height: 240px; padding-top: 12px; }
  .card__img { max-height: 220px !important; }
  .card--half .card__badge { left: auto; right: 16px; }
  .card__badge, .card--wide .card__badge { top: 16px; right: 16px; }
  .card--wide .card__title { font-size: 24px; }
  .tile { min-height: 300px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card--grid .card__link { padding: 12px; gap: 10px; }
  .card--grid .card__media { height: auto; padding: 6px; }
  .card--grid .card__title { font-size: 14px; }
  .card--grid .card__desc { display: none; }
  .card--grid .card__badge { top: 10px; right: 10px; font-size: 10px; padding: 3px 8px; }
  .card--grid .price { font-size: 14px; }

  .filters { gap: 14px; }
  .field--select { min-width: 0; flex: 1 1 140px; }
  .chips { order: 3; flex: 1 1 100%; }
  .filters__end { margin-left: 0; }

  .gallery__zoom { padding: 20px; }
  .buy__buttons { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .line { grid-template-columns: 72px 1fr; }
  .line__media { width: 72px; height: 72px; }
  .line > form:last-child { grid-column: 2; }
  .cookie { left: 8px; right: 8px; bottom: 8px; }
  .cookie__box { padding: 18px; }
  .section { margin-top: 56px; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
