:root {
    /* Premium Color Palette - Updated for "Thrift and Thrive" */
    --color-primary: #2c3e30;
    /* Deep Forest Green for Text/Headings */
    --color-secondary: #f3f4f1;
    /* Warm Off-white/Paper for Backgrounds */
    --color-accent: #8da399;
    /* Sage Green for Buttons/Highlights */
    --color-white: #ffffff;
    --color-text-muted: #5d6d63;

    /* Typography */
    --font-heading: 'Playfair Display',
        serif;
    /* Elegant Serif for Headings */
    --font-body: 'Lato',
        sans-serif;
    /* Clean Sans-serif for Body */

    /* Spacing */
    --spacing-container: 1200px;
    --spacing-padding: 2rem;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.toast {
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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


/* Modern Button System - Green Bubble (User Approved) */
/* Button Styles - Restored to Dark Green */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #2c3e30;
    /* Dark Green */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    /* Bubble/Pill */
    font-weight: 700;
    /* Bold */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(44, 62, 48, 0.3);
    cursor: pointer;
}

.btn:hover {
    background-color: #3a5240;
    /* Slightly lighter on hover */
    transform: scale(1.1);
    /* Pop effect */
    box-shadow: 0 6px 20px rgba(44, 62, 48, 0.4);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
    background-color: #2c3e30;
    color: white;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-small:hover {
    background-color: #3a5240;
    transform: scale(1.1);
}

/* Trash Icon Button for Cart */
.btn-trash {
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-trash:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* Scroll Reveal Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Featured Section - Visual Match */
.featured-section {
    padding: 6rem 0;
    /* More spacing */
    background: #fff;
    text-align: center;
}

.section-badge {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #5d6d63;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    /* Larger */
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-subtitle {
    font-family: 'Lato', sans-serif;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Featured Grid Layout - 2 Columns Wide */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns for wide look */
    gap: 2rem;
    max-width: 1100px;
    /* Constrain width */
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.featured-card {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Subtle border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    /* Very clean shadow */
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #d4af37, #f1c40f);
    /* GOLD Gradient */
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Shop Sidebar Styles - Premium Pills */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    margin-bottom: 8px;
    background: transparent;
    border: none;
    border-radius: 50px;
    /* Pill Shape */
    color: #5d6d63;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f0f4f1;
    color: #2c3e30;
    transform: scale(1.05);
    /* Zoom effect */
    padding-left: 25px;
    /* Slight shift */
}

.filter-btn.active {
    background-color: #2c3e30;
    /* Dark Green */
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(44, 62, 48, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #ddd;
    /* Thicker border */
    color: #555;
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-outline:hover {
    border-color: #6a9a8b;
    color: #6a9a8b;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(231, 76, 60, 0.2);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.product-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
    padding-bottom: 5px;
    /* Extra breathing room */
}

/* ... existing styles ... */

.product-card-img-wrapper {
    height: 280px;
    /* Taller for better look */
    background: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smoother */
}

.product-card:hover img {
    transform: scale(1.02);
    /* Less intense */
}



h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--spacing-padding);
}

/* Utilities Replaced by Modern Button System above */

/* Navbar Placeholder */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--spacing-padding);
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: bold;
    text-decoration: none;
    color: var(--color-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

/* Cart Icon Styling */
.cart-icon a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    /* Pill shape */
    transition: all 0.3s ease;
}

.cart-icon a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Product Cards (Phase 2 Polish) */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 1.5rem;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    /* Premium soft shadow */
    border-color: transparent;
}

.product-card-img-wrapper {
    height: 250px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
    /* Subtle zoom */
}

/* Modern Select Styles - Added Locally */
.custom-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    /* Custom Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(44, 62, 48, 0.1);
    outline: none;
}
