/*
 * Nexus Shine — application styles.
 * Single Propshaft-served stylesheet. Design system mirrors the Nexus house
 * style (CSS-variable tokens, topbar + sticky header, card grids) with a fresh
 * cyan/gold "shine" palette suited to a cleaning-chemistry shop.
 */

:root {
  --color-primary: #22a3a4;
  --color-primary-hover: #1b8384;
  --color-primary-rgb: 34, 163, 164;
  --color-accent: #f2b134;
  --color-accent-hover: #e0a11f;
  --color-ink: #0f2a3a;
  --color-dark: #0b2230;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-background: #f5f8fa;
  --color-surface: #ffffff;
  --color-text: #12303f;
  --color-text-muted: #64798a;
  --color-border: #e2e9ef;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(15, 42, 58, 0.08), 0 1px 2px rgba(15, 42, 58, 0.05);
  --shadow-lg: 0 12px 28px -8px rgba(15, 42, 58, 0.18);
  --container: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--color-ink); line-height: 1.2; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; line-height: 1;
  padding: 12px 20px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn-accent { background: var(--color-accent); color: var(--color-dark); }
.btn-accent:hover { background: var(--color-accent-hover); }
.btn-secondary { background: #eef3f6; color: var(--color-ink); border-color: var(--color-border); }
.btn-secondary:hover { background: #e3ebef; }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: currentColor; }
.btn-ghost:hover { background: rgba(var(--color-primary-rgb), .08); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn-disabled { background: #e2e9ef; color: var(--color-text-muted); cursor: not-allowed; pointer-events: none; justify-content: center; }
.stock-note { font-weight: 700; color: #92600a; margin: 0 0 10px; }
.stock-note-out { color: var(--color-danger); font-size: 1.1rem; }

/* ---------- Topbar ---------- */
.site-topbar {
  background: linear-gradient(90deg, var(--color-dark), #123a4c);
  color: #fff; font-size: 13px; font-weight: 500;
}
.site-topbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-topbar-phone, .site-topbar-hours { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.site-topbar-phone { font-weight: 700; text-decoration: none; }
.site-topbar-phone:hover { opacity: .85; text-decoration: none; }
.site-topbar-hours { opacity: .9; }
@media (max-width: 560px) { .site-topbar-hours span { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.header-container {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.site-logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo:hover { text-decoration: none; }
.site-logo-img { height: 42px; width: auto; display: block; }
@media (max-width: 560px) { .site-logo-img { height: 34px; } }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 9px 14px; border-radius: 8px; color: var(--color-ink);
  font-weight: 600; text-decoration: none; transition: background .15s, color .15s;
}
.site-nav a:hover { background: #eef3f6; color: var(--color-primary); text-decoration: none; }
.site-nav a.is-active { color: var(--color-primary); background: rgba(var(--color-primary-rgb), .1); }

.cart-link { position: relative; display: inline-flex; color: var(--color-ink); padding: 6px; }
.cart-link:hover { color: var(--color-primary); }
.cart-badge {
  position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--color-accent); color: var(--color-dark); font-size: 12px; font-weight: 800;
}
.cart-badge[data-count="0"] { display: none; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--color-ink); border-radius: 2px; transition: transform .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; margin-left: auto; order: 3; }
  .cart-link { order: 2; }
  .site-nav {
    order: 4; flex-basis: 100%; margin-left: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav[data-open="true"] { max-height: 420px; }
  .site-nav ul { flex-direction: column; padding: 8px 0 4px; }
  .site-nav a { padding: 12px 8px; }
}

/* ---------- Flash ---------- */
.flash-container { max-width: var(--container); margin: 16px auto 0; padding: 0 24px; }
.flash {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius);
  font-weight: 500;
}
.flash svg { flex-shrink: 0; }
.flash-notice { background: #e7f7f0; color: #0a6b4b; border: 1px solid #bfe9d7; }
.flash-alert { background: #fdeaea; color: #a32020; border: 1px solid #f4c4c4; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 400px at 80% -10%, rgba(45,196,197,.18), transparent),
              linear-gradient(135deg, var(--color-dark), #123a4c);
  color: #fff;
}
.hero-inner {
  max-width: var(--container); margin: 0 auto; padding: 72px 24px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 14px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 16px; letter-spacing: -.02em; }
.hero p { font-size: 1.15rem; color: #cfe2ea; max-width: 46ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-usps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #bcd6e0; font-size: .95rem; }
/* Hero campaign layout — full-bleed photo, product cluster, diagonal ribbon */
.hero-campaign { position: relative; overflow: hidden; background: var(--color-dark); }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(.7);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(11,34,48,.95) 30%, rgba(11,34,48,.7) 52%, rgba(18,58,76,.35) 100%);
}
.hero-campaign-inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 24px; align-items: center; min-height: 440px; padding: 44px 24px;
}
.hero-copy { color: #fff; max-width: 560px; }
.hero-ribbon {
  display: inline-block; background: var(--color-primary); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 30px 7px 18px; margin-bottom: 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.5);
}
.hero-campaign h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 0 0 14px; }
.hero-campaign .hero-copy p { font-size: 1.08rem; margin: 0 0 22px; }
.hero-campaign .hero-usps { gap: 8px 18px; }

.hero-cluster { position: relative; height: 400px; }
.hero-cluster img {
  position: absolute; object-fit: contain; filter: drop-shadow(0 22px 28px rgba(0,0,0,.6));
}
.hero-cluster-back  { height: 74%; right: 6%;  top: 6%;    rotate: 5deg;  z-index: 1; }
.hero-cluster-left  { height: 62%; left: 2%;   bottom: 4%; rotate: -11deg; z-index: 2; }
.hero-cluster-front { height: 90%; right: 26%; bottom: 0;  z-index: 3; }
@media (max-width: 860px) {
  .hero-campaign-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-cluster { height: 320px; max-width: 460px; margin: 0 auto; }
  .hero-copy { max-width: none; text-align: center; }
  .hero-campaign .hero-actions, .hero-campaign .hero-usps { justify-content: center; }
  .hero-ribbon { margin-inline: auto; }
}
@media (max-width: 460px) {
  .hero-cluster-left, .hero-cluster-back { display: none; }
  .hero-cluster-front { right: auto; left: 50%; translate: -50% 0; height: 100%; }
  .hero-cluster { height: 260px; }
}

/* Product packshots (transparent PNGs → white bg, contained, padded) */
.product-card-media:has(.product-card-photo) { background: #fff; }
.product-card-photo { width: 100%; height: 100%; object-fit: contain; padding: 26px 40px; }
.product-detail-media:has(.product-detail-photo) { background: #fff; }
.product-detail-photo { width: 100%; height: 100%; object-fit: contain; padding: 56px; }
.cart-item-photo { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }

/* ---------- Sections ---------- */
.home-section { padding: 56px 0; }
.home-section-alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.section-heading { font-size: 1.7rem; margin: 0 0 28px; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head-row .section-heading { margin: 0; }
.section-head-link { font-weight: 700; }

.page-head { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 36px 0; }
.page-head h1 { font-size: 2rem; margin: 0; }
.page-head-lead { color: var(--color-text-muted); margin: 10px 0 0; max-width: 70ch; }

.breadcrumb { font-size: .9rem; color: var(--color-text-muted); margin: 18px 0; }
.breadcrumb span { margin: 0 6px; opacity: .6; }

/* ---------- Category cards ---------- */
/* Category image showcase */
.cat-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cat-tile {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 320px; border-radius: var(--radius-lg); text-decoration: none;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s;
}
.cat-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); text-decoration: none; }
.cat-tile-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,34,48,0) 30%, rgba(11,34,48,.55) 62%, rgba(11,34,48,.9) 100%);
  transition: background .25s;
}
.cat-tile:hover .cat-tile-shade {
  background: linear-gradient(180deg, rgba(34,163,164,.15) 20%, rgba(11,34,48,.62) 62%, rgba(11,34,48,.94) 100%);
}
.cat-tile-body { position: relative; z-index: 1; padding: 26px 28px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.cat-tile-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); }
.cat-tile-title { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.1; }
.cat-tile-text { color: #d7e6ec; font-size: .98rem; max-width: 42ch; }
.cat-tile-cta {
  margin-top: 10px; align-self: flex-start; font-weight: 700; color: #fff;
  padding: 9px 16px; border-radius: 40px; background: rgba(var(--color-primary-rgb), .9);
  transition: gap .2s, background .2s;
}
.cat-tile:hover .cat-tile-cta { background: var(--color-primary); }
@media (max-width: 820px) { .cat-showcase { grid-template-columns: 1fr; } .cat-tile { min-height: 260px; } }

/* ---------- Product grid + cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #eef4f7, #dfeaef); overflow: hidden;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-placeholder, .product-detail-placeholder {
  font-size: 3rem; font-weight: 800; color: rgba(var(--color-primary-rgb), .35);
}
.product-badge {
  position: absolute; top: 10px; left: 10px; background: var(--color-accent); color: var(--color-dark);
  font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
}
.product-badge-out { background: var(--color-danger); color: #fff; }
.product-badge-low { background: #fff3d6; color: #92600a; }
.product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-brand { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-primary); }
.product-card-title { font-size: 1rem; margin: 0; line-height: 1.35; }
.product-card-title a { color: var(--color-ink); text-decoration: none; }
.product-card-title a:hover { color: var(--color-primary); }
.product-card-size { font-size: .82rem; color: var(--color-text-muted); }
.product-card-price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.price-eur { font-size: 1.2rem; font-weight: 800; color: var(--color-ink); }
.price-bgn { font-size: .85rem; color: var(--color-text-muted); }
.product-card-form { margin-top: 10px; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-block: 32px; align-items: start; }
.shop-sidebar {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 90px;
}
.sidebar-heading { font-size: 1rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); }
.category-filter { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.category-filter a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px; color: var(--color-ink); font-weight: 600; text-decoration: none;
}
.category-filter a:hover { background: #eef3f6; text-decoration: none; }
.category-filter a.is-active { background: rgba(var(--color-primary-rgb), .1); color: var(--color-primary); }
.category-filter .count { font-size: .8rem; color: var(--color-text-muted); font-weight: 600; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.shop-count { color: var(--color-text-muted); font-weight: 600; }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-sort select { font: inherit; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); }
@media (max-width: 820px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
}

.empty-state { text-align: center; color: var(--color-text-muted); padding: 40px 0; }

/* ---------- Promo band ---------- */
.promo-band { background: var(--color-primary); color: #fff; }
.promo-band-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 28px 24px; }
.promo-item { display: flex; flex-direction: column; }
.promo-item strong { font-size: 1.1rem; }
.promo-item span { opacity: .9; font-size: .95rem; }
@media (max-width: 720px) { .promo-band-inner { grid-template-columns: 1fr; gap: 14px; text-align: center; } }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 24px; }
.product-detail-media {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; display: grid; place-items: center;
  background: linear-gradient(135deg, #eef4f7, #dfeaef); border: 1px solid var(--color-border);
}
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 1.8rem; margin: 6px 0 12px; }
.product-detail-size { color: var(--color-text-muted); }
.product-detail-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.product-detail-price .price-eur { font-size: 2rem; }
.product-detail-lead { color: var(--color-text); font-size: 1.05rem; }
.product-detail-buy { display: flex; gap: 12px; align-items: stretch; margin: 22px 0; flex-wrap: wrap; }
.product-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 20px; background: #eef3f6; color: var(--color-ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.tag:hover { background: rgba(var(--color-primary-rgb), .12); color: var(--color-primary); text-decoration: none; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

.product-description { padding: 24px 0 24px; max-width: 820px; }
.product-description h2 { font-size: 1.3rem; }
.product-description p { margin: 0 0 10px; }
.desc-heading {
  font-weight: 800; color: var(--color-ink); font-size: 1.05rem;
  margin: 20px 0 8px !important; padding-left: 12px; border-left: 3px solid var(--color-primary);
}

.product-specs { padding: 8px 0 48px; max-width: 820px; }
.product-specs h2 { font-size: 1.3rem; margin-bottom: 12px; }
.specs-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.specs-table th, .specs-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }
.specs-table th { width: 34%; font-weight: 700; color: var(--color-ink); background: #f7fafb; }
.specs-table td { color: var(--color-text); }

/* Quantity field */
.qty-field { display: inline-flex; align-items: stretch; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 42px; border: 0; background: #eef3f6; font-size: 1.2rem; cursor: pointer; color: var(--color-ink); }
.qty-btn:hover { background: #e3ebef; }
.qty-input { width: 56px; text-align: center; border: 0; border-inline: 1px solid var(--color-border); font: inherit; font-weight: 700; }
.qty-input:focus { outline: none; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-block: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 16px; align-items: center;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px;
}
.cart-item-media { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #eef4f7; }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 { font-size: 1rem; margin: 0 0 4px; }
.cart-item-info h3 a { color: var(--color-ink); text-decoration: none; }
.cart-item-unit { display: block; color: var(--color-text-muted); font-size: .85rem; margin-top: 4px; }
.cart-item-qty { display: flex; gap: 6px; align-items: center; }
.cart-item-qty .qty-input { border: 1px solid var(--color-border); border-radius: 8px; width: 60px; height: 38px; }
.cart-item-subtotal { font-weight: 800; color: var(--color-ink); }
.cart-item-remove { background: none; border: 0; color: var(--color-text-muted); font-size: 1.1rem; cursor: pointer; padding: 6px; }
.cart-item-remove:hover { color: var(--color-danger); }
.cart-summary {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 22px; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px;
}
.cart-summary h2 { font-size: 1.2rem; margin: 0 0 6px; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: baseline; }
.cart-summary-total { border-top: 1px solid var(--color-border); padding-top: 12px; font-size: 1.05rem; }
.cart-summary-total strong { font-size: 1.4rem; color: var(--color-ink); }
.cart-summary-total small { display: block; color: var(--color-text-muted); font-weight: 500; }
.cart-clear-link { background: none; border: 0; color: var(--color-text-muted); cursor: pointer; text-decoration: underline; padding: 4px; font: inherit; }
.cart-clear-link:hover { color: var(--color-danger); }
.cart-empty { padding: 60px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media (max-width: 820px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 64px 1fr auto; grid-auto-flow: row; }
  .cart-item-media { width: 64px; height: 64px; }
  .cart-item-qty, .cart-item-subtotal { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding-block: 32px; align-items: start; }
.checkout-form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px; }
.checkout-form h2 { margin: 0 0 18px; font-size: 1.3rem; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea {
  font: inherit; padding: 11px 13px; border: 1px solid var(--color-border); border-radius: var(--radius);
  background: #fff; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid rgba(var(--color-primary-rgb), .4); outline-offset: 0; border-color: var(--color-primary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-note { color: var(--color-text-muted); font-size: .9rem; margin-top: 12px; text-align: center; }
.checkout-form h2 { font-size: 1.15rem; margin: 22px 0 12px; }

/* Payment method chooser */
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.pay-method { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--color-border); border-radius: var(--radius); cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pay-method:has(input:checked) { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), .18); }
.pay-method input { margin-top: 3px; }
.pay-method-body { display: flex; flex-direction: column; }
.pay-method-body small { color: var(--color-text-muted); font-size: .85rem; }

/* Speedy shipping calculator */
.shipping-box { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 6px; }
.ship-city-row { display: flex; gap: 8px; }
.ship-city-row input { flex: 1; font: inherit; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); }
.ship-city-row .btn { flex-shrink: 0; }
.ship-select { width: 100%; margin-top: 8px; font: inherit; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
.ship-result { margin: 12px 0 0; font-weight: 700; color: var(--color-primary); }
.ship-result.is-error { color: var(--color-danger); }
.ship-autocomplete { position: relative; }
.ship-suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px;
  list-style: none; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto;
}
.ship-suggest li { padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: .95rem; }
.ship-suggest li:hover { background: #eef3f6; }

/* Invoice ("Искам фактура") */
.invoice-box { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px 18px; margin: 10px 0 20px; }
.invoice-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; margin: 0; }
.invoice-toggle input { width: auto; }
.invoice-fields { margin-top: 14px; }
.eik-row { display: flex; gap: 8px; }
.eik-row input { flex: 1; }
.field-hint.is-error { color: var(--color-danger); }

/* Payment status on the confirmation page */
.pay-status { font-weight: 700; padding: 10px 16px; border-radius: var(--radius); display: inline-block; margin: 0 auto 12px; }
.pay-status-paid { background: #d1fae5; color: #065f46; }
.pay-status-pending { background: #fef3c7; color: #92600a; }
.checkout-summary { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 90px; }
.checkout-summary h2 { font-size: 1.2rem; margin: 0 0 14px; }
.checkout-lines { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checkout-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.checkout-line-name em { color: var(--color-text-muted); font-style: normal; }
.checkout-back { display: inline-block; margin-top: 14px; font-weight: 600; }
.form-errors { background: #fdeaea; border: 1px solid #f4c4c4; color: #a32020; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.form-errors ul { margin: 8px 0 0; padding-left: 20px; }
@media (max-width: 820px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Order confirmation ---------- */
.order-confirmation { max-width: 640px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.order-confirm-icon { color: var(--color-success); margin-bottom: 12px; }
.order-confirm-lead { color: var(--color-text-muted); }
.order-card { text-align: left; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; margin: 28px 0; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.order-table tfoot td { border-bottom: 0; padding-top: 14px; font-size: 1.05rem; }
.order-table .right { text-align: right; }
.order-table .muted { color: var(--color-text-muted); }
.order-shipping { margin-top: 18px; }
.order-shipping h3 { font-size: 1rem; margin: 0 0 6px; }

/* ---------- About / brands / testimonials ---------- */
.prose { max-width: 820px; padding-block: 32px; }
.prose h2 { margin-top: 28px; font-size: 1.4rem; }
.prose p { color: var(--color-text); }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-card { background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; }
.brand-card-logo {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  height: 120px; display: grid; place-items: center; padding: 18px; margin-bottom: 16px;
}
.brand-logo-img { max-height: 82px; max-width: 100%; width: auto; object-fit: contain; }
.brand-card h3 { color: var(--color-primary); margin: 0; }
.brand-card p { color: var(--color-text-muted); margin: 0; font-size: .95rem; }

/* Partners showcase (home) */
.partners { position: relative; overflow: hidden; padding: 64px 0 72px; background: var(--color-surface); }
.partners-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(680px 320px at 12% -20%, rgba(var(--color-primary-rgb), .12), transparent),
    radial-gradient(560px 300px at 92% 120%, rgba(242, 177, 52, .14), transparent);
}
.partners .container { position: relative; z-index: 1; }
.partners-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.partners-eyebrow { display: inline-block; color: var(--color-primary); margin-bottom: 10px; }
.partners-head .section-heading { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.partners-sub { color: var(--color-text-muted); margin: 0; font-size: 1.05rem; }

.partners-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  max-width: 960px; margin: 0 auto;
}
.partner-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 34px 26px 26px; text-decoration: none;
  background: linear-gradient(180deg, #ffffff, #f7fbfc);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.partner-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #3fc9ca, var(--color-accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.partner-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-lg);
  border-color: rgba(var(--color-primary-rgb), .4); text-decoration: none;
}
.partner-card:hover::before { transform: scaleX(1); }
.partner-card-glow {
  position: absolute; z-index: -1; width: 240px; height: 240px; border-radius: 50%;
  top: -80px; left: 50%; translate: -50% 0;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), .16), transparent 68%);
  opacity: 0; transition: opacity .3s ease;
}
.partner-card:hover .partner-card-glow { opacity: 1; }
.partner-logo-frame {
  display: grid; place-items: center; width: 100%; height: 130px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
}
.partner-logo-img {
  max-height: 96px; max-width: 82%; width: auto; object-fit: contain;
  transition: transform .25s ease;
}
.partner-card:hover .partner-logo-img { transform: scale(1.05); }
.partner-card-name {
  font-weight: 800; font-size: 1.05rem; color: var(--color-ink); letter-spacing: -.01em;
}
@media (max-width: 760px) {
  .partners { padding: 44px 0 52px; }
  .partners-cards { grid-template-columns: 1fr; max-width: 420px; gap: 18px; }
  .partner-logo-frame { height: 120px; }
}
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 22px; margin: 0; }
.testimonial blockquote { margin: 0 0 12px; font-size: 1rem; color: var(--color-ink); }
.testimonial figcaption { font-weight: 700; color: var(--color-primary); }
@media (max-width: 820px) { .brand-grid, .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; padding-block: 32px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 4px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--color-ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { color: var(--color-text-muted); padding-bottom: 16px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--color-dark), #123a4c); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #cfe2ea; margin: 0; }
.cta-band .btn-ghost { color: #fff; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 340px 1fr; gap: 32px; padding-block: 32px; align-items: start; }
.contact-details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 26px; }
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); font-weight: 700; }
.contact-form-wrap { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 26px; }
.contact-form .field textarea { resize: vertical; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: #cfe2ea; margin-top: 40px; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #cfe2ea; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { color: #9fbccb; font-size: .92rem; margin: 12px 0 0; max-width: 40ch; }
.footer-logo-img { height: 46px; width: auto; display: block; }
.footer-contact li { margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: #9fbccb; flex-wrap: wrap; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Cookie consent ---------- */
.cookie-consent {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px; margin: 0 auto; z-index: 100;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
}
.cookie-consent p { margin: 0 0 12px; font-size: .9rem; color: var(--color-text); }
.cookie-consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
