/* ===== Root Variables ===== */
:root {
    --primary-color: #1B4D3E;
    --secondary-color: #0D3B2F;
    --accent-color: #E8DCC8;
    --text-color: #1B4D3E;
    --light-gray: #F5EFE3;
    --border-color: #D9CDB5;
    --spacing: 1rem;
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: #fff;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* ===== Navigation ===== */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.nav-brand h1 {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Georgia', 'Garamond', serif;
    letter-spacing: -0.5px;
    margin: 0;
}

.logo-image {
    height: 32px;
    width: auto;
    margin-right: 0.9rem;
    object-fit: contain;
    border-radius: 0.25rem;
    transition: var(--transition);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
    flex-shrink: 0;
}

.logo-image:hover {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
    opacity: 0.95;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.cart-count {
    background-color: var(--accent-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8rem var(--spacing);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    font-family: 'Georgia', 'Garamond', serif;
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 0.4rem;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(27, 77, 62, 0.2);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-full {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

/* ===== Featured Products Section ===== */
.featured,
.products-page {
    padding: 4rem var(--spacing);
}

.featured h2,
.products-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
    font-family: 'Georgia', 'Garamond', serif;
    color: var(--primary-color);
}

.collection-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 300;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* ===== Product Card ===== */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    box-shadow: 0 12px 28px rgba(27, 77, 62, 0.12);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 1.75rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: 'Georgia', 'Garamond', serif;
}

.product-category {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
    text-transform: capitalize;
    font-weight: 500;
}

.product-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    min-height: 40px;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.product-footer {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background-color: var(--secondary-color);
}

/* ===== Features Section ===== */
.features {
    background-color: var(--light-gray);
    padding: 4rem var(--spacing);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-family: 'Georgia', 'Garamond', serif;
    color: var(--primary-color);
}

.feature-item p {
    color: #666;
    font-size: 1rem;
    font-weight: 300;
}

/* ===== Filter Section ===== */
.filter-section {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-section label {
    font-weight: 600;
}

.filter-section select,
.filter-section input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
}

#price-display {
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== Cart Page ===== */
.cart-page {
    padding: 3rem var(--spacing);
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

.cart-items {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.empty-cart p {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background-color: var(--light-gray);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-content {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    font-weight: 600;
}

.quantity-btn:hover {
    background-color: var(--border-color);
}

.remove-btn {
    background-color: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.remove-btn:hover {
    background-color: #fecaca;
}

/* ===== Cart Summary ===== */
.cart-summary {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.cart-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 1rem;
    padding: 1rem 0;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 3rem var(--spacing);
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 300;
}

/* ===== Mission Page ===== */
.mission-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 10rem var(--spacing);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(232, 220, 200, 0.05);
    border-radius: 50%;
}

.mission-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(232, 220, 200, 0.03);
    border-radius: 50%;
}

.mission-hero-content {
    position: relative;
    z-index: 1;
}

.mission-hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    font-family: 'Georgia', 'Garamond', serif;
}

.mission-subtitle {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.95;
}

/* ===== Mission Statement ===== */
.mission-statement {
    padding: 6rem var(--spacing);
    background-color: white;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
}

.mission-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.mission-intro h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Georgia', 'Garamond', serif;
    line-height: 1.2;
}

.mission-tagline {
    font-size: 1.3rem;
    color: #666;
    font-weight: 300;
}

.mission-body {
    font-size: 1.2rem;
    line-height: 2;
    color: #333;
    margin-bottom: 4rem;
    text-align: justify;
}

.mission-body p {
    margin-bottom: 2rem;
    letter-spacing: 0.3px;
}

.mission-body strong {
    color: var(--primary-color);
    font-weight: 700;
}

.mission-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 4rem 0;
}

/* ===== Big Four Section ===== */
.big-four-section {
    margin: 4rem 0;
}

.big-four-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    font-family: 'Georgia', 'Garamond', serif;
}

.big-four-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.big-four-item {
    background: linear-gradient(135deg, #F5EFE3 0%, #FFFFFF 100%);
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.1);
}

.big-four-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(27, 77, 62, 0.15);
}

.big-four-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-family: 'Georgia', 'Garamond', serif;
}

.big-four-item p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== Mission Values ===== */
.mission-values {
    margin: 5rem 0;
}

.mission-values h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    font-family: 'Georgia', 'Garamond', serif;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    border: 2px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    text-align: center;
}

.value-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.15);
}

.value-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Georgia', 'Garamond', serif;
}

.value-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===== Mission CTA ===== */
.mission-cta {
    background: linear-gradient(135deg, #F5EFE3 0%, #FFFFFF 100%);
    padding: 4rem 3rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-top: 5rem;
    border: 1px solid var(--border-color);
}

.mission-cta h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Georgia', 'Garamond', serif;
}

.mission-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {

    .nav-links {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-section select,
    .filter-section input {
        width: 100%;
    }

    .features .container {
        grid-template-columns: 1fr;
    }

    .mission-hero h1 {
        font-size: 2.5rem;
    }

    .mission-hero {
        padding: 5rem var(--spacing);
    }

    .mission-subtitle {
        font-size: 1.3rem;
    }

    .mission-intro h2 {
        font-size: 2rem;
    }

    .mission-body {
        font-size: 1rem;
        text-align: left;
    }

    .big-four-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-statement {
        padding: 3rem var(--spacing);
    }

    .mission-cta {
        padding: 2rem 1.5rem;
    }

    .mission-cta h3 {
        font-size: 1.5rem;
    }
}
