@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-green: #5a6845;
    --primary-green-dark: #464e35;
    --bg-cream: #f7f2eb;
    --text-dark: #2c2a26;
    --text-light: #6e6a64;
    --white: #ffffff;
    --accent-gold: #a38a5e;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.8rem;
}

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

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
}

.top-bar i {
    margin-right: 6px;
}

/* --- Navigation --- */
.navbar {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-green);
}

.logo small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    background: var(--bg-cream);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    width: 150px;
}

.search-bar i {
    color: var(--text-light);
}

.cart-icon {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.1rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d94f1a;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

/* --- Hero Section --- */
.hero {
    padding: 60px 0 80px;
    position: relative;
    background: #fdfaf7;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    padding-right: 40px;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-content h1 em {
    font-style: italic;
    color: var(--primary-green);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

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

/* --- Hero Image Wrapper - Sidebar ABOVE image --- */
.hero-image-wrapper-gap {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* GREEN SIDEBAR - Horizontal bar ABOVE the image */
.hero-sidebar {
    background: var(--primary-green);
    color: var(--white);
    padding: 22px 30px;
    border-radius: 16px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hero-sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.hero-sidebar-item i {
    font-size: 1.4rem;
    width: 32px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.95);
    text-align: center;
}

.hero-sidebar-item div {
    display: flex;
    flex-direction: column;
}

.hero-sidebar-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--white);
}

.hero-sidebar-item p {
    font-size: 0.78rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.3;
    color: var(--white);
}

/* IMAGE - BELOW the sidebar */
.hero-image-wrapper-gap .hero-image {
    background: transparent;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 400px;
}

.hero-image-wrapper-gap .hero-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: block;
}

/* --- Category Section --- */
.shop-categories {
    padding: 60px 0;
    background: var(--bg-cream);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
}

.section-header small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
}

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

.category-card {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(90, 104, 69, 0.1);
}

.category-img-wrap {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 12px;
}

.category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h4 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Promo Banner --- */
.promo-banner {
    background: #2c2a26;
    color: var(--white);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.promo-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.promo-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.promo-text p {
    opacity: 0.8;
    margin-bottom: 25px;
}

/* --- Features Bar --- */
.features-bar {
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-block i {
    font-size: 2rem;
    color: var(--primary-green);
}

.feature-block h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.feature-block p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =========================================
   PRODUCT CARDS
========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    background: var(--white);
    border-radius: 20px;
    padding: 16px 16px 20px;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.product-item .product-img-wrap {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #f7f2eb;
    padding: 6px;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(90, 104, 69, 0.12);
    border-color: rgba(90, 104, 69, 0.15);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

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

.product-category-badge {
    display: inline-block;
    background: #f0ece6;
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    width: fit-content;
}

.product-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
    line-height: 1.2;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.7rem;
}

.product-weight {
    font-size: 0.85rem;
    color: #9e9a94;
    margin-bottom: 12px;
}

.price {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.2rem;
    margin: 8px 0 14px;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.btn-add-cart {
    background: var(--primary-green);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(90, 104, 69, 0.25);
}

.btn-add-cart:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(90, 104, 69, 0.35);
}

.btn-add-cart:active {
    transform: scale(0.98);
}

.btn-whatsapp-direct {
    background: transparent;
    border: 1.5px solid #25D366;
    color: #25D366;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-whatsapp-direct:hover {
    background: #25D366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-direct:active {
    transform: scale(0.98);
}

.product-grid-four {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.product-grid-four .product-img-wrap {
    height: 140px;
    padding: 4px;
}

.product-grid-four .product-item {
    padding: 10px 10px 14px;
}

.product-grid-four .product-item h4 {
    font-size: 0.95rem;
}

.product-grid-four .product-desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.4rem;
}

.product-grid-four .price {
    font-size: 1rem;
    margin: 6px 0 10px;
}

.product-grid-four .btn-add-cart,
.product-grid-four .btn-whatsapp-direct {
    font-size: 0.8rem;
    padding: 8px 12px;
}

.category-btn.active {
    background: var(--primary-green) !important;
    color: white !important;
    border-color: var(--primary-green) !important;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: #1e1c18;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Cart Overlay & Panel --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-cream);
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.cart-panel.open {
    right: 0;
}

.cart-item img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.admin-panel {
    padding: 40px;
    background: var(--white);
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 20px;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
}

.btn-header {
    height: 48px;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 0.95rem;
}

/* =========================================
   RESPONSIVE QUERIES
========================================= */
@media (max-width: 1200px) {
    .product-grid-four {
        grid-template-columns: repeat(4, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-grid-four {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .promo-banner .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
        overflow: hidden;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-image-wrapper-gap {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        overflow: hidden;
    }
    
    /* SIDEBAR - Switches to vertical on mobile, stays ABOVE image */
    .hero-sidebar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 15px;
        width: 100%;
        border-radius: 16px;
    }
    
    .hero-sidebar-item {
        gap: 12px;
        flex: unset;
    }
    
    .hero-sidebar-item i {
        font-size: 1.2rem;
        width: 24px;
    }
    
    .hero-sidebar-item h4 {
        font-size: 0.9rem;
    }
    
    .hero-sidebar-item p {
        font-size: 0.78rem;
    }
    
    .hero-image-wrapper-gap .hero-image {
        min-height: 250px;
        width: 100%;
        border-radius: 30px;
    }
    
    .hero-image-wrapper-gap .hero-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
}

@media (max-width: 550px) {
    .product-grid-four,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-item {
        margin-bottom: 0;
        max-width: 100%;
    }
    
    .product-item .product-img-wrap,
    .product-grid-four .product-img-wrap {
        height: 200px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .top-bar a {
        margin: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .hero-sidebar {
        padding: 16px 18px;
        gap: 12px;
    }
    
    .hero-sidebar-item {
        gap: 10px;
    }
    
    .hero-sidebar-item i {
        font-size: 1rem;
        width: 20px;
    }
    
    .hero-sidebar-item h4 {
        font-size: 0.85rem;
    }
    
    .hero-sidebar-item p {
        font-size: 0.72rem;
    }
    
    .hero-image-wrapper-gap .hero-image {
        min-height: 200px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-img-wrap {
        height: 120px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .feature-block {
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
    }
    
    .feature-block i {
        font-size: 1.5rem;
    }
    
    .feature-block h4 {
        font-size: 0.85rem;
    }
    
    .feature-block p {
        font-size: 0.7rem;
    }
    
    .promo-banner .container {
        flex-direction: column;
        padding: 0 15px !important;
        text-align: center;
    }
    
    .promo-banner .container img {
        width: 100% !important;
        max-width: 250px !important;
    }
    
    .promo-text h3 {
        font-size: 1.3rem !important;
    }
    
    .promo-text p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 400px) {
    .product-item .product-img-wrap,
    .product-grid-four .product-img-wrap {
        height: 160px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-sidebar {
        padding: 14px 14px;
        gap: 10px;
    }
    
    .hero-sidebar-item {
        gap: 8px;
    }
    
    .hero-sidebar-item i {
        font-size: 0.9rem;
        width: 18px;
    }
    
    .hero-sidebar-item h4 {
        font-size: 0.8rem;
    }
    
    .hero-sidebar-item p {
        font-size: 0.68rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .container {
        padding: 0 10px;
    }
}