.site-header { position: sticky; top: 0; z-index: 30; background: var(--nav); color: #fff; }
.announce { background: #ffd814; color: #0f1111; text-align: center; padding: 8px 16px; font-size: 0.88rem; font-weight: 650; }
.header-bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 750; flex: 0 0 auto; }
.brand img { width: 36px; height: 36px; }
.brand span { font-size: 1.25rem; letter-spacing: -0.03em; }
.search { flex: 1; display: flex; align-items: stretch; position: relative; min-width: 0; }
.search input {
  flex: 1; min-width: 0; height: 42px; border: 0; background: #fff; color: #0f1111;
  border-radius: 4px 0 0 4px; padding: 0 14px;
}
.search input::placeholder { color: #6b7280; }
.search-btn {
  border: 0; background: #febd69; color: #0f1111; font-weight: 700; padding: 0 16px;
  border-radius: 0 4px 4px 0; cursor: pointer; white-space: nowrap;
}
.search-btn:hover { background: #f3a847; }
.header-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.header-actions > a, .header-actions .icon-btn {
  text-decoration: none; color: #fff; background: transparent; border: 1px solid transparent;
  border-radius: 4px; padding: 6px 10px; cursor: pointer; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; line-height: 1.15; min-height: 44px; white-space: nowrap;
}
.header-actions .menu-toggle { display: none; }
.header-actions > a:hover, .header-actions .icon-btn:hover { border-color: #fff; }
.action-kicker { font-size: 0.72rem; font-weight: 450; color: #ddd; }
.action-label { font-size: 0.92rem; font-weight: 700; }
.cart-link { position: relative; flex-direction: row !important; align-items: center !important; gap: 8px; }
.cart-icon { position: relative; display: grid; place-items: center; }
.cart-icon svg { width: 28px; height: 28px; }
.cart-count {
  position: absolute; top: -6px; left: 14px; background: var(--accent); color: #0f1111;
  border-radius: 99px; min-width: 1.15em; padding: 0 4px; text-align: center; font-size: 0.75rem; font-weight: 800;
}
.icon-btn, .btn, .text-btn {
  border: 0; border-radius: 8px; padding: 10px 16px; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; background: transparent; cursor: pointer; font-weight: 700;
}
.btn-primary { background: var(--button); color: var(--button-ink); }
.btn-primary:hover { filter: brightness(0.96); }
.btn-accent { background: var(--accent); color: #0f1111; }
.btn-accent:hover { filter: brightness(0.97); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.text-btn { color: var(--link); padding: 4px 0; background: transparent; font-weight: 650; }
.menu-toggle { display: none; }

.subnav { background: var(--nav-2); color: #fff; }
.nav-row { display: flex; align-items: center; min-height: 42px; }
.nav-scroll { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; width: 100%; padding: 4px 0; }
.nav-row a, .nav-menu summary {
  text-decoration: none; color: #fff; white-space: nowrap; font-weight: 550; font-size: 0.9rem;
  padding: 6px 8px; border-radius: 3px; border: 1px solid transparent;
}
.nav-row a[aria-current="page"], .nav-row a:hover, .nav-menu summary:hover { border-color: #fff; }
.nav-all { font-weight: 750 !important; }
.nav-menu { position: relative; flex: 0 0 auto; }
.nav-menu summary { cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); z-index: 20;
}
.nav-menu[open] .nav-panel { display: grid; }
.nav-panel a { color: var(--ink); padding: 8px 10px; border-radius: 6px; }
.nav-panel a:hover { background: var(--bg); color: var(--ink); border-color: transparent; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; color: #0f1111;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); z-index: 25; max-height: 320px; overflow: auto;
}
.suggest a { display: block; padding: 10px 14px; text-decoration: none; color: #0f1111; }
.suggest a:hover { background: #f3f3f3; }
.assurance { background: var(--surface); border-bottom: 1px solid var(--line); }
.assurance .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; min-height: 38px; align-items: center; color: var(--muted); font-size: 0.84rem; font-weight: 650; }
.assurance span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--deal); transform: translateY(-1px); }

.hero { display: grid; gap: 24px; padding: 8px 0; }
.band:has(.hero) {
  background: linear-gradient(105deg, #0f1c33 0%, #1b3f73 52%, #0f6e78 100%);
  color: #fff;
  padding: 28px 0 32px;
}
.band:has(.hero) h1, .band:has(.hero) .lede, .band:has(.hero) .eyebrow { color: #fff; }
.band:has(.hero) .eyebrow { opacity: 0.8; }
.band:has(.hero) .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.band:has(.hero) img { width: 100%; height: 100%; max-height: 280px; object-fit: cover; border-radius: 8px; }
.eyebrow { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 750; margin: 0 0 6px; }
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 18ch; margin-bottom: 8px; }
.lede { font-size: 1.02rem; color: var(--muted); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.band { padding: 18px 0 8px; }
.band-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 12px; }
.band-head h2 { font-size: 1.3rem; margin: 0; }
.band-head p { color: var(--muted); max-width: 62ch; margin: 4px 0 0; }
.product-grid, .post-grid, .category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; align-items: stretch; }
.category-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card, .product-card, .journal-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 17, 17, 0.06); transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover, .product-card:hover, .journal-card:hover { box-shadow: 0 8px 22px rgba(15, 17, 17, 0.12); }
.product-card, .journal-card {
  display: grid; grid-template-rows: auto 1fr auto; height: 100%; min-height: 100%;
}
.product-card-media, .journal-card-media {
  position: relative; background: #f7f8f8; aspect-ratio: 4 / 3; overflow: hidden;
}
.product-card-cover, .journal-card-cover {
  display: grid; place-items: center; width: 100%; height: 100%; padding: 14px 16px 10px;
  text-decoration: none; color: inherit;
}
.product-card-media img, .journal-card-media img { width: 100%; height: 100%; object-fit: contain; }
.product-card-fallback, .cover-fallback, .journal-card-fallback {
  width: 62%; height: 78%; display: grid; place-items: center; border-radius: 4px;
  background: linear-gradient(165deg, #1d4e89, #0f766e); color: #fff; font-size: 2rem; font-weight: 750; line-height: 1;
  box-shadow: 0 10px 18px rgba(15, 17, 17, 0.12);
}
.journal-card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: #232f3e; color: #fff;
  font-size: 0.68rem; font-weight: 800; padding: 4px 7px; border-radius: 5px; letter-spacing: 0.02em;
}
.journal-card-body {
  padding: 12px 14px 8px; display: grid; gap: 5px; align-content: start; min-height: 0;
}
.journal-card-excerpt {
  margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; min-height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.journal-card-actions {
  display: grid; gap: 8px; padding: 4px 14px 14px; margin-top: auto;
}
.journal-card h3 {
  font-size: 0.98rem; font-weight: 700; margin: 0; line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.journal-card h3 a { text-decoration: none; color: var(--ink); }
.journal-card h3 a:hover { color: var(--link); }
.product-card-wish {
  position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0;
}
.product-card-wish button {
  width: 32px; height: 32px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(15,17,17,.12);
}
.product-card-wish button:hover { color: #cc0c39; }
.card a.cover {
  aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; padding: 14px;
  text-decoration: none; color: inherit;
}
.card img { width: 100%; height: 100%; object-fit: contain; }
.card-body, .product-card-body { padding: 12px 14px 8px; display: grid; gap: 5px; align-content: start; }
.product-card-body { min-height: 0; }
.product-card-type {
  display: inline-flex; width: fit-content; align-items: center; border-radius: 999px;
  background: #fff4e5; color: #b35a00; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.02em;
  text-transform: capitalize; padding: 3px 8px; line-height: 1.2;
}
.card h2 { font-size: 1.6rem; margin: 0; }
.card h3, .product-card h3 {
  font-size: 0.98rem; font-weight: 700; margin: 0; line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card h3 a, .product-card h3 a, .category-grid a { text-decoration: none; color: var(--ink); }
.card h3 a:hover, .product-card h3 a:hover { color: var(--link); }
.product-card-meta, .product-card-author {
  margin: 0; min-height: 1.15em; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-rating {
  display: flex; align-items: center; gap: 4px; min-height: 1.2em; flex-wrap: wrap;
}
.rating-star { color: var(--gold); font-size: 0.9rem; line-height: 1; }
.rating-value { font-size: 0.82rem; font-weight: 700; color: var(--ink); line-height: 1; }
.meta, .muted { color: var(--muted); font-size: 0.86rem; }
.card .meta, .card .price, .rating-row, .product-card .meta, .product-card .price { margin: 0; }
.rating-row { display: flex; align-items: center; gap: 6px; min-height: 1.2em; }
.rating-count { color: var(--muted); font-size: 0.78rem; font-weight: 550; text-decoration: none; }
.rating-count:hover { color: var(--link); text-decoration: underline; }
.price { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-weight: 750; font-size: 1.12rem; color: var(--ink); }
.product-card-price {
  gap: 6px 8px; align-items: baseline; font-size: inherit; font-weight: 500; margin-top: 2px;
}
.price-now { font-weight: 800; font-size: 1.2rem; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.price-mrp { color: var(--muted); font-size: 0.78rem; font-weight: 500; display: inline-flex; align-items: baseline; gap: 4px; }
.price-was, .price s, .product-card-price .price-was {
  color: var(--muted); font-weight: 550; font-size: 0.86rem; text-decoration: line-through;
}
.price-off, .off {
  color: var(--deal); font-size: 0.82rem; font-weight: 750;
}
.product-card-feature {
  margin: 0; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 0.75rem; font-weight: 550;
}
.deal-flag, .badge-deal {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: #067d62; color: #fff;
  font-size: 0.68rem; font-weight: 800; padding: 4px 7px; border-radius: 5px; letter-spacing: 0.02em;
}
.badge { display: inline-flex; width: fit-content; border-radius: 4px; padding: 2px 7px; background: #fef3e2; color: #9a4d00; font-size: 0.72rem; font-weight: 750; }
html[data-theme="dark"] .badge { background: #3a2a16; color: #ffd7a8; }
.stars { --percent: calc((var(--rating) / 5) * 100%); font-size: 0.82rem; letter-spacing: 0.02em; background: linear-gradient(90deg, var(--gold) var(--percent), #d5d9d9 var(--percent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.delivery { color: var(--muted); font-size: 0.78rem; margin: 0; }
.card-actions, .product-card-actions {
  display: grid; gap: 8px; padding: 4px 14px 14px; margin-top: auto;
}
.card-actions form, .product-card-actions form { min-width: 0; margin: 0; }
.buy-btn, .card-actions .btn, .product-card-actions .btn {
  width: 100%; min-height: 38px; height: 38px; padding: 0 10px; font-size: 0.84rem; border-radius: 10px;
  box-sizing: border-box; white-space: nowrap;
}
.product-card-actions .btn-ghost {
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700;
}
.product-card-actions .btn-ghost:hover { border-color: #8d9393; background: #fafafa; }
.category-grid .card { min-height: 112px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.category-grid .card h3 { min-height: 0; -webkit-line-clamp: 3; font-size: 1.05rem; }
.category-grid .card .meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.layout { display: grid; gap: 28px; padding: 20px 0 56px; }
.prose { max-width: 72ch; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.2em; }
.prose a { font-weight: 600; }
.prose pre { overflow: auto; padding: 14px; background: #131921; color: #f6f1e8; border-radius: 8px; }
.callout { border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); padding: 12px 14px; border-radius: 8px; }
.figure { margin: 18px 0; }
.figure img, .prose > img { border-radius: 8px; background: #fff; }
.video { position: relative; padding-top: 56%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.pdp { display: grid; gap: 18px; padding: 16px 0 40px; align-items: start; }
.pdp-gallery, .buy, .summary-card, .checkout-card, .filter-panel, .auth-card, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.pdp-gallery { padding: 14px; display: grid; gap: 12px; align-content: start; }
.pdp-stage {
  display: grid; place-items: center; min-height: 320px; aspect-ratio: 1 / 1; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.pdp-stage img, .pdp-gallery img[data-gallery-main] { width: 100%; height: 100%; max-height: none; object-fit: contain; background: #fff; }
.pdp-fallback { font-size: 5rem; font-weight: 750; color: #131921; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.pdp-thumb {
  aspect-ratio: 1 / 1; padding: 4px; border: 2px solid var(--line); border-radius: 6px; background: #fff;
  cursor: pointer; overflow: hidden; display: grid; place-items: center;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb.is-active, .pdp-thumb:hover { border-color: var(--link); }
.pdp-info { min-width: 0; }
.pdp-info > h1 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0 0 6px; line-height: 1.25; }
.pdp-byline { margin: 0 0 8px; color: var(--muted); font-size: 0.92rem; }
.pdp-byline a { color: var(--link); text-decoration: none; font-weight: 650; }
.pdp-byline a:hover { text-decoration: underline; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pdp-rating a { color: var(--link); text-decoration: none; font-weight: 650; font-size: 0.9rem; }
.pdp-price-block { margin: 0 0 14px; }
.deal-pill {
  display: inline-flex; align-items: center; background: #cc0c39; color: #fff;
  font-size: 0.78rem; font-weight: 750; padding: 4px 8px; border-radius: 4px; margin-bottom: 8px;
}
.pdp-price-block .price { font-size: 1.55rem; margin: 0 0 4px; gap: 10px; }
.pdp-trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pdp-trust div { display: grid; gap: 2px; font-size: 0.82rem; }
.pdp-trust strong { font-size: 0.86rem; }
.pdp-trust span { color: var(--muted); }
.pdp-list { margin: 0 0 16px; padding-left: 1.15rem; }
.pdp-list li { margin-bottom: 6px; }
.pdp-specs { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 0.92rem; }
.pdp-specs th, .pdp-specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pdp-specs th { width: 34%; color: var(--muted); font-weight: 650; }
.pdp-share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0; color: var(--muted); font-size: 0.88rem; }
.pdp-share a { color: var(--link); text-decoration: none; font-weight: 650; }
.pdp-reviews { margin-top: 28px; }
.review-card { border-top: 1px solid var(--line); padding: 14px 0; }
.review-card header { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.review-card h3 { font-size: 1rem; margin: 0 0 4px; }
.review-form { display: grid; gap: 10px; margin-top: 16px; max-width: 420px; }
.buy { position: sticky; top: var(--sticky-top); padding: 16px; }
.buy .amount, .summary-card .amount, .checkout-summary .amount { font-size: 1.8rem; font-weight: 750; margin: 0 0 6px; color: var(--ink); letter-spacing: -0.03em; }
.buy-actions, .buy .stack, .summary-card .btn { display: grid; gap: 8px; margin: 12px 0; }
.buy-actions form { margin: 0; }
.buy-actions .buy-btn, .buy .stack .btn, .summary-card .btn { width: 100%; min-height: 42px; height: 42px; border-radius: 20px; }
.buy-delivery { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.4; }
.buy-owned { margin: 0 0 10px; font-size: 0.88rem; }
.buy-points { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.84rem; display: grid; gap: 6px; }
.stack { display: grid; gap: 8px; }
.stock { color: var(--deal); font-weight: 750; margin: 0 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.84rem; padding-top: 12px; }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.catalog, .cart-page, .search-page { padding: 16px 0 56px; }
.cart-price { display: grid; gap: 2px; justify-items: end; text-align: right; }
.cart-upsells { margin-top: 28px; }
.cart-upsells .band-head { margin-bottom: 14px; }
.cart-upsell-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.cart-upsell-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
}
.cart-upsell-media {
  position: relative; aspect-ratio: 4 / 3; background: #f7f8f8; display: grid; place-items: center;
  text-decoration: none; color: inherit; padding: 12px;
}
.cart-upsell-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-upsell-body { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
.cart-upsell-body h3 { font-size: 0.95rem; margin: 0; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-upsell-body h3 a { text-decoration: none; color: var(--ink); }
.cart-upsell-body .buy-btn { width: 100%; margin-top: 4px; }
.catalog-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 14px; }
.catalog-head h1, .cart-page h1, .search-page h1 { font-size: clamp(1.45rem, 2vw, 1.8rem); margin: 0 0 4px; }
.catalog-count { margin: 0; color: var(--muted); font-weight: 650; white-space: nowrap; }
.catalog-layout, .cart-layout, .checkout-grid { display: grid; gap: 16px; align-items: start; }
.filter-panel { padding: 14px; display: grid; gap: 14px; }
.filter-panel h2 { font-size: 0.95rem; margin: 0; }
.toolbar { display: grid; gap: 10px; }
.toolbar-field { display: grid; gap: 6px; color: var(--muted); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.toolbar input, .toolbar select, .field input, .field select, .field textarea, .subscribe-alert input, .summary-card input, .search-page .actions input {
  width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.filter-list { display: grid; }
.filter-list a { text-decoration: none; color: var(--ink); padding: 7px 8px; border-radius: 6px; font-weight: 550; }
.filter-list a:hover, .filter-list a.is-current { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip-row { display: flex; gap: 8px; overflow: auto; padding-bottom: 14px; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; text-decoration: none; background: var(--surface); color: var(--ink); font-size: 0.88rem; font-weight: 650; white-space: nowrap; }
.chip:hover, .chip.is-current { background: var(--nav); color: #fff; border-color: transparent; }
.cart-sheet, .account-panel, .status-card, .side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.cart-sheet { padding: 6px 14px; }
.cart-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; border-bottom: 1px solid var(--line); }
.cart-sheet .cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 72px; height: 72px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: grid; place-items: center; overflow: hidden; color: #131921; font-weight: 750; font-size: 1.4rem; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-main { flex: 1; min-width: 0; }
.cart-line h3 { font-size: 1rem; margin: 0 0 4px; }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.cart-line h3 a:hover { color: var(--link); }
.cart-price { font-size: 1.05rem; white-space: nowrap; }
.empty-state { text-align: center; padding: 36px 18px; }
.empty-state h2 { margin: 0 0 6px; }
.empty-state p { margin: 0 0 14px; }
.summary-card { padding: 16px; position: sticky; top: var(--sticky-top); }
.summary-card .line, .checkout-summary .line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary-card .total-line { font-size: 1.05rem; }
.table-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 20px 0; }
.flash { padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.flash.ok { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); }
.flash.error { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }
.empty { padding: 22px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); }
.ad-slot { margin: 16px 0; padding: 0; border: 0; background: transparent; }
.ad-slot:has(.ad-label) { padding: 10px; border: 1px dashed var(--line); border-radius: 8px; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); }
.ad-slot-infeed, .ad-slot-inarticle { min-height: 0; }
.ad-slot-infeed .adsbygoogle, .ad-slot-inarticle .adsbygoogle { display: block; width: 100%; min-height: 0 !important; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.product-grid > div:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.post-grid > div:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.blog-ad-row:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden;
}
.ad-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-frame { width: 100%; min-height: 90px; border: 0; }
.ad-link { display: grid; gap: 6px; text-decoration: none; }
.back-top { display: block; text-align: center; background: #37475a; color: #fff; text-decoration: none; padding: 14px 16px; font-size: 0.9rem; font-weight: 650; }
.back-top:hover { background: #485769; color: #fff; }
.site-footer { background: #232f3e; color: #fff; padding: 36px 0 18px; }
html[data-theme="dark"] .site-footer { background: #0b0e12; }
.footer-grid { display: grid; gap: 22px; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer strong { display: block; margin-bottom: 8px; color: #fff; }
.site-footer p { margin: 0 0 6px; color: #ddd; }
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 14px 0 4px; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; color: #ddd; }
body.has-consent { padding-bottom: 120px; }
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; width: auto; transform: none;
  background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); border-radius: 0;
  box-shadow: 0 -8px 24px rgba(15, 17, 17, 0.12); padding: 12px 20px; display: flex; gap: 16px; align-items: center; z-index: 40;
}
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-alert { position: fixed; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px; z-index: 50; }
.subscribe-alert h2 { margin: 0 0 8px; font-size: 1.15rem; }
.subscribe-alert p { margin: 0 0 12px; }
.subscribe-kicker { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 750; }
.subscribe-alert input { width: 100%; margin-bottom: 12px; }
.subscribe-alert .actions { display: flex; gap: 8px; flex-wrap: wrap; }
body.has-consent .subscribe-alert { bottom: 128px; }
.consent p { margin: 0; flex: 1; min-width: 220px; color: var(--muted); font-size: 0.92rem; }
.account-page { padding: 18px 0 56px; }
.account-layout { display: grid; gap: 16px; align-items: start; }
.account-side { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px; box-shadow: var(--shadow); }
.account-side p { margin: 4px 8px 8px; color: var(--muted); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.account-nav { display: flex; gap: 4px; overflow: auto; }
.account-nav a { text-decoration: none; padding: 9px 12px; border-radius: 6px; color: var(--ink); white-space: nowrap; font-weight: 650; }
.account-nav a:hover { background: var(--bg); }
.account-nav a[aria-current="page"] { background: var(--nav); color: #fff; }
.account-main { display: grid; gap: 12px; min-width: 0; }
.account-panel { padding: 16px 18px; }
.account-panel h1, .account-panel h2 { margin: 0 0 8px; }
.account-panel h1 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.account-hello { margin: 0; color: var(--muted); }
.account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat-link { display: block; text-decoration: none; color: inherit; padding: 14px 16px; }
.stat-link strong { display: block; font-size: 1.7rem; letter-spacing: -0.03em; }
.stat-link span { color: var(--muted); font-weight: 650; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.record { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-panel .record:last-child { border-bottom: 0; padding-bottom: 0; }
.record h3 { margin: 0 0 2px; font-size: 1rem; }
.record h3 a { color: var(--ink); text-decoration: none; }
.record h3 a:hover { color: var(--link); }
.status { display: inline-flex; border-radius: 4px; padding: 2px 8px; background: #f0f2f2; font-size: 0.75rem; font-weight: 750; text-transform: capitalize; }
.status.paid, .status.approved { background: #e5f6ef; color: #067d62; }
.status.unpaid, .status.pending { background: #fff4d6; color: #7a4e00; }
.status.failed, .status.rejected, .status.refunded, .status.revoked { background: #fde8e4; color: #b12704; }
.choice { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-weight: 550; }
.choice input { width: auto; }
.account-main .auth-card { max-width: none; margin: 0; }
.status-card { max-width: 640px; margin: 28px auto; padding: 22px; }
.side-card { padding: 14px; }
.side-card h2 { margin: 0 0 8px; font-size: 1.05rem; }
.side-card a { display: block; color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-card a:last-child { border-bottom: 0; }
.side-card a:hover { color: var(--link); }
.prose table th { width: 34%; text-transform: none; letter-spacing: 0; font-size: 0.92rem; color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 650; }
.form-grid { display: grid; gap: 12px; }
.auth-card, .panel { max-width: 480px; margin: 28px auto; padding: 22px; }
.checkout-page { padding: 8px 0 56px; }
.checkout-card { padding: 18px; }
.checkout-card h2 { margin-top: 0; font-size: 1.15rem; }
.checkout-card .btn { width: 100%; min-height: 42px; }
.auth-card .btn, .status-card .btn { min-height: 42px; }
.auth-card h1, .status-card h1 { margin-top: 0; }
.preview-banner { background: var(--accent); color: #0f1111; text-align: center; padding: 8px; font-weight: 700; }
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 16px 0; }
.toc a { color: var(--link); text-decoration: none; display: block; padding: 3px 0; }
.comment { border-top: 1px solid var(--line); padding: 12px 0; }
.replies { margin-left: 18px; }
.banner-slide { min-height: 180px; border-radius: 8px; overflow: hidden; position: relative; background: var(--nav); color: #fff; display: grid; align-items: end; margin-bottom: 10px; }
.banner-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.banner-slide div { position: relative; padding: 20px; }
.banner-slide h3, .banner-slide p { color: #fff; }
.quotes { display: grid; gap: 12px; }
.quotes blockquote { margin: 0; background: var(--surface); padding: 16px; border-radius: 8px; border: 1px solid var(--line); }
.quotes cite { color: var(--muted); font-style: normal; font-size: 0.88rem; }

@media (min-width: 800px) {
  .hero { grid-template-columns: 1.4fr .8fr; align-items: center; }
  .layout:has(> aside) { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .checkout-grid, .cart-layout { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .7fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .pdp { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr) minmax(260px, 300px); align-items: start; }
  .catalog-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .filter-panel { position: sticky; top: var(--sticky-top); }
  .pdp-gallery { position: sticky; top: var(--sticky-top); }
  .account-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .account-nav { flex-direction: column; overflow: visible; }
  .account-side { position: sticky; top: var(--sticky-top); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 979px) {
  .account-nav { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 799px) {
  .header-actions .menu-toggle { display: inline-flex; align-self: center; }
  .nav-row { display: none; }
  .nav-row.open { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .nav-scroll { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .nav-panel { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 8px; }
  .nav-panel a { color: #fff; }
  .search { order: 3; flex-basis: 100%; }
  .header-bar { flex-wrap: wrap; padding: 8px 0; }
  .action-kicker { display: none; }
  .pdp .buy { position: static; }
  .pdp-trust { grid-template-columns: 1fr; }
  .catalog-head, .consent { align-items: stretch; flex-direction: column; }
  .consent { padding: 10px 12px; }
  .consent p { min-width: 0; font-size: 0.82rem; }
  .product-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card h3, .product-card h3, .journal-card h3 { font-size: 0.84rem; min-height: 2.4em; }
}
@media (max-width: 420px) {
  .card-actions .btn, .product-card-actions .btn, .buy-btn { font-size: 0.8rem; }
}

.pay-result { max-width: 620px; padding: 32px 28px 26px; text-align: center; }
.pay-result h1 { margin: 14px 0 6px; font-size: 28px; letter-spacing: -0.02em; }
.pay-result.paid h1 { color: #067d62; }
.pay-result.failed h1 { color: #b12704; }
.pay-lead { margin: 0 auto 20px; max-width: 470px; color: var(--muted, #565959); line-height: 1.55; }
.pay-icon { width: 80px; height: 80px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.pay-icon.ok { background: #e5f6ef; }
.pay-icon.bad { background: #fde8e4; }
.pay-icon svg { width: 54px; height: 54px; fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pay-icon.ok svg { stroke: #067d62; }
.pay-icon.bad svg { stroke: #b12704; }
.pay-icon circle { stroke-width: 3; opacity: .35; }
.pay-icon path { stroke-dasharray: 60; animation: pay-draw .55s ease-out; }
@keyframes pay-draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.pay-downloads { text-align: left; border: 1px solid var(--line, #d5d9d9); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.pay-downloads h2 { margin: 0 0 10px; font-size: 16px; }
.pay-download { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line, #d5d9d9); }
.pay-download:first-of-type { border-top: 0; }
.pay-download strong { display: block; }
.pay-download form { margin: 0; flex: 0 0 auto; }
.pay-steps { text-align: left; margin: 0 0 18px; padding: 14px 14px 14px 34px; border-radius: 10px; background: #f3faf7; color: #24433b; font-size: 14px; line-height: 1.65; }
.pay-refund { text-align: left; margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3d892; }
.pay-refund strong { display: block; color: #7a4e00; margin-bottom: 4px; }
.pay-refund p { margin: 0; color: #4d3a0a; font-size: 14px; line-height: 1.5; }
.pay-actions { justify-content: center; }
.pay-spinner { width: 54px; height: 54px; margin: 6px auto 0; border-radius: 50%; border: 4px solid #e3e6e6; border-top-color: #067d62; animation: pay-spin .9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .pay-result { padding: 24px 16px 20px; }
  .pay-download { flex-direction: column; align-items: stretch; }
  .pay-download .btn, .pay-actions .btn { width: 100%; }
}
