body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --ink: #1f1f2e;
    --ink-soft: #6b7280;
    --mist: #f5f4f2;
    --bone: #ffffff;
    --accent: #364152;
    --accent-strong: #1f2937;
    --gold: #c9a227;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.18);
    --shadow-tight: 0 8px 24px rgba(15, 23, 42, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
}

.serif {
    font-family: 'Playfair Display', serif;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Slider */
.slide {
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    will-change: opacity;
    transform: translateZ(0);
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none;
    }

    .animate-fade-in {
        animation: none;
    }
}

.content-active {
    z-index: 20;
    position: relative;
}

/* Collection Filter */
.category-btn.active {
    border-color: #4f46e5;
    color: #4f46e5;
    font-weight: 700;
}

/* Mobile Menu */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
}

#mobile-menu.active {
    transform: translateY(0);
}

/* Custom transitions for better feel */
header {
    backface-visibility: hidden;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Collection modal */
.collection-modal {
    backdrop-filter: blur(6px);
}

.collection-modal-card {
    background: var(--bone);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.collection-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding: 2.5rem;
    align-items: center;
}

.collection-modal-media {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--mist);
    box-shadow: var(--shadow-tight);
}

.collection-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-modal-title {
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.collection-modal-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.collection-modal-text {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.8;
}

.collection-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-tight);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.collection-modal-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.collection-modal-chip {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(54, 65, 82, 0.08);
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .collection-modal-body {
        gap: 1.5rem;
        padding: 2rem;
    }
}

@media (max-width: 900px) {
    .collection-modal-body {
        grid-template-columns: 1fr;
    }

    .collection-modal-media {
        max-height: 360px;
    }
}

@media (max-width: 640px) {
    .collection-modal-body {
        padding: 1.5rem;
    }

    .collection-modal-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    z-index: 60;
    display: flex;
    justify-content: center;
}

.cookie-consent.hidden {
    display: none;
}

.cookie-consent-card {
    width: min(960px, 95vw);
    background: linear-gradient(135deg, #ffffff 0%, #f8f6f1 100%);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 2rem;
    align-items: center;
}

.cookie-consent-title {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-strong);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cookie-consent-description {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.cookie-consent-check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--ink);
}

.cookie-consent-check input {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.cookie-consent-link {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-btn {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cookie-consent-btn.primary {
    background: var(--accent-strong);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.cookie-consent-btn.secondary {
    background: transparent;
    border-color: rgba(15, 23, 42, 0.3);
    color: var(--accent-strong);
}

.cookie-consent-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.cookie-consent-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cookie-consent-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
