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

:root {
  --navy: #0f2040;
  --navy-2: #152a52;
  --navy-3: #1a3360;
  --mid: #2d4070;
  --orange: #F97316;
  --orange-2: #ea6a0a;
  --orange-bg: #FFF4ED;
  --border: #E2E8F0;
  --border-2: #CBD5E1;
  --bg: #F8FAFC;
  --bg-2: #F1F5F9;
  --white: #FFFFFF;
  --text: #0f2040;
  --text-2: #3D5080;
  --text-3: #7A8FB0;
  --red: #E84B4B;
  --red-bg: #FFF0F0;
  --blue: #3B82F6;
  --blue-bg: #EEF3FF;
  --green: #10B981;
  --green-bg: #EEFAF5;
  --amber: #F59E0B;
  --amber-bg: #FFF8EE;
  --accent: #F97316;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 8px rgba(15,32,64,.06);
  --shadow-md: 0 4px 16px rgba(15,32,64,.1);
  --shadow-lg: 0 8px 32px rgba(15,32,64,.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
@media(max-width:1024px) { .grid-5 { grid-template-columns: repeat(4,1fr); } }
@media(max-width:900px) { .grid-4,.grid-5 { grid-template-columns: repeat(3,1fr); } }
@media(max-width:700px) { .grid-3,.grid-4,.grid-5 { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .grid-2,.grid-3,.grid-4,.grid-5 { grid-template-columns: 1fr 1fr; } }

/* Topbar */
.topbar { background: var(--navy); color: rgba(255,255,255,.65); font-size: 12px; height: 36px; padding: 0; display: flex; justify-content: space-between; align-items: center; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; display: flex; justify-content: space-between; align-items: center; }
/* Sticky site header = topbar + header bar together */
.site-header-sticky { position: sticky; top: 0; z-index: 300; box-shadow: 0 2px 12px rgba(15,32,64,.10); }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-left span { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.8); }
.topbar-left svg { width: 13px; height: 13px; stroke: var(--orange); fill: none; stroke-width: 2; flex-shrink: 0; }
.topbar-dot { color: rgba(255,255,255,.2); }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right span { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.65); }
.topbar-right span svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.topbar-right a { color: rgba(255,255,255,.55); font-size: 12px; display: flex; align-items: center; gap: 5px; transition: color .15s; }
.topbar-right a:hover { color: #fff; }
.topbar-right strong { color: rgba(255,255,255,.9); }

/* Header */
.header { background: var(--white); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; height: 72px; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Logo */
.logo { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; cursor: pointer; text-decoration: none; line-height: 1; }
.logo-name { font-size: 26px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.logo-name .logo-mega { color: var(--navy); }
.logo-name .logo-toner { color: var(--orange); }
.logo-sub { font-size: 9px; color: var(--text-3); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }

/* Search */
.header-search { flex: 1; display: flex; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; transition: border-color .15s; max-width: 580px; }
.header-search:focus-within { border-color: var(--border-2); }
.header-search input { flex: 1; padding: 12px 16px; border: none; background: transparent; font-size: 14px; color: var(--text); outline: none; }
.header-search input::placeholder { color: var(--text-3); }
.header-search button { background: var(--orange); color: #fff; border: none; padding: 0 24px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background .15s; white-space: nowrap; }
.header-search button:hover { background: var(--orange-2); }
.header-search button svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.2; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.hdr-icon-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; color: var(--text-2); text-decoration: none; transition: color .15s; }
.hdr-icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.hdr-icon-btn span { font-size: 10px; font-weight: 500; white-space: nowrap; }
.hdr-icon-btn:hover { color: var(--navy); }
.btn-cart { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-2); padding: 6px 12px; font-weight: 700; cursor: pointer; background: none; border: none; transition: all .15s; text-decoration: none; position: relative; }
.btn-cart:hover { color: var(--navy); }
.btn-cart svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.btn-cart .cart-label { font-size: 10px; font-weight: 500; }
.cart-count { position: absolute; top: 2px; right: 4px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 900; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Nav */
.nav { background: var(--navy); }
.nav-inner { display: flex; height: 46px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; gap: 0; position: relative; }
.nav-item { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.75); padding: 0 16px; height: 100%; display: flex; align-items: center; cursor: pointer; position: relative; transition: color .12s,background .12s; gap: 5px; white-space: nowrap; text-decoration: none; }
.nav-item svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: #fff; font-weight: 600; }
.nav-item.active::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px; background: var(--orange); border-radius: 2px 2px 0 0; }
.nav-item.hot { color: var(--orange) !important; font-weight: 700; }
.nav-item.hot:hover { color: #ffb37a !important; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 340px; background: #0a1a3a; }
.hero-image-wrap { position: absolute; inset: 0; z-index: 1; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.hero-image-fade {
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,26,58,1) 0%,
    rgba(10,26,58,.95) 28%,
    rgba(10,26,58,.7) 48%,
    rgba(10,26,58,0) 70%
  );
}
.hero-inner { position: relative; z-index: 2; padding: 56px 20px 56px calc((100vw - 1200px)/2 + 20px); display: flex; flex-direction: column; justify-content: center; width: 54%; min-width: 0; }
.hero h1 { font-size: 42px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 10px; letter-spacing: -1.5px; }
.hero h1 em { color: var(--orange); font-style: normal; display: block; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 24px; }
.hero-search-wrap { display: flex; border-radius: 8px; overflow: hidden; max-width: 480px; margin-bottom: 22px; box-shadow: 0 4px 24px rgba(0,0,0,.35); }
.hero-search-wrap input { flex: 1; padding: 14px 18px; border: none; font-size: 14px; color: var(--text); outline: none; font-family: var(--font); background: #fff; }
.hero-search-wrap input::placeholder { color: var(--text-3); }
.hero-search-wrap button { background: var(--orange); color: #fff; border: none; padding: 0 28px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: var(--font); transition: background .15s; }
.hero-search-wrap button:hover { background: var(--orange-2); }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-badge-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.75); }
.hero-badge-item svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.6); fill: none; stroke-width: 2; flex-shrink: 0; }
@media(max-width:900px) { .hero-inner { width: 100%; padding: 32px 16px; } .hero h1 { font-size: 26px; } .hero-image-fade { background: linear-gradient(180deg, rgba(10,26,58,.85) 0%, rgba(10,26,58,.6) 100%); } }
@media(max-width:600px) { .hero h1 { font-size: 22px; } .hero-inner { padding: 28px 14px; } }

/* USP Quick-links strip */
.usp-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.usp-strip-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.usp-item { display: flex; align-items: center; gap: 14px; padding: 18px 24px; cursor: pointer; transition: background .15s; border-right: 1px solid var(--border); text-decoration: none; color: var(--text); }
.usp-item:last-child { border-right: none; }
.usp-item:hover { background: var(--bg); }
.usp-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.usp-icon svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.usp-title { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.usp-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.3; }
.usp-arrow { margin-left: auto; opacity: .25; flex-shrink: 0; }
.usp-arrow svg { width: 16px; height: 16px; stroke: var(--text); fill: none; stroke-width: 2; }
@media(max-width:700px) { .usp-strip-inner { grid-template-columns: 1fr 1fr; } .usp-item:nth-child(2) { border-right: none; } .usp-item { border-bottom: 1px solid var(--border); } }

/* Section */
.section-wrap { padding: 32px 20px 0; max-width: 1200px; margin: 0 auto; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.section-more { font-size: 13px; font-weight: 600; color: var(--navy); opacity: .6; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: opacity .15s; text-decoration: none; }
.section-more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.section-more:hover { opacity: 1; }

/* Product card */
.product-card { background: var(--white); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; transition: all .2s; display: flex; flex-direction: column; box-shadow: var(--shadow); text-decoration: none; }
.product-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-img { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .3s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-img svg { width: 56px; height: 56px; stroke: var(--border-2); fill: none; stroke-width: 1.2; }
.product-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.badge-sale { background: var(--green); color: #fff; }
.badge-new { background: var(--blue); color: #fff; }
.badge-top { background: var(--blue); color: #fff; }
.badge-akcia { background: var(--red); color: #fff; }
.badge-eko { background: var(--green); color: #fff; }
.product-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.product-card-brand { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.product-card-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.product-card-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.product-card-meta svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--bg-2); gap: 8px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--red); line-height: 1; }
.product-price-old { font-size: 11px; color: var(--text-3); text-decoration: line-through; margin-top: 2px; }
.product-stock-ok { font-size: 11px; color: var(--green); font-weight: 600; margin-top: 2px; }
.add-to-cart { background: var(--navy); color: #fff; border: none; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; flex-shrink: 0; }
.add-to-cart:hover { background: var(--orange); }
.add-to-cart:disabled { background: var(--border-2); cursor: not-allowed; }
.add-to-cart svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* Category cards */
.cat-card { background: var(--white); border-radius: 12px; border: 1px solid var(--border); padding: 16px 18px; cursor: pointer; transition: all .18s; display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow); text-decoration: none; }
.cat-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.cat-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-name { font-size: 13px; font-weight: 700; color: var(--text); }
.cat-count { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.cat-arrow { margin-left: auto; opacity: .3; }
.cat-arrow svg { width: 16px; height: 16px; stroke: var(--text); fill: none; stroke-width: 2; }

/* Brands logos */
.brands-section { padding: 0 20px 0; max-width: 1200px; margin: 28px auto 0; }
.brands-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.brands-grid { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.brand-logo-item { display: flex; align-items: center; justify-content: center; padding: 22px 16px; border-right: 1px solid var(--border); cursor: pointer; transition: background .15s; text-decoration: none; min-height: 80px; }
.brand-logo-item:last-child { border-right: none; }
.brand-logo-item:hover { background: var(--bg); }
.brand-logo-text { font-size: 16px; font-weight: 900; color: var(--text-2); opacity: .6; transition: all .2s; letter-spacing: -.5px; }
.brand-logo-item:hover .brand-logo-text { opacity: 1; color: var(--text); }
.brands-show-all { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 16px; cursor: pointer; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--navy); opacity: .6; gap: 4px; transition: opacity .15s; }
.brands-show-all:hover { opacity: 1; }
.brands-show-all svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }
@media(max-width:768px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }

/* Bottom USP */
.bottom-usp { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 36px; }
.bottom-usp-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 28px 20px; }
.b-usp-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--border); }
.b-usp-item:last-child { border-right: none; }
.b-usp-icon svg { width: 32px; height: 32px; stroke: var(--navy); fill: none; stroke-width: 1.5; }
.b-usp-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
.b-usp-sub { font-size: 11px; color: var(--text-3); line-height: 1.3; }
@media(max-width:768px) { .bottom-usp-inner { grid-template-columns: repeat(2,1fr); gap: 16px; padding: 20px 16px; } .b-usp-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; } .b-usp-item:last-child,.b-usp-item:nth-last-child(-n+2) { border-bottom: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: all .15s; white-space: nowrap; font-family: var(--font); }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); }
.btn-secondary { background: var(--white); color: var(--text-2); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid #fca5a5; }
.btn-danger:hover { background: #fee2e2; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-control { width: 100%; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 10px 13px; color: var(--text); font-size: 14px; transition: border-color .15s; font-family: var(--font); }
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,34,59,.07); }
.form-control::placeholder { color: var(--text-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:600px) { .form-row { grid-template-columns: 1fr; } }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(16,185,129,.2); }
.badge-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(245,158,11,.2); }
.badge-red { background: var(--red-bg); color: var(--red); border: 1px solid rgba(232,75,75,.2); }
.badge-gray { background: var(--bg-2); color: var(--text-3); border: 1px solid var(--border); }
.badge-blue { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(59,130,246,.2); }
.badge-navy { background: var(--navy); color: #fff; }

/* Alert */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(16,185,129,.2); }
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid rgba(232,75,75,.2); }
.alert-info { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(59,130,246,.2); }

/* Table */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 11px 16px; background: var(--bg); font-size: 11px; color: var(--text-3); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
td { padding: 13px 16px; color: var(--text); border-bottom: 1px solid var(--bg-2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* Cart */
.cart-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--bg-2); }
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; background: var(--bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img svg { width: 32px; height: 32px; stroke: var(--border-2); fill: none; stroke-width: 1.2; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--white); }
.qty-btn { background: none; border: none; padding: 5px 12px; cursor: pointer; font-size: 16px; color: var(--text-3); transition: all .15s; }
.qty-btn:hover { background: var(--bg); color: var(--navy); }
.qty-val { padding: 5px 10px; font-size: 14px; font-weight: 700; min-width: 30px; text-align: center; color: var(--text); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-btn { padding: 7px 13px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-2); background: var(--white); transition: all .15s; }
.page-btn.active, .page-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Filter */
.filter-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.filter-section { margin-bottom: 18px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-title { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--bg-2); }
.filter-item { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 6px 10px; border-radius: 7px; transition: all .12s; cursor: pointer; text-decoration: none; }
.filter-item:hover { background: var(--bg); color: var(--text); }
.filter-item.active { background: var(--navy); color: #fff; font-weight: 600; }
.filter-item-count { font-size: 11px; opacity: .6; }

/* Brands bar (legacy) */
.brands-bar { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 22px 28px; margin-top: 24px; box-shadow: var(--shadow); }
.brands-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); text-align: center; margin-bottom: 16px; }
.brands-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.brand-pill { padding: 8px 20px; border-radius: 8px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 800; color: var(--text-2); cursor: pointer; transition: all .15s; background: var(--bg); letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.brand-pill svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.brand-pill:hover { border-color: var(--navy); color: var(--navy); background: var(--blue-bg); }

/* Footer */
.footer { background: var(--navy); padding: 48px 20px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 36px; }
.footer-brand-name { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 10px; }
.footer-brand-name .f-mega { color: #fff; }
.footer-brand-name .f-toner { color: var(--orange); }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.7; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.footer-tag { padding: 4px 10px; border-radius: 5px; border: 1px solid rgba(255,255,255,.1); font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .04em; }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.45); cursor: pointer; transition: color .12s; display: flex; align-items: center; gap: 8px; }
.footer-links a svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; opacity: .6; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.3); max-width: 1200px; margin: 0 auto; }
@media(max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:500px) { .footer-grid { grid-template-columns: 1fr; } }

/* Toast */
#toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast-item { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: slideIn .25s cubic-bezier(.22,1,.36,1); max-width: 340px; border: 1px solid rgba(255,255,255,.1); }
.toast-item.success { border-left: 3px solid var(--green); }
.toast-item.error { border-left: 3px solid var(--red); }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Misc */
.text-muted { color: var(--text-3); }
.text-sm { font-size: 13px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.divider { border: none; border-top: 1px solid var(--bg-2); margin: 20px 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state svg { width: 48px; height: 48px; stroke: var(--border-2); fill: none; stroke-width: 1.2; margin: 0 auto 16px; }
.empty-state p { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-state span { font-size: 13px; }

/* Mega menu */
.nav-mega-wrap { position: static; height: 100%; display: flex; align-items: center; }
.nav-item-dd { background: none; border: none; font-family: var(--font); cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 0 16px; height: 46px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.75); transition: color .12s, background .12s; white-space: nowrap; position: relative; }
.nav-item-dd svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-item-dd:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item-dd.active { color: #fff; font-weight: 600; }
.nav-item-dd.active::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px; background: var(--orange); border-radius: 2px 2px 0 0; }
.dd-arrow { width: 12px !important; height: 12px !important; opacity: .45; transition: transform .2s, opacity .2s; }
.nav-mega-wrap.open .dd-arrow { transform: rotate(180deg); opacity: .9; }
.mega-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 2px solid var(--orange); border-bottom: 1px solid var(--border); box-shadow: 0 12px 40px rgba(15,32,64,.13); z-index: 500; }
.nav-mega-wrap.open .mega-panel { display: block; }
.mega-inner { max-width: 1200px; margin: 0 auto; padding: 20px 20px 18px; }
.mega-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--bg-2); }
.mega-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-icon svg { width: 17px; height: 17px; stroke-width: 1.8; fill: none; }
.mega-icon-ink { background: #EEF3FF; } .mega-icon-ink svg { stroke: #3B82F6; }
.mega-icon-toner { background: #F2F4F8; } .mega-icon-toner svg { stroke: #374151; }
.mega-icon-acc { background: #EEFAF5; } .mega-icon-acc svg { stroke: #10B981; }
.mega-title { font-size: 15px; font-weight: 800; color: var(--navy); }
.mega-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.mega-brands-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mega-brand-col { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 13px 10px; display: flex; flex-direction: column; gap: 6px; }
.mega-brand-col:hover { border-color: var(--border-2); background: #fff; }
.mega-brand-head { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.mega-brand-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mega-link { display: block; text-decoration: none; line-height: 1; }
.mega-link:hover .mega-badge { filter: brightness(.93); }
.mega-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 5px; letter-spacing: .01em; }
.mega-badge-compat { background: #DBEAFE; color: #1D4ED8; }
.mega-badge-premium { background: #EDE9FE; color: #5B21B6; }
.mega-badge-orig { background: #D1FAE5; color: #065F46; }
.mega-badge-opc { background: #FFF8EE; color: #92400E; border: 1px dashed #F59E0B; }
.mega-footer-links { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--bg-2); text-align: right; }
.mega-footer-all { font-size: 12px; font-weight: 700; color: var(--navy); opacity: .55; text-decoration: none; transition: opacity .15s; }
.mega-footer-all:hover { opacity: 1; }
.mega-acc-grid { display: flex; gap: 10px; }
.mega-acc-card { flex: 0 0 220px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); transition: all .15s; display: flex; flex-direction: column; gap: 3px; }
.mega-acc-card:hover { border-color: var(--navy); background: #EEF3FF; box-shadow: var(--shadow-md); }
.mega-acc-icon { width: 34px; height: 34px; background: var(--white); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; border: 1px solid var(--border); }
.mega-acc-icon svg { width: 17px; height: 17px; stroke: var(--navy); fill: none; stroke-width: 1.8; }
.mega-acc-label { font-size: 14px; font-weight: 800; color: var(--navy); }
.mega-acc-sub { font-size: 11px; color: var(--text-3); }

/* Search dropdown */
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--bg-2); transition: background .1s; }
.sr-item:hover { background: var(--bg); }
.sr-item:last-of-type { border-bottom: none; }
.sr-img { width: 46px; height: 46px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border: 1px solid var(--border); }
.sr-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.sr-img svg { width: 22px; height: 22px; stroke: var(--border-2); fill: none; stroke-width: 1.3; }
.sr-name { font-size: 13px; font-weight: 700; line-height: 1.35; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-cat { font-size: 11px; color: var(--text-3); }
.sr-price { font-size: 14px; font-weight: 800; color: var(--navy); white-space: nowrap; margin-left: 8px; }
.sr-section-lbl { padding: 8px 14px 4px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); background: var(--bg); }
.sr-msg { padding: 18px; text-align: center; color: var(--text-3); font-size: 13px; }

/* Hamburger */
.hbg-btn { display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text); }
.hbg-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 800; }
.hbg-overlay.open { display: block; }
.hbg-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 90vw; background: #fff; z-index: 900; overflow-y: auto; transform: translateX(-100%); transition: transform .27s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.hbg-panel.open { transform: translateX(0); }
.hbg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--bg-2); flex-shrink: 0; }
.hbg-head-title { font-size: 15px; font-weight: 700; color: var(--navy); }
.hbg-close { background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-3); }
.hbg-body { flex: 1; padding: 10px 0; }
.hbg-sec { border-bottom: 1px solid var(--bg-2); }
.hbg-sec-head { display: flex; align-items: center; padding: 13px 18px; cursor: pointer; gap: 10px; user-select: none; }
.hbg-sec-head:hover { background: var(--bg); }
.hbg-sec-label { font-size: 14px; font-weight: 700; color: var(--text); flex: 1; }
.hbg-sec-cnt { font-size: 11px; color: var(--text-3); }
.hbg-arr { flex-shrink: 0; width: 16px; height: 16px; stroke: var(--text-3); fill: none; stroke-width: 2; transition: transform .2s; }
.hbg-sec-head.open .hbg-arr { transform: rotate(180deg); }
.hbg-sec-body { display: none; padding: 0 0 8px; }
.hbg-sec-body.open { display: block; }
.hbg-brand-head { display: flex; align-items: center; padding: 9px 18px 9px 32px; cursor: pointer; gap: 8px; }
.hbg-brand-head:hover { background: var(--bg); }
.hbg-brand-label { font-size: 13px; font-weight: 600; color: var(--text-2); flex: 1; }
.hbg-brand-cnt { font-size: 11px; color: var(--text-3); }
.hbg-brand-arr { flex-shrink: 0; width: 14px; height: 14px; stroke: var(--text-3); fill: none; stroke-width: 2; transition: transform .2s; }
.hbg-brand-head.open .hbg-brand-arr { transform: rotate(180deg); }
.hbg-brand-body { display: none; padding: 0 0 4px; }
.hbg-brand-body.open { display: block; }
.hbg-model { display: block; padding: 7px 18px 7px 48px; font-size: 12px; color: var(--text-3); text-decoration: none; transition: background .1s; }
.hbg-model:hover,.hbg-model.active { background: var(--bg); color: var(--navy); font-weight: 600; }
.hbg-sec-link { display: block; padding: 11px 18px; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--bg-2); }
.hbg-sec-link:hover { background: var(--bg); color: var(--navy); }
@media(min-width:769px) { .hbg-btn { display: none !important; } }
@media(max-width:768px) { .nav { display: none; } }

/* Mobile responsive */
@media(max-width:768px) {
  .topbar { display: none; }
  .header-inner { height: auto; min-height: 56px; padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
  .logo-sub { display: none; }
  .logo-name { font-size: 20px !important; }
  #searchWrap,.header-search { display: none !important; }
  .header-actions { margin-left: auto; gap: 4px; flex-shrink: 0; }
  .hdr-icon-btn { padding: 8px; }
  .hdr-icon-btn span { display: none; }
  .btn-cart { padding: 8px 10px; }
  .cart-label { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding: 28px 16px; max-width: 100%; }
  .hero h1 { font-size: 24px; }
  .hero-desc { font-size: 14px; }
  .usp-strip-inner { grid-template-columns: 1fr 1fr; }
  .usp-item { padding: 14px 16px; }
  .usp-sub { display: none; }
  .section-wrap { padding: 20px 12px 0; }
  .grid-2,.grid-3,.grid-4,.grid-5 { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .brands-section { padding: 0 12px; margin-top: 20px; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .bottom-usp-inner { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
}
@media(max-width:480px) {
  .hero h1 { font-size: 20px; }
  .product-price { font-size: 15px; }
  .product-card-name { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Search overlay mobile */
#searchOverlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9000; padding: 60px 16px 16px; }

/* No horizontal scroll */
/* overflow-x: clip allows sticky to work unlike overflow-x: hidden */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100vw; }
* { box-sizing: border-box; }

/* Products page */
@media(max-width:768px) {
  .products-layout { grid-template-columns: 1fr !important; }
  .products-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .filter-toggle-btn { display: flex !important; }
  .filter-body { display: none; }
  .filter-body.open { display: block; }
}

/* Popup */
@media(max-width:600px) {
  #welcomePopup > div { flex-direction: column !important; max-width: 360px; }
  #welcomePopup > div > div:last-child { width: 100% !important; padding: 16px !important; flex-direction: row !important; gap: 14px; border-radius: 0 0 20px 20px; }
}

/* Tables mobile */
@media(max-width:600px) { .table-wrap { overflow-x: auto; } table { min-width: 480px; } }

/* ── Produkt žetóny — farba ─────────────────────────────────── */
.badge-color-black   { background:#1f2937 !important; color:#fff !important; }
.badge-color-cyan    { background:#0891b2 !important; color:#fff !important; }
.badge-color-magenta { background:#be185d !important; color:#fff !important; }
.badge-color-yellow  { background:#ca8a04 !important; color:#fff !important; }
.badge-color-multi   { background:#7c3aed !important; color:#fff !important; }
.badge-color-color   { background:#059669 !important; color:#fff !important; }
.badge-color-photo   { background:#9333ea !important; color:#fff !important; }
.badge-color-grey    { background:#6b7280 !important; color:#fff !important; }
.badge-capacity      { background:rgba(15,32,64,.82) !important; color:#fff !important; }
.prod-badge-wrap     { position:absolute;bottom:6px;left:6px;display:flex;flex-wrap:wrap;gap:3px;z-index:2; }
.prod-badge-wrap span { padding:2px 8px;border-radius:20px;font-size:10px;font-weight:700;letter-spacing:.03em;box-shadow:0 1px 3px rgba(0,0,0,.2); }

/* ── Product detail — kompaktnejší layout ───────────────────── */
/* Zúženie kontajnera na detail stránke */
body.page-product .container,
body.product-page .container,
body[class*="product"] .container {
  max-width: 1020px;
}

/* Zmenšenie h1 na detail stránke */
body.page-product h1,
body.product-page h1,
.product-detail h1,
.product-info h1 {
  font-size: clamp(16px, 2vw, 22px) !important;
  line-height: 1.3;
}

/* Zmenšenie obrázka */
body.page-product .product-image-main,
body.page-product .product-img-wrap,
body.page-product .product-images,
body.page-product .product-gallery,
body.page-product [class*="product-img"],
body.page-product [class*="product-image"],
.product-detail .product-images,
.product-detail [class*="col-image"],
.product-detail .product-left {
  max-width: 400px !important;
  flex: 0 0 400px !important;
}

/* Popis a tlačiarne pod obrázkom — full width */
.product-description,
.product-desc,
.product-compatible,
[class*="compatible"],
[class*="printers"],
.product-tabs,
.product-info-tabs {
  grid-column: 1 / -1;
  width: 100%;
}
