/* ===== CATEGORIES PAGE STYLES ===== */

/* Categories Section */
.categories-section {
    padding: 80px 0 120px;
    background: var(--black);
    min-height: 60vh;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Category Card */
.category-card {
    position: relative;
    background: var(--dark-gray);
    border: 2px solid var(--light-gray);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

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

.category-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.3) 0%, 
        rgba(247, 147, 30, 0.2) 50%,
        rgba(26, 26, 26, 0.9) 100%);
    transition: transform 0.4s ease;
}

.category-card:hover .category-placeholder {
    transform: scale(1.1);
}

.category-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255, 107, 53, 0.2);
    border: 3px solid var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--primary-orange);
    transition: all 0.4s ease;
}

.category-card:hover .category-icon-overlay {
    background: var(--gradient-orange);
    color: white;
    transform: translate(-50%, -50%) rotate(360deg) scale(1.1);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
}

.category-count {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.category-count i {
    color: var(--primary-orange);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

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

.badge-sub {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
}

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

/* Category Content */
.category-content {
    padding: 32px 28px;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-arrow {
    font-size: 20px;
    color: var(--primary-orange);
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

.category-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.meta-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-gray);
}

.meta-badge i {
    color: var(--primary-orange);
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--dark-gray);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
}

.btn-back:hover {
    background: var(--light-gray);
    border-color: var(--primary-orange);
    transform: translateX(-5px);
}

.btn-back i {
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 80px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    font-size: 16px;
    color: var(--text-gray);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 0;
}

.empty-state i {
    font-size: 80px;
    color: var(--text-gray);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.empty-state .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-orange);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-state .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

/* Info Banner */
.info-banner {
    padding: 60px 0;
    background: var(--dark-gray);
}

.info-content {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 48px 60px;
    background: var(--light-gray);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 24px;
}

.info-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

.info-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-text p {
    font-size: 15px;
    color: var(--text-gray);
    margin: 0;
}

.btn-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--gradient-orange);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

/* Product Cards (when displaying products) */
.product-card-mini {
    background: var(--dark-gray);
    border: 2px solid var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

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

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

.product-badge-mini {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: var(--gradient-orange);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.product-content-mini {
    padding: 24px;
}

.product-category-mini {
    font-size: 12px;
    color: var(--primary-orange);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.product-content-mini h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.product-content-mini p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-link-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.product-card-mini:hover .product-link-mini {
    gap: 12px;
}

/* Breadcrumb Enhancement */
.breadcrumb a {
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-orange);
}

.breadcrumb .current {
    color: var(--white);
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-image {
        height: 220px;
    }
    
    .category-icon-overlay {
        width: 100px;
        height: 100px;
        font-size: 48px;
    }
    
    .info-content {
        flex-direction: column;
        padding: 32px 24px;
        text-align: center;
    }
    
    .btn-info {
        width: 100%;
        justify-content: center;
    }
    
    .category-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
