/**
 * Superlac Products Page - Premium Redesign
 * Inspired by modern, minimalist e-commerce (Keychron-style)
 * Blended with Superlac Brand Vibe (Glassmorphism + Vibrant Accents)
 */

:root {
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition-standard: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- HERO SECTION --- */
.products-hero {
    padding: 100px 0 60px;
    text-align: left;
    background: #ffffff;
}

.products-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: -0.04em;
}

.products-hero h1 span.accent {
    color: #6f8f7a;
    /* "Just Buy It" style gold/mustard */
}

.products-hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.btn-outline {
    padding: 12px 32px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-standard);
}

.btn-outline:hover {
    background: #f8f8f8;
    border-color: #ddd;
}

.btn-dark {
    padding: 12px 32px;
    background: #1a1a1a;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-standard);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- FEATURED SHOWCASE --- */
.featured-showcase {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto 100px;
    border-radius: 24px;
    overflow: hidden;
    background: #f0f0f0;
}

.featured-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
}

.featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hotspot Card Overlay */
.hotspot-card {
    position: absolute;
    top: 35%;
    left: 45%;
    width: 320px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    animation: hotspotFloat 4s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
}

.hotspot-thumb {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.hotspot-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hotspot-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #6f8f7a;
    margin-bottom: 4px;
}

.hotspot-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hotspot-price {
    font-size: 16px;
    font-weight: 600;
    color: #6f8f7a;
}

@keyframes hotspotFloat {

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

    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* --- REFINED PRODUCT GRID --- */
.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.modern-product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-standard);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: #eee;
}

.card-image-area {
    padding: 0;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.card-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-standard);
    border-radius: 16px 16px 0 0;
}

.modern-product-card:hover .card-image-area img {
    transform: scale(1.05);
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title-modern {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.4;
    text-align: center;
}

.card-footer-modern {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.buy-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.card-price {
    font-size: 16px;
    font-weight: 700;
    color: #6f8f7a;
}

.quick-add-btn {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-standard);
    position: relative;
    z-index: 2;
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.quick-add-btn:hover {
    background: #000;
    transform: scale(1.1);
}

/* Section Header for Grid */
.grid-header {
    text-align: center;
    margin-bottom: 40px;
}

.grid-header span {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #6f8f7a;
    display: block;
    margin-bottom: 12px;
}

.grid-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .products-hero {
        padding: 120px 0 40px;
        text-align: center;
    }

    .products-hero p {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hotspot-card {
        width: 240px;
        left: 5%;
        top: 10%;
    }

    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-image-area {
        padding: 0;
    }

    .card-body {
        padding: 12px;
    }

    .card-title-modern {
        font-size: 13px;
        margin-bottom: 12px;
        min-height: 40px;
        /* Ensure alignment */
    }

    .card-price {
        font-size: 14px;
    }

    .buy-label {
        font-size: 9px;
    }

    .quick-add-btn {
        width: 32px;
        height: 32px;
    }

    .quick-add-btn i {
        width: 16px !important;
        height: 16px !important;
    }
}

/* --- ALIVE ANIMATIONS --- */
.products-grid-modern article:nth-child(1) {
    transition-delay: 0.05s;
}

.products-grid-modern article:nth-child(2) {
    transition-delay: 0.1s;
}

.products-grid-modern article:nth-child(3) {
    transition-delay: 0.15s;
}

.products-grid-modern article:nth-child(4) {
    transition-delay: 0.2s;
}

.products-grid-modern article:nth-child(5) {
    transition-delay: 0.25s;
}

.products-grid-modern article:nth-child(6) {
    transition-delay: 0.3s;
}

/* Force 4 columns on landing page from tablet upwards */
@media (min-width: 769px) {
    #catalog-showroom {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.modern-product-card:hover {
    box-shadow: 0 20px 40px rgba(111, 143, 122, 0.15);
    /* Tinted glow */
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(111, 143, 122, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(111, 143, 122, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(111, 143, 122, 0);
    }
}

.hotspot-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--primary), transparent);
    z-index: -1;
    opacity: 0.3;
    animation: rotateGlow 4s linear infinite;
}