/* ==========================================
   OTSLABVAM.EU — Green Health Theme
   ========================================== */

:root {
    --green: #2E7D32;
    --green-dark: #1B5E20;
    --green-light: #E8F5E9;
    --green-soft: #A5D6A7;
    --green-accent: #43A047;
    --green-deep: #0D3B0F;
    --orange: #FF6F00;
    --orange-light: #FFF3E0;
    --red: #D32F2F;
    --red-light: #FFEBEE;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-green: 0 4px 15px rgba(46,125,50,0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.25s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul { list-style: none; }
h1,h2,h3,h4,h5 { color: var(--gray-900); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== HEALTH DISCLAIMER BANNER ===== */
.health-banner {
    background: var(--orange-light);
    color: var(--orange);
    text-align: center;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border-bottom: 2px solid #FFB74D;
    position: relative;
    z-index: 1001;
}
.health-banner span { margin-right: 4px; }

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
    height: 68px;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green-dark);
    white-space: nowrap;
}
.logo-icon { font-size: 1.5rem; }
.logo-dot { color: var(--green-accent); }
.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    background: var(--green-light);
    color: var(--green-dark);
}
.nav-search input {
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 0.85rem;
    width: 180px;
    transition: all var(--transition);
    outline: none;
    font-family: var(--font);
}
.nav-search input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
    width: 220px;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-700);
    padding: 8px;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 50%, #145214 100%);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 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.05'%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");
    opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 30px;
    line-height: 1.7;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}
.hero-stat { text-align: center; }
.hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}
.hero-stat span { font-size: 0.85rem; opacity: 0.8; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font);
}
.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-accent));
    color: var(--white);
    box-shadow: var(--shadow-green);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    transform: translateY(-1px);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}
.btn-outline:hover {
    background: var(--green);
    color: var(--white);
}
.btn-white {
    background: var(--white);
    color: var(--green-dark);
    box-shadow: var(--shadow-sm);
}
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--green-dark); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-buy {
    background: var(--orange);
    color: var(--white);
}
.btn-buy:hover { background: #E65100; color: var(--white); transform: translateY(-1px); }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 { margin-bottom: 10px; }
.section-title p { color: var(--gray-600); font-size: 1.05rem; }
.section-green { background: var(--green-light); }
.section-white { background: var(--white); }

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-soft);
}
.product-card-image {
    height: 220px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-card-image img {
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-brand {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.product-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-body h3 a { color: var(--gray-900); }
.product-card-body h3 a:hover { color: var(--green); }
.product-price {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.price-current {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--green-dark);
}
.price-old {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-decoration: line-through;
}
.product-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
}
.product-card-footer .btn { width: 100%; justify-content: center; }

/* ===== BLOG CARD ===== */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.blog-card-image {
    height: 200px;
    background: var(--green-light);
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-body { padding: 20px; }
.blog-category {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.blog-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}
.blog-card-body h3 a { color: var(--gray-900); }
.blog-card-body h3 a:hover { color: var(--green); }
.blog-excerpt {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== TOOL CARD ===== */
.tool-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-soft);
}
.tool-icon {
    width: 64px;
    height: 64px;
    background: var(--green-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}
.tool-card h3 { font-size: 1rem; margin-bottom: 8px; }
.tool-card p { font-size: 0.85rem; color: var(--gray-600); }

/* ===== DISCLAIMER BOX ===== */
.disclaimer-box {
    background: var(--orange-light);
    border-left: 4px solid var(--orange);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
    font-size: 0.88rem;
    color: #E65100;
    line-height: 1.6;
}
.disclaimer-box strong { display: block; margin-bottom: 4px; }

.disclaimer-box-red {
    background: var(--red-light);
    border-left-color: var(--red);
    color: var(--red);
}

/* ===== AFFILIATE NOTICE ===== */
.affiliate-notice {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 16px 0;
    text-align: center;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    transition: all var(--transition);
}
.pagination a:hover { background: var(--green-light); border-color: var(--green); color: var(--green); }
.pagination .active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

/* ===== CATEGORY CHIPS ===== */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.chip {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    transition: all var(--transition);
}
.chip:hover, .chip.active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

/* ===== SIDEBAR ===== */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}
.sidebar-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-box h4 { margin-bottom: 12px; font-size: 1rem; }

/* ===== NEWSLETTER ===== */
.newsletter {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}
.newsletter h2 { color: var(--white); margin-bottom: 10px; }
.newsletter p { opacity: 0.9; margin-bottom: 20px; }
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
}
.newsletter-form button { white-space: nowrap; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span { margin: 0 6px; }

/* ===== SINGLE PRODUCT ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 0;
}
.product-detail-image {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 400px;
}
.product-detail-info h1 { font-size: 1.8rem; margin-bottom: 12px; }
.product-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}
.product-detail-price .price-current { font-size: 2rem; }
.product-detail-desc {
    color: var(--gray-700);
    line-height: 1.8;
    margin: 20px 0;
}

/* ===== BLOG SINGLE ===== */
.article-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}
.article-hero h1 { color: var(--white); font-size: 2.2rem; max-width: 800px; margin: 0 auto 16px; }
.article-body {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    margin-top: -30px;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}
.article-body h2 { margin: 30px 0 15px; color: var(--green-dark); font-size: 1.5rem; }
.article-body h3 { margin: 25px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: var(--radius-sm); margin: 20px 0; }
.article-body a { color: var(--green); font-weight: 500; text-decoration: underline; }

/* ===== TOOL PAGE ===== */
.tool-page { padding: 30px 0 60px; }
.tool-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--gray-800);
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-result {
    background: var(--green-light);
    border: 2px solid var(--green);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
    text-align: center;
}
.tool-result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green-dark);
}
.tool-result-label { color: var(--gray-600); font-size: 0.9rem; margin-top: 4px; }
.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.result-table th, .result-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}
.result-table th { background: var(--green-light); font-weight: 600; color: var(--green-dark); }

/* ===== SEARCH ===== */
.search-results { padding: 30px 0 60px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 50px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer h3, .footer h4 { color: var(--white); margin-bottom: 16px; }
.footer h3 { font-size: 1.2rem; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--gray-400); font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); }
.footer-disclaimer {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #FFB74D;
    line-height: 1.5;
}
.footer-affiliate-notice {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 0.78rem;
    line-height: 1.5;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}
.footer-medical {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #FFB74D;
    font-weight: 500;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filters-bar select {
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
}
.results-count { color: var(--gray-600); font-size: 0.9rem; }

/* ===== LEGAL PAGES ===== */
.legal-page { padding: 40px 0 60px; max-width: 800px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 { margin: 30px 0 12px; font-size: 1.3rem; }
.legal-page p { margin-bottom: 14px; line-height: 1.8; }
.legal-page ul { padding-left: 24px; margin-bottom: 14px; }
.legal-page li { margin-bottom: 8px; list-style: disc; }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: 80px 0; }
.page-404 h1 { font-size: 6rem; color: var(--green); }
.page-404 p { font-size: 1.2rem; color: var(--gray-600); margin: 16px 0 30px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .page-with-sidebar { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 20px; }
    .hero-stat strong { font-size: 1.5rem; }
    .section { padding: 40px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }

    .nav-links {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; }
    .nav-search { display: none; }
    .nav-toggle { display: block; }

    .article-body { padding: 20px; }
    .article-hero h1 { font-size: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .tool-result-value { font-size: 2rem; }
}
