/* Product grid styles - modern and clean */
.products-section h2 {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.products-section .sub-headline {
    margin-bottom: 28px;
    color: #666;
    max-width: 820px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
    border: 1px solid rgba(16,24,40,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(16, 24, 40, 0.12);
}

.product-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, #f4f4f6, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 18px 20px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.product-info h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #1f2937;
}

.product-info .muted {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.product-info .btn {
    margin-top: auto;
    align-self: start;
}

@media (max-width: 600px) {
    .products-section { padding: 30px 0; }
    .products-section h2 { font-size: 1.6rem; }
}

/* Variants Page Modern Design */
.variants-page-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.variants-page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(250, 67, 24, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(13, 110, 253, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.variant-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 320px;
}

.variant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.variant-card:hover::before {
    transform: scaleX(1);
}

.variant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(250, 67, 24, 0.1);
}

.variant-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.variant-card:hover img {
    transform: scale(1.05);
}

.variant-card h4 {
    margin: 0;
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

.variant-card .variant-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.variant-specs .spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.variant-specs .spec-item i {
    color: var(--primary-color);
    width: 16px;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .variants-page-section {
        padding: 60px 0;
    }

    .variants-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }

    .variant-card {
        padding: 20px;
        min-height: 280px;
    }

    .variant-card img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .variants-grid {
        grid-template-columns: 1fr;
    }

    .variant-card {
        max-width: 320px;
        margin: 0 auto;
    }
}

    .variants-modal-body {
        max-height: calc(100vh - 96px);
    }
}

/* ==============================================
   PAGE HERO (shared by products & variants pages)
   ============================================== */
.about-hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
}

/* ---- Tablet (≤992px) ---- */
@media (max-width: 992px) {
    .about-hero {
        padding: 70px 0 !important;
    }

    .about-hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
    }

    .about-hero p {
        font-size: 1.05rem !important;
    }

    /* Variants intro heading */
    .section-intro h2 {
        font-size: 2rem !important;
    }

    /* Products grid — 2 columns on tablet */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Variants grid — 2 columns on tablet */
    .variants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
    .about-hero {
        padding: 55px 0 !important;
    }

    .about-hero h1 {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        letter-spacing: -0.5px !important;
        margin-bottom: 14px !important;
    }

    .about-hero p {
        font-size: 0.95rem !important;
        max-width: 100% !important;
    }

    /* Variants intro */
    .section-intro {
        margin-bottom: 36px !important;
    }

    .section-intro h2 {
        font-size: 1.7rem !important;
    }

    .section-intro p {
        font-size: 0.95rem !important;
    }

    /* Products grid — 2 columns on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-info {
        padding: 14px 14px 18px;
        gap: 8px;
    }

    .product-info h3 {
        font-size: 0.95rem;
    }

    .product-info .muted {
        font-size: 0.82rem;
    }

    /* Variant card */
    .variant-card img {
        height: 140px;
    }
}

/* ---- Small mobile (≤480px) ---- */
@media (max-width: 480px) {
    /* Products grid — 1 column on very small screens */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-image {
        aspect-ratio: 4 / 3;
    }
}
