/** Test **/
* Premium Store CSS * Modern,
Attractive,
Engaging Design */

/* ============================================
   Hero Carousel System (High Traffic Mastery)
   ============================================ */
.hero {
    position: relative;
    padding: 20px 0 60px;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary);
}

/* Featured Item Styling in Carousel */
.featured-slide {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--glass);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    max-width: 900px;
    width: 95%;
    text-align: left;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.featured-slide:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.featured-image {
    width: 35%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.featured-info {
    flex: 1;
}

.featured-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.featured-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.featured-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.featured-price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.featured-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.1rem;
}

.featured-btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .featured-slide {
        flex-direction: column;
        text-align: center;
    }

    .featured-image {
        width: 150px;
    }
}

/* ============================================
   Flash Sale & Trust Notifications
   ============================================ */
.flash-sale-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(238, 77, 45, 0.05);
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(238, 77, 45, 0.1);
}

.flash-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flash-icon {
    font-size: 1.5rem;
    animation: flash-shake 0.8s infinite;
}

@keyframes flash-shake {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.flash-title h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.countdown {
    background: #000;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-family: monospace;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.flash-sale-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scrollbar-width: none;
}

.flash-sale-track::-webkit-scrollbar {
    display: none;
}

.flash-item {
    min-width: 240px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.flash-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.flash-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 12px;
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff4757 0%, #ee4d2d 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(238, 77, 45, 0.3);
}

.flash-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

.flash-urgency {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(238, 77, 45, 0.9);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    padding: 4px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.flash-item:hover .flash-urgency {
    transform: translateY(0);
}

.scarcity-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 12px 0 6px;
    overflow: hidden;
}

.scarcity-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff9f43, #ee4d2d);
    border-radius: 10px;
}

.scarcity-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.scarcity-text .highlight {
    color: #ff4757;
    font-weight: 700;
}

/* Trust Notification (Social Proof) */
.trust-notification {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(238, 77, 45, 0.1);
    transform: translateX(-120%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px;
}

.trust-notification.active {
    transform: translateX(0);
}

.trust-avatar {
    width: 60px;
    height: 60px;
    background: var(--glass);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.trust-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trust-content {
    flex: 1;
}

.trust-user-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.trust-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
}

.trust-province {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.trust-action {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.trust-product-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.trust-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
}

.trust-time {
    color: var(--text-muted);
}

.trust-verified {
    color: #2ecc71;
    font-weight: 700;
}

/* Related Products in Modal */
.related-section {
    margin: 30px 0;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.related-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.related-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Variables
   ============================================ */
:root {
    --primary: #ee4d2d;
    --primary-dark: #d73211;
    --primary-glow: rgba(238, 77, 45, 0.4);
    --accent: #00cec9;
    --accent-glow: rgba(0, 206, 201, 0.4);
    --gold: #ffd700;
    --purple: #6c5ce7;

    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);

    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(238, 77, 45, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--primary-glow);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at top, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(238, 77, 45, 0.1) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    /* Remove sticky tap highlight */
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   Floating Particles
   ============================================ */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   Header
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-text .highlight {
    color: var(--primary);
}

.nav-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-categories::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    padding: 8px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.nav-pill:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.nav-pill.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.add-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 200;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-box {
    display: flex;
    gap: 12px;
    max-width: 600px;
    width: 100%;
    padding: 0 20px;
}

.search-box input {
    flex: 1;
    padding: 16px 24px;
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-btn {
    padding: 16px 32px;
    background: var(--primary);
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 600;
}

.close-search {
    width: 50px;
    height: 50px;
    background: var(--glass);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 60px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(238, 77, 45, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b4a 100%);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    padding: 16px 24px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 100px;
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Floating Decorations */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-emoji {
    position: absolute;
    font-size: 3rem;
    animation: floatEmoji 6s ease-in-out infinite;
    opacity: 0.3;
}

.floating-emoji:nth-child(1) {
    top: 20%;
    left: 10%;
}

.floating-emoji:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-emoji:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatEmoji {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
    position: relative;
    z-index: 50;
    /* Higher than hero */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 36px;
    height: 36px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.view-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}


/* Base Card State - Professional Overhaul Optimization */
.product-card {
    position: relative;
    z-index: 10;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    touch-action: manipulation;
    /* ⚡ Fixes mobile delay */
    pointer-events: auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

/* Only fancy effects on real Mouse hover */
@media (hover: hover) and (pointer: fine) {
    .product-card:hover {
        transform: translateY(-8px);
        border-color: var(--primary);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--primary-glow);
    }

    .product-card:hover::before {
        opacity: 1;
    }

    .product-card:hover .product-image img {
        transform: scale(1.1);
    }
}

/* Tap Feedback for Mobile */
@media (hover: none) {
    .product-card:active {
        background: var(--bg-card-hover);
        transform: scale(0.98);
    }
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a1a 100%);
    overflow: hidden;
    pointer-events: none;
    /* Let clicks pass through */
}

.product-image img,
.product-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}


.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b4a 100%);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
}

.product-id-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    z-index: 50;
    pointer-events: none;
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1;
    transition: var(--transition-fast);
}

.video-playing .product-video-badge {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
}

.product-card:hover .product-video-badge {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.product-info {
    padding: 16px;
    position: relative;
    z-index: 1;
}

.product-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--glass);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.product-original-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-discount {
    padding: 2px 8px;
    background: rgba(238, 77, 45, 0.2);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    padding: 14px 40px;
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-load-more:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.load-arrow {
    animation: bounce 1.5s infinite;
}

/* ============================================
   Floating Action Button
   ============================================ */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-glow);
    z-index: 90;
    transition: var(--transition-fast);
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    z-index: 90;
    transition: var(--transition-fast);
}

.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Modal (Redesigned)
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
    z-index: 300;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    z-index: 20;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

/* AI Magic Copy Button Premium Style */
.magic-copy-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%) !important;
    color: white !important;
    padding: 18px 24px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    margin-top: 25px !important;
    margin-bottom: 30px !important;
    /* Fix for clipping */
    width: 100% !important;
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 0.9rem !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: magic-pulse 2.5s infinite !important;
    backdrop-filter: blur(10px);
}

.magic-copy-btn:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.6) !important;
    filter: brightness(1.1);
}

.magic-copy-btn:active {
    transform: translateY(-2px) scale(0.98) !important;
}

.magic-copy-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: magic-shimmer 3s infinite;
}

@keyframes magic-shimmer {
    0% {
        left: -60%;
    }

    100% {
        left: 150%;
    }
}

@keyframes magic-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(108, 92, 231, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

/* Modal Gallery (Left Side) */
.modal-gallery {
    flex: 1.5;
    /* 60% width roughly */
    background: #000;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
}

.main-media {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0;
}

.main-media img,
.main-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 85vh;
}

.sound-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: 0.2s;
    backdrop-filter: blur(4px);
}

.sound-toggle-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.thumbs-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    max-width: 90%;
    overflow-x: auto;
    z-index: 10;
}

.thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.1);
}

.thumb img,
.thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb.is-video {
    position: relative;
}

.thumb.is-video span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    font-size: 0.8rem;
}

/* Modal Info (Right Side) */
.modal-info {
    flex: 1;
    /* 40% width roughly */
    padding: 40px;
    padding-bottom: 80px;
    /* EXTRA BOTTOM SPACE FOR BUTTONS */
    overflow-y: auto;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
}

.modal-category {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 16px;
    align-self: flex-start;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: white;
}

.modal-price-box {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(238, 77, 45, 0.3);
}

.modal-original {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.modal-discount {
    padding: 6px 12px;
    background: #ff4757;
    border-radius: 6px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    white-space: pre-wrap;
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b4a 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition-fast);
    margin-top: auto;
    /* Push to bottom if content is short */
    box-shadow: 0 10px 30px rgba(238, 77, 45, 0.3);
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(238, 77, 45, 0.5);
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   Toast
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: #333;
    color: white;
    border-radius: var(--radius-md);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #00b894;
}

.toast.error {
    background: #ff7675;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .modal-container {
        flex-direction: column;
        height: 90vh;
        width: 95%;
        overflow-y: auto;
    }

    .modal-gallery {
        flex: none;
        height: 40vh;
        width: 100%;
    }

    .main-media img,
    .main-media video {
        max-height: 40vh;
    }

    .thumbs-container {
        bottom: 10px;
        padding: 6px;
    }

    .thumb {
        width: 40px;
        height: 40px;
    }

    .modal-info {
        flex: none;
        padding: 24px;
        overflow-y: visible;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.8rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.8);
    }
}

@media (max-width: 768px) {

    /* Mobile Performance Logic */
    .header,
    .search-overlay,
    .modal-overlay,
    .nav-categories {
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        background: rgba(10, 10, 26, 0.95) !important;
    }

    .product-card:hover {
        transform: none !important;
        /* Disable hover float on mobile touch */
        box-shadow: none !important;
    }

    .particle {
        will-change: transform, opacity;
    }

    .nav-categories {

        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        padding: 12px;
        border-top: 1px solid var(--border);
        z-index: 99;
        justify-content: center;
        overflow-x: auto;
    }

    .add-btn {
        display: none;
    }

    .hero {
        padding: 40px 20px 60px;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat-card {
        padding: 12px 16px;
        min-width: 80px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .main-content {
        padding-bottom: 100px;
    }

    .fab {
        bottom: 90px;
    }

    .back-to-top {
        bottom: 160px;
    }
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    z-index: 1000;
    justify-content: space-around;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: var(--transition-fast);
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 1.4rem;
}

/* ============================================
   Mobile Optimizations
   ============================================ */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    .main-content {
        padding-bottom: 90px;
        /* Space for bottom nav */
    }

    /* Fix Header for Mobile */
    .header-container {
        padding: 10px 15px;
    }

    .nav-categories {
        display: none;
        /* Hide top categories on mobile to save space */
    }

    .header-actions {
        display: none;
        /* Hide header actions, moved to bottom nav */
    }

    /* Force 2-Column Grid on Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Fix Product Card for Touch */
    .product-card {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    /* Disable Hover Effects on Mobile (Fix double-tap issue) */
    .product-card::before {
        display: none;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }

    /* Always show video badge */
    .product-video-badge {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        background: rgba(0, 0, 0, 0.6);
    }

    /* Make text larger */
    .product-name {
        font-size: 0.95rem;
        /* Larger font */
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .product-info {
        padding: 10px;
    }

    /* Hide FAB on mobile (use bottom nav instead) */
    .fab {
        display: none !important;
    }
}

/* Admin Only Utility */
.admin-only {
    display: none !important;
}

body.is-admin .admin-only {
    display: flex !important;
}

/* ============================================
   Social Share Buttons
   ============================================ */
.share-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-icon.fb {
    background: #1877F2;
    background: linear-gradient(135deg, #1877F2 0%, #0d5cb8 100%);
}

.share-icon.line {
    background: #06C755;
    background: linear-gradient(135deg, #06C755 0%, #048f3c 100%);
}

.share-icon.tw {
    background: #000000;
    background: linear-gradient(135deg, #1DA1F2 0%, #0c85d0 100%);
}

.share-icon.ig {
    background: #f09433;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-icon.tiktok {
    background: #000000;
    background: linear-gradient(135deg, #000000 0%, #25F4EE 100%);
}

.share-icon.copy {
    background: var(--glass);
    border-color: var(--border);
    color: white;
}

.share-icon.copy:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

/* Alert Modal Modern Styling */
.alert-modal {
    background: rgba(20, 20, 40, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    animation: alertPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

@keyframes alertPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#alertIcon {
    animation: alertIconShake 2s infinite ease-in-out;
}

@keyframes alertIconShake {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

#alertConfirmBtn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 10px 20px var(--primary-glow);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

#alertConfirmBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--primary-glow);
    filter: brightness(1.1);
}

#alertConfirmBtn:active {
    transform: scale(0.98);
}

/* ============================================
   Admin Specific (V39.1)
   ============================================ */
.admin-only {
    display: none !important;
}

body.is-admin .admin-only {
    display: inline-flex !important;
}

.edit-mode-badge {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}