/* ============ GLOBAL STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ee2b4b;
    --primary-glow: rgba(238, 43, 75, 0.4);
    --primary-dark: #c41f3d;
    --background-dark: #0a0506;
    --background-card: #111;
    --accent-purple: #a855f7;
    --accent-cyan: #22d3ee;
    --street-yellow: #facc15;
    --neutral-900: #171717;
    --neutral-800: #262626;
    --neutral-700: #333;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--background-dark);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background-color: var(--primary);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============ GRAIN OVERLAY ============ */
.grain-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* ============ CONCRETE TEXTURE ============ */
.concrete-texture {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
}

/* ============ NAVIGATION ============ */
.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 5, 6, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s var(--transition-smooth);
}

.nav-main.scrolled {
    padding: 0.6rem 2rem;
    background: rgba(10, 5, 6, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 901px) {
    .nav-main .nav-links-desktop {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .nav-main {
        padding: 0.5rem 1rem !important;
        width: 100% !important;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        top: 0 !important;
        right: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .nav-container {
        width: 100% !important;
        min-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Force the first div (Logo container) */
    .nav-container>div:first-child {
        gap: 0.5rem !important;
        flex: 0 1 auto !important;
        /* Allow shrinking */
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-container>div:first-child a {
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }

    /* Force the second div (Icons container) */
    .nav-container>div:last-child {
        gap: 0.25rem !important;
        flex: 0 0 auto !important;
        /* Do not shrink or grow */
        display: flex !important;
        align-items: center !important;
        margin-left: 0.5rem !important;
    }

    /* Hide desktop links securely */
    .nav-links-desktop {
        display: none !important;
    }

    /* Show hamburger */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 4px !important;
        color: white !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        margin-left: 0.5rem !important;
        cursor: pointer !important;
    }

    .mobile-menu-toggle .material-icons {
        font-size: 1.5rem !important;
        line-height: 1 !important;
    }

    /* Adjust logo size */
    .logo {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
    }

    /* Ensure icons don't take too much space */
    .icon-btn {
        padding: 0.4rem !important;
    }

    .icon-btn .material-icons {
        font-size: 1.2rem !important;
    }
}

.nav-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 5, 6, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(238, 43, 75, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.05em;
    cursor: pointer;
    transition: transform 0.3s var(--transition-bounce);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    transition: all 0.3s var(--transition-smooth);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--transition-smooth);
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

/* ============ ICON BUTTONS ============ */
.icon-btn {
    position: relative;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* ============ STICKER EFFECT ============ */
.sticker {
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.3s var(--transition-bounce);
}

.sticker:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.4);
}

/* ============ TILTED NAV ITEMS ============ */
.tilted-nav-item {
    transform: rotate(-3deg);
    transition: all 0.3s var(--transition-bounce);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.tilted-nav-item:hover {
    transform: rotate(3deg) scale(1.1);
}

/* ============ GLITCH HOVER ============ */
.glitch-hover {
    transition: all 0.5s var(--transition-smooth);
}

.glitch-hover:hover {
    filter: hue-rotate(90deg) contrast(130%);
    transform: skewX(-2deg);
}

/* ============ STENCIL TEXT ============ */
.stencil-text {
    -webkit-text-stroke: 1px rgba(238, 43, 75, 0.5);
    color: transparent;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

/* ============ PRODUCT CARDS ============ */
.poster-card {
    background-color: var(--neutral-900);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s var(--transition-smooth);
    position: relative;
}

.poster-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
    border-color: rgba(238, 43, 75, 0.3);
}

.poster-card img {
    filter: grayscale(80%);
    transition: all 0.7s var(--transition-smooth);
}

.poster-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.quick-add-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(10, 5, 6, 0.9), rgba(10, 5, 6, 0.3));
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--transition-smooth);
}

.poster-card:hover .quick-add-overlay {
    opacity: 1;
    transform: translateY(0);
}

.spray-button {
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s var(--transition-bounce);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.spray-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(238, 43, 75, 0.6);
}

.spray-button:active {
    transform: scale(0.95);
}

/* ============ BUTTONS ============ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s var(--transition-smooth);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s var(--transition-smooth);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-secondary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
}

.btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
}

.btn-icon {
    background: rgba(238, 43, 75, 0.15);
    border: none;
    color: white;
    padding: 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-icon:active {
    transform: scale(0.9);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: none;
    color: var(--danger);
    padding: 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

.btn-danger:active {
    transform: scale(0.9);
}

/* ============ CART BADGE ============ */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--background-dark);
    animation: badgePop 0.4s var(--transition-bounce);
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* ============ NEON BORDER ============ */
.neon-border {
    box-shadow: 0 0 10px var(--primary-glow), 0 0 20px rgba(238, 43, 75, 0.15);
}

/* ============ PRICE TAG ============ */
.price-tag {
    background: linear-gradient(135deg, var(--street-yellow), #f59e0b);
    color: black;
    font-weight: 900;
    padding: 0.3rem 0.8rem;
    font-size: 1rem;
    line-height: 1;
    border-radius: 0.25rem;
    white-space: nowrap;
}

/* ============ BADGE ============ */
.badge-skewed {
    transform: skewX(-12deg);
    padding: 0.25rem 1rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(238, 43, 75, 0.2);
    color: var(--primary);
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.2);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* ============ FORMS ============ */
input,
select,
textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.9rem 1.2rem;
    border-radius: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    transition: all 0.3s var(--transition-smooth);
    font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(238, 43, 75, 0.1), 0 0 20px rgba(238, 43, 75, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

select option {
    background: var(--neutral-900);
    color: white;
}

/* ============ GLASS CARD ============ */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ============ STAT CARD ============ */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(238, 43, 75, 0.3);
    box-shadow: 0 10px 40px rgba(238, 43, 75, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

/* ============ UTILITY CLASSES ============ */
/* ============ CART GRID ============ */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .cart-grid {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
    }
}

@media (max-width: 950px) {
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cart-grid aside {
        position: static !important;
        width: 100%;
    }
}

/* ============ CART ITEM ============ */
.cart-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    animation: fadeInUp 0.5s ease forwards;
}

.cart-item-img {
    position: relative;
    height: 7rem;
    width: 7rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--neutral-900);
}

.cart-item-info {
    flex: 1;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-item-img {
        width: 100%;
        height: 12rem;
    }

    .cart-item-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============ QUANTITY CONTROL ============ */
.qty-control {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-value {
    padding: 0 0.75rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* ============ PRODUCT DETAIL GRID ============ */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ============ PRODUCT DETAIL PAGE GRID ============ */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        /* Stack vertically on mobile */
        gap: 2rem !important;
    }

    .product-gallery {
        margin-bottom: 1rem;
    }
}

/* ============ CHECKOUT GRID ============ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ============ GENERIC GRIDS ============ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ============ PRODUCT GRIDS ============ */
#productsGrid,
#relatedProducts {
    display: grid !important;
}

#productsGrid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
}

#relatedProducts {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
}

@media (max-width: 640px) {

    #productsGrid,
    #relatedProducts {
        grid-template-columns: 1fr !important;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: rgba(255, 255, 255, 0.4);
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 2rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    .text-3xl {
        font-size: 1.5rem !important;
    }
}

.bg-primary {
    background-color: var(--primary);
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.font-black {
    font-weight: 900;
}

.font-bold {
    font-weight: 700;
}

.tracking-tight {
    letter-spacing: -0.05em;
}

.tracking-wide {
    letter-spacing: 0.15em;
}

/* ============ ANIMATIONS ============ */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container:hover {
    animation-play-state: paused;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(238, 43, 75, 0.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s var(--transition-smooth) forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.6s var(--transition-smooth) forwards;
}

.animate-fade-down {
    animation: fadeInDown 0.4s var(--transition-smooth) forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Stagger children animations */
.stagger-children>* {
    opacity: 0;
    animation: fadeInUp 0.5s var(--transition-smooth) forwards;
}

.stagger-children>*:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger-children>*:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
    animation-delay: 0.15s;
}

.stagger-children>*:nth-child(4) {
    animation-delay: 0.2s;
}

.stagger-children>*:nth-child(5) {
    animation-delay: 0.25s;
}

.stagger-children>*:nth-child(6) {
    animation-delay: 0.3s;
}

.stagger-children>*:nth-child(7) {
    animation-delay: 0.35s;
}

.stagger-children>*:nth-child(8) {
    animation-delay: 0.4s;
}

/* ============ HERO SLIDER ============ */
.hero-slider {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s var(--transition-smooth);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    z-index: 10;
    animation: fadeInUp 1s var(--transition-smooth);
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.hero-dot.active {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.3);
}

/* ============ NOTIFICATION / TOAST ============ */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.4s var(--transition-bounce);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.toast-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

/* ============ LOADING SKELETON ============ */
.skeleton {
    background: linear-gradient(90deg, var(--neutral-900), var(--neutral-800), var(--neutral-900));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--background-dark);
    border: 1px solid rgba(238, 43, 75, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 40rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInUp 0.4s var(--transition-bounce);
}

/* ============ TABLES ============ */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr {
    background: rgba(238, 43, 75, 0.05);
    border-bottom: 1px solid rgba(238, 43, 75, 0.15);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s;
}

.data-table tbody tr {
    transition: all 0.2s var(--transition-smooth);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ============ PRODUCT DETAIL ============ */
.product-gallery {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
}

.product-gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s var(--transition-smooth);
}

.product-gallery:hover img {
    transform: scale(1.05);
}

.size-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: white;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    font-family: inherit;
    font-size: 0.85rem;
}

.size-btn:hover {
    border-color: var(--primary);
    background: rgba(238, 43, 75, 0.1);
}

.size-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ============ FOOTER ============ */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 1.5rem 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s var(--transition-smooth);
    letter-spacing: 0.05em;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s var(--transition-bounce);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* ============ WHATSAPP FLOAT BUTTON ============ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s var(--transition-bounce);
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .material-icons {
    font-size: 1.8rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-slider {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }

    .nav-main {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .poster-card {
        border-radius: 0.75rem;
    }

    .hero-slider {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }

    .container {
        padding: 0 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .hero-slider {
        height: 40vh;
    }
}

/* ============ MOBILE MENU ============ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links-desktop {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(10, 5, 6, 0.98);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* ============ ADMIN SPECIFIC ============ */
.admin-sidebar {
    width: 260px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
}

.admin-content {
    margin-left: 260px;
    padding: 2.5rem;
    min-height: 100vh;
    width: calc(100% - 260px);
    box-sizing: border-box;
    position: relative;
    background: transparent;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 80px;
        padding: 2rem 0.75rem;
    }

    .admin-sidebar h2,
    .admin-sidebar p,
    .admin-sidebar span:not(.material-icons) {
        display: none;
    }

    .admin-content {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
}

.admin-nav-link {
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.admin-nav-link.active {
    background: rgba(238, 43, 75, 0.15);
    color: var(--primary);
    border: 1px solid rgba(238, 43, 75, 0.2);
}

/* ============ FILTERS BAR ============ */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.6s var(--transition-smooth);
}

@media (max-width: 900px) {
    .filters-bar {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-bar>div:first-child {
        width: 100%;
        order: 2;
    }

    .search-bar {
        order: 1;
        width: 100%;
    }

    #sortSelect {
        order: 3;
        width: 100%;
    }
}

/* ============ SEARCH BAR ============ */
.search-bar {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-bar input {
    padding-left: 3rem;
    width: 100%;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.search-bar .material-icons {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s;
}

.search-bar:focus-within .material-icons {
    color: var(--primary);
}

/* ============ SHOP HEADER ============ */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .shop-header h1 {
        font-size: 2.5rem !important;
    }
}

/* ============ FOOTER ============ */
.footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-grid div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .social-links-container {
        justify-content: center;
    }
}

/* ============ SWITCH / TOGGLE ============ */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s var(--transition-bounce);
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

/* ============ CHIP / TAG ============ */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.chip:hover,
.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============ QUANTITY CONTROL ============ */
.qty-control {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.qty-btn:hover {
    background: rgba(238, 43, 75, 0.15);
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-value {
    padding: 0 0.8rem;
    font-weight: 700;
    font-size: 1rem;
    min-width: 2rem;
    text-align: center;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ WRAPPER CUSTOM FOOTER ============ */
.footer-custom-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-custom-layout .social-links-container {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    /* Prevent icons from wrapping */
}

.footer-custom-layout p {
    max-width: 500px;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-custom-layout {
        display: grid;
        grid-template-columns: 1fr auto;
        /* Logo expands, Socials shrink-fit */
        grid-template-areas:
            "logo socials"
            "text text";
        gap: 0.5rem;
        align-items: center;
        padding-bottom: 1rem;
        /* Add some breathing room */
    }

    .footer-custom-layout #footerLogo {
        grid-area: logo;
        margin-bottom: 0 !important;
        display: flex;
        align-items: center;
    }

    .footer-custom-layout .social-links-container {
        grid-area: socials;
        justify-content: flex-end;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* Critical fix */
        gap: 0.4rem !important;
        /* Tighter gap for mobile */
    }

    .social-link {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        /* Ensure they don't squash */
    }

    .social-link .material-icons {
        font-size: 0.9rem !important;
    }

    .footer-custom-layout p {
        grid-area: text;
        text-align: center !important;
        /* Centered on mobile */
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        max-width: 100%;
        color: rgba(255, 255, 255, 0.5) !important;
        margin-top: 0.5rem;
    }

    .footer-custom-layout #footerLogo img {
        height: 2rem !important;
        /* Smaller logo */
    }
}

/* ============ LANDING SECTIONS - RESPONSIVE ============ */

/* --- General Landing Section --- */
.landing-section {
    overflow-x: hidden;
}

/* --- Featured Section Header & Grid --- */
@media (max-width: 1024px) {
    #featuredProducts {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #featuredProducts>.poster-card {
        grid-column: auto !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {

    /* Section headers stacked */
    .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    /* Section titles smaller */
    .section-title {
        font-size: 2rem !important;
        line-height: 1 !important;
    }

    .section-label {
        font-size: 0.7rem !important;
    }

    /* Landing section padding */
    .landing-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Featured products: single column on mobile */
    #featuredProducts {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    #featuredProducts>.poster-card {
        grid-column: auto !important;
        transform: none !important;
    }

    /* Vault section header stacked */
    .landing-section>.container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .landing-section>.container>p {
        text-align: left !important;
        max-width: 100% !important;
    }

    /* Vault scroll items smaller on mobile */
    .vault-scroll {
        padding: 0 1rem 1.5rem !important;
        gap: 1rem !important;
    }

    .vault-item {
        min-width: 16rem !important;
    }

    .vault-item h3 {
        font-size: 1.3rem !important;
    }

    /* Newsletter section */
    .newsletter-section {
        padding: 3rem 1rem !important;
    }

    .newsletter-section h2 {
        font-size: 1.8rem !important;
    }

    .newsletter-section form {
        max-width: 100% !important;
    }

    .newsletter-section form input {
        padding-right: 2rem !important;
        font-size: 0.85rem !important;
    }

    .newsletter-section form button {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        margin-top: 0.75rem !important;
        padding: 1rem !important;
    }

    /* Promo banner */
    .promo-banner-section a {
        padding: 1rem 1rem !important;
    }

    .promo-text {
        font-size: 0.8rem !important;
        letter-spacing: 0.08em !important;
    }

    /* Categories grid */
    #categoriesGridContainer {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* Hero slider */
    .hero-content {
        left: 1.5rem !important;
        bottom: 20% !important;
        right: 1.5rem !important;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .hero-content p {
        font-size: 0.85rem !important;
    }

    .hero-content .spray-button,
    .hero-content .btn-primary {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.8rem !important;
    }

    /* Marquee smaller */
    .marquee-container .sticker {
        padding: 0.5rem 1.25rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {

    /* Even smaller section titles */
    .section-title {
        font-size: 1.6rem !important;
    }

    /* Newsletter stacked form */
    .newsletter-section h2 {
        font-size: 1.5rem !important;
    }

    .newsletter-section .material-icons {
        font-size: 2rem !important;
    }

    /* Categories 2 columns stays */
    #categoriesGridContainer {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Vault items even smaller */
    .vault-item {
        min-width: 14rem !important;
    }

    /* Hero adjustments */
    .hero-slider {
        height: 45vh !important;
    }

    .hero-content h1 {
        font-size: 1.4rem !important;
    }

    /* Testimonials single column */
    .landing-section .testimonial-card {
        padding: 1.5rem !important;
    }
}