/* =========================================
   PRODUCTS HERO SECTION
   ========================================= */

.products-hero-section {
    margin: 0 24px 24px 24px;
}

.products-hero-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.products-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.products-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 17, 32, 1) 0%, rgba(11, 17, 32, 0.4) 60%, rgba(11, 17, 32, 0) 100%);
    z-index: 2;
}

.products-hero-content {
    position: relative;
    z-index: 3;
    padding: 60px 0 40px 0;
    max-width: 800px;
}

.products-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.highlight-orange {
    color: var(--primary-orange);
}

.products-hero-desc {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 700px;
}

/* Reveal Logic */
.products-hero-section.reveal .products-hero-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-hero-section.reveal .products-hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-hero-section.reveal .products-hero-title { transition-delay: 0.3s; }
.products-hero-section.reveal .products-hero-desc { transition-delay: 0.5s; }

.products-hero-section.reveal.active .products-hero-card {
    opacity: 1;
    transform: translateY(0);
}

.products-hero-section.reveal.active .products-hero-content > * {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .products-hero-section {
        padding-top: 0;
    }
    
    .products-hero-card {
        min-height: 400px;
    }
    
    .products-hero-content {
        padding: 40px 24px 24px 24px;
    }
    
    .products-hero-title {
        font-size: 32px;
    }
}

/* =========================================
   PRODUCTS CATEGORY SECTION
   ========================================= */

.products-category-section {
    padding: 80px 40px;
    margin: 0 24px 24px 24px;
    background-color: white; /* Optional, depending on if it's meant to be a card */
    border-radius: 24px;
}

.category-header {
    margin-bottom: 40px;
}



.category-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-orange);
    margin-bottom: 24px;
}

.category-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.category-desc {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 800px;
}

/* Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Product Card */
.product-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #f8fafc;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-content {
    padding: 24px;
    flex-grow: 1;
}

.product-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.dot-orange {
    width: 6px;
    height: 6px;
    background-color: var(--primary-orange);
    border-radius: 50%;
}

.product-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.product-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
}

.product-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-orange);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.product-link:hover {
    color: #d85719;
}

/* Reveal Logic */
.products-category-section.reveal .category-header > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-category-section.reveal .category-line { transition-delay: 0.1s; }
.products-category-section.reveal .category-title { transition-delay: 0.2s; }
.products-category-section.reveal .category-desc { transition-delay: 0.3s; }

.products-category-section.reveal .product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-category-section.reveal .product-card:nth-child(1) { transition-delay: 0.4s; }
.products-category-section.reveal .product-card:nth-child(2) { transition-delay: 0.5s; }
.products-category-section.reveal .product-card:nth-child(3) { transition-delay: 0.6s; }

.products-category-section.reveal.active .category-header > *,
.products-category-section.reveal.active .product-card {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-category-section {
        margin: 0 16px 16px 16px;
        padding: 60px 24px;
        border-radius: 16px;
    }

    .category-title {
        font-size: 30px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   DARK CARD MODIFIER (CATEGORY 02)
   ========================================= */

.product-card.dark-card {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card.dark-card .product-img-wrapper {
    background-color: #1e293b;
}

.product-card.dark-card .product-title {
    color: white;
}

.product-card.dark-card .product-desc {
    color: #94a3b8;
}

.product-card.dark-card .product-badge {
    color: #cbd5e1;
}

.product-card.dark-card .product-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card.dark-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* =========================================
   HORIZONTAL PRODUCT CARD (CATEGORY 03)
   ========================================= */

.horizontal-product-card {
    display: flex;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-top: 24px;
}

.horizontal-img-wrapper {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    padding: 24px 0 24px 24px;
}

.horizontal-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.horizontal-content {
    flex: 0 0 50%;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-product-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.horizontal-product-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.horizontal-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 24px 0;
    width: 100%;
}

.horizontal-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.horizontal-actions .btn-solid-orange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-orange);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    align-self: flex-start;
}

.horizontal-actions .btn-solid-orange:hover {
    background-color: #d85719;
    transform: translateY(-2px);
}

/* Reveal Logic for Horizontal Card */
.products-category-section.reveal .horizontal-product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-category-section.reveal.active .horizontal-product-card {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .horizontal-product-card {
        flex-direction: column;
    }
    .horizontal-img-wrapper {
        padding: 24px 24px 0 24px;
        height: 350px;
    }
    .horizontal-content {
        padding: 32px 24px;
    }
}

/* =========================================
   INSET IMAGE MODIFIER (CATEGORY 04)
   ========================================= */

.product-img-wrapper.inset-img {
    padding: 16px 16px 0 16px;
    background-color: transparent !important;
}

.product-img-wrapper.inset-img .product-img {
    border-radius: 12px;
}
