/* ==========================================================================
   ip-kamery.tech main stylesheet
   Design tokens, typography, header, footer, common components.
   ========================================================================== */

/* ==========================================================================
   FONTS — local hosting (GDPR-friendly)
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
  /* Brand */
  --c-lime: #9DC93C;
  --c-lime-light: #C7E168;
  --c-lime-dark: #7FA82A;
  --c-lime-soft: #F0F6E0;

  /* Neutrals */
  --c-ink: #1F2228;
  --c-anthracite: #2A2D34;
  --c-graphite: #4A4E57;
  --c-steel: #6B7280;
  --c-silver: #A0A4AB;

  --c-bg: #FFFFFF;
  --c-bg-soft: #F7F8F5;
  --c-bg-cool: #F1F3F5;
  --c-border: #E5E7EB;
  --c-border-strong: #D0D4DA;

  --c-orange: #E85D2C;

  /* Typography */
  --f-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Layout */
  --container-max: 1280px;
  --header-height: 95px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(42, 45, 52, 0.04);
  --shadow-md: 0 4px 12px rgba(42, 45, 52, 0.08);
  --shadow-lg: 0 12px 24px rgba(42, 45, 52, 0.10);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
button { cursor: pointer; font-family: inherit; }

/* Number / SKU / price = mono */
.mono, code, kbd, samp, pre { font-family: var(--f-mono); font-feature-settings: 'zero', 'ss20'; }

/* Skip link for a11y */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--c-anthracite); color: #fff;
  padding: 8px 16px; z-index: 100;
}
.skip-link:focus { top: 0; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Wide container — used for header to give it more breathing room */
.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 16px;
  gap: 16px;
}
.section-head-left .eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-lime-dark);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.section-head-left h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-anthracite);
}
.section-head-link {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-anthracite);
  font-weight: 500;
  border-bottom: 1px solid var(--c-anthracite);
  padding-bottom: 1px;
  white-space: nowrap;
}
.section-head-link:hover {
  color: var(--c-lime-dark);
  border-bottom-color: var(--c-lime-dark);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border: none;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-lime { background: var(--c-lime); color: var(--c-anthracite); }
.btn-lime:hover { background: var(--c-lime-light); }
.btn-anthracite { background: var(--c-anthracite); color: #fff; }
.btn-anthracite:hover { background: var(--c-ink); }
.btn-outline {
  background: transparent;
  color: var(--c-anthracite);
  border: 1.5px solid var(--c-anthracite);
}
.btn-outline:hover { background: var(--c-anthracite); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ==========================================================================
   TOPBAR
   ========================================================================== */

.topbar {
  background: var(--c-anthracite);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; }
.topbar-right { color: var(--c-silver); }
.topbar a { color: var(--c-silver); }
.topbar a:hover { color: var(--c-lime); }
.topbar-stock { color: var(--c-lime); }
.topbar-stock::before { content: "●"; margin-right: 6px; }
.topbar-menu {
  display: flex; gap: 22px; list-style: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-logo { flex-shrink: 0; display: block; }
.site-logo svg { display: block; height: 72px; width: auto; }

/* Header search */
.site-search {
  flex: 1;
  max-width: 640px;
}
.site-search form { width: 100%; }
.search-input-wrap {
  display: flex;
  background: var(--c-bg-cool);
  border: 1.5px solid var(--c-anthracite);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.search-input-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(157, 201, 60, 0.25);
}
.search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--c-ink);
  outline: none;
}
.search-input-wrap input::placeholder {
  color: var(--c-silver);
  font-family: var(--f-mono);
  font-size: 13px;
}
.search-input-wrap button {
  background: var(--c-anthracite);
  color: #fff;
  border: none;
  padding: 0 24px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.15s ease;
}
.search-input-wrap button:hover { background: var(--c-ink); }
.search-hint {
  margin-top: 6px;
  padding: 0 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-steel);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.search-hint a { color: var(--c-graphite); }
.search-hint a:hover { color: var(--c-anthracite); }

/* ============================================================
   LIVE SEARCH SUGGEST DROPDOWN
   ============================================================ */

.site-search { position: relative; }
.search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 48px rgba(42, 45, 52, 0.16);
  max-height: 540px;
  overflow-y: auto;
  z-index: 100;
}
.search-suggest[hidden] { display: none; }

.search-suggest-inner {
  padding: 8px;
}

.search-suggest-loading,
.search-suggest-empty {
  padding: 24px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-steel);
}
.search-suggest-empty em {
  color: var(--c-anthracite);
  font-style: normal;
  font-weight: 600;
}

.search-suggest-section-title {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-steel);
  padding: 12px 12px 6px;
}

.search-suggest-cats-list,
.search-suggest-products-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Categories list — compact */
.search-suggest-cats-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--c-anthracite);
  font-size: 13px;
  font-weight: 500;
}
.search-suggest-cats-list a:hover {
  background: var(--c-bg-soft);
}
.search-suggest-cat-count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-steel);
  font-weight: 400;
}

/* Products list — image + title + meta + price */
.search-suggest-products-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
}
.search-suggest-products-list a:hover {
  background: var(--c-bg-soft);
}
.search-suggest-prod-img {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-suggest-prod-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.search-suggest-prod-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.search-suggest-prod-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-anthracite);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-suggest-prod-sku {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-steel);
}
.search-suggest-prod-stock {
  font-family: var(--f-mono);
  font-size: 10px;
}
.search-suggest-prod-stock.in {
  color: var(--c-lime-dark);
}
.search-suggest-prod-stock.out {
  color: var(--c-orange);
}
.search-suggest-prod-price {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-anthracite);
  white-space: nowrap;
}
.search-suggest-prod-price del {
  color: var(--c-silver);
  font-weight: 400;
  font-size: 0.85em;
  margin-right: 4px;
}
.search-suggest-prod-price ins {
  text-decoration: none;
  background: transparent;
}

.search-suggest-footer {
  padding: 12px;
  border-top: 1px solid var(--c-border);
  margin-top: 4px;
}
.search-suggest-all {
  display: block;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-anthracite);
  text-decoration: none;
}
.search-suggest-all em {
  font-style: normal;
  color: var(--c-lime-dark);
}
.search-suggest-all:hover {
  color: var(--c-lime-dark);
}

/* Header actions */
.header-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--r-md);
  color: var(--c-graphite);
  position: relative;
  min-width: 56px;
}
.header-action:hover {
  background: var(--c-bg-soft);
  color: var(--c-anthracite);
}
.header-action svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}
.header-action span {
  font-size: 10px;
  margin-top: 4px;
  font-weight: 500;
}
.cart-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--c-lime);
  color: var(--c-anthracite);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}
.cart-badge[data-cart-count="0"] { display: none; }

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  color: var(--c-anthracite);
}

/* ==========================================================================
   MAIN NAV
   ========================================================================== */

.mainnav {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: relative;
  z-index: 49;
  margin: 0;
}

/* Reset main wrapper — no extra margins */
.site-main {
  margin: 0;
  padding: 0;
}
.site-main > section:first-child,
.site-main > div:first-child {
  margin-top: 0 !important;
}

.mainnav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.mainnav-inner::-webkit-scrollbar { display: none; }
.mainnav-list {
  display: flex;
  list-style: none;
  gap: 0;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
}
.mainnav-list .menu-item:first-child > a {
  padding-left: 0;
}
.mainnav-list .menu-item:last-child > a {
  padding-right: 0;
}
.mainnav-list a {
  padding: 14px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-graphite);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.mainnav-list a:hover {
  color: var(--c-anthracite);
  border-bottom-color: var(--c-border-strong);
}
.mainnav-list .has-mega > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}
.mainnav-list .has-mega:hover > a::after,
.mainnav-list .has-mega:focus-within > a::after {
  transform: rotate(180deg);
  opacity: 1;
}
.mainnav-list .current-menu-item > a,
.mainnav-list .current-menu-parent > a {
  color: var(--c-anthracite);
  border-bottom-color: var(--c-lime);
}

/* "Obchod" item — primary catalog entry, slightly emphasized */
.mainnav-list .menu-shop > a {
  font-weight: 700;
}
.mainnav-list .menu-shop > a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2D34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Shop mega panel — single row of all categories, no sublist */
.mega-col-shop {
  margin-bottom: 12px;
}
.mega-col-shop .mega-col-title {
  border-bottom: none;
  padding-bottom: 0;
}

/* Mega menu panel */
.mainnav-list .menu-item { position: static; }
.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 12px 24px rgba(42, 45, 52, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 48;
  pointer-events: none;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.mainnav-list .has-mega:hover > .mega-panel,
.mainnav-list .has-mega:focus-within > .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
  pointer-events: auto;
}
.mega-panel-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 24px 16px;
}

.mega-children {
  column-count: 4;
  column-gap: 28px;
  column-fill: balance;
}

@media (max-width: 1100px) {
  .mega-children { column-count: 3; }
}
@media (max-width: 800px) {
  .mega-children { column-count: 2; }
}

.mega-col {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

/* Mega footer — "Pozrieť všetky [Kategória]" CTA */
.mega-footer {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.mega-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-anthracite);
  border-bottom: 1px solid var(--c-anthracite);
  padding-bottom: 1px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mega-all-link:hover {
  color: var(--c-lime-dark);
  border-bottom-color: var(--c-lime-dark);
}
.mega-all-count {
  background: var(--c-lime);
  color: var(--c-anthracite);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
}
.mega-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-anthracite);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 4px;
  text-decoration: none;
  line-height: 1.2;
}
.mega-col-title:hover { color: var(--c-lime-dark); }

.mega-col-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--c-bg-cool);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--c-anthracite);
}
.mega-col-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Eliminate white backgrounds on product/category photos. */
  mix-blend-mode: multiply;
}
.mega-col-thumb svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
  color: var(--c-graphite);
}
.mega-col-title:hover .mega-col-thumb svg {
  color: var(--c-lime-dark);
}

.mega-col-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-count,
.mega-all-count {
  display: none !important;
}
.mega-sublist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
}
.mega-sublist a {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  color: var(--c-graphite);
  line-height: 1.4;
  text-decoration: none;
}
.mega-sublist a:hover { color: var(--c-anthracite); }

/* ==========================================================================
   PRODUCT CARD (used everywhere)
   ========================================================================== */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.prod-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.prod-card:hover {
  border-color: var(--c-anthracite);
  box-shadow: var(--shadow-md);
}

.prod-img {
  aspect-ratio: 1;
  background: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}
.prod-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  /* Eliminates white backgrounds on product photos by multiply-blending
     with the (white) background. Pure white pixels become transparent;
     darker pixels remain. Doesn't help with cream/grey product backgrounds. */
  mix-blend-mode: multiply;
}
.prod-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-graphite);
}
.prod-img-placeholder svg {
  width: 60%; height: 60%;
  stroke-width: 1.4;
  opacity: 0.5;
}

.prod-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.prod-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.prod-badge.new { background: var(--c-lime); color: var(--c-anthracite); }
.prod-badge.ai { background: var(--c-anthracite); color: var(--c-lime); }
.prod-badge.sale { background: var(--c-orange); color: #fff; }

.prod-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.prod-brand {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--c-steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prod-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--c-anthracite);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-model {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-steel);
}
.prod-attrs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.prod-attr {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-graphite);
  background: var(--c-bg-cool);
  padding: 2px 6px;
  border-radius: 3px;
}
.prod-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: auto;
  padding-top: 4px;
}
.prod-stock.in { color: var(--c-lime-dark); }
.prod-stock.in::before { content: "●"; color: var(--c-lime); }
.prod-stock.backorder { color: var(--c-graphite); }
.prod-stock.backorder::before { content: "○"; color: var(--c-graphite); }

.prod-foot {
  padding: 12px 14px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--c-bg-soft);
  gap: 8px;
}
.prod-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-anthracite);
  font-family: var(--f-mono);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.prod-price-vat {
  display: block;
  font-size: 10px;
  color: var(--c-steel);
  font-weight: 400;
  font-family: var(--f-mono);
  margin-top: 2px;
}
.prod-cart {
  background: var(--c-anthracite);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.prod-cart:hover {
  background: var(--c-lime);
  color: var(--c-anthracite);
}
.prod-cart svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--c-anthracite);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h5 {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: var(--f-mono);
}
.footer-menu, .footer-bottom-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bottom-menu {
  flex-direction: row;
  gap: 16px;
}
.footer-menu a, .footer-bottom-menu a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
}
.footer-menu a:hover, .footer-bottom-menu a:hover {
  color: var(--c-lime);
}
.footer-menu span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
}
.footer-brand .footer-logo {
  display: block;
  margin-bottom: 16px;
}
.footer-brand .footer-logo svg {
  height: 70px;
  width: auto;
}
.footer-about {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.15s ease;
}
.footer-socials a:hover {
  background: var(--c-lime);
  color: var(--c-anthracite);
}
.footer-address {
  white-space: pre-line;
  line-height: 1.55;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  gap: 16px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; overflow: hidden; }
  /* Row 1: logo left (natural width), gap auto, actions right */
  .site-logo { flex-shrink: 0; margin-right: auto; }
  .header-actions { flex-shrink: 0; }
  /* Row 2: full-width search */
  .site-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }
  .search-input-wrap { width: 100%; }
  .mobile-menu-toggle { display: inline-flex; }

  /* Mobile nav drawer — full-width vertical menu below header */
  .mainnav {
    display: none;
    background: #fff;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
  }
  .mainnav.is-open { display: block; }
  .mainnav .container { padding: 0; }
  .mainnav-inner { padding: 0; overflow: visible; }

  .mainnav-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
  }
  .mainnav-list > li {
    padding: 0 !important;
    border-bottom: 1px solid var(--c-border);
    position: relative;
  }
  .mainnav-list > li:last-child { border-bottom: none; }
  .mainnav-list > li > a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--c-anthracite);
    width: 100%;
  }
  .mainnav-list > li > a:hover {
    background: var(--c-bg-soft);
  }

  /* Mega menu becomes inline expandable instead of dropdown */
  .menu-item.has-mega > a::after {
    content: "+";
    margin-left: auto;
    font-size: 18px;
    font-weight: 400;
    color: var(--c-steel);
    transition: transform 0.15s ease;
  }
  .menu-item.has-mega.is-expanded > a::after {
    content: "−";
  }
  .mega-panel {
    display: none !important;
    position: static !important;
    background: var(--c-bg-soft);
    box-shadow: none;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .menu-item.has-mega.is-expanded .mega-panel {
    display: block !important;
  }
  .mega-panel-inner { padding: 8px 0 !important; }
  .mega-children {
    column-count: 1 !important;
    display: flex !important;
    flex-direction: column;
  }
  .mega-col {
    padding: 0 !important;
    margin: 0 !important;
    break-inside: auto;
  }
  .mega-col-title {
    padding: 10px 20px 10px 32px !important;
    gap: 10px !important;
    font-size: 14px !important;
  }
  .mega-col-thumb {
    width: 24px !important;
    height: 24px !important;
  }
  .mega-sublist {
    padding: 0 0 4px 0 !important;
  }
  .mega-sublist li a {
    padding: 6px 20px 6px 64px !important;
    font-size: 13px !important;
    color: var(--c-graphite) !important;
  }
  .mega-footer {
    padding: 12px 20px !important;
    border-top: 1px solid var(--c-border) !important;
    background: #fff;
  }

  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; gap: 6px; align-items: flex-start; }
  .topbar-left { flex-wrap: wrap; gap: 12px; }
  .topbar-right { flex-wrap: wrap; gap: 12px; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Logo + actions compact on phones */
  .header-inner { gap: 8px; }
  .site-logo { font-size: 18px; }
  .header-actions { gap: 4px; }
  /* Hide text labels under icons (Účet/Obľúbené/Košík) but keep cart badge */
  .header-action > span:not(.cart-badge) {
    display: none;
  }
  /* Icons-only — compact, no min-width, no extra padding */
  .header-action {
    min-width: 0;
    padding: 8px;
  }
}
