/* aeon.sk shop — V6 skin overrides for BareBones engine components.
   Loaded AFTER theme.css. Re-clothes cart / checkout / product tabs / pagination
   / header utility / cookie banner in the editorial V6 palette. */

/* ─── Shared contained wrapper for engine pages (cart, checkout, catalog) ── */
.shop-wrap {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 48px var(--pad-x) 72px;
}
.shop-wrap h1 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.015em; }

/* ─── Header utility: cart + account + lang ───────────────────────────── */
.hdr-utility { align-items: center; gap: 20px; }
.hdr-utility .cart-link { position: relative; color: var(--ink); font-weight: 500; }
.hdr-utility .cart-link:hover { color: var(--accent); }
.hdr-utility .cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  background: var(--accent); color: var(--bg-on-accent);
  border-radius: 10px; font-family: var(--f-mono); font-size: 10px;
}
.lang-switch { display: inline-flex; gap: 6px; font-family: var(--f-mono); font-size: 11px; }
.lang-switch a { color: var(--muted); letter-spacing: 0.06em; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: var(--accent); }

/* ─── Breadcrumb inside contained pages ───────────────────────────────── */
.shop-wrap .breadcrumb,
.breadcrumb.shop-crumb {
  max-width: none; margin: 0 0 8px; padding: 0 0 18px;
  border-bottom: 0.5px solid var(--rule);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ─── Catalog head (category page) ────────────────────────────────────── */
.catalog-head { padding-left: 0; padding-right: 0; }

/* ─── Sort bar ────────────────────────────────────────────────────────── */
.sort-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin: 24px 0 28px;
  font-family: var(--f-ui); font-size: 13px; color: var(--muted);
}
.sort-bar .total { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; }
.sort-bar select {
  font-family: var(--f-ui); font-size: 13px; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--ink);
  padding: 4px 0; border-radius: 0; cursor: pointer;
}

/* ─── Product detail tabs (description / specs) ───────────────────────── */
.tabs { display: flex; gap: 28px; border-bottom: 0.5px solid var(--rule); margin: 0 0 28px; }
.tab {
  padding: 14px 0; cursor: pointer; color: var(--muted);
  font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.02em;
  border-bottom: 1px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content .product-desc { font-family: var(--f-text); font-size: 18px; line-height: 1.7; }
.tab-content .product-desc p { margin: 0 0 18px; }
.tab-content .product-desc .book-author { font-family: var(--f-display); font-style: italic; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 0; border-bottom: 0.5px solid var(--rule); font-size: 15px; }
.spec-table td:first-child { color: var(--muted); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; width: 40%; }

/* ─── Cart table ──────────────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; background: transparent; box-shadow: none; }
.cart-table th {
  background: transparent; text-align: left; padding: 0 12px 12px 0;
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); border-bottom: 1px solid var(--rule-strong);
}
.cart-table td { padding: 18px 12px 18px 0; border-bottom: 0.5px solid var(--rule); vertical-align: middle; }
.cart-table .prod-name { font-family: var(--f-display); font-size: 20px; color: var(--ink); }
.cart-table .prod-name:hover { color: var(--accent); }
.cart-table .prod-sku { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.qty-input {
  width: 62px; padding: 8px; text-align: center; font-family: var(--f-ui); font-size: 14px;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 0;
}
.btn-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.btn-remove:hover { color: var(--accent); }

/* ─── Cart / order summary card ───────────────────────────────────────── */
.cart-summary {
  background: var(--paper); border: 0.5px solid var(--rule);
  padding: 28px; align-self: start; position: sticky; top: 96px; box-shadow: none; border-radius: 0;
}
.cart-summary h3 { font-family: var(--f-display); font-weight: 400; font-size: 26px; margin-bottom: 18px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cart-summary .total-row {
  font-family: var(--f-display); font-size: 22px; border-top: 1px solid var(--rule-strong);
  padding-top: 14px; margin-top: 10px; font-weight: 400;
}
.cart-summary .total-row span:last-child { color: var(--accent); }

/* ─── Buttons (checkout / continue) ───────────────────────────────────── */
.btn-checkout {
  display: block; width: 100%; text-align: center; margin-top: 20px;
  background: var(--ink); color: var(--bg); border: none; cursor: pointer;
  padding: 16px 28px; font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.04em; border-radius: 0;
}
.btn-checkout:hover { background: var(--accent); color: var(--bg); }

/* ─── Checkout: BareBones Forms renderer in AEON skin ─────────────────── */
.cart-layout,
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.checkout-title { margin-bottom: 24px; }
.checkout-form { background: var(--paper); border: 0.5px solid var(--rule); padding: 32px; }
.checkout-form .bbf-form-container {
  --bbf-font: var(--f-ui);
  --bbf-font-size: 15px;
  --bbf-max-width: none;
  --bbf-radius: 0;
  --bbf-text: var(--ink);
  --bbf-text-muted: var(--muted);
  --bbf-text-light: var(--muted);
  --bbf-bg: var(--bg);
  --bbf-bg-alt: var(--paper-2);
  --bbf-border: var(--rule-strong);
  --bbf-border-light: var(--rule);
  --bbf-focus: var(--accent);
  --bbf-focus-shadow: rgba(166, 76, 54, 0.14);
  --bbf-btn-bg: var(--ink);
  --bbf-btn-text: var(--bg);
  --bbf-btn-hover: var(--accent);
}
.checkout-form .bbf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.checkout-form .bbf-field { grid-column: 1 / -1; }
.checkout-form .bbf-field.bbf-half { grid-column: auto; }
.checkout-form .bbf-section { margin-top: 24px; padding-top: 22px; }
.checkout-form .bbf-section:first-child { margin-top: 0; padding-top: 0; }
.checkout-form .bbf-section-title {
  font-family: var(--f-display); font-size: 27px; font-weight: 400;
  letter-spacing: -0.01em; color: var(--ink);
}
.checkout-form .bbf-label {
  font-family: var(--f-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.025em; color: var(--muted);
}
.checkout-form .bbf-input,
.checkout-form .bbf-form select,
.checkout-form .bbf-form textarea {
  padding: 11px 12px; font-family: var(--f-ui); font-size: 15px;
  color: var(--ink); background: var(--bg); border: 1px solid var(--rule-strong);
}
.checkout-form .bbf-submit { width: 100%; padding: 15px 24px; letter-spacing: 0.03em; }
.checkout-form .bbf-options { gap: 10px; }
.checkout-form .shipping-option,
.checkout-form .payment-option {
  display: flex; flex-direction: row; justify-content: space-between; align-items: center;
  gap: 12px; padding: 14px; margin: 0; border: 1px solid var(--rule-strong);
  cursor: pointer; font-family: var(--f-ui); font-size: 14px; background: var(--bg);
}
.checkout-form .shipping-option:has(input:checked),
.checkout-form .payment-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.checkout-form .shipping-option > span,
.checkout-form .payment-option > span { display: flex; align-items: center; gap: 9px; }
.checkout-form .shipping-option small,
.checkout-form .payment-option small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.checkout-form .shipping-option strong,
.checkout-form .payment-option strong { white-space: nowrap; font-weight: 500; color: var(--ink); }
.checkout-form .shipping-loading,
.checkout-form .payment-loading,
.checkout-form .shipping-empty,
.checkout-form .payment-empty { padding: 12px; color: var(--muted); background: var(--bg); }
.order-item { font-size: 13px !important; gap: 14px; }
.summary-start { margin-top: 10px; border-top: 0.5px solid var(--rule); padding-top: 14px !important; }
.cart-clear-form { margin-top: 9px; }
.cart-clear { width: 100%; border: 0; background: none; color: var(--muted); cursor: pointer; font-family: var(--f-ui); font-size: 13px; }
.line-total { font-weight: 600; }

/* ─── Badges / stock ──────────────────────────────────────────────────── */
.badge { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent-2); }

/* ─── Pagination ──────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; margin-top: 40px; justify-content: center; font-family: var(--f-ui); font-size: 13px; }
.pagination a, .pagination span { padding: 8px 14px; border: 0.5px solid var(--rule-strong); border-radius: 0; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ─── Order-done ──────────────────────────────────────────────────────── */
.order-done { text-align: center; padding: 80px 20px; background: var(--paper); border: 0.5px solid var(--rule); box-shadow: none; border-radius: 0; }
.order-done h1 { color: var(--accent-2); font-family: var(--f-display); font-weight: 400; }

/* ─── Empty-cart / notices ────────────────────────────────────────────── */
.notice-card { text-align: center; padding: 64px 24px; background: var(--paper); border: 0.5px solid var(--rule); }

/* ─── Detail buy button = real add-to-cart ────────────────────────────── */
button.detail-buy { border: none; cursor: pointer; }

/* ─── "O titule" description (raw HTML from DB) ───────────────────────── */
.excerpt-inner .product-desc { font-family: var(--f-text); font-size: 19px; line-height: 1.7; }
.excerpt-inner .product-desc p { margin: 0 0 20px; }
.excerpt-inner .product-desc .drop-cap {
  font-family: var(--f-display); font-size: 82px; float: left;
  line-height: 0.8; padding: 6px 14px 0 0; color: var(--accent); font-style: italic;
}
.excerpt-inner .product-desc .drop-cap-quote {
  display: inline-block; font-size: 0.34em; line-height: 1;
  margin-right: 0.08em; vertical-align: top; position: relative; top: -0.06em;
}
.excerpt-inner .product-desc strong { font-weight: 600; }

/* ─── Audiobook promo on selected product details ─────────────────────── */
.audio-promo {
  max-width: 980px; margin: 0 auto; padding: 36px var(--pad-x);
  border-bottom: 0.5px solid var(--rule);
}
.audio-promo-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px;
  padding: 30px 34px; background: var(--accent-2); color: var(--bg-on-accent);
}
.audio-promo h2 {
  max-width: 600px; margin: 6px 0 10px; font-family: var(--f-display); font-size: clamp(28px, 3vw, 36px);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.015em;
}
.audio-promo p { max-width: 600px; margin: 0; font-size: 16px; line-height: 1.5; opacity: 0.86; }
.audio-kicker { color: inherit; opacity: 0.72; }
.audio-promo-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 210px; }
.audio-promo-actions .btn { text-align: center; white-space: nowrap; }
.audio-btn-primary { background: var(--bg-on-accent); color: var(--accent-2); }
.audio-btn-primary:hover { background: var(--accent); color: var(--bg); }
.audio-btn-outline { border: 1px solid var(--bg-on-accent); color: var(--bg-on-accent); padding: 13px 28px; }
.audio-btn-outline:hover { background: var(--bg-on-accent); color: var(--accent-2); }
.audio-feed-link {
  align-self: center; color: inherit; border-bottom: 1px solid currentColor; padding: 3px 0;
  font-family: var(--f-ui); font-size: 12px; opacity: 0.72;
}
.audio-feed-link:hover { opacity: 1; }
@media (max-width: 760px) {
  .audio-promo { padding-top: 28px; padding-bottom: 28px; }
  .audio-promo-inner { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; }
  .audio-promo-actions { min-width: 0; width: 100%; }
}

/* ─── Software and online tools ───────────────────────────────────────── */
.software-home-lead { max-width: 680px; margin: -10px 0 30px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.software-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.software-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 100%; padding: 36px; background: var(--paper); border: 0.5px solid var(--rule); }
.software-card-featured { border-top: 3px solid var(--accent); }
.software-card h2, .software-card h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 12px 0 18px; }
.software-card h2 { font-size: clamp(32px, 4vw, 46px); }
.software-card h3 { font-size: clamp(28px, 3vw, 38px); }
.software-card p { color: var(--muted); line-height: 1.6; margin: 0 0 22px; }
.software-card .btn, .software-card .link-underline { margin-top: auto; }
.software-list { list-style: none; padding: 0; margin: 0 0 28px; line-height: 1.65; }
.software-list li { position: relative; padding-left: 20px; margin: 7px 0; }
.software-list li::before { content: '·'; position: absolute; left: 6px; color: var(--accent); font-weight: 700; }
.software-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; }
.software-note { color: var(--muted); font-family: var(--f-ui); font-size: 12px; }
.software-catalog .software-grid { align-items: stretch; }
@media (max-width: 760px) {
  .software-grid { grid-template-columns: 1fr; }
  .software-card { padding: 28px 22px; }
}

/* ─── Customer account in the same AEON shell ───────────────────────── */
.account-page { background: var(--bg); color: var(--ink); }
.account-wrap { max-width: 980px; margin: 0 auto; padding: 52px var(--pad-x) 76px; min-height: 58vh; }
.account-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  padding: 12px var(--pad-x); border-bottom: 0.5px solid var(--rule); background: var(--paper);
}
.account-nav a { padding: 8px 12px; color: var(--muted); font-family: var(--f-ui); font-size: 13px; }
.account-nav a:hover, .account-nav a.active { color: var(--accent); background: var(--bg); }
.account-page .card { background: var(--paper); border: 0.5px solid var(--rule); padding: 28px; margin-bottom: 18px; }
.account-page h1, .account-page h2, .account-page h3 { font-family: var(--f-display); font-weight: 400; }
.account-page h1 { margin: 0 0 20px; font-size: clamp(34px, 5vw, 50px); }
.account-page h2 { margin: 0 0 14px; font-size: 27px; }
.account-page .grid { display: grid; gap: 18px; }
.account-page .grid-2 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.account-page .form-row { margin-bottom: 15px; }
.account-page label { display: block; margin-bottom: 6px; font-family: var(--f-ui); font-size: 12px; font-weight: 600; color: var(--muted); }
.account-page input:not([type="checkbox"]):not([type="radio"]),
.account-page select,
.account-page textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--rule-strong); border-radius: 0;
  background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 15px;
}
.account-page input:focus, .account-page select:focus, .account-page textarea:focus { outline: 2px solid rgba(166,76,54,.18); border-color: var(--accent); }
.account-page .btn {
  display: inline-block; padding: 11px 18px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font-family: var(--f-ui); font-size: 13px; text-decoration: none;
}
.account-page .btn:hover { background: var(--accent); color: var(--bg); }
.account-page .btn-secondary { background: var(--muted); }
.account-page .btn-danger { background: #9a3d32; }
.account-page .btn-sm { padding: 7px 11px; font-size: 12px; }
.account-page .flash { padding: 13px 16px; margin-bottom: 18px; border: 1px solid; font-family: var(--f-ui); font-size: 14px; }
.account-page .flash-ok { background: #edf2e7; color: #36512e; border-color: #b9c9aa; }
.account-page .flash-error { background: #f5e6e1; color: #7a2f27; border-color: #d6a49a; }
.account-page table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.account-page th, .account-page td { text-align: left; padding: 11px 9px; border-bottom: 0.5px solid var(--rule); font-family: var(--f-ui); font-size: 13px; }
.account-page th { color: var(--muted); font-family: var(--f-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.account-page .muted { color: var(--muted); font-family: var(--f-ui); font-size: 13px; }
.account-page .badge { display: inline-block; padding: 3px 8px; font-family: var(--f-mono); font-size: 10px; background: var(--bg); border: 0.5px solid var(--rule); }
.account-page .addr-card { border: 1px solid var(--rule); padding: 16px; }
.account-page .addr-default { border-color: var(--accent); }
.account-page .addr-actions { margin-top: 10px; }
.account-page a.link { color: var(--accent); }
.account-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-ui); font-size: 12px; color: var(--muted); }
.account-logout { display: inline; margin: 0; }
.account-logout-btn { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--muted); }
.account-logout-btn:hover { color: var(--accent); }

/* ─── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-table thead { display: none; }
  .checkout-form { padding: 22px 18px; }
  .checkout-form .bbf-form { grid-template-columns: 1fr; }
  .checkout-form .bbf-field.bbf-half { grid-column: 1 / -1; }
}

/* Homepage hero news (novinka) */
.hero-news { display: flex; flex-direction: column; gap: 18px; width: var(--cw, 320px); color: inherit; text-decoration: none; }
.hero-news .book { position: relative; overflow: visible; transition: transform .25s ease, box-shadow .25s ease; }
.hero-news:hover .book { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 18px 36px -14px rgba(0,0,0,.5); }
.hero-news .book img { display: block; width: 100%; height: auto; }
.hero-news-badge { position: absolute; top: -12px; left: -12px; padding: 6px 12px; background: var(--accent); color: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); }
.hero-news-caption { display: flex; flex-direction: column; gap: 6px; }
.hero-news-kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero-news-title { font-family: "EB Garamond", "Garamond", serif; font-size: 24px; line-height: 1.2; }
.hero-news-cta { font-size: 14px; color: var(--muted); }
.hero-news:hover .hero-news-title { color: var(--accent); }
@media (max-width: 1024px) { .hero-news { --cw: 240px; } }
