/* ============================================
   Esty – Custom Styles
   ============================================ */

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

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #131313; }
::-webkit-scrollbar-thumb { background: #4d4635; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #99907c; }

/* Luxury hover effect */
.luxury-hover .aspect-\[4\/5\],
.luxury-hover > div:first-child {
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.luxury-hover:hover .aspect-\[4\/5\],
.luxury-hover:hover > div:first-child {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(242, 202, 80, 0.15);
}
.luxury-hover img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.luxury-hover:hover img {
    transform: scale(1.08);
}

/* Hero text reveal animation */
.hero-text-reveal {
    animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in on scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stagger-children.revealed > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Gold underline hover */
.gold-underline {
    position: relative;
    display: inline-block;
}
.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f2ca50;
    transition: width 0.4s ease;
}
.gold-underline:hover::after {
    width: 100%;
}

/* Product card hover */
.product-card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover {
    transform: translateY(-8px);
}
.product-card:hover .product-overlay {
    opacity: 1;
}
.product-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Button styles */
.btn-primary {
    @apply px-10 py-4 bg-primary text-on-primary font-label-md text-label-md tracking-widest uppercase
           hover:bg-opacity-80 transition-all duration-300;
}
.btn-outline {
    @apply px-10 py-4 border border-primary text-primary font-label-md text-label-md tracking-widest uppercase
           hover:bg-primary hover:text-on-primary transition-all duration-500;
}
.btn-white {
    @apply px-10 py-4 border border-white text-white font-label-md text-label-md tracking-widest uppercase
           hover:bg-white hover:text-background transition-all duration-500;
}

/* Image zoom on hover */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
    transform: scale(1.08);
}

/* Custom input focus */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #f2ca50 !important;
}

/* Tab underline */
.tab-active {
    border-bottom: 2px solid #f2ca50;
    color: #f2ca50;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #f2ca50;
    color: #3c2f00;
    padding: 16px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 400px;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Quantity stepper */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
}
.qty-stepper button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4d4635;
    background: transparent;
    color: #e5e2e1;
    cursor: pointer;
    transition: all 0.2s;
}
.qty-stepper button:hover {
    background: #f2ca50;
    color: #3c2f00;
    border-color: #f2ca50;
}
.qty-stepper input {
    width: 48px;
    height: 40px;
    text-align: center;
    border-top: 1px solid #4d4635;
    border-bottom: 1px solid #4d4635;
    border-left: none;
    border-right: none;
    background: transparent;
    color: #e5e2e1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
}

/* Star rating */
.star-rating {
    color: #f2ca50;
    letter-spacing: 2px;
}

/* Loading shimmer */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}
.shimmer {
    background: linear-gradient(90deg, #1c1b1b 25%, #2a2a2a 50%, #1c1b1b 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Mobile menu animation */
/* Mobile Menu Drawer (iOS-style) */
.mobile-menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 9998 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.mobile-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 300px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #131313 !important;
    z-index: 9999 !important;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex !important;
    flex-direction: column !important;
    border-right: 1px solid rgba(77, 70, 53, 0.3) !important;
    overscroll-behavior: contain;
    will-change: transform;
}
.mobile-menu-drawer.open {
    transform: translateX(0) !important;
}
.mobile-nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    color: #e5e2e1 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 24px !important;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
}
.mobile-nav-item .material-symbols-outlined {
    font-size: 22px !important;
}
.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(242, 202, 80, 0.08) !important;
    color: #f2ca50 !important;
}
.mobile-nav-item.active {
    font-weight: 600 !important;
}

@media (min-width: 768px) {
    .mobile-menu-drawer,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Product gallery thumbnails */
.thumb-active {
    border-color: #f2ca50 !important;
}

/* Customization option active */
.option-active {
    border-color: #f2ca50 !important;
    background: rgba(242, 202, 80, 0.1) !important;
    color: #f2ca50 !important;
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #4d4635;
    outline: none;
    border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f2ca50;
    cursor: pointer;
    border: 2px solid #131313;
    box-shadow: 0 0 4px rgba(242, 202, 80, 0.4);
}
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f2ca50;
    cursor: pointer;
    border: 2px solid #131313;
}
input[type="range"]::-moz-range-track {
    height: 4px;
    background: #4d4635;
    border-radius: 2px;
}
input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(242, 202, 80, 0.3);
}

/* Price filter inputs */
.price-input {
    background: #1c1b1b;
    border: 1px solid rgba(77, 70, 53, 0.3);
    color: #e5e2e1;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}
.price-input::-webkit-inner-spin-button,
.price-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.price-input:focus {
    border-color: #f2ca50;
}

/* Admin sidebar */
.admin-sidebar a.active {
    background: rgba(242, 202, 80, 0.1);
    color: #f2ca50;
    border-left: 2px solid #f2ca50;
}

/* Print styles */
@media print {
    nav, footer, .no-print { display: none !important; }
    body { background: white !important; color: black !important; }
}