@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
  color-scheme: light;
  --ink: #172b4d;
  --muted: #667085;
  --paper: #fff;
  --surface: #fff;
  --soft: #f5f8fc;
  --accent: #1769aa;
  --accent-dark: #10558d;
  --line: #e2e8f0;
  --success: #18794e;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.storefront-page { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #4d9de0; outline-offset: 3px; }
.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;
}
.page-width { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 9px; color: var(--accent); font-size: .72rem;
  font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: clamp(1.55rem, 2.6vw, 2rem); letter-spacing: -.025em; }

.site-header { position: relative; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-main {
  min-height: 78px; width: min(1320px, calc(100% - 48px)); margin: 0 auto;
  display: grid; grid-template-columns: 220px minmax(220px, 1fr) 110px; align-items: center; gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 1.2rem; letter-spacing: -.04em; }
.brand strong { color: var(--accent); }
.brand-mark {
  display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px;
  background: var(--accent); color: #fff; font-size: 1.2rem; font-weight: 800;
}
.header-search { display: flex; height: 44px; border: 2px solid var(--accent); border-radius: 7px; overflow: hidden; }
.header-search input { min-width: 0; flex: 1; padding: 0 15px; border: 0; outline: none; }
.header-search button { min-width: 95px; border: 0; background: var(--accent); color: #fff; cursor: pointer; font-weight: 700; }
.header-search button:hover, .button-primary:hover { background: var(--accent-dark); }
.header-cart { position: relative; justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 8px; font-weight: 700; }
.header-cart > span:first-child { font-size: 1.25rem; }
.cart-badge {
  display: grid; min-width: 22px; height: 22px; padding: 0 5px; place-items: center;
  border-radius: 999px; background: #eaf3fb; color: var(--accent); font-size: .75rem;
}
.category-nav {
  display: flex; min-height: 46px; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 55px);
  border-top: 1px solid #f0f2f5; color: #46546a; font-size: .9rem;
}
.category-link { padding: 14px 2px 12px; border-bottom: 2px solid transparent; }
.category-link:hover, .category-link.active { border-color: var(--accent); color: var(--accent); }

.hero {
  position: relative; isolation: isolate; min-height: 350px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  padding: 55px max(8vw, calc((100vw - 1150px) / 2)); background: #eaf3fb;
}
.hero-copy { position: relative; z-index: 1; max-width: 530px; }
.hero-copy > p:not(.eyebrow) { max-width: 430px; margin-bottom: 25px; color: #4f6078; font-size: 1.08rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions button[hidden] { display: none; }
.button {
  min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 5px; cursor: pointer; font-weight: 700; transition: background .15s, color .15s, transform .15s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #fff; }
.button-outline { border-color: var(--line); background: #fff; }
.button-outline:hover { background: var(--soft); }
.category-section { padding-top: 53px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.category-collections { display: grid; gap: 28px; }
.category-collection { min-width: 0; }
.category-collection-heading { align-items: center; margin-bottom: 12px; }
.category-collection-heading h3 { margin: 0; color: var(--accent); font-size: clamp(1.15rem, 2vw, 1.5rem); }
.category-see-all {
  min-height: 38px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer;
  font-size: .85rem; font-weight: 700;
}
.category-see-all:hover { background: var(--accent-dark); }
.category-product-grid {
  display: grid; grid-auto-columns: clamp(174px, 24vw, 225px); grid-auto-flow: column; gap: 14px;
  overflow-x: auto; overscroll-behavior-inline: contain; padding: 0 2px 12px; scroll-snap-type: x mandatory;
}
.category-product-card { cursor: pointer; scroll-snap-align: start; }
.category-product-card .product-art { aspect-ratio: 1 / 1; }
.category-product-card .stock-badge { top: auto; right: 10px; bottom: 10px; }
.quick-add-button {
  position: absolute; z-index: 2; top: 10px; right: 10px; width: 42px; height: 42px;
  display: grid; place-items: center; padding: 0 0 3px; border: 0; border-radius: 50%;
  background: #303030; color: #fff; cursor: pointer; font-size: 1.7rem; line-height: 1;
}
.quick-add-button:hover { background: var(--accent); }
.quick-add-button:disabled { background: #777; cursor: not-allowed; }

.highlight-section { padding-top: 54px; }
.text-link { color: var(--accent); font-size: .9rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.recent-section { padding-top: 48px; }
.shop-section { padding-top: 64px; }
.shop-heading { align-items: end; }
.shop-heading .muted { margin: 8px 0 0; font-size: .9rem; }
.shop-controls { display: flex; gap: 10px; }
.control-input {
  min-height: 42px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: var(--ink);
}
.control-input[type="search"] { width: 230px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.empty-state { grid-column: 1 / -1; padding: 40px 20px; border: 1px dashed #cbd5e1; border-radius: 8px; color: var(--muted); text-align: center; }
.product-card {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  transition: transform .16s, box-shadow .16s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 9px 22px #172b4d12; }
.product-art {
  position: relative; aspect-ratio: 1.2 / 1; display: grid; overflow: hidden; place-items: center;
  background: var(--product-bg, #f1f5f9);
}
.product-image-trigger { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; display: grid; place-items: center; border: 0; background: transparent; cursor: zoom-in; }
.product-image-trigger:hover .product-image { transform: scale(1.035); }
.product-placeholder { font-size: 4.5rem; }
.product-image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; background: #fff; transition: transform .18s; }
.discount-badge, .stock-badge { position: absolute; z-index: 1; top: 10px; padding: 5px 8px; border-radius: 3px; font-size: .72rem; font-weight: 700; }
.discount-badge { left: 10px; background: #eaf7ef; color: var(--success); }
.stock-badge { right: 10px; background: #eaf7ef; color: var(--success); }
.stock-badge.out-of-stock { background: #fff0f0; color: #aa3030; }
.product-info { padding: 14px; }
.product-category { margin-bottom: 6px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.product-name { margin: 0 0 8px; font-size: 1rem; line-height: 1.4; }
.product-name-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: inherit; line-height: inherit; text-align: left; }
.product-name-button:hover { color: var(--accent); text-decoration: underline; }
.product-description { min-height: 36px; margin-bottom: 10px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-price { font-size: 1.08rem; font-weight: 800; }
.old-price { color: #8390a1; font-size: .82rem; text-decoration: line-through; }
.shop-layout { padding-top: 64px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); align-items: start; gap: 28px; }
.shop-layout:not(.checkout-visible) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.cart-drawer:not(.cart-open) { display: none; }
#cart-checkout.cart-open {
  position: fixed; z-index: 20; top: 82px; right: 20px; bottom: 20px;
  width: min(390px, calc(100vw - 40px)); max-height: calc(100vh - 102px);
  padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  overflow-y: auto; overscroll-behavior: contain; background: transparent;
}
.cart-panel, .checkout-panel { padding: 23px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cart-panel { position: static; flex: 0 0 auto; box-shadow: 0 12px 35px #172b4d22; }
.cart-close-button { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.cart-close-button:hover { background: var(--soft); }
.cart-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-panel { flex: 0 0 auto; box-shadow: 0 12px 35px #172b4d22; }
.checkout-panel[hidden] { display: none; }
.cart-title { margin-bottom: 12px; }
.cart-title h2 { font-size: 1.45rem; }
.cart-title-count { color: var(--muted); font-size: .92rem; font-weight: 500; }
.empty-cart { padding: 22px 0; color: var(--muted); }
.cart-item { padding: 14px 0; display: grid; grid-template-columns: 24px 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.cart-item-select { display: grid; place-items: center; }
.cart-item-select input, .select-all-control input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.cart-item-select input:disabled, .select-all-control input:disabled { cursor: not-allowed; }
.cart-item-image { width: 52px; height: 52px; grid-row: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); cursor: zoom-in; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-image span { font-size: 1.6rem; }
.cart-item-name { margin: 0 0 5px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: .92rem; font-weight: 700; text-align: left; }
.cart-item-name:hover { color: var(--accent); text-decoration: underline; }
.cart-item-price { color: var(--muted); font-size: .82rem; }
.cart-item-name-text { display: block; margin-bottom: 5px; font-size: .92rem; }
.cart-item-unavailable-message { margin-top: 4px; color: #a43636; font-size: .78rem; font-weight: 700; }
.cart-line-total { font-weight: 700; white-space: nowrap; }
.quantity-controls { grid-column: 3 / -1; display: flex; align-items: center; gap: 10px; }
.quantity-controls button, .remove-item {
  min-width: 30px; min-height: 30px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer;
}
.quantity-controls button:hover, .remove-item:hover { background: var(--soft); }
.remove-item { margin-left: auto; padding: 0 8px; color: #a43636; font-size: .78rem; }
.totals { margin-top: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: #46546a; font-size: .9rem; }
.total-row strong { color: var(--ink); }
.order-total { margin-top: 5px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: 1rem; font-weight: 700; }
.cart-note, .disclaimer { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.cart-note { margin: 12px 0; }
.checkout-start-button { width: 100%; margin-bottom: 10px; }
.checkout-start-button:disabled { opacity: .55; cursor: not-allowed; }
.clear-cart-button { width: 100%; }
.checkout-panel h2 { margin-bottom: 9px; }
.checkout-panel > .muted { margin-bottom: 20px; font-size: .9rem; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; }
.form-grid label > span:not(.optional) { color: #b42318; }
.form-grid input, .form-grid textarea {
  width: 100%; min-height: 42px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: var(--ink);
}
.form-grid textarea { resize: vertical; }
.form-wide { grid-column: 1 / -1; }
.optional { color: var(--muted); font-weight: 400; }
.form-message { min-height: 20px; margin: 10px 0 0; font-size: .85rem; }
.form-message.error { color: #b42318; }
.form-message.success { color: var(--success); }
.order-button { width: 100%; margin-top: 8px; }
.disclaimer { margin: 11px 0 0; }
.cart-page { min-height: 100vh; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.cart-page-title { justify-self: end; margin: 0; font-size: 1.1rem; letter-spacing: 0; }
.cart-page-main { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 50px; }
.cart-page-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.cart-page-heading h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.cart-page-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; align-items: start; gap: 20px; }
.cart-page-layout.checkout-visible { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
.cart-page-panel { width: 100%; min-width: 0; }
.cart-page-checkout { width: 100%; min-width: 0; }
.cart-page-checkout[hidden] { display: none; }
.select-all-control { min-height: 42px; margin: -5px 0 10px; display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; }
.cart-checkout-action {
  position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 2;
  margin: 12px -10px 10px; padding: 12px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff;
}
.cart-checkout-action > span { color: var(--muted); font-size: .86rem; font-weight: 600; }
.cart-checkout-action .checkout-start-button { width: auto; flex: 0 0 auto; margin: 0; }
.empty-cart a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.bottom-nav {
  position: fixed; z-index: 15; right: 0; bottom: 0; left: 0;
  min-height: calc(64px + env(safe-area-inset-bottom)); padding: 5px 8px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center;
  border-top: 1px solid var(--line); background: #fff;
  box-shadow: 0 -5px 18px #172b4d12;
}
.bottom-nav-item {
  position: relative; min-width: 0; min-height: 52px; padding: 4px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: transparent; color: #596579; cursor: pointer;
  font-size: .72rem; font-weight: 600; text-align: center; text-decoration: none;
}
.bottom-nav-item:hover, .bottom-nav-item:focus-visible { color: var(--accent); }
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item > svg, .bottom-nav-icon > svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bottom-nav-icon { position: relative; display: inline-flex; }
.bottom-cart-count {
  position: absolute; top: -6px; right: -11px; min-width: 17px; height: 17px;
  padding: 0 4px; display: grid; place-items: center; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .62rem; line-height: 1;
}
.more-page { min-height: 100vh; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.more-page-title { justify-self: end; margin: 0; font-size: 1.1rem; letter-spacing: 0; }
.more-page-main { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 48px; }
.more-page-section { padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.more-page-section h2 { margin: 0 0 10px; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.more-page-section > p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.more-page-links { margin-top: 13px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.more-page-links a, .more-page-card a {
  min-height: 42px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--accent);
  font-size: .88rem; font-weight: 600;
}
.more-page-links a:hover, .more-page-card a:hover { border-color: var(--accent); background: var(--soft); }
.more-page-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.more-page-card { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.more-page-card h2 { margin: 0 0 10px; font-size: 1rem; }
.more-page-card a { min-height: 36px; padding: 6px 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.more-page-card a:last-child { border-bottom: 0; }
.more-page-card a.admin-entry { opacity: 0; }
.more-page-disclaimer { padding-top: 16px; margin: 18px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.55; }
.info-page .site-footer { padding: 25px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.info-page .site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 20px; color: #dedee0; font-size: .8rem; }
.info-page .site-footer nav a:hover { color: #fff; text-decoration: underline; }

.product-dialog { width: min(900px, calc(100% - 28px)); max-height: min(88vh, 820px); overflow-y: auto; padding: 30px; border: 0; border-radius: 10px; box-shadow: 0 20px 70px #172b4d40; }
.product-dialog::backdrop { background: #172b4d88; }
.product-dialog > .dialog-close { top: 8px; right: auto; left: 8px; width: 30px; height: 30px; background: var(--soft); }
.install-dialog { position: relative; width: min(480px, calc(100% - 28px)); max-height: 88vh; overflow-y: auto; padding: 26px; border: 0; border-radius: 10px; box-shadow: 0 20px 70px #172b4d40; line-height: 1.55; }
.install-dialog::backdrop { background: #172b4d88; }
.install-dialog h2 { padding-right: 28px; margin-bottom: 12px; }
.install-dialog ul { padding-left: 22px; margin-bottom: 20px; }
.install-dialog li + li { margin-top: 10px; }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; font-size: 1.5rem; }
.dialog-product { display: grid; grid-template-columns: minmax(210px, .85fr) minmax(0, 1.65fr); align-items: center; gap: 34px; }
.dialog-art { min-height: 260px; display: grid; place-items: center; overflow: hidden; background: #fff; font-size: 6rem; }
.dialog-art img { width: 100%; height: 100%; max-height: 280px; object-fit: contain; background: white; }
.dialog-copy { min-width: 0; }
.dialog-topline { min-height: 24px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-deal-badge { padding: 3px 7px; background: #eaf7ef; color: var(--success); font-size: .75rem; }
.dialog-favorite { color: #f47c00; font-size: 1.9rem; line-height: 1; }
.dialog-copy h2 { padding-right: 24px; margin-bottom: 8px; font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.3; letter-spacing: 0; }
.dialog-copy p { color: var(--muted); line-height: 1.5; }
.dialog-copy > p { margin-bottom: 10px; }
.dialog-brand { padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--accent) !important; font-size: .84rem; }
.dialog-price-row { margin: 10px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.dialog-copy .product-price { font-size: 1.45rem; }
.dialog-copy .old-price { font-size: .9rem; }
.dialog-discount { padding: 3px 6px; background: #eaf7ef; color: var(--success); font-size: .8rem; }
.dialog-copy .dialog-stock { margin: 8px 0; color: #d04444; font-size: .82rem; }
.dialog-copy .dialog-stock.out-of-stock { color: #a43636; }
.dialog-copy .dialog-delivery-note { margin: 8px 0 12px; color: var(--ink); font-size: .82rem; }
.dialog-add-button { position: relative; width: 100%; min-height: 48px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 4px 10px #0002; font-size: .95rem; }
.dialog-add-button:hover { background: var(--accent-dark); }
.dialog-add-button:disabled { background: #aeb5bf; cursor: not-allowed; }
.dialog-add-button svg { position: absolute; left: 18px; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dialog-cart-controls { min-height: 48px; display: flex; align-items: center; gap: 16px; }
.dialog-quantity-button { width: 38px; height: 38px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 3px 8px #0002; font-size: 1.45rem; line-height: 1; }
.dialog-quantity-button:hover { background: var(--accent-dark); }
.dialog-quantity-button:disabled { background: #c4c7cc; cursor: not-allowed; }
.dialog-quantity-value { min-width: 16px; text-align: center; }
.dialog-cart-status { color: #555; font-size: .84rem; }
.toast { position: fixed; z-index: 5; right: 20px; bottom: 20px; max-width: min(420px, calc(100% - 40px)); padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; transform: translateY(20px); opacity: 0; pointer-events: none; border-radius: 6px; background: var(--ink); color: #fff; transition: opacity .2s, transform .2s; }
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

.info-page { min-height: 100vh; display: flex; flex-direction: column; }
.info-main { width: min(800px, calc(100% - 40px)); flex: 1; margin: 0 auto; padding: 70px 0; }
.info-main h1 { margin-bottom: 20px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.info-main h2 { margin: 30px 0 10px; font-size: 1.3rem; }
.info-main p, .info-main li { color: #536176; line-height: 1.75; }
.info-back { display: inline-block; margin-bottom: 30px; color: var(--accent); font-weight: 700; }

.admin-main { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 70px; }
.admin-notice { padding: 14px 16px; border: 1px solid #c8d8e8; border-radius: 6px; background: #f0f6fb; color: #365875; font-size: .9rem; line-height: 1.5; }
.admin-auth { max-width: 560px; margin: 25px 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-passcode-gate { max-width: 560px; margin: 25px 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-passcode-gate h2 { margin-bottom: 8px; font-size: 1.4rem; }
.admin-passcode-gate > .muted { margin-bottom: 18px; font-size: .9rem; }
.admin-passcode-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.admin-passcode-form label { grid-column: 1 / -1; font-size: .84rem; font-weight: 700; }
.admin-passcode-form .control-input { width: 100%; }
.admin-passcode-status { min-height: 22px; margin: 12px 0 0; color: #b42318; }
.admin-passcode-status:empty { min-height: 0; margin: 0; }
.admin-passcode-form[hidden], #admin-protected-content[hidden] { display: none; }
.admin-auth h2 { margin-bottom: 8px; font-size: 1.4rem; }
.admin-auth > .muted { margin-bottom: 18px; font-size: .9rem; }
.admin-auth-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.admin-auth-form label { grid-column: 1 / -1; font-size: .84rem; font-weight: 700; }
.admin-auth-form .control-input { width: 100%; }
.admin-auth-form[hidden] { display: none; }
.admin-setup-note { max-width: 760px; margin: 20px 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.admin-setup-note code { color: var(--ink); }
.admin-workspace[hidden] { display: none; }
.admin-session-bar { margin: 20px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .88rem; }
.admin-session-bar strong { color: var(--ink); }
.admin-toolbar { display: flex; gap: 10px; margin: 20px 0; }
.admin-toolbar .control-input { flex: 1; }
.admin-form { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.admin-form h2 { margin-bottom: 18px; }
.admin-form input[type="file"] { min-height: 42px; max-width: 100%; }
.admin-checks { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0; }
.admin-checks label { display: flex; align-items: center; gap: 7px; }
.admin-list { display: grid; gap: 10px; }
.admin-row { padding: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 6px; }
.admin-row p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.admin-row-actions { display: flex; gap: 7px; }
.admin-row-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.admin-status { min-height: 22px; color: var(--success); }

@media (max-width: 900px) {
  .header-main { grid-template-columns: 190px minmax(180px, 1fr) 75px; gap: 14px; }
  .header-cart-label { display: none; }
  .highlight-grid, .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-layout:not(.checkout-visible) { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
}
@media (max-width: 650px) {
  .page-width { width: min(100% - 32px, 560px); }
  .header-main { width: calc(100% - 28px); min-height: 66px; grid-template-columns: 1fr auto; gap: 8px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 33px; height: 33px; }
  .header-search { grid-row: 2; grid-column: 1 / -1; width: 100%; margin: 0 0 12px; }
  .header-search button { min-width: 76px; }
  .header-cart { grid-column: 2; grid-row: 1; }
  .more-page .header-main { grid-template-columns: 1fr auto; }
  .more-page-title { font-size: 1rem; }
  .more-page-main { width: min(100% - 32px, 560px); padding-top: 27px; }
  .more-page-links, .more-page-links-grid { grid-template-columns: 1fr; }
  .cart-page .header-main { grid-template-columns: 1fr auto; }
  .cart-page-main { width: min(100% - 32px, 560px); padding-top: 26px; }
  .cart-page-heading { align-items: flex-start; flex-direction: column; }
  .cart-page-layout.checkout-visible { grid-template-columns: 1fr; }
  .cart-page-panel, .cart-page-checkout { padding: 17px; }
  .cart-item { grid-template-columns: 20px 44px minmax(0, 1fr); gap: 8px; }
  .cart-item-image { width: 44px; height: 44px; }
  .cart-line-total { grid-column: 3; grid-row: 2; }
  .quantity-controls { grid-column: 3; flex-wrap: wrap; gap: 7px; }
  .cart-checkout-action { margin-inline: -6px; padding-inline: 6px; }
  .cart-checkout-action .checkout-start-button { padding-inline: 10px; font-size: .84rem; }
  .category-nav { min-height: 42px; justify-content: flex-start; gap: 22px; padding: 0 16px; overflow-x: auto; white-space: nowrap; font-size: .83rem; }
  .category-link { padding-block: 12px 10px; }
  .hero { min-height: 330px; padding: 42px 25px; }
  .hero-copy { max-width: 100%; }
  .hero-copy > p:not(.eyebrow) { font-size: .95rem; }
  .category-section, .highlight-section { padding-top: 40px; }
  .category-product-grid { grid-auto-columns: clamp(160px, 44vw, 205px); gap: 11px; }
  .highlight-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-info { padding: 11px; }
  .product-name { font-size: .9rem; }
  .product-description { display: none; }
  .shop-section { padding-top: 45px; }
  .section-title.shop-heading { align-items: flex-start; flex-direction: column; }
  .shop-controls { width: 100%; }
  .control-input[type="search"] { min-width: 0; flex: 1; width: auto; }
  .control-input { max-width: 55%; font-size: .82rem; }
  .shop-layout { padding-top: 45px; padding-bottom: 45px; gap: 16px; }
  .cart-panel, .checkout-panel { padding: 17px; }
  #cart-checkout.cart-open {
    top: auto; right: 10px; bottom: 10px; width: calc(100vw - 20px);
    max-height: min(78vh, 720px); padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .info-page .site-footer { padding: 25px 16px; align-items: flex-start; flex-direction: column; }
  .info-page .site-footer nav { gap: 12px 16px; }
  .product-dialog { width: min(560px, calc(100% - 20px)); max-height: 90vh; padding: 18px; }
  .dialog-product { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dialog-art { min-height: 190px; max-height: 250px; }
  .dialog-art img { max-height: 240px; }
  .dialog-cart-controls { gap: 12px; flex-wrap: wrap; }
  .dialog-quantity-button { width: 42px; height: 42px; }
  .admin-row { grid-template-columns: 1fr auto; }
  .admin-row-actions { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
