:root {
    --dusty-rose: #D4A5A5;
    --blush-pink: #F7D5D0;
    --antique-pink: #E8B4B8;

    --cream: #FAF6F0;
    --sage-green: #B8C5B4;
    --warm-gray: #8B7F7F;

    --off-white: #FFFCF8;
    --charcoal: #3A3232;
    --light-gray: #E8E4DD;

    --available: #B8C5B4;
    --sold: #8B7F7F;
    --reserved: #E8B4B8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    color: var(--charcoal);
    margin-top: 0;
}

a {
    color: var(--dusty-rose);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    border: none;
    background-color: var(--dusty-rose);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: var(--antique-pink);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-card {
    background-color: var(--off-white);
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.product-card:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: #fff;
}

.badge-available {
    background-color: var(--available);
}

.badge-sold {
    background-color: var(--sold);
}

.badge-reserved {
    background-color: var(--reserved);
}

.site-header {
    background-color: var(--off-white);
    border-bottom: 1px solid var(--light-gray);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    position: relative;
}

.site-logo {
    flex: 0 1 45vw;
    max-width: 300px;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75px;
    object-fit: contain;
}

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

.nav-divider {
    margin: 0 0.5rem;
    color: #8B7F7F;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    border: 1px solid var(--light-gray);
    background-color: #fff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background-color: var(--charcoal);
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--light-gray);
    background-color: var(--off-white);
    font-size: 0.9rem;
}

.hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.hero-title {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    color: var(--warm-gray);
}

.section {
    padding: 2.5rem 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-media-block {
    margin: 1.5rem 0 2rem;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--light-gray);
    overflow: hidden;
}

.about-media-block figure {
    margin: 0;
}

.about-media-block img {
    display: block;
    width: 100%;
    height: auto;
}

.about-media-caption {
    margin: 0;
    padding: 0.85rem 1.25rem 1.25rem;
    color: var(--warm-gray);
    font-size: 0.9rem;
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid var(--light-gray);
    background-color: #fff;
    font-size: 0.95rem;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--dusty-rose);
    box-shadow: 0 0 0 1px rgba(212, 165, 165, 0.5);
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .filters-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .filters-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        flex-wrap: wrap;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        flex-direction: column;
        align-items: flex-start;
       max-width: 100%;
        background-color: var(--off-white);
        border: 1px solid var(--light-gray);
        border-radius: 0.75rem;
        padding: 0.75rem 1rem;
        margin-top: 0.75rem;
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1.25rem;
        right: 1.25rem;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
        z-index: 20;
        opacity: 0;
        transform: translateY(-0.5rem);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-nav a {
        padding: 0.35rem 0;
    }

    .site-nav.is-open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-divider {
        display: none;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* Lightbox/Modal Gallery */
.product-gallery {
    position: relative;
}

.product-gallery img {
    cursor: pointer;
    transition: opacity 0.2s ease;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 0.85rem;
}

.product-gallery img:hover {
    opacity: 0.9;
}

.product-gallery-thumbnails {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.product-gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.product-gallery-thumbnails img:hover,
.product-gallery-thumbnails img.active {
    border-color: var(--dusty-rose);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    transition: background-color 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    transition: background-color 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 1);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
    }
}
