/* Reset & Base */
:root {
    --header-bg: #1a5c3a;
    --text-color: #222222;
    --text-light: #575760;
    --accent-red: #ff0000;
    --white: #ffffff;
    --bg-gray: #f7f8f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--header-bg);
    color: #1a1a2e;
    padding: 15px 0;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--header-bg);
    letter-spacing: 1px;
}

/* Nav */
.main-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    font-size: 16px;
    color: #1a1a2e;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--header-bg);
}

.main-nav > ul > li > span {
    font-weight: 500;
    font-size: 16px;
    color: #1a1a2e;
    cursor: pointer;
}

/* Lang Switcher */
.lang-switcher {
    position: relative;
    cursor: pointer;
    padding-left: 10px;
    border-left: 1px solid rgba(0,0,0,0.15);
}

.lang-switcher .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    flex-direction: column;
    gap: 0;
    min-width: 120px;
    z-index: 100;
    padding: 5px 0;
}

.lang-switcher:hover .dropdown {
    display: flex;
}

.lang-switcher .dropdown li a {
    display: block;
    padding: 8px 15px;
    font-size: 14px;
    color: var(--text-color);
}

.lang-switcher .dropdown li a:hover {
    background-color: #f0f0f0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1a1a2e;
}

/* Content */
.content-area {
    background-color: var(--white);
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-x: hidden;
}

h1 {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 26px;
    text-align: center;
    margin: 30px 0 20px;
    line-height: 1.2em;
    font-weight: 400;
    color: var(--text-color);
}

h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

article ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

article ul li {
    margin-bottom: 5px;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* Buttons */
.btn-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.btn-red {
    background-color: var(--accent-red);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
}

.btn-red:hover {
    background-color: #cc0000;
}

.btn-green {
    background-color: var(--header-bg);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
}

.btn-green:hover {
    background-color: #134a2e;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f3f3f3;
    font-weight: 700;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 40px auto;
}

details {
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

summary {
    padding: 15px 40px 15px 15px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    position: relative;
    background-color: #f9f9f9;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
}

details[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

/* Comments */
.comments-section {
    background-color: var(--white);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-form {
    margin-bottom: 40px;
    background: #fcfcfc;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    scroll-margin-top: 100px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 80px;
    margin-bottom: 15px;
    font-family: inherit;
    display: block;
}

.comment-form .input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-submit {
    background-color: #07B290;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    font-size: 15px;
}

.btn-submit:hover {
    background-color: #059678;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 700;
    color: #00B38F;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-text {
    color: #555;
    font-size: 15px;
}

.reply-link {
    font-size: 12px;
    color: #00B38F;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
    transition: opacity 0.3s;
}

.reply-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Reviews tab specifics */
.tab-reviews .comment-form {
    margin-top: 30px;
    margin-bottom: 0;
}

.tab-reviews .comment-form h3 {
    margin-top: 0;
}

/* Review form: narrow name field on desktop */
.review-name-input {
    max-width: 33%;
}

/* Review success message */
.review-success {
    display: none;
    margin-top: 16px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    color: #155724;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background-color: var(--white);
    border-top: 2px solid var(--header-bg);
    color: #555;
    padding: 30px 0;
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    text-align: left;
    padding: 30px 0;
}

.footer-info {
    font-size: 14px;
    line-height: 1.8;
}

.footer-info strong {
    color: var(--header-bg);
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    color: #555;
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--header-bg);
}

.footer-disclaimer {
    font-size: 13px;
    color: #888;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    color: var(--white);
    padding: 15px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
}

.cookie-banner a {
    text-decoration: underline;
    color: var(--white);
}

.cookie-banner a:hover {
    opacity: 0.8;
}

.btn-cookie {
    background-color: var(--white);
    color: var(--header-bg);
    border: none;
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.3s;
}

.btn-cookie:hover {
    background-color: #f0f0f0;
}

/* Products grid */
.products-section {
    margin: 40px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    text-align: center;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.product-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    height: 100%;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin: 0 auto 16px;
    border-radius: 4px;
}

.product-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--text-color);
}

.product-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 16px;
    flex: 1;
}

/* Placeholder product cards */
.product-card--soon .card-placeholder {
    padding: 20px;
    opacity: 0.4;
}

.card-placeholder-img {
    width: 100px;
    height: 100px;
    background: #eee;
    border-radius: 4px;
    margin: 0 auto 16px;
}

.product-card--soon .card-placeholder p {
    color: #999;
    margin: 0;
}

/* Category intro text */
.category-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* How to order */
.how-to-order {
    background: var(--bg-gray);
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
}

.how-to-order-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.how-step {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.how-step img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 16px;
}

.how-step p {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* SEO text */
.seo-text {
    margin: 40px 0 20px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.category-seo {
    margin: 40px 0 20px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

/* Product hero */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.product-hero-image img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    border-radius: 8px;
}

.product-hero-info {
    padding: 10px 0;
}

.product-hero-info h1 {
    text-align: left;
    font-size: 26px;
    margin-bottom: 16px;
    text-transform: none;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 4px;
}

.product-price-sub {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.product-scarcity {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 20px;
}

/* Tabs */
.tabs {
    margin: 40px 0;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #ddd;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn.active {
    color: var(--header-bg);
    border-bottom-color: var(--header-bg);
}

.tab-panel {
    display: none;
    padding: 24px 0;
}

.tab-panel.active {
    display: block;
}

/* Order form */
.order-form-section {
    background: var(--white);
    border: 2px solid var(--header-bg);
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
    scroll-margin-top: 80px;
}

.order-form-section > h2 {
    margin-bottom: 24px;
}

.order-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.order-product-info {
    text-align: center;
}

.order-product-info img {
    max-width: 200px;
    margin: 0 auto 16px;
    border-radius: 8px;
}

.order-product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.order-product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 4px;
}

.order-product-price-sub {
    font-size: 13px;
    color: var(--text-light);
}

.order-form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-form-fields input {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    width: 100%;
}

.order-form-fields input:focus {
    outline: none;
    border-color: var(--header-bg);
}

.order-success {
    display: none;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    color: #155724;
    font-weight: 600;
    margin-top: 16px;
}

/* Nav categories dropdown */
.nav-dropdown {
    position: relative;
    cursor: pointer;
}

.nav-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 180px;
    z-index: 100;
    padding: 5px 0;
}

.nav-dropdown:hover .dropdown {
    display: flex;
}

.nav-dropdown .dropdown li a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-color);
    text-align: left;
}

.nav-dropdown .dropdown li a:hover {
    background-color: #f0f0f0;
    color: var(--header-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .content-area,
    .comments-section {
        padding: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 1px solid #eee;
        padding: 20px;
        z-index: 999;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav a {
        color: #1a1a2e;
    }

    .main-nav > ul > li > span {
        color: #1a1a2e;
    }

    .lang-switcher {
        border-left: none;
        padding-left: 0;
        width: 100%;
    }

    .lang-switcher .dropdown {
        position: static;
        box-shadow: none;
        background-color: #f0f0f0;
        color: #1a1a2e;
    }

    .lang-switcher .dropdown li a {
        color: #1a1a2e;
    }

    .comment-form .input-group {
        flex-direction: column;
    }

    .comment-form input {
        width: 100%;
    }

    .cookie-container {
        flex-direction: column;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .how-to-order-grid {
        grid-template-columns: 1fr;
    }

    .product-hero {
        grid-template-columns: 1fr;
    }

    .product-hero-info {
        text-align: center;
    }

    .product-hero-info h1 {
        text-align: center;
        font-size: 22px;
    }

    .product-hero-info .btn-red {
        display: inline-block;
    }

    .order-form-inner {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .how-to-order {
        padding: 20px;
    }

    .order-form-section {
        padding: 20px;
    }

    .nav-dropdown .dropdown {
        position: static;
        box-shadow: none;
        background-color: #f0f0f0;
    }

    .nav-dropdown .dropdown li a {
        color: #1a1a2e;
    }

    .review-name-input {
        max-width: 100%;
    }
}
