:root {
    --primary: #4d7c0f;       /* Sýta prírodná olivovo-zelená */
    --primary-hover: #3f6212;
    --primary-light: #ecfccb;
    --accent: #ea580c;        /* Teplá akcentová farba pre dôležité akcie */
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --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; }

/* Horná informačná lišta */
.utility-bar {
    background: #1e293b;
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 7px 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.4; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
    color: #94a3b8;
    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.1); }
.lang-switch a.active { background: var(--primary); color: #fff; }

/* Hlavička s bannerom/logom */
.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: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand-banner {
    display: block;
    max-width: 780px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}
.brand-banner img {
    width: 100%;
    height: auto;
    max-height: 115px;
    object-fit: cover;
    display: block;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(77, 124, 15, 0.25);
    transition: transform .15s, background .15s;
    flex-shrink: 0;
}
.cart-btn:hover { background: var(--primary-hover); 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.95rem; font-weight: 800; }

/* Navigácia */
.main-nav-bar {
    background: #f1f5f9;
    border-top: 1px solid var(--border);
}
.main-nav-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-top: 6px;
    padding-bottom: 6px;
}
.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all .15s;
}
.nav-link:hover { color: var(--primary); background: #ffffff; }
.nav-link.active { background: var(--primary); color: #ffffff; }

/* Hlavný obsah */
.main-content { padding-top: 32px; padding-bottom: 56px; }
.section-heading { margin-bottom: 24px; }
.section-heading h1 { margin: 0 0 4px; font-size: 1.65rem; font-weight: 800; color: var(--text); }
.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(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}
.back-link:hover { 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: #bef264;
}
.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: var(--primary-light);
    color: var(--primary-hover);
    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(--primary); }
.card-sub { margin: 0 0 8px; font-size: 0.84rem; color: var(--primary); font-weight: 600; }
.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(--text); }

/* 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(--primary-light);
    color: var(--primary-hover);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.detail-info h1 { margin: 0 0 8px; font-size: 1.85rem; font-weight: 800; line-height: 1.25; }
.subtitle { color: var(--primary); font-weight: 600; 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: #f8fafc; border-radius: 12px; border: 1px solid var(--border); }
.variant-label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; color: var(--text); }
.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(--primary); }
.variant-pill.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 2px 8px rgba(77, 124, 15, 0.15);
}
.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(--primary-hover); 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: #dcfce7; color: #166534; }
.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: #f1f5f9; width: 42px; height: 48px; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.qty-control button:hover { background: #e2e8f0; }
.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; }

/* 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(--primary);
    color: var(--primary);
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}
.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(--text); 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; }
.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(--text); }

.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; }

.packeta-box { background: #f8fafc; border: 2px dashed var(--primary); padding: 14px; border-radius: 10px; margin-bottom: 18px; }
.packeta-selected { margin-top: 8px; font-weight: 700; color: var(--primary-hover); }

.gdpr-consent-box {
    background: #f8fafc;
    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(--primary); 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(--primary); box-shadow: 0 0 0 3px rgba(77, 124, 15, 0.12); }

/* Pätička */
.site-footer { background: #0f172a; color: #cbd5e1; padding-top: 48px; margin-top: auto; }
.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: #a3e635; 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: #94a3b8; line-height: 1.7; }
.footer-text a { color: #e2e8f0; text-decoration: none; }
.footer-text a:hover { color: #a3e635; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: 0.92rem; transition: color .15s; }
.footer-links a:hover { color: #a3e635; }

.footer-bottom { border-top: 1px solid #1e293b; padding: 18px 0; font-size: 0.85rem; color: #64748b; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: #ffffff; }

/* Cookie lišta */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #f8fafc;
    padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border-top: 1px solid #334155;
}
.cookie-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cookie-inner p { margin: 0; font-size: 0.86rem; color: #cbd5e1; }
.cookie-inner a { color: #a3e635; font-weight: 600; }

/* 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: #dcfce7; color: #166534; 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: #0f172a; 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; }
.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: stretch; }
    .cart-btn { 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; }
}