/* The hidden attribute always wins over component display rules (buttons, grids). */
[hidden] { display: none !important; }

/* Pan Konzerva storefront — follows podklady/grafika mockups (dark green-black, gold, cream). */
:root {
  --ink: #1d2422;
  --ink-2: #26302d;
  --ink-soft: #3b4542;
  --cream: #f6f1e8;
  --paper: #fffdf9;
  --line: #e7dfd1;
  --gold: #c9a35b;
  --gold-dark: #b08a43;
  --gold-soft: #e6cf9c;
  --text: #2b2b2b;
  --muted: #6f6a62;
  --green: #2f8a4c;
  --red: #b23a2e;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(29, 36, 34, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 15px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
.wrap { --gutter: clamp(16px, 5vw, 72px); width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
.muted { color: var(--muted); }

/* Top bar */
.topbar { background: var(--ink); color: #e9e4da; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.topbar-usp { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex: 1; }
.topbar-usp li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-search { display: flex; align-items: center; gap: 8px; }
.topbar-search input { background: #2c3532; border: 1px solid #3a4441; color: #fff; border-radius: 4px; padding: 5px 10px; width: 180px; font: inherit; }
.topbar-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--gold-soft); }
.topbar-link[hidden] { display: none; }
.topbar-cart { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.cart-icon { position: relative; display: inline-flex; }
.cart-badge { position: absolute; top: -8px; right: -9px; background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 3px; }

/* Header */
.header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 58px; height: 44px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font: 600 30px/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.logo-claim { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; margin-top: 4px; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); justify-content: flex-end; }
.nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; white-space: nowrap; font-weight: 600; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--gold); }
.nav-toggle, .nav-burger { display: none; }
/* Dropdown for a category with subcategories (hover or keyboard focus) */
.nav-group { position: relative; display: flex; }
.nav-parent::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.nav-drop { display: none; position: absolute; top: 100%; left: -16px; z-index: 30; min-width: 210px; padding: 10px 0; background: var(--paper); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.nav-drop a { display: block; padding: 9px 18px; border: 0; }
.nav-drop a:hover { background: #f3ede2; color: var(--gold-dark); }
.nav-drop a:first-child { color: var(--gold-dark); }
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop { display: block; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.subcats a { color: #e8e3da; text-decoration: none; font-size: 14px; padding: 7px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.subcats a:hover { border-color: var(--gold); color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 4px; padding: 15px 30px; font: 600 13px var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-wide { width: 100%; }
.btn-icon { background: var(--gold); color: var(--ink); border: 0; border-radius: 4px; width: 40px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.btn-icon:hover { background: var(--gold-dark); }
.badge { display: inline-block; background: var(--gold-soft); color: var(--ink); font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 3px 12px; font-size: 12px; }

/* Hero */
.hero { position: relative; background: radial-gradient(ellipse at 70% 40%, #3a3328 0%, var(--ink) 65%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; min-height: 420px; padding: 56px 0; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .3em; font-size: 13px; margin: 0 0 18px; }
.hero h1, .hero-title { font-size: clamp(44px, 6vw, 82px); font-weight: 600; margin: 0; }
.hero-sub { text-transform: uppercase; letter-spacing: .32em; font-size: clamp(14px, 1.6vw, 20px); margin: 14px 0 20px; }
.hero-text { color: #e8e3da; max-width: 440px; font-size: 16px; margin: 0 0 28px; }
.hero-media { position: relative; display: block; width: 100%; max-width: 500px; justify-self: end; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); text-decoration: none; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-note { position: absolute; right: 18px; bottom: 18px; background: rgba(246,241,232,.92); color: var(--ink); font: italic 20px var(--serif); padding: 10px 18px; border-radius: 4px; transform: rotate(-3deg); }

/* Hero carousel: slides overlap in one grid cell and cross-fade */
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-title { line-height: 1.15; margin: 0; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1.5px solid var(--gold-soft); background: transparent; cursor: pointer; }
.hero-dots button.active { background: var(--gold); border-color: var(--gold); }
.hero-arrow { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-arrow:hover { border-color: var(--gold); color: var(--gold); }
.hero-arrow[data-prev] .icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.cat-tile { position: relative; display: block; min-height: 170px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--ink-2); color: #fff; text-decoration: none; overflow: hidden; }
.cat-tile img { position: absolute; inset: 0; width: 55%; height: 100%; object-fit: cover; opacity: .9; }
.cat-tile img { width: 44%; }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 24%, var(--ink-2) 45%); }
.cat-tile-body { position: relative; z-index: 1; margin-left: 44%; padding: 22px 16px; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.cat-tile-name { font: 600 19px/1.15 var(--serif); text-transform: uppercase; }
.cat-tile-count { font-size: 14px; color: #ddd6c9; }
.circle-arrow { width: 32px; height: 32px; border: 1.5px solid var(--gold-soft); border-radius: 50%; display: grid; place-items: center; margin-top: auto; }

/* Sections */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.heading { font-size: 32px; position: relative; padding-bottom: 14px; margin-bottom: 20px; }
.heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.section-head .heading { margin-bottom: 0; }
.link-more { font-size: 13px; color: var(--ink-soft); text-underline-offset: 3px; white-space: nowrap; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.tile { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.tile-media { position: relative; display: block; aspect-ratio: 1; background: #efe8db; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-media .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-name { font: 500 17px/1.3 var(--serif); margin: 0; }
.tile-name a { text-decoration: none; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.tile-price { font: 700 18px var(--serif); }
.tile-soldout { font-size: 12px; color: var(--muted); }

/* USP bar */
.usp { background: var(--paper); border-block: 1px solid var(--line); }
.usp-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; }
.usp-item { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-soft); }
.usp-item .icon { width: 30px; height: 30px; color: var(--gold-dark); stroke-width: 1.3; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { text-decoration: none; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card h3 { font-size: 20px; padding: 16px 18px 0; }
.post-card .muted { padding: 0 18px 16px; font-size: 14px; }

/* Page hero (category, cart, blog) */
.page-hero { background: radial-gradient(ellipse at 80% 30%, #3a3328 0%, var(--ink) 60%); color: #fff; padding: 28px 0 40px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); margin: 8px 0 10px; }
.page-hero-text { color: #e8e3da; max-width: 560px; font-size: 16px; margin: 0; }
.page-hero-text p { margin: 0; }
.crumbs { font-size: 13px; color: #cfc8bb; }
.section > .crumbs, .article > .crumbs { color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: inherit; }
.crumbs span { color: var(--gold); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; font-size: 14px; flex-wrap: wrap; }
.sort { display: flex; gap: 6px; flex-wrap: wrap; }
.sort a { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.sort a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Product detail */
.product-hero { background: radial-gradient(ellipse at 75% 40%, #3a3328 0%, var(--ink) 60%); color: #fff; padding: 20px 0 40px; }
.product-top { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 56px; margin-top: 16px; align-items: start; }
.gallery { display: grid; grid-template-columns: 68px 1fr; gap: 12px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 440px; overflow-y: auto; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { aspect-ratio: 1; object-fit: cover; }
.gallery-main { border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); overflow: hidden; background: #2b2f2c; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.buybox h1 { font-size: clamp(34px, 4vw, 52px); }
.buybox-text { color: #e8e3da; font-size: 15px; }
.buybox-price { display: flex; align-items: center; gap: 28px; margin: 22px 0; }
.price { font: 600 40px var(--serif); color: var(--gold-soft); white-space: nowrap; }
.stock { font-size: 14px; margin: 0; }
.stock.in { color: #7fcf95; }
.stock.in::before { content: '● '; }
.stock.out { color: #e79b8f; }
.stock small { color: #cfc8bb; }
.buy-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.buy-form .btn-wide { flex: 1; min-width: 220px; }
.variant { display: flex; flex-direction: column; gap: 6px; width: 100%; font-size: 13px; }
.variant select { font: inherit; padding: 10px 12px; border-radius: 4px; border: 1px solid #555; background: var(--paper); color: var(--text); }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); overflow: hidden; }
.qty button { width: 40px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--text); }
.qty input { width: 48px; text-align: center; border: 0; border-inline: 1px solid var(--line); font: inherit; color: var(--text); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-form .qty { height: 50px; }
.product-info { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.product-desc { font-size: 15px; max-width: 70ch; }
.product-features { background: var(--ink); color: #fff; padding: 28px; border-radius: var(--radius); align-self: start; }
.product-features .heading { font-size: 26px; }
.product-features dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.product-features dt { color: var(--gold-soft); }
.product-features dd { margin: 0; }

/* Cart */
.cart { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.cart-lines { background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.cart-line { display: grid; grid-template-columns: 150px 1fr auto 110px 32px; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.cart-line img { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.cart-line h3 { font-size: 20px; margin: 6px 0 2px; }
.cart-line h3 a { text-decoration: none; }
.cart-line p { margin: 0; font-size: 13px; }
.cart-line .stock.in { color: var(--green); }
.cart-line-price { text-align: right; display: flex; flex-direction: column; }
.cart-line-price strong { font-size: 18px; }
.cart-line-price small { color: var(--muted); }
.cart-line .qty { height: 38px; }
.btn-remove { border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--ink); }
.empty { padding: 24px 0; }
.summary { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; position: sticky; top: 110px; }
.summary h2 { font-size: 28px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-note { color: var(--gold-soft); font-size: 13px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #3c4643; margin-top: 12px; padding-top: 18px; font: 600 24px var(--serif); }
.summary-vat { text-align: right; font-size: 13px; color: #cfc8bb; margin: 0 0 20px; }
.summary-usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; text-align: center; font-size: 12px; font-weight: 600; }
.summary-usp span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.summary-usp .icon { width: 28px; height: 28px; color: var(--gold); }
.summary-usp small { font-weight: 400; color: #cfc8bb; }

/* Articles */
.article { max-width: 860px; }
.article-image { border-radius: var(--radius); margin-bottom: 24px; }
.prose { font-size: 16px; }
.prose img { height: auto; }
.prose a { color: var(--gold-dark); }

/* Footer */
.footer { background: var(--ink); color: #ddd6c9; margin-top: 40px; }
.topbar-search { margin: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 48px 0 32px; }
.footer .logo { color: #fff; }
.footer h3 { font: 600 14px var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-soft); }
.footer-note { font-size: 14px; max-width: 360px; }
.footer-bottom { border-top: 1px solid #333c39; padding: 16px 0; font-size: 12px; display: flex; justify-content: space-between; gap: 16px; }
.footer-admin { color: #8d958f; text-decoration: none; }
.footer-admin:hover { color: var(--gold-soft); text-decoration: underline; }

/* Responsive */
@media (max-width: 1100px) {
  .topbar-usp li:nth-child(n+2) { display: none; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 1340px) {
  .logo-claim { display: none; }
  .nav { gap: 4px 14px; flex-wrap: wrap; } /* more categories wrap to a second row instead of squeezing the logo */
  .nav a { letter-spacing: .06em; font-size: 12px; }
}
@media (max-width: 1040px) {
  .nav-burger { display: block; width: 32px; height: 24px; position: relative; cursor: pointer; }
  .nav-burger span, .nav-burger::before, .nav-burger::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
  .nav-burger::before { top: 2px; } .nav-burger span { top: 11px; } .nav-burger::after { bottom: 2px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .header-inner { position: relative; min-height: 70px; }
  .nav-group { display: block; }
  .nav-parent::after { display: none; }
  .nav-drop { display: block; position: static; box-shadow: none; background: none; padding: 0 0 4px 16px; min-width: 0; }
  .nav-drop a { padding: 6px 0; }
  .nav-drop a:first-child { display: none; }
}
@media (max-width: 860px) {
  .logo-name { font-size: 22px; }
  .logo-mark { width: 44px; height: 34px; }
  .topbar-usp { display: none; }
  .topbar-inner { justify-content: space-between; }
  .topbar-search input { width: 130px; }
  .hero-inner, .product-top, .product-info { grid-template-columns: 1fr; }
  .hero-inner { padding: 32px 0; min-height: 0; }
  .hero-media { justify-self: start; }
  .hero-slides { padding-bottom: 36px; }
  .usp-inner { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery-thumbs button { width: 64px; flex: none; }
  .cart-line { grid-template-columns: 90px 1fr; }
  .cart-line img { width: 90px; }
  .cart-line .qty, .cart-line-price { grid-column: 2; }
  .cart-line-price { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .cat-tiles { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile-name { font-size: 15px; }
  .heading { font-size: 26px; }
  .usp-inner { grid-template-columns: 1fr; }
  .summary-usp { grid-template-columns: 1fr; }
}

/* Checkout */
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.checkout-main { display: grid; gap: 20px; }
.panel { background: var(--paper); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 0; min-width: 0; }
.panel legend { font: 600 22px var(--serif); padding: 0; float: left; width: 100%; margin-bottom: 16px; }
.fields-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; clear: both; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 12px; clear: both; }
.field input, .field textarea { width: 100%; box-sizing: border-box; min-width: 0; font: 400 15px var(--sans); padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.has-error input, .has-error textarea { border-color: var(--red); }
.field-error { color: var(--red); font-weight: 500; font-size: 12.5px; }
.summary .field-error { color: #f0a59b; }
.options { display: grid; gap: 10px; clear: both; margin-bottom: 16px; }
.option { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; cursor: pointer; background: #fff; }
.option:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: #fffaf0; }
.option input { accent-color: var(--gold-dark); width: 18px; height: 18px; }
.option-body { display: flex; flex-direction: column; }
.option-body small { color: var(--muted); }
.option-price { font-weight: 600; white-space: nowrap; }
.small { font-size: 13px; }
.alert { background: #fbeee9; border-left: 4px solid var(--red); padding: 12px 16px; border-radius: 4px; color: var(--text); }
.alert.ok { background: #e9f6ee; border-color: var(--green); }
.summary-items { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; border-bottom: 1px solid #3c4643; padding-bottom: 14px; }
.summary-items li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.summary-items img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.summary-items small { display: block; color: #cfc8bb; }
.terms { display: flex; gap: 10px; font-size: 13px; margin: 6px 0 10px; align-items: flex-start; }
.terms input { margin-top: 3px; accent-color: var(--gold); }
.terms a { color: var(--gold-soft); }
.summary .btn { margin-top: 10px; }
.muted-light { color: #cfc8bb; font-size: 13px; margin: 0 0 8px; }
.payment-box { margin-bottom: 28px; }
.payment-grid { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.payment-grid dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: 16px; }
.payment-grid dt { color: var(--muted); }
.payment-grid dd { margin: 0; font-weight: 600; }
.qr svg { width: 180px; height: 180px; }
@media (max-width: 1100px) { .checkout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fields-2 { grid-template-columns: 1fr; } }

/* Customer account */
.topbar-account { display: flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.topbar-account:hover, .topbar-cart:hover { color: var(--gold-soft); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 12px 22px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.account-auth { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; }
.account-card h2, .account-grid h2 { font-size: 24px; margin-bottom: 8px; }
.account-card .btn { margin-top: 8px; }
.account-card .alert { margin: 8px 0 14px; font-size: 14px; }
.account-card .terms { margin: 6px 0; }
.account-forgot { margin: 16px 0 0; color: var(--muted); }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.account-head .heading { margin-bottom: 6px; }
.account-head .muted { margin: 0 0 20px; }
.account-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; margin-top: 8px; }
.account-side { display: grid; gap: 24px; }
.account-side .btn { margin-top: 4px; }
.orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 8px 8px 10px 0; border-bottom: 1px solid var(--line); }
.orders td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); }
.orders .num { text-align: right; white-space: nowrap; }
.orders a { font-weight: 600; color: var(--gold-dark); }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #efe8db; }
.status-paid, .status-delivered { background: #e3f2e8; color: #24613a; }
.status-shipped { background: #ece6f6; color: #4b3a78; }
.status-cancelled { background: #fbeae6; color: #8c2f1d; }
.checkout-login { clear: both; margin: -6px 0 14px; }
.checkout-login a, .account-forgot a, .account-card .terms a { color: var(--gold-dark); }
.field input[readonly] { background: #f3efe7; color: var(--muted); }
@media (max-width: 860px) {
  .account-auth, .account-grid { grid-template-columns: 1fr; }
  .topbar-account { font-size: 0; gap: 0; }
  .topbar-account .icon { font-size: 16px; }
}

/* Product variants */
.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; width: 100%; }
.buy-form button[disabled] { opacity: .55; cursor: not-allowed; }

/* Custom print designer */
.designer { display: grid; gap: 14px; align-content: start; }
.designer-mockup { position: relative; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #f7f3ec, #e4ddd0); }
.designer-mockup canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.designer-mockup canvas[hidden] { display: none; }
.designer-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12px; color: #1f1f1f;
  background: rgba(255,255,255,.8); border-radius: 999px; padding: 4px 12px; pointer-events: none; }
.designer-hint[hidden] { display: none; }
.designer-views { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 4px;
  background: rgba(31,31,31,.72); padding: 4px; border-radius: 999px; }
.designer-views button { font: inherit; font-size: 12px; color: #fff; background: none; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.designer-views button.active { background: var(--gold); color: #1f1f1f; }
.designer-flat { display: grid; gap: 6px; }
.designer-label { margin: 0; font-size: 12px; color: #cfc8bb; letter-spacing: .02em; }
.designer-flat canvas { display: block; max-width: 100%; margin: 0 auto; height: auto; border-radius: 4px; background: #fff; cursor: grab; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.designer-flat canvas:active { cursor: grabbing; }
.design-controls { width: 100%; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 16px 18px 12px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.design-controls legend { padding: 0 8px; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.design-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.design-upload { cursor: pointer; }
.design-controls .btn-link { background: none; border: 0; color: var(--gold); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 0; }
.design-range { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.design-range input { accent-color: var(--gold); width: 120px; }
.design-controls .field span { color: #e8e3da; }
.design-controls .field small { float: right; color: #a9a195; }
.design-text-tools select { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 4px; border: 1px solid #555; background: var(--paper); color: var(--text); }
.design-colors { display: inline-flex; gap: 6px; }
.design-colors input { position: absolute; opacity: 0; pointer-events: none; }
.design-colors i { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); cursor: pointer; }
.design-colors input:checked + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.design-colors input:focus-visible + i { outline: 2px dashed var(--gold); outline-offset: 2px; }
.design-warning { margin: 0; font-size: 13px; color: #f3d48a; }
.design-warning.strong { color: #ffb4a8; }
.design-note { margin: 0; font-size: 12px; color: #b9b2a6; }
.design-mini { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 10px; }
.design-controls .btn-outline { color: var(--gold); border-color: var(--gold); padding: 10px 18px; }
.design-controls .btn-outline:hover { background: var(--gold); color: #1f1f1f; }
.design-controls .field { margin-bottom: 0; }
.dz-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dz-tools button, .dz-chips button, .dz-actions button { font: inherit; font-size: 13.5px; color: #f3eee5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 7px 13px; cursor: pointer; line-height: 1.2; }
.dz-tools button:hover, .dz-chips button:hover, .dz-actions button:hover { border-color: var(--gold); color: var(--gold); }
.dz-tools button.active, .dz-chips button.active { background: var(--gold); border-color: var(--gold); color: #1f1f1f; }
.dz-tools button[disabled] { opacity: .35; cursor: default; color: #f3eee5; border-color: rgba(255,255,255,.22); }
.dz-tools [data-undo], .dz-tools [data-redo] { width: 36px; padding: 7px 0; font-size: 16px; }
.dz-hist { margin-left: auto; display: inline-flex; gap: 6px; }
.dz-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; padding: 10px; border-radius: 6px; background: rgba(0,0,0,.22); }
.dz-panel[hidden] { display: none; }
.dz-panel[data-panel="background"] { display: block; }
.dz-panel[data-panel="background"][hidden] { display: none; }
.dz-tile { display: grid; gap: 4px; justify-items: center; align-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px; padding: 6px; cursor: pointer; color: #e8e3da; font: inherit; font-size: 11.5px; min-height: 72px; }
.dz-tile:hover { border-color: var(--gold); }
.dz-tile canvas { max-width: 100%; height: auto; border-radius: 3px; }
.dz-sticker svg, .dz-sticker img { width: 52px; height: 52px; object-fit: contain; }
.dz-sub { margin: 4px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #a9a195; }
.dz-chips, .dz-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-actions { padding-top: 4px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 4px; }
.dz-actions button.danger { color: #ffb4a8; border-color: rgba(255,180,168,.45); }
.dz-swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dz-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.dz-swatch.active { outline: 2px solid var(--gold); outline-offset: 2px; }
.dz-custom { background: conic-gradient(#e0475b, #e8b931, #2f7d4a, #1e4f91, #7a4fa0, #e0475b); }
.dz-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.dz-props { display: grid; gap: 10px; }
.dz-props:empty { display: none; }
.dz-hint { margin: 0; font-size: 13.5px; color: #cfc8bb; }
.dz-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #e8e3da; }
.dz-check input { accent-color: var(--gold); width: 18px; height: 18px; }
.dz-layers-wrap[hidden] { display: none; }
.dz-layers { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dz-layers button { font: inherit; font-size: 12.5px; color: #cfc8bb; background: none; border: 1px dashed rgba(255,255,255,.25); border-radius: 4px; padding: 4px 8px; cursor: pointer;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-layers button.active { border: 1px solid #1e88e5; color: #fff; background: rgba(30,136,229,.2); }
.designer-flat canvas:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Gift boxes */
.product-left { display: grid; gap: 18px; align-content: start; }
.bundle-list { width: 100%; margin: 4px 0 18px; }
.bundle-list h2 { font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.bundle-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bundle-list li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; color: #e8e3da; font-size: 15px; }
.bundle-list img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; background: #efe8db; }
.bundle-list a { color: inherit; }
.bundle-list small, .design-for { display: block; color: #b9b2a6; font-size: 12.5px; }
.design-for { margin: 0; width: 100%; }
.box-info { color: #e8e3da; margin: 0 0 18px; }
.card-field { width: 100%; }
.card-field span { color: #e8e3da; }
.card-field small { color: #a9a195; font-weight: 400; }
.box-contents { list-style: none; margin: 4px 0; padding: 0; font-size: 13px; color: var(--muted); }
.box-contents li::before { content: '↳ '; color: var(--gold); }
.box-contents-line { display: block; color: var(--muted); font-size: 12.5px; }
.qty-fixed { font-size: 14px; color: var(--muted); text-align: center; min-width: 110px; }
.box-builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.box-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 32px; }
.box-add { display: grid; gap: 8px; margin-top: auto; }
.box-add select { font: inherit; font-size: 13px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; min-width: 0; }
.btn-small { padding: 10px 14px; font-size: 11.5px; letter-spacing: .12em; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.box-summary { position: sticky; top: 20px; }
.box-meter { display: flex; gap: 6px; margin: 4px 0 6px; }
.box-meter span { flex: 1; height: 10px; border-radius: 5px; background: #3c4643; }
.box-meter span.on { background: var(--gold); }
.box-count { margin: 0 0 12px; color: #e8e3da; font-weight: 600; }
.box-items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.box-items li { display: grid; grid-template-columns: 44px 1fr 32px; gap: 10px; align-items: center; font-size: 14px; color: #e8e3da; }
.box-items img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; background: #efe8db; }
.box-items small { display: block; color: #b9b2a6; }
.box-items .btn-remove { color: #e8e3da; }
.box-card { display: grid; gap: 8px; margin-bottom: 16px; border-top: 1px solid #3c4643; padding-top: 14px; }
.box-card .field span { color: #e8e3da; }
.box-card .btn-outline { color: var(--gold); border-color: var(--gold); padding: 10px 16px; }
.box-summary .btn-outline.btn-wide { color: var(--gold); border-color: var(--gold); }
@media (max-width: 900px) {
  .box-builder { grid-template-columns: 1fr; }
  .box-summary { position: static; order: -1; }
}
.summary-row strong { white-space: nowrap; }

/* Pickup point picker (checkout) */
.pickup { display: grid; gap: 12px; margin-top: 16px; }
.pickup-open { justify-self: start; }
.pickup-open.needs-attention { outline: 2px solid var(--red); outline-offset: 3px; }
.pickup-chosen { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--gold); border-radius: var(--radius); background: #fbf6ec; }
.pickup-chosen .icon { width: 24px; height: 24px; color: var(--gold-dark); }
.pickup-chosen small { display: block; color: var(--muted); font-size: 13px; }
.pickup .btn-link, .pickup-manual-toggle { background: none; border: 0; padding: 0; color: var(--gold-dark); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; justify-self: start; }
.pickup-manual.is-collapsed { display: none; }
.pickup-dialog { width: min(1000px, 96vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.pickup-dialog::backdrop { background: rgba(20,24,23,.6); }
.pickup-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pickup-dialog-head h2 { margin: 0; font-size: 20px; }
.pickup-dialog-body { overflow: auto; max-height: calc(92vh - 60px); }
@media (max-width: 700px) {
  .pickup-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .pickup-dialog-body { max-height: calc(100dvh - 60px); }
}

/* Withdrawal function (§ 1830a OZ) */
.withdrawal .panel { max-width: 760px; }
.withdrawal-scope { border: 0; padding: 0; margin: 4px 0 14px; display: grid; gap: 8px; }
.withdrawal-scope legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.withdrawal-items { display: grid; gap: 6px; padding-left: 24px; }
.withdrawal-text { white-space: pre-wrap; font: 15px/1.6 var(--sans); background: #f6f1e8; border-radius: 6px; padding: 16px 18px; margin: 0 0 18px; }
.withdrawal-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.withdrawal .btn-link { color: var(--gold-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-withdraw { font-weight: 600; color: var(--gold) !important; }
@media print {
  .topbar, .header, .footer, .page-hero .crumbs, [data-print] { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-hero h1, .page-hero-text { color: #000; }
}
.product-responsible { font-size: 13px; color: var(--muted); margin-top: 18px; }
.pickup-tip { margin: 0; padding: 12px 20px; background: #fbf6ec; font-size: 14px; }
.pickup-dialog-manual { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.pickup-dialog-manual .field { flex: 1; min-width: 220px; margin: 0; }

/* Gift box tile without its own photo: mosaic of the contents */
.tile-mosaic { display: grid; width: 100%; height: 100%; gap: 3px; background: #e6dccb; }
.tile-mosaic img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.tile-mosaic-2 { grid-template-columns: 1fr 1fr; }
.tile-mosaic-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tile-mosaic-3 img:first-child { grid-row: span 2; }
.tile-mosaic-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
a.btn-icon { display: inline-flex; align-items: center; justify-content: center; }
.bundle-mosaic { aspect-ratio: 1; } .bundle-mosaic .tile-mosaic { aspect-ratio: 1; }

/* Pan Konzerva — the character */
.hero-mascot { justify-self: center; align-self: end; display: block; margin: -40px 0 -56px; }
.hero-mascot img { display: block; height: min(640px, 76vh); width: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.about-pk { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; align-items: center; }
.about-pk img { width: 100%; height: auto; max-height: 560px; object-fit: contain; filter: drop-shadow(0 16px 26px rgba(0,0,0,.18)); }
.about-pk p { max-width: 560px; }
.mascot-note { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.mascot-note img { width: 100%; height: auto; }
.mascot-small { grid-template-columns: 120px 1fr; gap: 20px; }
.page-hero-mascot .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-hero-mascot img { height: 210px; width: auto; margin-bottom: -40px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.4)); }
@media (max-width: 860px) {
  .hero-mascot { margin: 0; }
  .hero-mascot img { height: 420px; }
  .about-pk, .mascot-note { grid-template-columns: 1fr; }
  .about-pk img { max-width: 360px; justify-self: center; }
  .mascot-note img { max-width: 160px; justify-self: center; }
  .page-hero-mascot img { display: none; }
}
.bundle-alt { width: 100%; border: 1px solid #555; border-radius: 4px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 8px; }
.bundle-alt legend { padding: 0 6px; font-size: 13px; color: #b9b2a6; }
.bundle-alt label { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.bundle-alt input { accent-color: var(--gold); width: 18px; height: 18px; }
.discount-form { display: flex; gap: 8px; margin: 0 0 18px; }
.discount-form input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 4px; border: 1px solid #555; background: #2a3330; color: #fff; text-transform: uppercase; }
.discount-form input::placeholder { text-transform: none; color: #9a948a; }
.discount-form .btn { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.discount-form .btn:hover { background: var(--gold); color: var(--ink); }
.discount-row span, .discount-problem { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.discount-row strong { color: var(--gold); }
.discount-remove { display: inline; }
.discount-remove button { border: 0; background: none; padding: 0; color: #cfc8bb; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.discount-error { margin: -8px 0 18px; font-size: 14px; color: var(--ink); }
