@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Refined sage green palette */
    --primary: #7FA99B;
    --primary-light: #9BBDB0;
    --primary-dark: #6A8F81;
    --secondary: #C5D6CE;
    --accent: #8FB5A5;
    --light: #F7F9F8;
    --dark: #2F3E36;
    --text: #3A4A42;
    --white: #ffffff;
    --gray-50: #FAFBFA;
    --gray-100: #F5F7F6;
    --gray-200: #E8EBE9;
    --gray-300: #D5DAD7;
    --gray-400: #B4BCB8;
    --gray-500: #93A099;
    --gray-600: #728078;
    --gray-700: #556058;
    --gray-800: #3A4A42;
    --gray-900: #1F2821;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px rgba(127, 169, 155, 0.08);
    --shadow-lg: 0 8px 24px rgba(127, 169, 155, 0.12);
    --border-radius: 0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* ========================================
   PROMO BANNER STYLES
======================================== */

.promo-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 9999;
}

.promo-banner.premium {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.promo-banner.professional {
    background: var(--dark);
    color: var(--white);
    padding: 10px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.promo-banner a {
    color: var(--white);
    text-decoration: underline;
    margin-left: 8px;
    font-weight: 600;
}

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

.promo-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.promo-close:hover {
    opacity: 1;
}

/* ========================================
   MOUNTAIN ROSE HERBS STYLE HEADER
======================================== */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

/* Header Main Row - Mountain Rose Herbs Style */
.header-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    min-height: 80px;
}

/* LEFT SIDE - Navigation */
.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: flex-start;
}

.header-left nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.header-left nav > a,
.header-left nav .nav-item > a {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 8px 0;
    white-space: nowrap;
}

.header-left nav > a:hover,
.header-left nav .nav-item > a:hover {
    color: var(--primary);
}

/* Navigation with Dropdown */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    min-width: 800px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.dropdown-column h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.dropdown-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-column ul li {
    margin-bottom: 10px;
}

.dropdown-column ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    display: block;
    padding: 6px 0;
}

.dropdown-column ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* CENTER - Logo */
.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: block;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* RIGHT SIDE - Actions */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

/* Search Icon Button */
.search-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    color: var(--primary);
}

/* Account Link - Text Style */
.account-link a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.account-link a:hover {
    color: var(--primary);
}

/* Cart Link */
.cart-link a {
    color: var(--text);
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    position: relative;
}

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

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    padding-top: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-overlay-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.search-overlay .search-form {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.search-overlay input {
    width: 100%;
    padding: 24px 60px 24px 24px;
    border: none;
    font-size: 20px;
    font-weight: 300;
    color: var(--text);
    font-family: 'Libre Baskerville', serif;
}

.search-overlay input::placeholder {
    color: var(--gray-400);
}

.search-overlay input:focus {
    outline: none;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: var(--white);
    border: none;
    color: var(--text);
    font-size: 32px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-close:hover {
    background: var(--primary);
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 20px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: color 0.2s;
}

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

/* ========================================
   HERO SECTION
======================================== */

.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gray-100);
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 62, 54, 0.5) 0%, rgba(127, 169, 155, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 800px;
}

.hero-content p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    opacity: 0.95;
}

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

/* ========================================
   BUTTON STYLES
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    font-family: 'Libre Baskerville', serif;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

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

/* ========================================
   SECTION STYLES
======================================== */

.section {
    padding: 100px 0;
}

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

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

.section-title {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
}

/* ========================================
   CATEGORIES GRID
======================================== */

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

.category-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image {
    height: 400px;
    overflow: hidden;
    position: relative;
}

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

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

.category-info {
    padding: 40px 30px;
    text-align: center;
}

.category-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--dark);
}

.category-description {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
}

.category-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.category-link:hover {
    gap: 12px;
}

/* ========================================
   PRODUCTS GRID
======================================== */

.bg-light {
    background: var(--light);
}

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

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    color: var(--dark);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.product-image {
    height: 320px;
    overflow: hidden;
    position: relative;
}

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

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

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--gray-500);
    font-size: 11px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.3;
}

.product-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

.stars {
    color: #D4AF37;
    font-size: 14px;
    letter-spacing: 2px;
}

.rating-count {
    font-size: 13px;
    color: var(--gray-500);
}

.product-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

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

.product-actions {
    display: flex;
    gap: 8px;
}

.add-to-cart {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Libre Baskerville', serif;
}

.add-to-cart:hover {
    background: var(--primary-dark);
}

.view-all-products {
    text-align: center;
    margin-top: 60px;
}

/* ========================================
   BENEFITS SECTION
======================================== */

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

.benefit-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition);
}

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

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
}

.benefit-title {
    color: var(--dark);
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 400;
}

.benefit-description {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.7;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 80px 0 0;
}

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

.footer-logo img {
    height: 80px;
    margin-bottom: 24px;
}

.footer-description {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.widget-title {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.widget-menu {
    list-style: none;
}

.widget-menu li {
    margin-bottom: 12px;
}

.widget-menu a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.widget-menu a:hover {
    color: var(--white);
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-description {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 14px;
    font-family: 'Libre Baskerville', serif;
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    font-family: 'Libre Baskerville', serif;
}

.newsletter-submit:hover {
    background: var(--primary-dark);
}

.newsletter-privacy {
    color: var(--gray-500);
    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
}

.copyright {
    color: var(--gray-500);
    font-size: 13px;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-container {
        padding: 0 30px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .header-left nav {
        gap: 20px;
    }
    
    .header-left nav > a,
    .header-left nav .nav-item > a {
        font-size: 12px;
    }

    .dropdown-menu {
        min-width: 700px;
    }
}

@media (max-width: 992px) {
    .header-main {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }
    
    .header-left nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 16px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .account-link a {
        font-size: 12px;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--gray-500);
    font-size: 16px;
}