:root {
    /* Vibrant Accent Colors (Now relative to primary) */
    --candy-pink: var(--primary);
    --candy-yellow: var(--primary-glow);
    --candy-cyan: var(--primary-light);

    /* Primary Theme */
    --primary: var(--candy-pink);

    /* Glassmorphism */
    --bg-color: transparent;
    /* Allows fixed background to show */
    --card-bg: var(--primary-light);
    /* Glass Transparent */

    --text-main: #FFFFFF;
    /* White Text for Glass */
    --text-sec: rgba(255, 255, 255, 0.7);
    /* Muted Text */

    --border: rgba(255, 255, 255, 0.4);
    /* Frosty Border */
    --shadow: 0 8px 32px 0 var(--primary-glow);
    /* Primary Glass Shadow */
    --radius: 24px;
    --safe-area-bottom: env(safe-area-inset-bottom);

    /* Pink/Yellow Gradient */
    --rainbow-gradient: linear-gradient(135deg,
            var(--candy-pink) 0%,
            var(--candy-yellow) 50%,
            var(--candy-pink) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f0f0;
    /* Fallback */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150vh;
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
    animation: backgroundMove 40s ease-in-out infinite alternate;
}

@keyframes backgroundMove {
    0% {
        transform: scale(1.1) translate(0, 0);
    }

    50% {
        transform: scale(1.15) translate(-10px, -10px);
    }

    100% {
        transform: scale(1.1) translate(0, -20px);
    }
}

.parallax-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 15, 26, 0.4);
    /* Dark Warm transparent overlay */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    /* Visuals Removed as requested */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 0.8rem 0;
    text-align: center;
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
    box-shadow: none;
}

@keyframes headerPulse {
    0% {
        background-position: 0% 0%;
        /* Glass Shadow */
        box-shadow: 0 4px 30px var(--primary-glow);
    }

    100% {
        background-position: 0% 100%;
        /* Yellowish */
        box-shadow: 0 4px 50px var(--primary-glow);
    }
}

.logo {
    height: 180px;
    /* Reduced from 250px (Desktop) */
    width: auto;
    border-radius: 16px;
    object-fit: contain;
    position: relative;
    /* Desktop: Flow naturally */
    display: inline-block;
    z-index: 20;
    filter: drop-shadow(0 0 30px var(--primary-glow)) drop-shadow(0 0 60px var(--primary-glow));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo {
        position: absolute;
        /* Mobile: Overlap/Overflow */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 220px !important;
        /* Large (x1.5 approx) but not 280px */
        width: auto !important;
        /* Let width follow height */
        max-width: none !important;
        max-height: none !important;
    }

    header {
        padding: 1rem 0;
        /* Compact padding */
        /* Taller header area */
        min-height: 90px;
        /* Compact height (gap reduced) */
        /* Ensure substantial height on mobile */
    }

    .logo-marquee {
        height: 110px;
        /* Adjust marquee height if needed, or keep it unrelated */
    }
}

/* Logo Marquee */
.logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 90px;
    z-index: 1;
}

.logo-marquee-content {
    display: flex;
    gap: 3rem;
    animation: marquee-scroll 20s linear infinite;
    will-change: transform;
}

.marquee-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transition: filter 0.3s ease;
    opacity: 0.6;
}

.marquee-logo:hover {
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

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

/* Pause on hover */
.logo-marquee:hover .logo-marquee-content {
    animation-play-state: paused;
}

/* Category Select */
.category-wrapper {
    padding: 1rem;
    position: relative;
    z-index: 10;
}

.custom-select {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--candy-yellow));
    font-size: 1rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 20px var(--primary-light),
        0 0 40px var(--primary-glow);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.custom-select:focus {
    outline: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(255, 140, 0, 0.5),
        0 0 60px var(--primary-glow),
        0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px 120px;
    /* Bottom padding for footer */
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 20px 100px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card with Rainbow Border */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-clip: padding-box;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;

    /* Rainbow rotate replaced with Warm Pulse */
    &::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: var(--radius);
        padding: 3px;
        background: var(--rainbow-gradient);
        background-size: 200% 200%;
        /* Enable gradient movement */
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
        z-index: 0;
        animation: warm-pulse 3s ease infinite;
    }
}

@keyframes warm-pulse {
    0% {
        background-position: 0% 50%;
    }

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

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

/* Golden Shine Effect */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            var(--primary-glow),
            transparent);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
    z-index: 1;
    /* Animation automatique avec variables aléatoires */
    animation: shine var(--shine-duration, 5s) infinite;
    animation-delay: var(--shine-delay, 0s);
}

/* Supprimé : .product-card:hover::before */

@keyframes shine {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    /* Le reflet passe rapidement (dans les premiers 20% du temps) */
    100% {
        left: 150%;
    }

    /* Pause pour le reste du temps */
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 20px 60px var(--primary-glow),
            0 0 80px var(--primary-glow),
            0 0 120px rgba(0, 255, 255, 0.15);
    }
}

.product-media {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: rgba(10, 20, 50, 0.2);
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    backdrop-filter: blur(2px);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.video-overlay i {
    color: white;
    font-size: 20px;
    margin-left: 4px;
    /* Optical adjustment */
}

@media (hover: hover) {
    .product-card:hover .video-overlay {
        transform: translate(-50%, -50%) scale(1.1);
        background: var(--primary);
    }
}

.product-media img,
.product-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (hover: hover) {
    .product-card:hover .product-media img {
        transform: scale(1.05);
    }
}

.multi-media-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    /* Centrage du texte */
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    /* Effet Pink (Match Theme) */
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

@keyframes textShine {
    0% {
        background-position: -200% center;
    }

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

    /* Passage rapide du reflet */
    100% {
        background-position: 200% center;
    }

    /* Pause longue */
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-sec);
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-left: auto;
    /* Pour centrer le bloc si nécessaire */
    margin-right: auto;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    background: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-view {
    background: linear-gradient(135deg, var(--candy-yellow), var(--candy-pink));
    color: white;
    border: 2px solid var(--candy-pink);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: all 0.3s ease;
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

/* Footer Nav (Glassmorphic Pill) */
.footer-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 450px;
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.7rem 0.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 900;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: -1;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-item:active i {
    transform: scale(0.8);
}

.nav-item.active i {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: 20%;
    background: var(--candy-pink, red);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    height: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 4px;
    border: 2px solid rgba(20, 20, 20, 0.8);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-badge.active {
    opacity: 1;
    transform: scale(1);
}

/* Forms */
.input-pro {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.input-pro:focus {
    border-color: var(--primary);
    outline: none;
}

/* Utils */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    /* Bottom sheet on mobile */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
        justify-content: center;
    }
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary-border);
    width: 100%;
    /* Telegram WebApp Viewport Fix */
    max-height: calc(var(--tg-viewport-height, 100vh) - 20px);
    border-radius: 24px 24px 0 0;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    overflow-x: hidden;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -10px 40px var(--primary-glow);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 500px;
        border-radius: 24px;
        max-height: 85vh;
        transform: scale(0.95);
        opacity: 0;
    }

    .modal-overlay.active .modal-content {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    font-size: 1.8rem;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.modal-close:active {
    transform: scale(0.9);
}

.modal-loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    width: 100%;
    gap: 15px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal Logo */
.modal-logo {
    height: 70px;
    border-radius: 12px;
    object-fit: contain;
    position: relative;
    display: inline-block;
}

/* Modal Product Specifics */
.modal-slider-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 50vh;
    background: rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-slider {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    touch-action: pan-y;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--candy-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.play-button-overlay i {
    color: var(--candy-gold);
    font-size: 30px;
    margin-left: 5px;
    /* Optical center */
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.play-button-overlay:active {
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(0, 122, 255, 0.4);
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.modal-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 240, 0.4);
    border-radius: 50%;
    cursor: pointer;
}

.modal-dot.active {
    background: white;
    transform: scale(1.2);
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    user-select: none;
}

.modal-arrow.prev {
    left: 10px;
}

.modal-arrow.next {
    right: 10px;
}

.modal-arrow:active {
    background: var(--primary);
    transform: translateY(-50%) scale(0.9);
}

.modal-body {
    padding: 2rem;
    color: #FFFFFF;
    text-align: center;
    /* Center everything in body by default */
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: none;
    text-align: center;
}

.modal-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #E0F7FA;
    margin-bottom: 1.5rem;
    white-space: pre-line;
    /* Respect line breaks from DB */
    text-align: center;
}

.modal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--primary-light);
    margin-bottom: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--primary-light);
    transition: all 0.3s ease;
}

.modal-price-row:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: translateX(5px);
}

.modal-price-label {
    font-weight: 500;
    color: var(--text-main);
}

.modal-price-value {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

/* Shine effect for Price Row */
.modal-price-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    animation-delay: 2s;
    pointer-events: none;
}

.price-row .price {
    color: var(--primary);
    font-weight: 800;
}

/* Links Modal */
.link-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}

/* Shine effect for Link Item */
.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    transform: skewX(-25deg);
    animation: shine 7s infinite;
    animation-delay: 1s;
    pointer-events: none;
}

.link-item:active {
    background: rgba(26, 77, 46, 0.2);
}

.link-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 122, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.link-content {
    flex-grow: 1;
}

.link-content strong {
    display: block;
    font-size: 1rem;
}

.link-content small {
    color: var(--text-sec);
}

/* Sparkle Effect */
.sparkle {
    position: fixed;
    /* Important: fixed positioning relative to viewport */
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle-burst 0.8s cubic-bezier(0, .9, .57, 1) forwards;
    z-index: 9999;
    box-shadow: 0 0 6px var(--primary-glow);
    /* Golden Glow */
}

@keyframes sparkle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Order Buttons in Modal */
.order-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.order-btn:active {
    transform: scale(0.98);
}

.threema-btn {
    background: linear-gradient(135deg, #05A63F 0%, #038030 100%);
    /* Threema Green */
    box-shadow: 0 4px 15px rgba(5, 166, 63, 0.3);
}

.signal-btn {
    background: linear-gradient(135deg, #3A76F0 0%, #2C5AD1 100%);
    /* Signal Blue */
    box-shadow: 0 4px 15px rgba(58, 118, 240, 0.3);
}

.telegram-btn {
    background: linear-gradient(135deg, #229ED9 0%, #1E88BD 100%);
    /* Telegram Blue */
    box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);
}

/* Utilities */
.loading-spinner {
    border: 3px solid rgba(0, 122, 255, 0.2);
    border-top: 3px solid var(--candy-yellow);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    /* Resize Header Logo - Animation breathe active */
    .logo {
        height: 50px !important;
        width: auto !important;
        max-width: 120px !important;
        /* Forcer l'animation sur mobile */
        animation: breathe-mobile 4s ease-in-out infinite !important;
    }

    @keyframes breathe-mobile {

        0%,
        100% {
            transform: translate(-50%, -50%) scale(1);
            filter: drop-shadow(0 0 15px var(--primary-glow)) drop-shadow(0 0 30px var(--primary-glow));
        }

        50% {
            transform: translate(-50%, -50%) scale(1.35);
            filter: drop-shadow(0 0 25px var(--primary-glow)) drop-shadow(0 0 50px var(--primary-glow));
        }
    }

    .logo-marquee {
        height: 60px !important;
    }

    .marquee-logo {
        height: 40px !important;
    }
}

/* Telegram Mini App Specifics */
body.telegram-app {
    width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling */
}


@media (max-width: 768px) {
    header {
        overflow: visible;
        padding: 1.5rem 0;
    }

    .logo {
        height: 130px;
        filter: drop-shadow(0 0 15px rgba(255, 140, 0, 0.6));
    }
}

/* Info Modal Content Styling */
#info-content {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#info-content p {
    margin-bottom: 1rem;
    text-align: center;
}

#info-content strong {
    color: var(--primary);
    font-weight: 700;
}

#info-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
    transition: all 0.3s ease;
}

/* Fullscreen Media Viewer */
.media-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-viewer.active {
    display: flex;
    opacity: 1;
}

.media-viewer img, .media-viewer video {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.media-viewer-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-load 1.5s infinite;
}

@keyframes skeleton-load {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-card.is-loading .product-media,
.product-card.is-loading .product-name,
.product-card.is-loading .product-desc {
    background: rgba(255,255,255,0.05);
    color: transparent !important;
}

.zoom-hint {
    position: absolute;
    bottom: 40px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    color: white;
    pointer-events: none;
    backdrop-filter: blur(4px);
    z-index: 5;
}

/* --- SHOP 21 CUSTOM DESIGN (Kenny Shop) --- */
.shop-21 .product-card {
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important; /* Very clean glass */
    backdrop-filter: blur(15px);
    border-radius: 16px !important;
}

.shop-21 .product-card::after,
.shop-21 .product-card::before {
    display: none !important; /* Remove rainbow border and shine */
}

.shop-21 .product-card .product-media {
    border-radius: 16px 16px 0 0;
}

.shop-21 .product-card .product-name {
    color: white !important;
    text-shadow: none !important;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    margin-top: 10px;
}

.shop-21 .product-card .product-desc {
    opacity: 0.7;
    font-size: 0.75rem;
}

.shop-21 .product-card .price-tag {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    box-shadow: none !important;
    color: var(--primary) !important;
    font-weight: 800;
}

.shop-21 .product-card .btn-view {
    display: none !important; /* Cleaner look: hide the button on cards */
}

.shop-21 .product-card .product-footer {
    justify-content: center !important;
    padding-bottom: 10px;
}

/* Shop 21 Vertical Modal Logic */
.shop-21 .modal-slider-container {
    height: auto !important;
    max-height: 60vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.shop-21 .modal-slider-container::-webkit-scrollbar {
    display: none;
}

.shop-21 .modal-slider {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    gap: 15px !important;
    transform: none !important; /* Disable JS transform */
}

.shop-21 .slide {
    width: 100% !important;
    height: auto !important;
    min-height: 300px;
}

.shop-21 .slide img, 
.shop-21 .slide video {
    object-fit: cover !important;
    border-radius: 12px;
    height: auto !important;
    max-height: 50vh;
}

.shop-21 .modal-dots, 
.shop-21 .modal-arrow {
    display: none !important;
}

.shop-21 .modal-body {
    padding-top: 20px !important;
}

/* --- SHOP 1 CUSTOM DESIGN (Telegram Vertical Layout) --- */
.shop-1 .modal-slider-container {
    height: calc(var(--tg-viewport-height, 100vh) * 0.55) !important;
    max-height: calc(var(--tg-viewport-height, 100vh) * 0.55) !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    background: rgba(0,0,0,0.25);
}

.shop-1 .modal-slider {
    display: flex !important;
    height: 100% !important;
    flex-wrap: nowrap !important;
}

.shop-1 .slide {
    width: 100% !important;
    flex-shrink: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.shop-1 .slide img, 
.shop-1 .slide video {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.shop-1 .modal-dots {
    display: flex !important;
    bottom: 15px !important;
    padding: 5px 12px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border-radius: 20px !important;
}

.shop-1 .modal-arrow {
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-size: 1.2rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}


.shop-1 .modal-body {
    padding: 1.5rem !important;
    padding-top: 5px !important;
    display: block !important;
    background: transparent !important;
}