/* ===========================================
   🚀 HERO SECTION v3.0 - Product Showcase
   Horizontally scrollable product carousels
=========================================== */

/* ========================================
   PARALLAX WRAPPER - Hero stannar bakom
======================================== */
.hero-parallax-wrapper {
    position: sticky;
    top: 0;
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 10;
    background: #f5f5f5;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
}

/* ========================================
   HERO BASE
======================================== */
.hero.hero-products {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 40%, #24243e 100%);
    color: #ffffff;
    padding: 90px 0 40px;
    overflow: hidden;
    min-height: auto;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* ========================================
   TOP BAR: Brand + Search
======================================== */
.hero-top {
    position: relative;
    z-index: 2;
    padding: 0 24px 30px;
}

.hero-top-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-brand {
    flex: 1;
}

.hero-brand-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
}

.hero-brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px;
}

.hero-highlight {
    background: linear-gradient(120deg, #FFD700, #ff6b6b, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-brand-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
}

/* Search Box */
.hero-search-box {
    position: relative;
    width: 380px;
    flex-shrink: 0;
}

.hero-search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.hero-search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.hero-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hero-search-box input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

/* ========================================
   CAROUSEL SECTIONS
======================================== */
.hero-carousel-section {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    margin-bottom: 28px;
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.carousel-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.carousel-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-icon {
    font-size: 1.1rem;
}

.carousel-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Arrow Buttons */
.carousel-controls {
    display: flex;
    gap: 8px;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Track */
.carousel-track-wrapper {
    position: relative;
    overflow: hidden;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 3%,
        black 97%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 3%,
        black 97%,
        transparent 100%
    );
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 8px 16px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-user-select: none;
    user-select: none;
}

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

.carousel-track.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.carousel-track.dragging .hero-product-card {
    pointer-events: none;
}

/* ========================================
   PRODUCT CARDS
======================================== */
.hero-product-card {
    flex: 0 0 200px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.hero-product-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Badge */
.hpc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 3;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.hpc-badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.hpc-badge-hot {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

.hpc-badge-deal {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Product Image */
.hpc-image {
    width: 100%;
    height: 160px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.hpc-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
}

.hero-product-card:hover .hpc-image img {
    transform: scale(1.08);
}

/* Product Info */
.hpc-info {
    padding: 14px;
}

.hpc-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--source-color, #999);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hpc-title {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.3em;
}

.hpc-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.hpc-stars {
    color: #fbbf24;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.hpc-rating-num {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.hpc-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hpc-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #34d399;
}

.hpc-old-price {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

/* ========================================
   SKELETON LOADING
======================================== */
.skeleton-card {
    pointer-events: none;
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-card .hpc-image {
    background: rgba(255, 255, 255, 0.04);
}

.skeleton-line {
    display: block;
    border-radius: 4px;
}

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

/* ========================================
   CTA BAR
======================================== */
.hero-cta-bar {
    text-align: center;
    padding: 10px 24px 0;
    position: relative;
    z-index: 2;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

.hero-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #818cf8, #a78bfa);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .hero-top-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .hero-search-box {
        width: 100%;
        max-width: 450px;
    }
    
    .hero-brand-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero.hero-products {
        padding: 80px 0 30px;
    }
    
    .hero-top {
        padding: 0 16px 24px;
    }
    
    .hero-brand-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }
    
    .hero-brand-title {
        font-size: 1.5rem;
    }
    
    .hero-brand-sub {
        font-size: 0.88rem;
    }
    
    .hero-search-box {
        width: 100%;
    }
    
    .hero-carousel-section {
        padding: 0 12px;
        margin-bottom: 22px;
    }
    
    .carousel-header {
        padding: 0 4px;
    }
    
    .carousel-title-group {
        flex-direction: column;
        gap: 2px;
    }
    
    .carousel-title {
        font-size: 1.1rem;
    }
    
    .carousel-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-product-card {
        flex: 0 0 165px;
    }
    
    .hpc-image {
        height: 130px;
    }
    
    .hpc-info {
        padding: 10px;
    }
    
    .hpc-title {
        font-size: 0.75rem;
    }
    
    .hpc-price {
        font-size: 0.95rem;
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .hero-cta-btn {
        padding: 12px 28px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .hero.hero-products {
        padding: 75px 0 25px;
    }
    
    .hero-brand-title {
        font-size: 1.3rem;
    }
    
    .hero-product-card {
        flex: 0 0 150px;
    }
    
    .hpc-image {
        height: 115px;
    }
    
    .hpc-info {
        padding: 8px;
    }
    
    .hpc-title {
        font-size: 0.72rem;
        height: auto;
        -webkit-line-clamp: 2;
    }
    
    .hpc-price {
        font-size: 0.88rem;
    }
    
    .hpc-source {
        font-size: 0.65rem;
    }
    
    .carousel-track {
        gap: 10px;
    }
}
