/* ========== BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background-color: #B85C38;
    color: #FDF8F0;
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(61, 43, 31, 0.06);
}

/* ========== MOBILE MENU ========== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-link {
    animation: fadeDown 0.3s ease forwards;
    opacity: 0;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== HAMBURGER ========== */
.menu-line {
    display: block;
}

body.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 5rem !important;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible[data-reveal] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PRODUCT CARD HOVER ========== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #B85C38;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #c4a882;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B85C38;
}
