/* ============================================================
   AliDepot.eu – Glavni CSS
   ============================================================ */

:root {
  --red:       #1a5276;
  --red-dark:  #154360;
  --orange:    #2471a3;
  --eu-blue:   #003399;
  --text:      #1a1a2e;
  --text-muted:#374151;
  --bg:        #f8f9fa;
  --white:     #ffffff;
  --border:    #e5e7eb;
  --radius:    10px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --transition:0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--red);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1rem; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo-icon { font-size: 1.6rem; }
.logo-text  { font-size: 1.3rem; font-weight: 700; color: var(--red); white-space: nowrap; }

.main-nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: .3rem;
  padding: .4rem .7rem; border-radius: 6px;
  font-size: .85rem; font-weight: 500; color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--red); color: var(--white); text-decoration: none; }
.nav-icon { font-size: 1rem; }

.search-form {
  display: flex; border: 1.5px solid var(--border);
  border-radius: 24px; overflow: hidden;
  background: var(--bg); min-width: 200px;
}
.search-form input {
  border: none; background: transparent; padding: .45rem .9rem;
  font-size: .9rem; outline: none; flex: 1; color: var(--text);
}
.search-form button {
  border: none; background: var(--red); color: var(--white);
  padding: .45rem .85rem; cursor: pointer; font-size: 1rem;
}
.search-form button:hover { background: var(--red-dark); }

.hamburger {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
}
.mobile-nav {
  display: none; flex-direction: column;
  padding: .5rem 1rem 1rem; border-top: 1px solid var(--border);
}
.mobile-nav a { padding: .6rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-nav.open { display: flex; }

/* ── EU Bar ─────────────────────────────────────────────────── */
.eu-bar { background: var(--eu-blue); color: var(--white); padding: .45rem 0; font-size: .8rem; }
.eu-bar-inner { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.eu-bar span { white-space: nowrap; }
.eu-bar img  { border-radius: 4px; filter: brightness(1.1); }

/* ── Main ───────────────────────────────────────────────────── */
.site-main { min-height: 60vh; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { padding: .75rem 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a5276 0%, #0d2137 100%);
  color: var(--white); padding: 3rem 1rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: .75rem; }
.hero p  { font-size: 1.1rem; opacity: .92; margin-bottom: 1.5rem; }
.hero-badges { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-badge {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  padding: .35rem .85rem; border-radius: 20px; font-size: .85rem; backdrop-filter: blur(4px);
}

/* ── CTA Button ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 8px; font-weight: 600;
  font-size: 1rem; cursor: pointer; transition: all var(--transition);
  border: none; text-decoration: none;
}
.btn-primary { background: #2471a3; color: var(--white); }
.btn-primary:hover { background: #1a5276; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,106,0,.4); text-decoration: none; color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); text-decoration: none; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Advantages Section ─────────────────────────────────────── */
.advantages { padding: 2.5rem 0; background: var(--white); }
.advantages h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.4rem; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.adv-card {
  text-align: center; padding: 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.adv-card:hover { box-shadow: var(--shadow); }
.adv-icon { font-size: 2rem; margin-bottom: .5rem; }
.adv-title { font-weight: 600; margin-bottom: .25rem; }
.adv-desc { font-size: .85rem; color: var(--text-muted); }

/* ── Product Table ──────────────────────────────────────────── */
.compare-section { padding: 2.5rem 0; }
.compare-section h2 { margin-bottom: 1.25rem; font-size: 1.4rem; }
.table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th {
  background: var(--red); color: var(--white);
  padding: .75rem 1rem; text-align: left; white-space: nowrap;
}
.compare-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.compare-table tr:hover td { background: #fef2f2; }
.compare-table .badge-eu {
  background: #dcfce7; color: #166534; font-size: .75rem;
  padding: .2rem .5rem; border-radius: 12px; font-weight: 600;
}
.compare-table .badge-choice {
  background: #dbeafe; color: #1e40af; font-size: .75rem;
  padding: .2rem .5rem; border-radius: 12px; font-weight: 600;
}
.price { font-weight: 700; color: var(--red); font-size: 1rem; }
.stars { color: #f59e0b; font-size: .9rem; }

/* ── Product Cards Grid ─────────────────────────────────────── */
.products-section { padding: 2.5rem 0; }
.products-section h2 { margin-bottom: 1.25rem; font-size: 1.4rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.product-img {
  aspect-ratio: 1; overflow: hidden; background: #f3f4f6;
  position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: .6rem; left: .6rem;
  background: var(--eu-blue); color: var(--white);
  font-size: .7rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 12px;
}
.product-badge.choice { background: #7c3aed; }
.product-badge.express { background: var(--orange); }

.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.product-name { font-weight: 600; font-size: .95rem; line-height: 1.4; }
.product-meta { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-muted); }
.product-delivery { font-size: .8rem; color: #16a34a; font-weight: 500; }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--red); margin-top: auto; }
.product-cta { margin-top: .75rem; }

/* ── Info Boxes ─────────────────────────────────────────────── */
.info-section { padding: 2.5rem 0; background: var(--white); }
.info-section h2 { margin-bottom: 1rem; font-size: 1.4rem; }
.info-section h3 { margin: 1.25rem 0 .5rem; font-size: 1.1rem; }
.info-section p  { color: #1e293b; margin-bottom: .75rem; line-height: 1.7; }
.info-section ul { padding-left: 1.25rem; color: #1e293b; line-height: 1.9; }

.tip-box {
  background: #eff6ff; border-left: 4px solid var(--eu-blue);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0; font-size: .9rem;
}

/* ── Category Landing ───────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1rem;
  text-align: center; transition: all var(--transition);
  text-decoration: none; color: var(--text);
}
.cat-card:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--red); text-decoration: none; }
.cat-card .icon { font-size: 2.5rem; margin-bottom: .5rem; }
.cat-card .name { font-weight: 600; }
.cat-card .count { font-size: .8rem; color: var(--text-muted); }

/* ── Keyword List ───────────────────────────────────────────── */
.kw-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .5rem; }
.kw-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem .9rem; background: var(--white);
  border: 1px solid var(--border); border-radius: 7px;
  font-size: .9rem; color: var(--text); transition: all var(--transition);
}
.kw-list li a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.kw-list .kw-score { font-size: .75rem; background: #fef3c7; color: #92400e; padding: .15rem .4rem; border-radius: 10px; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; gap: .5rem; justify-content: center; padding: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .5rem .9rem; border-radius: 6px; font-size: .9rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--white); color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pagination .active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #1a1a2e; color: #cbd5e1; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; padding: 2.5rem 1rem 1.5rem; }
.footer-logo { color: var(--white); font-size: 1.2rem; margin-bottom: .5rem; }
.footer-eu   { font-size: .82rem; margin-top: .75rem; color: #94a3b8; }
.footer-col h4 { color: var(--white); margin-bottom: .75rem; font-size: .95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: .4rem; }
.footer-col a { color: #94a3b8; font-size: .88rem; }
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-disclaimer { background: #111827; padding: 1.25rem 1rem; font-size: .8rem; color: #9ca3af; border-top: 1px solid #374151; }
.footer-disclaimer p + p { margin-top: .5rem; }
.footer-disclaimer strong { color: #d1d5db; }

.footer-bottom { background: #0f172a; padding: .85rem 1rem; text-align: center; font-size: .8rem; color: #6b7280; }
.footer-bottom p + p { margin-top: .25rem; }

/* ── Utilities ──────────────────────────────────────────────── */
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.section-title span { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.py-3 { padding: 1.5rem 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-nav   { display: none; }
  .search-form{ display: none; }
  .hamburger  { display: block; }

  .hero { padding: 2rem 1rem; }
  .hero h1 { font-size: 1.5rem; }

  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
  .product-body  { padding: .75rem; }

  .compare-table { font-size: .8rem; }
  .compare-table th, .compare-table td { padding: .5rem .65rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .eu-bar-inner  { gap: .75rem; font-size: .72rem; }
  .footer-grid   { grid-template-columns: 1fr; }
}

/* ── GDPR Cookie Banner ──────────────────────────────────── */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1a1a2e; color: #e2e8f0;
  border-top: 2px solid #1a5276;
  padding: 1rem;
}
.cookie-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text strong { font-size: .95rem; display: block; margin-bottom: .35rem; }
.cookie-text p  { font-size: .82rem; color: #94a3b8; line-height: 1.5; margin: 0; }
.cookie-link    { color: #60a5fa; text-decoration: underline; }
.cookie-buttons { display: flex; gap: .5rem; flex-wrap: wrap; flex-shrink: 0; }

.cookie-btn {
  padding: .5rem 1rem; border-radius: 6px; font-size: .82rem;
  font-weight: 500; cursor: pointer; border: none; white-space: nowrap;
}
.cookie-btn-primary   { background: #1a5276; color: #fff; }
.cookie-btn-primary:hover { background: #154360; }
.cookie-btn-secondary { background: transparent; color: #e2e8f0; border: 1px solid #475569; }
.cookie-btn-secondary:hover { background: #1e293b; }
.cookie-btn-ghost     { background: transparent; color: #94a3b8; font-size: .78rem; }
.cookie-btn-ghost:hover { color: #e2e8f0; }

/* ── Cookie Modal ────────────────────────────────────────── */
#cookieModal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.cookie-modal-box {
  background: #fff; border-radius: 12px;
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
}
.cookie-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid #e5e7eb;
}
.cookie-modal-header h2 { font-size: 1rem; font-weight: 600; margin: 0; }
.cookie-modal-header button {
  background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: #6b7280; line-height: 1;
}
.cookie-modal-body { padding: .75rem 1.25rem; }
.cookie-modal-footer {
  padding: 1rem 1.25rem; border-top: 1px solid #e5e7eb;
  display: flex; gap: .5rem; justify-content: flex-end;
}

.cookie-category { padding: .9rem 0; border-bottom: 1px solid #f3f4f6; }
.cookie-category:last-child { border-bottom: none; }
.cookie-category-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
}
.cookie-category strong { font-size: .9rem; display: block; margin-bottom: .3rem; }
.cookie-category p { font-size: .8rem; color: #6b7280; line-height: 1.5; margin: 0; }
.cookie-always-on {
  font-size: .75rem; color: #16a34a; font-weight: 500;
  white-space: nowrap; margin-top: 2px;
}

/* Toggle stikalo */
.cookie-toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute; inset: 0; background: #d1d5db;
  border-radius: 24px; cursor: pointer; transition: .2s;
}
.cookie-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; left: 3px; top: 3px; transition: .2s;
}
.cookie-toggle input:checked + .cookie-slider { background: #1a5276; }
.cookie-toggle input:checked + .cookie-slider::before { transform: translateX(18px); }

/* ── Gumb za kasnejše odpiranje ──────────────────────────── */
#cookieSettingsBtn {
  position: fixed; bottom: 1rem; left: 1rem; z-index: 9998;
  background: #1a1a2e; border: 1px solid #334155;
  color: #94a3b8; border-radius: 50%;
  width: 36px; height: 36px; font-size: 1rem;
  cursor: pointer; display: none;
}
#cookieSettingsBtn:hover { background: #1e293b; color: #e2e8f0; }

@media (max-width: 600px) {
  .cookie-inner  { flex-direction: column; gap: .75rem; }
  .cookie-buttons{ width: 100%; }
  .cookie-btn    { flex: 1; text-align: center; }
}
