:root {
    --primary-color: #73AF6F; /*#A0C49D*/;
    /* Sage Green */
    --text-color: #4A3B32;
    /* Dark Brown */
    --text-light: #8D7B68;
    /* Lighter Brown */
    --bg-light: #F9F5E8;
    /* Cream */
    --white: #ffffff;
    --header-height: 80px;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    background: linear-gradient(182.34deg, #badfbe -13.63%, #FFFFFF 33.86%);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    color: var(--primary-color);
    font-weight: bold;
    display: block;
    border: 1px solid var(--text-color);
    padding: 4px;
}
.logo img {
    height: 40px;
    /* Adjust as needed */
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav .active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        transition: 0.3s;
        padding: 20px;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .hamburger {
        display: block;
    }
}

/* Hero Slider */
.hero-slider {
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
    /* Height will be determined by image aspect ratio or set specifically */
    max-height: 600px;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
    animation: fade 1.5s;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Footer */
footer {
    background: #3E2723;
    /* Dark Brown */
    color: #fff;
    /*padding-top: 50px;*/
    padding-bottom: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary-color);
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

.section-title {
    text-align: center;
    margin: 40px 0;
    font-size: 28px;
    font-weight: bold;
}

/* Product Page */
.product-page-container {
    position: relative;
}

.product-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    /* Adjust based on header height + margin */
    height: fit-content;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-sidebar ul li {
    margin-bottom: 15px;
}

.product-sidebar a {
    display: block;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.product-sidebar a:hover,
.product-sidebar a.active {
    background: #fff7e6;
    color: var(--primary-color);
}

.product-list {
    flex-grow: 1;
}

.category-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.product-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
    /* For smooth scrolling with fixed header */
}

.product-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));*/
    /*gap: 20px;*/
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    padding: 15px;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

/* Responsive Product Page */
@media (max-width: 768px) {
    .product-page-container {
        flex-direction: column;
    }

    .product-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .product-sidebar ul {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        padding-bottom: 10px;
    }

    .product-sidebar ul li {
        margin-bottom: 0;
    }
}

/* Featured Products New Design */
.featured-products {
    padding: 50px 15px;
    text-align: center;
}

.section-header {
    margin-bottom: 40px;
}

.sub-title {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.main-title {
    font-size: 32px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 800;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-tabs a {
    font-size: 14px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    position: relative;
}

.category-tabs a.active,
.category-tabs a:hover {
    color: #000;
}

.category-tabs a sup {
    font-size: 10px;
    vertical-align: super;
}

.product-grid-featured {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
    /*gap: 30px;*/
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    text-align: center;
    cursor: pointer;
    /* Add pointer to indicate clickable */
}

.product-img-wrap {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    /* Fallback */
}

.product-img-wrap img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.badge-best-seller, .badge-new {
    position: absolute;
    bottom: 25px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.product-cat {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.product-price {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
}

.view-more-container {
    text-align: right;
    margin-top: 20px;
}

.view-more-link {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* News & Instagram Section */
.news-instagram-section {
    padding: 50px 15px;
    margin-bottom: 50px;
}

.news-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 768px) {
    .news-grid-layout {
        grid-template-columns: 1fr;
    }
}

.col-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    /* Optional separator */
    padding-bottom: 10px;
}

.sub-title-left {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.main-title-left {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    /* Default to primary */
}

.main-title-left.text-orange {
    color: var(--primary-color);
}

.follow-link {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.instagram-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}

.news-item-large {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.news-item-large img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.news-content {
    padding: 20px;
    background: var(--bg-light);
    height: 100%;
    /* Light cream bg */
}

.news-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-right: 10px;
}

.news-date {
    font-size: 10px;
    color: #999;
}

.news-title {
    font-size: 16px;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.4;
    text-transform: uppercase;
}

.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card img {
    border-radius: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-light);
    /* Light yellow bg like image */
    margin: auto;
    padding: 0;
    border-radius: 10px;
    width: 96%;
    max-width: 900px;
    position: relative;
    animation: modalFadeIn 0.3s;
    display: flex;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    width: 100%;
}

.modal-img {
    flex: 1;
    /*padding: 40px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    /* Match bg */
}

.modal-img img#modal-product-img {
    width: 100%;
    max-width: 300px;
    object-fit: contain;
    border-radius: 10px;
    /* Optional */
    margin-bottom: 20px;
}

.modal-thumbnails img {
    width: 60px;
    height: 60px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 5px;
    background: #fff;
}

.modal-info {
    flex: 1;
    padding: 40px 40px 40px 0;
    /* Right padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.modal-info .price {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-info .desc {
    font-size: 14px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-options p {
    font-weight: 600;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.size-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    transition: all 0.3s;
}

.size-btn.active,
.size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-buy {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    transition: background 0.3s;
}

.btn-buy:hover {
    background: #e67e00;
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        overflow-y: auto;
        /*max-height: 90vh;*/
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-info {
        padding: 20px;
    }
}