/* ===== PRODUCTS PAGE STYLES ===== */

/* Page Header */
.page-header {
    position: relative;
    padding: 180px 0 100px;
    background: var(--dark-gray);
    overflow: hidden;
    isolation: isolate;
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.04) 0px,
            rgba(255, 255, 255, 0.04) 1px,
            rgba(255, 255, 255, 0) 1px,
            rgba(255, 255, 255, 0) 48px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 0px,
            rgba(255, 255, 255, 0.04) 1px,
            rgba(255, 255, 255, 0) 1px,
            rgba(255, 255, 255, 0) 48px
        ),
        linear-gradient(135deg,
            rgba(255, 107, 53, 0.12) 0%,
            rgba(10, 10, 10, 0.96) 100%);
    z-index: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-orange);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    gap: 12px;
}

.breadcrumb span {
    color: var(--text-gray);
}

.page-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-gray);
}

/* Products Section */
.products-section {
    padding: 80px 0 120px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    padding: 24px;
    background: var(--dark-gray);
    border-radius: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn:hover {
    background: var(--black);
}

.filter-btn.active {
    background: var(--gradient-orange);
    color: white;
    border-color: var(--primary-orange);
}

.sort-dropdown {
    position: relative;
}

.sort-select {
    padding: 12px 40px 12px 20px;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    min-width: 220px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.sort-dropdown::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
}

/* Products Grid */
.products-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-card-page {
    background: var(--dark-gray);
    border: 1px solid var(--light-gray);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-page:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-orange);
}

.product-image-page {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.2) 0%, 
        rgba(247, 147, 30, 0.1) 100%);
    overflow: hidden;
}

.product-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.badge-new,
.badge-bestseller,
.badge-discount {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--gradient-orange);
    color: white;
}

.badge-bestseller {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
}

.badge-discount {
    background: linear-gradient(135deg, #EF4444, #F87171);
    color: white;
}

.product-hover-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-page:hover .product-hover-actions {
    opacity: 1;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 12px;
    color: var(--black);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-orange);
    color: white;
    transform: scale(1.1);
}

.product-info-page {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 13px;
    color: var(--primary-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
    flex: 1;
}

.product-features-page {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.product-features-page span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
}

.product-features-page i {
    color: var(--primary-orange);
    font-size: 14px;
}

.btn-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient-orange);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--dark-gray);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    background: var(--gradient-orange);
    border-radius: 28px;
    gap: 40px;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
}

.btn-cta-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--black);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cta-box:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 42px;
    }
    
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        justify-content: center;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .products-grid-page {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        flex-direction: column;
        padding: 40px 32px;
        text-align: center;
    }
    
    .btn-cta-box {
        width: 100%;
        justify-content: center;
    }
}