@import url('colors.css');

body {
    background-color: var(--light);
    color: #111111;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-link {
    position: relative;
    color: #111111;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--brand);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
    width: 100%;
}

.nav-shop {
    background: var(--brand);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-shop::after {
    display: none;
}

.nav-shop:hover {
    background: #111111;
    color: #ffffff;
    transform: translateY(-1px);
}

.mobile-nav-link {
    color: #111111;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--brand);
}

/* Footer */
.site-footer {
    background-color: var(--light);
}

.footer-link {
    color: #111111;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--brand);
}

/* Social icon */
.social-icon {
    display: inline-flex;
    color: #111111;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    color: var(--brand);
    transform: translateY(-2px);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Backgrounds */
.bg-grid {
    background-image: radial-gradient(circle, rgba(211, 2, 57, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    border-radius: 9999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #111111;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    border-radius: 9999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: var(--brand);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    border-radius: 9999px;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
}

/* Cards */
.category-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.03);
}

/* Form */
.form-field {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s ease;
}

.form-field:focus-within {
    border-color: var(--brand);
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent;
    outline: none;
    padding: 0.75rem 0;
    font-size: 1rem;
}

/* Cookie banner */
#cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    left: 1.5rem;
    max-width: 420px;
    z-index: 1000;
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

@media (min-width: 640px) {
    #cookie-banner {
        left: auto;
    }
}

/* Cookie modal */
#cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#cookie-modal.opacity-100 {
    opacity: 1;
    pointer-events: auto;
}

#cookie-modal > div {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#cookie-modal.opacity-100 > div {
    transform: scale(1);
}

#cookie-optional:checked + span {
    transform: translateX(1.5rem);
    background-color: var(--brand);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 3px;
}

/* Gallery */
.gallery-grid {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (min-width: 1280px) {
    .gallery-grid {
        column-count: 4;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--card-bg);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* Utilities */
.text-brand {
    color: var(--brand);
}

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