:root {
    --bg: #FAFAF7;
    --text: #1A1A1A;
    --text-secondary: #6B6B6B;
    --accent: #2D5016;
    --accent-hover: #3D6B20;
    --gold: #B8924A;
    --cream: #F5F0E8;
    --border: #E8E4DC;
    --dark: #1A1A1A;
    --white: #FFFFFF;
}

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

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

h1, h2, h3, h4, h5, h6, .logo, .page-title, .footer-logo {
    font-family: 'Cormorant Garamond', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    height: 72px;
    background: rgba(250, 250, 247, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text);
}

.nav-actions .cart-icon {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

/* Shop Header */
.shop-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.shop-header {
    text-align: center;
    margin-bottom: 48px;
}

.breadcrumb {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text);
}

.page-title {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
}

/* Controls */
.shop-controls {
    position: sticky;
    top: 72px;
    background-color: var(--bg);
    z-index: 900;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-bar {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    cursor: pointer;
    padding-bottom: 4px;
    white-space: nowrap;
}

.filter-btn.active {
    color: var(--text);
    border-bottom: 1px solid var(--gold);
}

.sort-bar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.product-count {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

.sort-select {
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    outline: none;
}

/* Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 60px;
}

.product-card {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: var(--cream);
}

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

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

.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white);
    padding: 4px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

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

.product-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
}

.product-origin {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px 0;
    background-color: transparent;
    border: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 24px 40px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 32px;
    display: block;
    margin-bottom: 16px;
}

.footer-col p {
    color: #999;
    font-size: 14px;
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: var(--white);
    font-size: 16px;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}

.footer-col a {
    display: block;
    color: #999;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #333;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .shop-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .filter-bar {
        overflow-x: auto;
        width: 100%;
        display: flex;
        gap: 16px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .page-title {
        font-size: 32px;
    }
}

/* Logo image constraint */
.logo img {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain;
}
