/* --- CSS Variables & Design Tokens --- */
:root {
    /* Color Palette */
    --clr-primary: #1F3625; /* Deep Forest Green */
    --clr-primary-light: #2c4d35;
    --clr-accent: #D4AF37; /* Champagne Gold */
    --clr-accent-hover: #e6c860;
    --clr-bg: #F9F8F6; /* Clean Off-White */
    --clr-bg-light: #FFFFFF;
    --clr-text: #2C2A29; /* Espresso Brown */
    --clr-text-light: #6b6664;
    --clr-border: #E5E0DA;
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
}

/* --- Resets & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-sans);
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

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

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(249, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--clr-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--clr-accent);
}

.cart-btn {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-primary);
    transition: color var(--transition-fast);
}

.cart-btn:hover {
    color: var(--clr-accent);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: all var(--transition-medium);
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #fff;
    border: 1px solid var(--clr-primary);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-primary);
    color: #fff;
}

.w-100 {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/hero_bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(31, 54, 37, 0.4), rgba(31, 54, 37, 0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
    color: #fff;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Product Section --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--clr-border);
    border-radius: 30px;
    color: var(--clr-text-light);
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* Product Card */
.product-card {
    background: var(--clr-bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    opacity: 1;
    transform: scale(1);
}

.product-card.hidden {
    display: none;
}

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

.product-img-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect ratio */
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.add-to-cart-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom var(--transition-medium);
}

.product-card:hover .add-to-cart-overlay {
    bottom: 0;
}

.add-btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-primary);
    width: 100%;
    height: 100%;
}

.add-btn:hover {
    color: var(--clr-accent);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    color: var(--clr-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 500;
    color: var(--clr-primary);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-light);
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--clr-accent);
    z-index: 0;
}

.image-placeholder {
    width: 100%;
    padding-top: 120%;
    background-color: var(--clr-primary);
    background-image: url('../images/matching_set_champagne_1779051041744.png');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

/* --- Footer --- */
.footer {
    background-color: var(--clr-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem;
}

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

.footer .logo {
    color: #fff;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-links h3 {
    color: var(--clr-accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: #fff;
}

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

/* --- Cart Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--clr-bg-light);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-medium);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    font-size: 2rem;
    line-height: 1;
    color: var(--clr-text-light);
}

.close-btn:hover {
    color: var(--clr-primary);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--clr-text-light);
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--clr-border);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--clr-primary);
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

.qty-btn {
    color: var(--clr-text-light);
    font-weight: bold;
}

.qty-btn:hover {
    color: var(--clr-primary);
}

.remove-btn {
    font-size: 0.8rem;
    color: #e53935;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--clr-border);
    background-color: var(--clr-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--clr-primary);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile behavior, can be expanded later */
    }
    
    .about-content, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}
