/*
Theme Name: Kluczi
Theme URI: https://activekey.ua
Description: Claude-style theme with light/dark toggle
Version: 3.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── LIGHT THEME (default) ─── */
:root,
[data-theme="light"] {
  --accent: #D4622A;
  --accent-dim: rgba(212,98,42,.1);
  --accent-hover: #B8511F;
  --green: #16A34A;
  --green-dim: rgba(22,163,74,.1);
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --text-dim: #9CA3AF;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface2: #F3F4F6;
  --border: #E5E7EB;
  --border-dim: #F0F0F0;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --radius: 6px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --grid-color: rgba(0,0,0,.06);
  --header-bg: rgba(249,249,248,.92);
  --glow: rgba(212,98,42,.06);
  --btn-bg: #111111;
  --btn-text: #ffffff;
  --btn-bg-hover: #333333;
}

/* ─── DARK THEME ─── */
[data-theme="dark"] {
  --accent: #D4622A;
  --accent-dim: rgba(212,98,42,.15);
  --accent-hover: #E07535;
  --green: #4ADE80;
  --green-dim: rgba(74,222,128,.1);
  --text: #E5E5E5;
  --text-muted: #737373;
  --text-dim: #404040;
  --bg: #1A1A1A;
  --surface: #242424;
  --surface2: #2C2C2C;
  --border: #363636;
  --border-dim: #282828;
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.2);
  --radius: 6px;
  --grid-color: rgba(255,255,255,.06);
  --header-bg: rgba(26,26,26,.94);
  --glow: rgba(212,98,42,.08);
  --btn-bg: #ffffff;
  --btn-text: #111111;
  --btn-bg-hover: #e0e0e0;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

.g-icon, .contact-icon { filter: grayscale(1); opacity: .55; }
.pf-icon { filter: none; }

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .25s, border-color .25s;
}

.header-nav {
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.header-nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
}
.header-nav-link {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color .12s, background .12s;
}
.header-nav-link:hover { color: var(--text); background: var(--border); }

.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 4px;
  text-decoration: none;
}
.site-logo-eyebrow {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-logo-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
  font-style: normal;
}
.site-logo-name em {
  color: var(--accent);
  font-style: normal;
}

/* Catalog button + dropdown */
.catalog-wrap { position: relative; flex-shrink: 0; }
.catalog-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 48px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.catalog-btn:hover { background: var(--btn-bg-hover); }
.catalog-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0,0,0,.16);
  padding: 8px;
  min-width: 230px;
  display: none;
  z-index: 300;
}
.catalog-dropdown.open { display: block; }
.catalog-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background .12s;
}
.catalog-link:hover { background: var(--surface2); }
.catalog-link svg { flex-shrink: 0; }

/* Search bar */
.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s;
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 16px;
  height: 48px;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search button {
  width: 50px; height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: color .15s;
  font-size: 16px;
}
.header-search button:hover { color: var(--accent); }

/* Right side of header */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  gap: 2px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px;
}
.theme-btn {
  width: 30px; height: 28px;
  border: none;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  line-height: 1;
}
.theme-btn:hover { background: var(--border); }
.theme-btn.active {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* Cart button */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--btn-bg);
  color: var(--btn-text) !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.cart-btn:hover { background: var(--btn-bg-hover); }
.cart-count {
  background: rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 0 6px;
  font-size: 11px;
}

/* ─── HERO ─── */
.hero {
  background: transparent;
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 320px;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(212,98,42,.2);
  border-radius: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 28px;
  font-family: var(--mono);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}
.hero-cta:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-text);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: -1px;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ─── FEATURES ─── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  transition: background .25s;
}
.feature {
  padding: 24px 22px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature:last-child { border-right: none; }
.feature-icon {
  width: 34px; height: 34px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  color: var(--text-muted);
}
.feature-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.feature-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ─── SECTION ─── */
.section { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title { font-size: 18px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.section-link { font-size: 13px; font-weight: 500; color: var(--text-muted); transition: color .15s; }
.section-link:hover { color: var(--accent); }

/* ─── PRODUCTS GRID ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* ─── PRODUCT CARD ─── */
.product-card {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s;
}
.product-card:hover {
  transform: translateY(-3px);
}

.product-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f1f4;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,.46);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-card-badge--hot { background: rgba(220,38,38,.8); }

.product-card-footer {
  padding: 2px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ─── ARCHIVE SIDEBAR ─── */
.archive-layout { display: flex; gap: 20px; align-items: flex-start; }
.archive-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  position: sticky;
  top: 76px;
}
.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.sidebar-cats { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .12s;
  gap: 6px;
}
.sidebar-cat:hover { background: var(--surface2); color: var(--text); }
.sidebar-cat.active { background: var(--accent); color: #fff; font-weight: 600; }
.sidebar-cat-count {
  font-size: 11px;
  font-family: var(--mono);
  background: var(--surface2);
  border-radius: 10px;
  padding: 1px 7px;
  flex-shrink: 0;
}
.sidebar-cat.active .sidebar-cat-count { background: rgba(255,255,255,.22); color: #fff; }
.archive-main { flex: 1; min-width: 0; }

.product-price { display: flex; align-items: baseline; gap: 4px; }
.product-price-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.5px;
  line-height: 1;
}
.product-price-cur {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-buy {
  padding: 9px 18px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  display: inline-block;
}
.btn-buy:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-text);
  box-shadow: 0 0 16px rgba(0,0,0,.18);
}

/* ─── CATEGORIES ─── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-card {
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  transition: all .2s;
  text-align: center;
  color: inherit;
}
.cat-card:hover { border-color: var(--accent); background: var(--surface2); }
.cat-icon { font-size: 26px; margin-bottom: 10px; display: flex; justify-content: center; color: var(--text-muted); }
.cat-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cat-count { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }

/* ─── HOW IT WORKS ─── */
.how-it-works {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
  transition: background .25s;
}
.how-inner { max-width: 1200px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; }
.step { text-align: center; }
.step .step-num {
  width: 36px; height: 36px;
  background: var(--accent-dim);
  border: 1px solid rgba(212,98,42,.25);
  color: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  margin: 0 auto 14px;
  font-family: var(--mono);
}
.step .step-title { font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.step .step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 44px 24px 22px;
  transition: background .25s;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; font-family: var(--mono); }
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 250px; }
.footer-heading { font-size: 10px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; font-family: var(--mono); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; font-size: 11px; font-family: var(--mono); color: var(--text-dim); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--text-dim); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ─── WooCommerce ─── */
.woocommerce ul.products { display: none !important; }
.woocommerce .quantity { display: none; }
.woocommerce .single_add_to_cart_button {
  width: 100%; padding: 18px; background: var(--btn-bg); color: var(--btn-text);
  border: none; border-radius: 12px; font-size: 18px; font-weight: 700;
  cursor: pointer; transition: background .15s; margin: 20px 0 14px;
  letter-spacing: -.2px;
}
.woocommerce .single_add_to_cart_button:hover { background: var(--btn-bg-hover); }
.woocommerce input.input-text, .woocommerce select, .woocommerce textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px;
  font-size: 14px; width: 100%; font-family: inherit; transition: border-color .15s;
  background: var(--surface2); color: var(--text);
}
.woocommerce input.input-text:focus, .woocommerce select:focus, .woocommerce textarea:focus { outline: none; border-color: var(--accent); }
.woocommerce .button { background: var(--btn-bg) !important; color: var(--btn-text) !important; border-radius: 8px !important; font-weight: 600 !important; padding: 11px 22px !important; border: none !important; cursor: pointer; transition: background .15s !important; font-size: 14px !important; }
.woocommerce .button:hover { background: var(--btn-bg-hover) !important; }
.woocommerce table.shop_table { border: 1px solid var(--border); border-radius: var(--radius); border-collapse: separate; font-size: 13px; background: var(--surface); }
.woocommerce table.shop_table th { background: var(--surface2); color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.woocommerce table.shop_table td { color: var(--text); border-color: var(--border); }

/* Classic checkout layout */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; display: block; }
.woocommerce form .form-row .required { color: var(--accent); }
.woocommerce #payment { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-top: 20px; }
.woocommerce #payment ul.payment_methods { list-style: none; margin: 0 0 14px; }
.woocommerce #payment ul.payment_methods li label { font-size: 14px; font-weight: 500; color: var(--text); }
#place_order { width: 100%; padding: 14px; font-size: 15px !important; margin-top: 10px; }
/* Спрощена таблиця замовлення на checkout */
.woocommerce-checkout-review-order-table { width: 100%; border: none !important; background: transparent !important; border-radius: 0 !important; }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table tbody tr td,
.woocommerce-checkout-review-order-table tfoot tr td,
.woocommerce-checkout-review-order-table tfoot tr th { border: none !important; padding: 8px 0 !important; background: transparent !important; font-size: 14px; }
.woocommerce-checkout-review-order-table tfoot .cart-subtotal { display: none; }
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td { font-size: 16px; font-weight: 700; padding-top: 12px !important; border-top: 1px solid var(--border) !important; }
.woocommerce-checkout-review-order-table .product-name { font-weight: 500; color: var(--text); }
.woocommerce-checkout-review-order-table .product-total { text-align: right; color: var(--text-muted); }
.woocommerce-cart-form__cart-item .product-thumbnail img { border-radius: 6px; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; width: 100%; padding: 14px; font-size: 15px !important; }

/* WC blocks */
.wc-block-components-product-name { font-weight: 600; color: var(--text); }
.wc-block-components-product-price { font-weight: 700; color: var(--accent); font-family: var(--mono); }
.wc-block-components-totals-wrapper { background: var(--surface); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); }
.wc-block-components-button, .wc-block-cart__submit-button, .wc-block-checkout__actions_row button { background: var(--btn-bg) !important; color: var(--btn-text) !important; border-color: var(--btn-bg) !important; border-radius: 5px !important; font-weight: 600 !important; }
.wc-block-components-text-input input, .wc-block-components-select select { border: 1px solid var(--border) !important; border-radius: 5px !important; background: var(--surface2) !important; color: var(--text) !important; }
.wc-block-components-text-input input:focus { border-color: var(--accent) !important; }
.wc-block-components-order-summary { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }

/* ─── SINGLE PRODUCT ─── */
.single-product-page { max-width: 1200px; margin: 0 auto; padding: 0 24px 56px; }
.breadcrumb-bar { background: var(--surface); border-bottom: 1px solid var(--border); margin: 0 -24px 36px; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-muted); font-family: var(--mono); }
.breadcrumb-inner a { color: var(--text-muted); }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-inner span:last-child { color: var(--text); }
.product-layout { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; margin-bottom: 48px; }
.product-gallery { width: 100%; max-width: 380px; }
.product-main-img { border-radius: 32px; overflow: hidden; }
.product-main-img img { width: 100%; height: auto; display: block; border-radius: 32px; }
.product-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.badge { padding: 4px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; font-family: var(--mono); }
.badge--green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(22,163,74,.2); }
.badge--blue  { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(212,98,42,.2); }
.badge--gray  { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }
.product-cat-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); margin-bottom: 10px; }
.product-title { font-size: 32px; font-weight: 700; letter-spacing: -1px; margin-bottom: 12px; line-height: 1.2; color: var(--text); }
.product-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.stars { color: #F59E0B; font-size: 15px; }
.rating-text { font-size: 14px; color: var(--text-muted); }
.product-price-block { padding: 20px 22px; background: var(--surface2); border-radius: 12px; border: 1px solid var(--border); margin-bottom: 20px; }
.big-price { font-size: 44px; font-weight: 800; letter-spacing: -2px; color: var(--text); line-height: 1; margin-bottom: 6px; }
.big-price del { font-size: 18px; font-weight: 400; color: var(--text-dim); text-decoration: line-through; display: inline; letter-spacing: 0; margin-right: 8px; }
.big-price del .woocommerce-Price-amount { color: inherit; font-size: inherit; font-weight: inherit; }
.big-price ins { text-decoration: none; display: inline; }
.big-price ins .woocommerce-Price-amount { font-size: 44px; font-weight: 800; color: var(--text); }
.big-price ins .woocommerce-Price-currencySymbol { font-size: 22px; font-weight: 600; }
.big-price > .woocommerce-Price-amount { font-size: 44px; font-weight: 800; }
.big-price > .woocommerce-Price-amount .woocommerce-Price-currencySymbol { font-size: 22px; font-weight: 600; }
.price-note { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.product-features { margin-bottom: 12px; }
.pf-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--border-dim); color: var(--text-muted); }
.pf-row:last-child { border-bottom: none; }
.pf-icon { color: var(--green); font-size: 15px; }
.pf-icon { color: var(--green); font-weight: 700; flex-shrink: 0; }
.trust-row { display: flex; gap: 14px; padding-top: 4px; }
.trust-item { display: flex; gap: 5px; align-items: center; font-size: 11px; color: var(--text-muted); }
.product-desc-section { margin-bottom: 48px; border-top: 1px solid var(--border); padding-top: 36px; }
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab { padding: 9px 18px; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.desc-content { font-size: 13px; line-height: 1.8; color: var(--text-muted); max-width: 660px; }
.desc-content p { margin-bottom: 10px; }
.desc-content strong { color: var(--text); }
.desc-content h3 { font-size: 14px; color: var(--text); margin: 16px 0 8px; }
.desc-content ul { padding-left: 18px; }
.desc-content li { margin-bottom: 3px; }

/* Дистрибутив */
.distrib-content { max-width: 680px; }
.distrib-intro { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.distrib-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.distrib-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.distrib-link:hover { border-color: var(--accent); background: var(--accent-dim); }
.distrib-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.distrib-link-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.distrib-link-sub { font-size: 12px; color: var(--text-muted); }
.distrib-arrow { margin-left: auto; flex-shrink: 0; color: var(--text-dim); }
.distrib-note { font-size: 13px; color: var(--text-muted); background: var(--surface2); border-radius: 10px; padding: 12px 14px; line-height: 1.6; }

/* Як активувати */
.howto-content { max-width: 640px; }
.howto-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.howto-step { display: flex; align-items: flex-start; gap: 14px; }
.howto-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.howto-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.howto-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.howto-desc strong { color: var(--text); font-family: var(--mono); font-size: 12px; }
.howto-support {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface2);
  border-radius: 10px;
  padding: 12px 14px;
}
.howto-support a { color: var(--accent); text-decoration: none; }
.howto-support a:hover { text-decoration: underline; }
.related-section { padding-top: 36px; border-top: 1px solid var(--border); }

/* ─── ARCHIVE ─── */
.archive-header { padding: 36px 0 24px; }
.archive-title { font-size: 26px; font-weight: 700; letter-spacing: -1px; color: var(--text); }
.archive-desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ─── STATIC PAGES ─── */
.page-hero { text-align: center; padding: 44px 0 36px; max-width: 560px; margin: 0 auto 44px; }
.page-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 10px; letter-spacing: -1px; color: var(--text); }
.page-hero p { color: var(--text-muted); font-size: 15px; }

.activation-tabs { max-width: 680px; margin: 0 auto 48px; }
.act-tab-btns { display: flex; gap: 6px; margin-bottom: 24px; }
.act-tab-btn { padding: 7px 18px; border-radius: 5px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-muted); transition: all .2s; }
.act-tab-btn.active { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.steps-list { display: flex; flex-direction: column; gap: 18px; }
.step-item { display: flex; gap: 14px; align-items: flex-start; }
.step-item .step-num { width: 34px; height: 34px; border-radius: 6px; background: var(--accent-dim); border: 1px solid rgba(212,98,42,.25); color: var(--accent); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--mono); }
.step-body { padding-top: 4px; }
.step-title { font-weight: 600; font-size: 14px; margin-bottom: 3px; color: var(--text); }
.step-desc { color: var(--text-muted); line-height: 1.6; font-size: 13px; }
.faq-block { max-width: 680px; margin: 0 auto 48px; }
.faq-block h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; letter-spacing: -.4px; color: var(--text); }
.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.faq-q { font-weight: 600; margin-bottom: 5px; font-size: 13px; color: var(--text); }
.faq-a { color: var(--text-muted); line-height: 1.6; font-size: 13px; }
.help-cta { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; margin-bottom: 44px; }
.help-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.4px; color: var(--text); }
.help-cta p { color: var(--text-muted); margin-bottom: 18px; font-size: 13px; }
.guarantee-blocks { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 44px; }
.g-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 18px; text-align: center; }
.g-icon { font-size: 26px; margin-bottom: 12px; }
.g-block h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.g-block p { color: var(--text-muted); line-height: 1.6; font-size: 12px; }
.guarantee-details { max-width: 580px; margin: 0 auto 44px; }
.guarantee-details h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; color: var(--text); }
.gd-list { display: flex; flex-direction: column; gap: 8px; }
.gd-item { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; font-size: 13px; color: var(--text-muted); }
.gd-check { color: var(--green); font-weight: 700; flex-shrink: 0; font-size: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 44px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 18px; text-align: center; }
.contact-icon { font-size: 26px; margin-bottom: 10px; }
.contact-label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 6px; font-family: var(--mono); }
.contact-val { font-size: 15px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.contact-val a { color: var(--accent); }
.contact-note { font-size: 12px; color: var(--text-muted); }
.contact-form-block { max-width: 580px; margin: 0 auto 44px; }
.contact-form-block h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form input, .contact-form textarea { padding: 11px 13px; border: 1px solid var(--border); border-radius: 5px; font-size: 13px; background: var(--surface2); color: var(--text); outline: none; transition: border-color .2s; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.form-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(22,163,74,.2); padding: 12px 16px; border-radius: 5px; margin-bottom: 12px; font-weight: 600; font-size: 13px; }

/* ─── About page ─── */
.about-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 44px; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; }
.about-icon { font-size: 28px; margin-bottom: 8px; }
.about-num { font-size: 26px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.about-label { font-size: 13px; color: var(--text-muted); }
.about-text { max-width: 700px; }
.about-text h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.about-text p { color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.about-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.about-list li { color: var(--text-muted); font-size: 15px; }

/* ─── Info pages (delivery, returns) ─── */
.info-blocks { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.info-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 28px 24px; }
.info-block-highlight { border-color: var(--accent); background: rgba(var(--accent-rgb,220,104,54),.06); }
.info-block h2 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.info-block p { color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.info-list { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.info-list li { color: var(--text-muted); font-size: 14px; padding-left: 16px; position: relative; }
.info-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.info-list-ordered { counter-reset: ol-cnt; }
.info-list-ordered li { counter-increment: ol-cnt; }
.info-list-ordered li::before { content: counter(ol-cnt) '.'; color: var(--accent); font-weight: 700; }
.info-note { margin-top: 14px; padding: 10px 14px; background: var(--surface2); border-left: 3px solid var(--accent); border-radius: 4px; font-size: 13px; color: var(--text-muted); }
.faq-simple { display: flex; flex-direction: column; gap: 12px; }
.faq-q { font-weight: 600; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.faq-a { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ─── FAQ page ─── */
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 0; }
.faq-section-title { font-size: 16px; font-weight: 700; color: var(--accent); margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.faq-section-title:first-child { margin-top: 0; }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq-question { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.faq-answer { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.faq-answer a { color: var(--accent); }
.faq-cta { margin-top: 44px; text-align: center; }
.faq-cta p { color: var(--text-muted); margin-bottom: 14px; font-size: 15px; }

/* ─── Legal pages ─── */
.legal-text { max-width: 760px; }
.legal-date { font-size: 12px; color: var(--text-dim); margin-bottom: 28px; }
.legal-text h2 { font-size: 16px; font-weight: 700; color: var(--text); margin: 28px 0 8px; }
.legal-text p { color: var(--text-muted); font-size: 14px; line-height: 1.75; margin-bottom: 6px; }
.legal-text a { color: var(--accent); }

/* ─── Blog page ─── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .2s; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.blog-card-img { height: 160px; background: var(--surface2) center/cover no-repeat; }
.blog-card-img-placeholder { background: linear-gradient(135deg, var(--surface2) 0%, var(--border) 100%); }
.blog-card-body { padding: 16px; flex: 1; }
.blog-card-date { font-size: 11px; color: var(--text-dim); margin-bottom: 6px; font-family: var(--mono); }
.blog-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.blog-empty { text-align: center; }
.blog-empty > p { color: var(--text-muted); margin-bottom: 36px; font-size: 16px; }
.blog-coming { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.blog-coming-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: left; }
.blog-coming-icon { font-size: 28px; margin-bottom: 10px; }
.blog-coming-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.blog-coming-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ─── Downloads page ─── */
.distr-note { background: var(--accent-dim); border: 1px solid rgba(212,98,42,.2); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; color: var(--text-muted); margin-bottom: 36px; }
.distr-section { margin-bottom: 36px; }
.distr-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.distr-section-icon { font-size: 22px; }
.distr-section-header h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; }
.distr-table { display: flex; flex-direction: column; }
.distr-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.distr-name { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.distr-btns { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.distr-btn { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; transition: opacity .15s; white-space: nowrap; }
.distr-btn:hover { opacity: .8; }
.distr-btn-ua { background: #0057b7; color: #fff; }
.distr-btn-ru { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }
.distr-btn-en { background: #1e40af; color: #fff; }
.distr-btn-dl { background: var(--accent); color: #fff; }
.distr-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }
.distr-badge-warn { background: rgba(245,158,11,.15); color: #b45309; border-color: rgba(245,158,11,.3); }
.distr-sub-note { font-size: 12px; color: var(--text-muted); padding: 10px 0 4px; }
.distr-sub-note a { color: var(--accent); }
.distr-tips { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 36px; }
.distr-tips h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.distr-tips ul { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.distr-tips li { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.distr-tips a { color: var(--accent); }
.distr-contact { text-align: center; padding: 36px 0 8px; }
.distr-contact h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.distr-contact p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.distr-contact-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.distr-contact-btn { display: flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .15s; }
.distr-contact-btn:hover { opacity: .85; }
.distr-tg { background: #0088cc; color: #fff; }
.distr-email { background: var(--accent); color: #fff; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-stats { gap: 20px; }
  .features { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; gap: 6px; }
  .guarantee-blocks, .contact-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .product-title { font-size: 22px; }
  .trust-row { flex-wrap: wrap; }
  .header-search { display: none; }
  .archive-layout { flex-direction: column; }
  .archive-sidebar { width: 100%; position: static; }
  .sidebar-cats { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ─── CART PAGE ─── */
.ak-cart-page {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Back link */
.ak-cart-back {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 16px;
}
.ak-cart-back:hover { color: var(--text); }

/* Title */
.ak-cart-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ak-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 20px;
  background: var(--surface2);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Empty */
.ak-cart-empty {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

/* Cart items */
.ak-cart-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.ak-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
}
.ak-cart-item + .ak-cart-item {
  border-top: 1px solid var(--border);
}
.ak-cart-item-img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface2);
}
.ak-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ak-cart-item-info {
  flex: 1;
  min-width: 0;
}
.ak-cart-item-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ak-cart-item-name:hover { color: var(--accent); }
.ak-cart-item-unit {
  font-size: 12px;
  color: var(--text-muted);
}
.ak-cart-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Qty */
.ak-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 36px;
}
.ak-qty-btn {
  width: 32px;
  height: 36px;
  border: none;
  background: var(--surface2);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  transition: background .15s;
}
.ak-qty-btn:hover { background: var(--border); }
.ak-qty-input {
  width: 38px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  -moz-appearance: textfield;
}
.ak-qty-input::-webkit-inner-spin-button,
.ak-qty-input::-webkit-outer-spin-button { display: none; }

.ak-cart-item-subtotal {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}
.ak-cart-item-subtotal .woocommerce-Price-amount { color: inherit; }

/* Remove */
.ak-cart-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: color .15s, background .15s;
}
.ak-cart-remove:hover { color: #EF4444; background: rgba(239,68,68,.08); }

/* Coupon */
.ak-coupon {
  margin-top: 4px;
}
.ak-coupon-toggle {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}
.ak-coupon-toggle:hover { color: var(--text); }
.ak-coupon-body {
  display: none;
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}
.ak-coupon-body.open {
  max-height: 60px;
}
.ak-coupon-body input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
}
.ak-coupon-body button {
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Sale price display in product cards */
.product-price del {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: line-through;
  display: block;
  line-height: 1.2;
}
.product-price del .woocommerce-Price-amount { color: inherit; }
.product-price ins {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.product-price ins .woocommerce-Price-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.product-price ins .woocommerce-Price-currencySymbol {
  font-size: 12px;
  font-weight: 500;
}
/* When no sale (regular only) */
.product-price > .woocommerce-Price-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* Cross-sell block */
.ak-crosssell {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}
.ak-crosssell--active {
  border-color: #16A34A;
  background: rgba(22,163,74,.05);
}
.ak-cs-icon { font-size: 22px; flex-shrink: 0; }
.ak-cs-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ak-cs-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.ak-cs-text span {
  font-size: 12px;
  color: var(--text-muted);
}
.ak-cs-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background .15s;
}
.ak-cs-btn:hover { background: var(--border); }

/* ── RIGHT SIDEBAR ── */
.ak-cart-right {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Payment methods */
.ak-pay-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.ak-pay-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.ak-pay-methods {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ak-pay-method {
  display: flex;
  align-items: center;
}
.ak-pay-method svg { display: block; }
.ak-pay-visa svg { width: 56px; height: 28px; }
.ak-pay-mc   svg { width: 48px; height: 32px; }

/* Monobank badge */
.ak-mono-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  border-radius: 7px;
  padding: 5px 10px 5px 6px;
}
.ak-mono-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,.15);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  font-family: Arial Black, sans-serif;
}
.ak-mono-text {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-family: Arial, sans-serif;
  letter-spacing: .02em;
}

/* Order total */
.ak-order-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ak-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}
.ak-order-row .woocommerce-Price-amount { color: inherit; }
.ak-order-discount { color: #16A34A; }
.ak-order-total {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.ak-order-total .woocommerce-Price-amount { color: inherit; }

/* Email block */
.ak-email-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ak-email-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ak-email-label small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}
.ak-email-input {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
  width: 100%;
}
.ak-email-input:focus {
  outline: none;
  border-color: var(--accent);
}
.ak-email-error {
  display: none;
  font-size: 12px;
  color: #EF4444;
  margin-top: -4px;
}
.ak-checkout-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.ak-checkout-btn:hover { background: var(--btn-bg-hover); }
.ak-checkout-btn:active { transform: scale(.98); }

/* ─── Dark mode: інвертуємо зображення товарів ─── */
/* invert(1) hue-rotate(180deg) — білий фон стає темно-синім,
   текст білим, але кольори логотипів (помаранч, синій) зберігаються */
[data-theme="dark"] .product-card-img img,
[data-theme="dark"] .product-main-img img,
[data-theme="dark"] .ak-cart-item-img img {
  filter: invert(1) hue-rotate(180deg);
  transition: filter .3s ease;
}
[data-theme="light"] .product-card-img img,
[data-theme="light"] .product-main-img img,
[data-theme="light"] .ak-cart-item-img img {
  filter: none;
  transition: filter .3s ease;
}

/* Cart: mobile */
@media (max-width: 768px) {
  .ak-cart-page {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ak-cart-right {
    position: static;
  }
  .ak-cart-item-right { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
}

/* ── PC Selector ─────────────────────────────────────────── */
.pc-selector {
  margin: 20px 0 0;
}
.pc-selector-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.pc-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pc-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}
.pc-option:hover {
  border-color: var(--accent);
}
.pc-option.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface2));
}
.pc-option-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.pc-option-price {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.pc-option.active .pc-option-price {
  color: var(--accent);
  font-weight: 600;
}
.btn-single-buy {
  display: block;
  width: 100%;
  padding: 18px;
  margin-top: 14px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: opacity .15s;
  box-sizing: border-box;
}
.btn-single-buy:hover {
  opacity: .88;
  color: var(--btn-text);
}
@media (max-width: 600px) {
  .pc-options { grid-template-columns: repeat(2, 1fr); }
}
