/* ═══════════════════════════════════════════════════════════
   PUMPS SHOES — Shoes Ecommerce
   Shared design system — Muted Rose palette (#915858)
   Colors + fonts are driven by CSS variables so the admin
   Site Configuration panel can re-theme the whole storefront.
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
    --ss-accent: 145 88 88;
    /* #915858 */
    --ss-accent-dark: 165 108 108;
    /* #A56C6C */
    --ss-ink: 10 10 10;
    --ss-coal: 195 136 136;
    /* #C38888 */
    --ss-paper: 255 255 255;
    --ss-smoke: 255 252 252;
    /* #FFD7D7 */
    --ss-line: 233 233 238;
    --ss-muted: 107 114 128;
    --ss-dark-bg: 26 19 18;
    /* #1A1312 */
    --ss-dark-panel: 38 27 26;
    /* #261B1A */
    --ss-dark-border: 60 43 41;
    /* #3C2B29 */
    --ss-font-body: "Plus Jakarta Sans";
    --ss-font-heading: "Outfit";
}

/* Remove global scroll-behavior:smooth. It animates every scroll delta on
   drag/fast-wheel causing the page to lag & "stick". The only smooth scroll
   needed (back-to-top) sets behavior:'smooth' explicitly in JS. */
html {
    scroll-behavior: auto;
}

body {
    font-family: var(--ss-font-body), sans-serif;
    width: 100%;
}

body {
    overflow-x: hidden;
    overflow-x: clip;
}

/* Centered max-width containers must stretch to the full flex column width.
   Without this, `mx-auto` on body's flex items makes them shrink to content,
   collapsing 1fr grid columns (e.g. the shop product grid). */
body>.max-w-\[1400px\] {
    width: 100%;
}

/* ── Grid overlay background ── */
.grid-overlay {
    background-size: 48px 48px;
    background-image:
        linear-gradient(to right, rgb(var(--ss-ink) / 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(var(--ss-ink) / 0.025) 1px, transparent 1px);
}

.dark .grid-overlay {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
}

/* ── Dot grid pattern ── */
.dot-grid {
    background-size: 18px 18px;
    background-image: radial-gradient(rgb(var(--ss-ink) / 0.10) 1px, transparent 1px);
}

.dark .dot-grid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

/* ── Smooth transitions ── */
.transition-premium {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Premium card ── */
.card-premium {
    background: rgb(var(--ss-paper));
    border: 1px solid rgb(var(--ss-line));
    border-radius: 20px;
    box-shadow: 0 8px 30px -12px rgb(var(--ss-ink) / 0.06);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.25s ease;
}

.dark .card-premium {
    background: rgb(var(--ss-dark-panel));
    border-color: rgb(var(--ss-dark-border));
    box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.35);
}

.card-premium:hover {
    border-color: rgb(var(--ss-accent));
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 50px -15px rgb(var(--ss-accent) / 0.22);
}

/* ── Glassmorphism card variant ── */
.card-glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px -8px rgb(var(--ss-ink) / 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .card-glass {
    background: rgba(var(--ss-dark-panel) / 0.5);
    border-color: rgba(var(--ss-dark-border) / 0.3);
}

.card-glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px -12px rgb(var(--ss-accent) / 0.18);
    border-color: rgb(var(--ss-accent) / 0.5);
}

/* ── Buttons ── */
.btn-primary {
    background: rgb(var(--ss-accent));
    color: #fff;
    box-shadow: 0 8px 24px -8px rgb(var(--ss-accent) / 0.45);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: rgb(var(--ss-accent-dark));
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -8px rgb(var(--ss-accent) / 0.55);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

.btn-outline {
    background: rgb(var(--ss-paper));
    border: 1.5px solid rgb(var(--ss-line));
    color: rgb(var(--ss-ink));
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .btn-outline {
    background: rgb(var(--ss-dark-panel));
    border-color: rgb(var(--ss-dark-border));
    color: #fff;
}

.btn-outline:hover {
    border-color: rgb(var(--ss-accent));
    color: rgb(var(--ss-accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgb(var(--ss-accent) / 0.15);
}

.dark .btn-outline:hover {
    color: rgb(var(--ss-accent));
    border-color: rgb(var(--ss-accent));
}

.btn-ghost {
    background: rgb(var(--ss-ink));
    color: #fff;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost:hover {
    background: rgb(var(--ss-ink) / 0.85);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgb(var(--ss-ink) / 0.25);
}

/* ── Nav link underline animation ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: rgb(var(--ss-accent));
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Marquee ticker ── */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.video-marquee {
    display: flex;
    width: max-content;
    animation: marquee 65s linear infinite;
    gap: 24px;
    padding: 0 24px;
}

.video-marquee:hover {
    animation-play-state: paused;
}

/* ══════════════════════════════════════════════════════════
   ENTRANCE / REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-zoom-in {
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    60% {
        transform: scale(1.05);
    }

    80% {
        transform: scale(0.97);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-bounce {
    animation: scaleInBounce 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-8deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.animate-rotate-in {
    animation: rotateIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger helpers (expanded) */
.stagger-1 {
    animation-delay: 0.06s;
}

.stagger-2 {
    animation-delay: 0.12s;
}

.stagger-3 {
    animation-delay: 0.18s;
}

.stagger-4 {
    animation-delay: 0.24s;
}

.stagger-5 {
    animation-delay: 0.30s;
}

.stagger-6 {
    animation-delay: 0.36s;
}

.stagger-7 {
    animation-delay: 0.42s;
}

.stagger-8 {
    animation-delay: 0.48s;
}

.stagger-9 {
    animation-delay: 0.54s;
}

.stagger-10 {
    animation-delay: 0.60s;
}

/* ── Floating animation (hero) ── */
@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

.animate-float {
    animation: floatY 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatY 9s ease-in-out infinite;
}

@keyframes floatRotate {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(2deg);
    }

    50% {
        transform: translateY(-18px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

.animate-float-rotate {
    animation: floatRotate 8s ease-in-out infinite;
}

/* ── Glow shadows (using CSS vars, not hardcoded red) ── */
.shadow-redGlow {
    box-shadow: 0 4px 20px -2px rgba(var(--ss-accent) / 0.4);
}

.shadow-redGlow-lg {
    box-shadow: 0 10px 40px -4px rgba(var(--ss-accent) / 0.45);
}

/* ── Badge animations ── */
@keyframes badgeZoomInOut {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 15px rgba(var(--ss-accent) / 0.8);
    }

    100% {
        transform: scale(1);
    }
}

.badge-animated {
    animation: zoomPulse 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes zoomPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--ss-accent) / 0.7);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(var(--ss-accent) / 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--ss-accent) / 0);
    }
}

/* ── Product image zoom on hover ── */
.product-img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .product-img {
    transform: scale(1.12) rotate(-1deg);
}

/* ── Product card quick-actions slide up ── */
.product-actions {
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease;
}

.group:hover .product-actions {
    transform: translateY(0);
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   PREMIUM TEXT EFFECTS
   ══════════════════════════════════════════════════════════ */

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, rgb(var(--ss-accent)), rgb(var(--ss-accent-dark)), rgb(var(--ss-coal)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer text */
@keyframes textShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.text-shimmer {
    background: linear-gradient(90deg, rgb(var(--ss-ink)), rgb(var(--ss-accent)), rgb(var(--ss-ink)));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s linear infinite;
}

/* ── Underline draw animation ── */
.link-draw {
    position: relative;
    display: inline;
}

.link-draw::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgb(var(--ss-accent)), rgb(var(--ss-accent-dark)));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-draw:hover::after {
    width: 100%;
}

/* ══════════════════════════════════════════════════════════
   GRADIENT & GLOW EFFECTS
   ══════════════════════════════════════════════════════════ */

/* Animated gradient border */
@keyframes gradientRotate {
    0% {
        --angle: 0deg;
    }

    100% {
        --angle: 360deg;
    }
}

.gradient-border {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgb(var(--ss-accent)), rgb(var(--ss-accent-dark)), rgb(var(--ss-coal)), rgb(var(--ss-accent)));
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Pulse glow */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(var(--ss-accent) / 0.4);
    }

    50% {
        box-shadow: 0 0 20px 6px rgba(var(--ss-accent) / 0.2);
    }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════
   LOADING & SKELETON
   ══════════════════════════════════════════════════════════ */

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: #ECECEF;
    border-radius: 16px;
}

.dark .skeleton {
    background: #1D1D23;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.4s infinite;
}

.dark .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* ── Page loader ── */
@keyframes loaderBar {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

#page-loader-bar {
    animation: loaderBar 1.2s ease forwards;
}

/* ── Cart drawer slide-in ── */
@keyframes slideInCartRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.cart-drawer-open {
    animation: slideInCartRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Toast ── */
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-in {
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Heart pulse when saved ── */
@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.35);
    }

    70% {
        transform: scale(0.92);
    }

    100% {
        transform: scale(1);
    }
}

.heart-pop {
    animation: heartPop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Accordion (FAQ) smooth open ── */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-body {
    max-height: 400px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Counter value animation ── */
@keyframes countPulse {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* ── Hide scrollbar ── */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ── Custom scrollbar (polished) ── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #D4D4DA;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--ss-accent));
}

.dark ::-webkit-scrollbar-thumb {
    background: #2E2E36;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--ss-accent));
}

/* ── Range slider (size picker) ── */
input[type='range'].size-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 6px;
    background: rgb(var(--ss-line));
    outline: none;
}

.dark input[type='range'].size-slider {
    background: rgb(var(--ss-dark-border));
}

input[type='range'].size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgb(var(--ss-accent));
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgb(var(--ss-accent) / 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

input[type='range'].size-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* ── Shake (form errors) ── */
@keyframes shakeX {

    10%,
    90% {
        transform: translateX(-1px);
    }

    20%,
    80% {
        transform: translateX(2px);
    }

    30%,
    50%,
    70% {
        transform: translateX(-4px);
    }

    40%,
    60% {
        transform: translateX(4px);
    }
}

.shake {
    animation: shakeX 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ── Table row hover ── */
.tr-hover {
    transition: background 0.25s;
}

.tr-hover:hover {
    background: rgb(var(--ss-accent) / 0.04);
}

.dark .tr-hover:hover {
    background: rgb(var(--ss-accent) / 0.08);
}

/* ── Sidebar active state ── */
.sidebar-link {
    transition: all 0.25s;
}

.sidebar-link.active {
    background: rgb(var(--ss-accent) / 0.1);
    color: rgb(var(--ss-accent));
}

.dark .sidebar-link.active {
    background: rgb(var(--ss-accent) / 0.14);
    color: rgb(var(--ss-accent));
}

.sidebar-link:hover {
    background: rgb(var(--ss-ink) / 0.05);
}

.dark .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ── Filter chips (admin tables & status tabs) ── */
.cat-chip,
.status-chip {
    border: 1px solid rgb(var(--ss-line));
    background: rgb(var(--ss-paper));
    color: rgb(var(--ss-muted));
    transition: all 0.25s;
    cursor: pointer;
}

.dark .cat-chip,
.dark .status-chip {
    background: rgb(var(--ss-dark-panel));
    border-color: rgb(var(--ss-dark-border));
    color: #9CA3AF;
}

.cat-chip:hover,
.status-chip:hover {
    border-color: rgb(var(--ss-accent));
    color: rgb(var(--ss-accent));
}

.cat-chip.active,
.status-chip.active {
    background: rgb(var(--ss-ink));
    border-color: rgb(var(--ss-ink));
    color: #FFFFFF;
}

.dark .cat-chip.active,
.dark .status-chip.active {
    background: rgb(var(--ss-accent));
    border-color: rgb(var(--ss-accent));
    color: #FFFFFF;
}

/* ── Progress bar (revenue etc) ── */
@keyframes growWidth {
    from {
        width: 0;
    }
}

.grow-bar {
    animation: growWidth 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Chart bars ── */
@keyframes barGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.chart-bar {
    transform-origin: bottom;
    animation: barGrow 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Left menu drawer ── */
@keyframes slideInMenuLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.menu-drawer {
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-drawer.open {
    transform: translateX(0);
    box-shadow: 24px 0 60px -20px rgba(0, 0, 0, 0.35);
}

.menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

body.menu-locked {
    overflow: hidden;
}

/* ── Drawer nav item ── */
.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: rgb(var(--ss-muted));
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-link:hover {
    background: rgb(var(--ss-accent) / 0.06);
    color: rgb(var(--ss-accent));
}

.drawer-link.active {
    background: rgb(var(--ss-ink));
    color: #FFFFFF;
}

.dark .drawer-link.active {
    background: rgb(var(--ss-accent));
}

.drawer-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: rgb(var(--ss-muted));
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-cat:hover {
    background: rgb(var(--ss-accent) / 0.06);
    color: rgb(var(--ss-accent));
}

/* ── Desktop nav links ── */
.nav-link {
    position: relative;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #64748B;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
    color: rgb(var(--ss-accent));
    background: rgb(var(--ss-accent) / 0.06);
}

.nav-link.active {
    color: rgb(var(--ss-ink));
}

.dark .nav-link.active {
    color: #FFFFFF;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: rgb(var(--ss-accent));
    transform: translateX(-50%) scale(0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scale(1);
}

/* ── Search modal ── */
.search-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.search-panel {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-panel.open {
    opacity: 1;
    pointer-events: auto;
}

.search-card {
    transform: translateY(-16px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-panel.open .search-card {
    transform: translateY(0) scale(1);
}

.search-result {
    animation: searchIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.search-result:nth-child(2) {
    animation-delay: 0.04s;
}

.search-result:nth-child(3) {
    animation-delay: 0.08s;
}

.search-result:nth-child(4) {
    animation-delay: 0.12s;
}

.search-result:nth-child(5) {
    animation-delay: 0.16s;
}

.search-result:nth-child(6) {
    animation-delay: 0.20s;
}

.search-result:nth-child(7) {
    animation-delay: 0.24s;
}

.search-result:nth-child(8) {
    animation-delay: 0.28s;
}

@keyframes searchIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Product carousel (scroll-snap) ── */
.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 4px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--ss-accent)) transparent;
}

.product-carousel::-webkit-scrollbar {
    height: 8px;
}

.product-carousel::-webkit-scrollbar-track {
    background: rgb(var(--ss-smoke));
    border-radius: 8px;
}

.dark .product-carousel::-webkit-scrollbar-track {
    background: #1D1D23;
}

.product-carousel::-webkit-scrollbar-thumb {
    background: rgb(var(--ss-accent));
    border-radius: 8px;
}

.product-carousel>* {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.product-carousel .carousel-item {
    width: 240px;
}

@media (min-width: 768px) {
    .product-carousel .carousel-item {
        width: 280px;
    }
}

/* ── Category tab pills ── */
.cat-tab {
    border: 1px solid rgb(var(--ss-line));
    background: rgb(var(--ss-paper));
    color: rgb(var(--ss-muted));
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .cat-tab {
    background: rgb(var(--ss-dark-panel));
    border-color: rgb(var(--ss-dark-border));
    color: #9CA3AF;
}

.cat-tab:hover {
    border-color: rgb(var(--ss-accent));
    color: rgb(var(--ss-accent));
    transform: translateY(-2px);
}

.cat-tab.active {
    background: rgb(var(--ss-ink));
    border-color: rgb(var(--ss-ink));
    color: #FFFFFF;
    box-shadow: 0 10px 24px -10px rgb(var(--ss-ink) / 0.4);
}

.dark .cat-tab.active {
    background: rgb(var(--ss-accent));
    border-color: rgb(var(--ss-accent));
    box-shadow: 0 10px 24px -10px rgb(var(--ss-accent) / 0.5);
}

/* ── Brand strip ── */
.brand-logo {
    opacity: 0.45;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ── Instagram tile ── */
.insta-tile {
    position: relative;
    overflow: hidden;
}

.insta-tile .insta-overlay {
    position: absolute;
    inset: 0;
    background: rgb(var(--ss-accent) / 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-tile:hover .insta-overlay {
    opacity: 1;
}

.insta-tile img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.insta-tile:hover img {
    transform: scale(1.08);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ══════════════════════════════════════════════════════════
   PHASE 2 ANIMATIONS & STYLES
   ══════════════════════════════════════════════════════════ */

/* Hero Crossfade */
.hero-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

/* Hero Text Slide Up Bounce */
@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px);
    }

    80% {
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up-bounce {
    animation: slideUpBounce 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Circular Categories */
.category-circle {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    aspect-ratio: 1 / 1;
    border: 4px solid transparent;
}

.category-circle:hover {
    transform: scale(1.05);
    border-color: rgb(var(--ss-accent));
    box-shadow: 0 10px 25px -5px rgb(var(--ss-accent) / 0.4);
}

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

.category-circle:hover img {
    transform: scale(1.15);
}

/* Testimonial Carousel */
.testimonial-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-item {
    flex: 0 0 320px;
    scroll-snap-align: center;
}

/* Video Marquee */
.video-marquee-container {
    overflow: hidden;
    width: 100%;
}

.video-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    gap: 20px;
}

.video-marquee:hover {
    animation-play-state: paused;
}

.video-card {
    width: 220px;
    aspect-ratio: 9/16;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #000;
    flex-shrink: 0;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-card:hover video {
    opacity: 1;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.whatsapp-popup {
    background: white;
    color: #111;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.whatsapp-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.whatsapp-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
}

.whatsapp-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(-10deg);
}

/* ══════════════════════════════════════════════════════════
   MOBILE-OPTIMIZED PRODUCT CARD (2-col grid)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
    .card-premium {
        border-radius: 14px;
    }

    .card-premium .p-5 {
        padding: 10px 10px 12px;
    }

    /* Tighter card content on mobile */
    .card-mobile-text .font-outfit {
        font-size: 13px;
        line-height: 1.3;
    }

    /* Smaller buttons on mobile cards */
    .card-mobile-actions .btn-primary,
    .card-mobile-actions .btn-outline {
        padding: 6px 8px;
        font-size: 10px;
        border-radius: 10px;
    }

    /* Smaller badge on mobile */
    .card-premium .badge-animated {
        font-size: 8px;
        padding: 3px 8px;
    }
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL (JS-driven via IntersectionObserver)
   ══════════════════════════════════════════════════════════ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   SECTION DIVIDER GRADIENTS
   ══════════════════════════════════════════════════════════ */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(var(--ss-accent) / 0.3), transparent);
}

/* ══════════════════════════════════════════════════════════
   INTERACTIVE HOVER EFFECTS
   ══════════════════════════════════════════════════════════ */

/* Magnetic hover on icons */
.icon-hover {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-hover:hover {
    transform: translateY(-3px) scale(1.08);
    color: rgb(var(--ss-accent));
}

/* Tilt card effect */
.tilt-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.tilt-card:hover {
    transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-6px);
}

/* Image reveal wipe */
@keyframes wipeReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

.wipe-reveal {
    animation: wipeReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Elastic bounce for counters */
@keyframes elasticBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.15);
    }

    75% {
        transform: scale(0.93);
    }

    100% {
        transform: scale(1);
    }
}

.elastic-bounce {
    animation: elasticBounce 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ══════════════════════════════════════════════════════════
   SELECT / DROPDOWN STYLING
   Native <select> elements are restyled to match the site's
   input design system. The default browser blue hover highlight
   on options is neutralised as far as browsers allow.
   ══════════════════════════════════════════════════════════ */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23915454' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 0.8rem;
}

select:focus {
    outline: none;
    border-color: rgb(var(--ss-accent));
    box-shadow: 0 0 0 3px rgb(var(--ss-accent) / 0.15);
}

select option {
    background-color: #ffffff;
    color: rgb(var(--ss-ink));
    font-weight: 600;
    padding: 0.5rem;
}

.dark select option {
    background-color: #141418;
    color: #ffffff;
}

.auth-select,
select.auth-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23915454' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.9rem center !important;
    background-size: 0.8rem !important;
}

/* Promote AOS-animated elements to their own compositor layer so
   reveal animations don't cause scroll jank when sections enter
   the viewport. will-change is dropped once the element is revealed
   (.aos-animate), preventing permanent compositor-layer bloat that
   causes scroll stutter on long pages. */
[data-aos]:not(.aos-animate) {
    will-change: transform, opacity;
}

/* ══════════════════════════════════════════════════════════
   FOOTER ENHANCEMENTS
   ══════════════════════════════════════════════════════════ */
footer a {
    transition: color 0.25s ease, transform 0.25s ease;
}

footer a:hover {
    color: rgb(var(--ss-accent));
    transform: translateX(3px);
    display: inline-block;
}

/* ============================================
    