:root {
    --primary: #7d9612;          /* Olivovo-limetková z prechodu */
    --primary-hover: #63780d;
    --primary-light: #f4f7e6;
    --teal: #4c8c94;             /* Tyrkysovo-modrozelená z hornej časti */
    --slate-blue: #4d6b99;       /* Bridlicová modrá zo spodnej časti */
    --slate-blue-dark: #364e73;
    --gradient-brand: linear-gradient(135deg, #65a6aa 0%, #86ae54 52%, #b5c416 100%);
    --bg: #f6f8fa;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #526071;
    --border: #dde4ec;
    --shadow-sm: 0 2px 6px rgba(54, 78, 115, 0.06);
    --shadow-md: 0 12px 28px -6px rgba(54, 78, 115, 0.12);
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-wrapper > main { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* 1. Horná lišta v bridlicovej modrej */
.utility-bar {
    background: var(--slate-blue);
    color: #eef2f7;
    font-size: 0.83rem;
    padding: 8px 0;
}
.utility-inner { display: flex; justify-content: space-between; align-items: center; }
.utility-contact { display: flex; align-items: center; gap: 10px; }
.utility-contact a { color: #ffffff; text-decoration: none; }
.utility-contact .sep { opacity: 0.5; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    transition: all .15s;
}
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }
.lang-switch a.active { background: #b5c416; color: #1e293b; }

/* 2. Čistá biela hlavička pre sólové logo */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.brand-banner {
    display: block;
    max-width: 540px;
    line-height: 0;
}
.brand-banner img {
    width: 100%;
    height: auto;
    max-height: 92px;
    object-fit: contain;
    display: block;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--slate-blue);
    color: #ffffff;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(77, 107, 153, 0.25);
    transition: transform .15s, background .15s;
    flex-shrink: 0;
}
.cart-btn:hover { background: var(--slate-blue-dark); transform: translateY(-1px); }
.cart-icon { font-size: 1.35rem; }
.cart-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.cart-btn-text small { font-size: 0.75rem; opacity: 0.9; font-weight: 500; }
.cart-btn-text strong { font-size: 0.98rem; font-weight: 800; color: #e6f28a; }

/* 3. Navigačná lišta s gradientom z fotky */
.main-nav-bar {
    background: var(--gradient-brand);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.main-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-top: 8px;
    padding-bottom: 8px;
}


/* Formátovanie blokov článku z editora */
.article-body h2 {
    color: var(--slate-blue-dark);
    font-size: 1.35rem;
    margin: 28px 0 10px;
}
.article-body p {
    margin: 0 0 16px;
}
.article-figure {
    margin: 24px 0;
    text-align: center;
    background: #f8fafc;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: inline-block;
}
.article-figure figcaption {
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--text-muted);
    font-style: italic;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.93rem;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
    transition: all .15s;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.2); }
.nav-link.active {
    background: #ffffff;
    color: var(--slate-blue-dark);
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Hlavný obsah */
.main-content { padding-top: 32px; padding-bottom: 56px; }
.section-heading {
    margin-bottom: 26px;
    padding-left: 14px;
    border-left: 4px solid #9cb517;
}
.section-heading h1 { margin: 0 0 4px; font-size: 1.65rem; font-weight: 800; color: var(--slate-blue-dark); }
.section-heading p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: var(--slate-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}
.back-link:hover { color: var(--primary); text-decoration: underline; }

/* Katalóg produktov */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #9cb517;
}
.card-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
    background: #ffffff;
    padding: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.card-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .card-img-wrap img { transform: scale(1.04); }

.variant-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e6f2f3;
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
}
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h2 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.card-body h2 a { color: var(--text); text-decoration: none; }
.card-body h2 a:hover { color: var(--slate-blue); }
.card-sub { margin: 0 0 8px; font-size: 0.84rem; color: var(--teal); font-weight: 700; }
.card-desc { margin: 0 0 18px; font-size: 0.88rem; color: var(--text-muted); flex: 1; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.card-price small { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.card-price strong { font-size: 1.25rem; font-weight: 800; color: var(--slate-blue-dark); }

/* Detail produktu */
.product-detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
}
.detail-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 24px;
}
.detail-gallery img { max-width: 100%; max-height: 430px; object-fit: contain; }

.product-tag {
    display: inline-block;
    background: var(--gradient-brand);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 10px;
}
.detail-info h1 { margin: 0 0 8px; font-size: 1.85rem; font-weight: 800; line-height: 1.25; color: var(--slate-blue-dark); }
.subtitle { color: var(--teal); font-weight: 700; font-size: 1.05rem; margin: 0 0 14px; }
.short-desc { color: var(--text-muted); font-size: 0.98rem; }

/* Prepínače veľkostí */
.variant-section { margin: 24px 0; padding: 16px; background: #f4f7fa; border-radius: 12px; border: 1px solid var(--border); }
.variant-label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; color: var(--slate-blue-dark); }
.variant-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-pill {
    border: 2px solid var(--border);
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    text-align: left;
    transition: all .15s;
    display: flex;
    flex-direction: column;
    min-width: 115px;
}
.variant-pill:hover { border-color: var(--teal); }
.variant-pill.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 2px 8px rgba(125, 150, 18, 0.18);
}
.pill-name { font-weight: 800; font-size: 0.95rem; color: var(--text); }
.pill-price { font-size: 0.85rem; color: var(--primary-hover); font-weight: 700; }

.price-box { display: flex; align-items: center; gap: 18px; margin: 22px 0; flex-wrap: wrap; }
.current-price { font-size: 2.15rem; font-weight: 800; color: var(--slate-blue-dark); line-height: 1; }
.old-price { text-decoration: line-through; color: #94a3b8; font-size: 1rem; font-weight: 600; }
.stock-badge { font-size: 0.85rem; font-weight: 700; padding: 6px 12px; border-radius: 99px; }
.in-stock { background: #eef6d8; color: #4d6109; }
.out-stock { background: #fee2e2; color: #991b1b; }

.buy-row { display: flex; gap: 14px; margin: 24px 0; }
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}
.qty-control button { border: none; background: #eef2f7; width: 42px; height: 48px; font-size: 1.2rem; font-weight: 700; color: var(--slate-blue-dark); cursor: pointer; }
.qty-control button:hover { background: #dce4ee; }
.qty-control input { width: 52px; height: 48px; border: none; text-align: center; font-weight: 800; font-size: 1rem; }
.qty-control.small button { width: 30px; height: 32px; }
.qty-control.small span { padding: 0 10px; font-weight: 700; }

.detail-description { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.detail-description h3 { margin: 0 0 12px; font-size: 1.15rem; color: var(--slate-blue-dark); }

/* Tlačidlá */
.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; flex: 1; }
.btn-outline {
    border: 1px solid var(--slate-blue);
    color: var(--slate-blue);
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}
.btn-outline:hover { background: #f0f4fa; }
.btn-block { width: 100%; display: flex; }

/* Články */
.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}
.article-card h1 { margin-top: 0; font-size: 1.85rem; color: var(--slate-blue-dark); border-bottom: 2px solid var(--border); padding-bottom: 14px; }
.article-body { line-height: 1.8; font-size: 1rem; color: #334155; }

/* Košík, pokladňa a GDPR súhlas */
.checkout-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.cart-panel, .checkout-form, .admin-card, .success-box, .empty-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.cart-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-row img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid #f1f5f9; padding: 4px; }
.cart-row-info { flex: 1; display: flex; flex-direction: column; }
.unit-price { font-size: 0.85rem; color: var(--text-muted); }
.cart-row-total { font-weight: 800; min-width: 80px; text-align: right; color: var(--slate-blue-dark); }
.btn-remove { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1.1rem; padding: 4px; }

.summary-totals { margin-top: 18px; }
.sum-line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--text-muted); }
.grand-total { font-size: 1.3rem; border-top: 2px solid var(--border); margin-top: 10px; padding-top: 14px; color: var(--slate-blue-dark); }

.radio-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.radio-card { display: flex; align-items: center; gap: 12px; border: 2px solid var(--border); padding: 14px; border-radius: 10px; cursor: pointer; transition: all .15s; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.radio-content { flex: 1; display: flex; flex-direction: column; }
.radio-content small { color: var(--text-muted); }
.radio-price { font-weight: 800; color: var(--slate-blue-dark); }

.packeta-box { background: #f4f7fa; border: 2px dashed var(--teal); padding: 14px; border-radius: 10px; margin-bottom: 18px; }
.packeta-selected { margin-top: 8px; font-weight: 700; color: var(--teal); }

.gdpr-consent-box {
    background: #f4f7fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin: 18px 0;
}
.gdpr-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.gdpr-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}
.gdpr-checkbox-label a { color: var(--slate-blue); font-weight: 700; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.86rem; font-weight: 700; color: var(--text); }
.form-group.full { grid-column: 1 / -1; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    background: #ffffff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(76, 140, 148, 0.15); }

/* Pätička v bridlicovej modrej s limetkovými detailmi */
.site-footer {
    background: var(--slate-blue-dark);
    color: #e2e8f0;
    padding-top: 48px;
    margin-top: auto;
    border-top: 4px solid #a6bd19;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer-brand { font-size: 1.35rem; font-weight: 800; color: #d4e44c; display: block; margin-bottom: 10px; }
.site-footer h4 { margin: 0 0 14px; color: #ffffff; font-size: 1rem; font-weight: 700; }
.footer-text { margin: 0; font-size: 0.9rem; color: #cbd5e1; line-height: 1.7; }
.footer-text a { color: #ffffff; text-decoration: none; }
.footer-text a:hover { color: #d4e44c; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #e2e8f0; text-decoration: none; font-size: 0.92rem; transition: color .15s; }
.footer-links a:hover { color: #d4e44c; }

.footer-bottom {
    background: #2b3f5e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    font-size: 0.85rem;
    color: #cbd5e1;
}
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: #e2e8f0; text-decoration: none; }
.footer-bottom a:hover { color: #d4e44c; }

/* Cookie lišta */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    color: #ffffff;
    padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border-top: 3px solid #a6bd19;
}
.cookie-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cookie-inner p { margin: 0; font-size: 0.86rem; color: #e2e8f0; }
.cookie-inner a { color: #d4e44c; font-weight: 700; }

/* Admin & Alerts */
.admin-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.admin-login-card { background: #fff; padding: 32px; border-radius: var(--radius); width: 100%; max-width: 380px; box-shadow: var(--shadow-md); }
.admin-product-block { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 18px; background: #fcfcfd; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 12px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; }
.inline-variant-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-variant-form input, .inline-variant-form select { width: auto; flex: 1; min-width: 110px; }
.alert-error { background: #fee2e2; color: #991b1b; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.alert-success { background: #eef6d8; color: #4d6109; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.text-danger { color: #dc2626; text-decoration: none; font-weight: 700; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--slate-blue-dark); color: #fff; padding: 14px 20px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1000; border-left: 4px solid #b5c416; }
.toast.show { opacity: 1; }

@media (max-width: 860px) {
    .product-detail-card, .checkout-layout, .footer-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; align-items: center; }
    .cart-btn { width: 100%; justify-content: center; }
    .cookie-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .hide-mobile { display: none; }
}