/* ══════════════════════════════════════════════════════════
   DEFINE GIFT SHOP — Custom Styles
   Premium Dark Luxury Theme
   Forest Green + Gold Palette
   ══════════════════════════════════════════════════════════ */

/* ── Base Reset & Typography ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #faf8f4;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #061a0e;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #14532d, #d4a017);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #1e5c1e, #d4a017);
}

/* ── Navigation Links ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a017, #f5d88a);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
}

/* Default state visible for accessibility — JS adds the animated state */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

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

/* ── Scroll Gallery Animation ── */
@keyframes scroll-gallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    gap: 1rem;
    animation: scroll-gallery 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* ── Gold shimmer on hover for CTA buttons ── */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.btn-gold-shimmer {
    background-size: 200% auto;
    background-image: linear-gradient(
        90deg,
        #d4a017 0%,
        #f5d88a 25%,
        #d4a017 50%,
        #b8860b 75%,
        #d4a017 100%
    );
    transition: background-position 0.5s ease, box-shadow 0.3s ease;
}

.btn-gold-shimmer:hover {
    background-position: right center;
}

/* ── Image hover overlay ── */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ── Mobile menu transitions ── */
#mobile-menu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Input autofill styling ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0b2e18 inset !important;
    -webkit-text-fill-color: #faf8f4 !important;
    caret-color: #faf8f4;
}

/* ── Focus visible for keyboard nav ── */
:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

/* ── Print styles ── */
@media print {
    #site-header,
    #mobile-menu,
    .animate-scroll {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
