:root {
    --color-primary: #4a7c59;
    --color-primary-dark: #3d6649;
    --color-primary-light: #e8f2ec;
    --color-text: #1a1a1a;
    --color-text-light: #555;
    --color-text-muted: #888;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-dark: #1a2e23;
    --color-border: #e5e7eb;
    --color-star: #f5a623;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --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);
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
}

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

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

ul {
    list-style: none;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.header-top {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

.header-main {
    padding: 16px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.btn-header {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-header:hover {
    background: var(--color-primary);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-sm {
    font-size: 13px;
    padding: 8px 18px;
}

.btn-lg {
    font-size: 16px;
    padding: 16px 36px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #f0f7f3 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 650px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Features */
.features {
    padding: 64px 0;
    background: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--color-bg-alt);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: 50%;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--color-text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Product Card */
.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    background: #f5f5f5;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.product-info {
    padding: 24px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    display: flex;
    gap: 1px;
}

.star {
    color: #ddd;
    font-size: 16px;
}

.star.filled {
    color: var(--color-star);
}

.star.half {
    background: linear-gradient(90deg, var(--color-star) 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    font-size: 13px;
    color: var(--color-text-muted);
}

.product-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-name a {
    transition: color var(--transition);
}

.product-name a:hover {
    color: var(--color-primary);
}

.product-description {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.product-features li {
    font-size: 13px;
    color: var(--color-text-light);
    padding-left: 18px;
    position: relative;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary-light);
    border: 2px solid var(--color-primary);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Why Fresh Section */
.why-fresh {
    padding: 80px 0;
    background: var(--color-bg);
}

.why-fresh-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-fresh-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.why-fresh-content > p {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefits-list li {
    padding-left: 24px;
    position: relative;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
}

.benefits-list strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.benefits-list span {
    font-size: 14px;
    color: var(--color-text-light);
}

.why-fresh-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.image-placeholder span {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 500;
}

/* Newsletter */
.newsletter {
    padding: 64px 0;
    background: var(--color-primary-light);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-content p {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.newsletter-form .form-row {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--color-primary);
}

/* Footer */
.site-footer {
    background: var(--color-bg-dark);
    color: #ccc;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo .logo-text {
    color: white;
}

.footer-logo .logo-tagline {
    color: #888;
}

.footer-about {
    font-size: 14px;
    line-height: 1.7;
    color: #aaa;
    margin-top: 12px;
}

.footer-col h4 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #aaa;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: white;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #aaa;
}

.contact-list li svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.contact-list li a {
    color: #aaa;
    transition: color var(--transition);
}

.contact-list li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: #777;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #888;
    transition: color var(--transition);
}

.footer-social a:hover {
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-primary);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-primary-dark);
}

/* Product Detail */
.product-detail {
    padding: 48px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.product-gallery {
    position: relative;
}

.gallery-main {
    background: #f5f5f5;
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

.badge-quality {
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.product-detail-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-rating.large .stars {
    font-size: 20px;
}

.product-rating.large {
    margin-bottom: 16px;
}

.product-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.product-detail-desc {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.product-specs {
    margin-bottom: 24px;
}

.product-specs h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--color-border);
}

.specs-table td {
    padding: 10px 0;
    font-size: 14px;
}

.specs-table td:first-child {
    color: var(--color-text-muted);
    width: 45%;
}

.specs-table td:last-child {
    font-weight: 500;
}

.product-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.product-cta {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.cta-note {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 10px;
}

/* Tabs */
.product-details-tabs {
    padding: 48px 0;
    background: var(--color-bg-alt);
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--color-border);
}

.tab-btn {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    position: relative;
    transition: color var(--transition);
}

.tab-btn:hover {
    color: var(--color-text);
}

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

.tab-content {
    display: none;
    max-width: 700px;
}

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

.tab-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tab-content p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.tab-content ul,
.tab-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.tab-content li {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
    list-style: disc;
}

.tab-content ol li {
    list-style: decimal;
}

.usage-list li {
    list-style: decimal;
}

/* Related Product */
.related-product {
    padding: 64px 0;
}

.related-product h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    max-width: 500px;
    transition: box-shadow var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
}

.product-image.small {
    width: 120px;
    height: 120px;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.related-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.related-info h3 a:hover {
    color: var(--color-primary);
}

.related-info p {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.related-info .product-price {
    font-size: 18px;
    display: block;
    margin-bottom: 12px;
}

/* Placeholder images */
.placeholder-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    color: #999;
}

.placeholder-img span {
    font-size: 14px;
    font-weight: 500;
}

.placeholder-img.large {
    min-height: 400px;
}

/* Responsive */
@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-fresh-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .newsletter-form .form-row {
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

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

    .section-header h2 {
        font-size: 26px;
    }

    .product-detail-info h1 {
        font-size: 28px;
    }

    .product-detail-price {
        font-size: 26px;
    }

    .related-card {
        flex-direction: column;
        text-align: center;
    }
}


/* Better Product Image Fit */

.product-image {
    width: 100%;
    height: 320px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.03);
}

/* Product page gallery image */

.gallery-main {
    width: 100%;
    height: 500px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
}