/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #87bd27;
    --secondary-color: #0c6e31;
    --accent-color: #0c6e31;
    --text-color: #333;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(12, 110, 49, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.11);
    border-bottom-color: rgba(12, 110, 49, 0.2);
}

.header-top {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

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

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo i {
    font-size: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: var(--transition);
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 300;
}

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

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icon {
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.header-icon:hover {
    color: var(--primary-color);
}

/* SVG Cart Icon */
.cart-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.cart-icon {
    width: 24px;
    height: 24px;
    color: var(--text-color);
    transition: var(--transition);
}

.cart-icon-link:hover .cart-icon {
    color: var(--primary-color);
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 400;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 120px 20px;
    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,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
}

.btn-cart {
    width: 100%;
    background: var(--secondary-color);
    color: var(--white);
}

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

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Categories */
.categories {
    padding: 80px 20px;
    background: var(--light-bg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 600;
}

/* Products */
.featured-products {
    padding: 80px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #d0d0d0;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 320px;
    background: var(--light-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.product-price-original {
    font-size: 15px;
    font-weight: 400;
    color: #bbb;
    text-decoration: line-through;
    font-family: 'Montserrat', sans-serif;
}

/* Corner sale ribbon on product image */
.sale-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    background: #e53935;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(229,57,53,0.35);
    text-transform: uppercase;
    line-height: 1;
    pointer-events: none;
}

/* Inline price discount badge */
.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fdecea;
    color: #c62828;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid rgba(198,40,40,0.15);
}

/* Sale banner strip */
.sale-banner {
    background: linear-gradient(90deg, var(--secondary-color) 0%, #1a8a45 50%, var(--secondary-color) 100%);
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sale-banner span {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    letter-spacing: 1.5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
    font-family: 'Montserrat', sans-serif;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid #e5e5e5;
    color: var(--text-color);
    background: #fff;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination span.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
}

.pagination span.dots {
    border-color: transparent;
    background: none;
    color: #aaa;
    cursor: default;
}

.pagination a.prev-next {
    gap: 6px;
    padding: 0 16px;
    font-weight: 600;
}

/* Features */
.features {
    padding: 80px 20px;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.feature-card p {
    color: #666;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 20px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section p {
    font-family: 'Montserrat', sans-serif;
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

.social-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 17px;
}

.social-links a:hover { transform: translateY(-3px); }
.social-links a[title="Instagram"]:hover  { background: #e1306c; border-color: #e1306c; color: #fff; }
.social-links a[title="TikTok"]:hover     { background: #010101; border-color: #69c9d0; color: #69c9d0; }
.social-links a[title="WhatsApp"]:hover   { background: #25d366; border-color: #25d366; color: #fff; }
.social-links a[title="Snapchat"]:hover   { background: #fffc00; border-color: #fffc00; color: #333; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-family: 'Montserrat', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .header-top {
        display: none;
    }
    .header-main {
        padding: 12px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-image {
        height: 260px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }
}
