/* ── DESIGN TOKENS ── */
:root {
    --primary:      #2D5016;
    --primary-dark: #1e3710;
    --accent:       #B83225;
    --warning:      #C47A15;
    --ok:           #2D7A3A;
    --bg:           #F9F8F6;
    --card:         #FFFFFF;
    --text:         #1A1A1A;
    --text-light:   #555555;
    --border:       #E0DDD5;
    --font-main:    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
[id] { scroll-margin-top: 80px; }
body {
    font-family: var(--font-main);
    line-height: 1.75;
    color: var(--text);
    background-color: var(--bg);
    font-size: 17px;
    padding-bottom: 80px;
    text-align: justify;
}
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

/* ── LAYOUT ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header {
    background: var(--card);
    border-bottom: 2px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.logo {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}
.logo span { color: var(--accent); }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: color .15s, border-color .15s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.header-tag {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--text); margin: 5px 0;
    transition: .3s;
}

/* ── BREADCRUMB ── */
.breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(24px, 4vw, 38px); line-height: 1.2; color: #000; }
h2 {
    font-size: clamp(18px, 3vw, 22px);
    margin: 50px 0 20px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}
h3 { font-size: 18px; }
.prose p { margin-bottom: 20px; color: #333; }
.lead {
    font-size: 19px;
    color: #444;
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 25px;
}

/* ── BADGE / CHIPS ── */
.badge {
    display: inline-block;
    padding: 4px 11px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.badge--warning { background: var(--warning); }
.badge--danger  { background: var(--accent); }
.badge--muted   { background: var(--border); color: var(--text); }

/* ── PARAM BADGES ── */
.param-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.param-badge {
    display: inline-block;
    background: #e8f0df;
    color: #2D5016;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: default;
    line-height: 1.5;
    white-space: nowrap;
}
.param-badge:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.param-badges-warning { font-size: 12px; color: #7a5500; margin-top: 8px; line-height: 1.5; }
.param-badges-warning a { color: inherit; text-decoration: underline; }

/* ── CARDS ── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* ── PRODUCT CARD IMAGE ── */
.product-card-img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.product-card-img img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: transparent !important;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* ── PRODUCT IMAGE TRANSPARENCY ── */
.hero-image img,
.product-card-img img {
    background: transparent !important;
}

/* ── SCORE ── */
.score-big {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
}
.score-big.score--low    { color: var(--accent); }
.score-big.score--mid    { color: var(--warning); }
.score-bar { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.score-bar-fill { height: 100%; border-radius: 4px; }
.score-bar-fill--ok      { background: var(--ok); }
.score-bar-fill--mid     { background: var(--warning); }
.score-bar-fill--low     { background: var(--accent); }

/* ── TABLES ── */
.table-wrapper { overflow-x: auto; margin: 30px 0; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; border: 1px solid var(--border); }
th, td { padding: 13px 15px; border: 1px solid var(--border); text-align: left; }
th { background: #F0F2EE; font-weight: 700; color: var(--primary); }
tr:nth-child(even) td { background: #FAFAF8; }
tr.highlight td { background: #FFF9F0; font-weight: bold; }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 13px 28px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: .2s;
    cursor: pointer;
    border: none;
    font-size: 15px;
}
.btn--primary {
    background: var(--primary);
    color: #fff;
}
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--block { display: block; text-align: center; width: 100%; }

/* ── FORM ELEMENTS ── */
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 15px;
    font-family: var(--font-main);
    background: #fff;
}
.form-control:focus { outline: 2px solid var(--primary); border-color: var(--primary); }

/* ── ALERTS ── */
.alert { padding: 20px 25px; border-radius: 8px; margin: 20px 0; }
.alert--danger  { background: #fff5f5; border-left: 4px solid var(--accent); }
.alert--warning { background: #fffbee; border-left: 4px solid var(--warning); }
.alert--info    { background: #eef2f7; border-left: 4px solid #4A7FC1; }
.alert--ok      { background: #f0f7ed; border-left: 4px solid var(--ok); }

/* ── FOOTER ── */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.8);
    padding: 50px 0 30px;
    margin-top: 80px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}
.footer-logo span { color: #FFD700; }
.footer-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.85); }
.footer-desc a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
.footer-desc a:hover { color: #fff; border-bottom-color: #fff; }
.footer-affiliate-note { margin-top: 10px; }
.footer-heading {
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.2);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,.8);
}
.footer-ymyl { color: #fff; font-weight: 600; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    body { font-size: 16px; }
    .site-nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 20px 24px; }
    .site-nav.open { display: flex; }
    .hamburger { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    h2 { margin-top: 35px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
