/* Base Styles */
:root {
    --primary-color: #000000;
    --rgb-primary-color: 0, 0, 0;
    --text-color: #333333;
    --rgb-text-color: 51, 51, 51;
    --title-color: #1a1a1a;
    --rgb-title-color: 26, 26, 26;
    --bg-color: #ffffff;
    --rgb-bg-color: 255, 255, 255;
    --card-bg: #ffffff;
    --rgb-card-bg: 255, 255, 255;
    --header-bg: #ffffff;
    --rgb-header-bg: 255, 255, 255;
    --header-text: #111111;
    --rgb-header-text: 17, 17, 17;
    --footer-bg: #000000;
    --rgb-footer-bg: 0, 0, 0;
    --footer-text: #ffffff;
    --rgb-footer-text: 255, 255, 255;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color, #333333);
    background-color: var(--bg-color, #ffffff);
}

.site-header {
    background-color: var(--header-bg, #ffffff) !important;
    color: var(--header-text, #111111) !important;
}

.site-footer {
    background-color: var(--footer-bg, #000000) !important;
    color: var(--footer-text, #ffffff) !important;
}


/* Overlay — hidden by default */
#filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 40;
}

#filter-overlay.active {
    display: block;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--title-color, #1a1a1a);
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color, #000000);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 1px solid var(--primary-color, #000000);
}

.btn-primary:hover {
    background-color: white;
    color: black;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: black;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 1px solid black;
}

.btn-secondary:hover {
    background-color: black;
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Cart Overlay & Panel */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 500;
    /* Increased Z-Index */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    z-index: 501;
    /* Higher than overlay */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}