.content .container {
    padding: 10px 40px !important;
}

/* ============================================
   CATEGORY PAGE - Enhanced Design
   ============================================ */

/* Category Page Header */
.category-page-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.category-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.category-page-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-bg, #1a1a2e) 0%, var(--header-bg, #16213e) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.category-page-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    animation: categoryIconRotate 20s linear infinite;
}

@keyframes categoryIconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.category-page-icon i {
    font-size: 32px;
    color: #fff;
}

.category-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0;
    position: relative;
}

/* Category Info Panel */
.category-info-panel {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.category-image-wrapper {
    flex-shrink: 0;
    width: 200px;
}

.category-image {
    width: 77px;
    height: auto;
    border-radius: 44px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-description-wrapper {
    flex: 1;
}

.category-description {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

.category-description p {
    margin-bottom: 12px;
}

.category-description p:last-child {
    margin-bottom: 0;
}

/* Subcategories */
.category-subcategories {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 30px;
}

.subcategories-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.subcategories-header i {
    font-size: 20px;
    color: var(--primary-bg, #667eea);
}

.subcategories-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.subcategories-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: visible;
}

.subcategory-card:hover {
    background: #fff;
    border-color: var(--primary-bg, #667eea);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.subcategory-image {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.subcategory-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--primary-bg, #1a1a2e) 0%, var(--header-bg, #16213e) 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    line-height: 1.2;
}

.subcategory-card:hover .subcategory-count-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.subcategory-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.8em;
    max-height: 2.8em;
    width: 100%;
    padding-right: 0;
    word-break: break-word;
    position: relative;
    z-index: 1;
}

.subcategory-card:hover .subcategory-name {
    color: var(--primary-bg, #667eea);
}

/* Results Stats Bar */
.category-results-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.stats-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.stats-count i {
    color: var(--primary-bg, #667eea);
    font-size: 16px;
}

.stats-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-compare {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    color: #374151;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-compare:hover {
    border-color: var(--primary-bg, #667eea);
    color: var(--primary-bg, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Category Controls */
.category-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.category-controls-left,
.category-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.view-btn:hover {
    color: #374151;
    background: #e2e8f0;
}

.view-btn.active {
    background: var(--primary-bg, #667eea);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.control-label i {
    font-size: 12px;
}

.control-select-wrapper {
    position: relative;
}

.control-select {
    padding: 10px 36px 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.control-select:hover {
    border-color: #cbd5e1;
}

.control-select:focus {
    outline: none;
    border-color: var(--primary-bg, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.control-select-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 10px;
    pointer-events: none;
}

/* Product Grid */
.category-product-grid {
    margin-bottom: 30px;
}

/* Pagination */
.category-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.pagination-wrapper .pagination {
    margin: 0;
    gap: 6px;
}

.pagination-wrapper .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-wrapper .page-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--primary-bg, #667eea);
    border-color: var(--primary-bg, #667eea);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-wrapper .page-item.disabled .page-link {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* No Results State */
.category-no-results {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    margin: 30px 0;
}

.no-results-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.no-results-icon i {
    font-size: 48px;
    color: #ef4444;
}

.no-results-x {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

.no-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.no-results-message {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-suggestions {
    text-align: left;
    max-width: 350px;
    margin: 0 auto 30px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.no-results-suggestions h4 {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-results-suggestions h4::before {
    content: '💡';
    font-size: 16px;
}

.no-results-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-results-suggestions li {
    font-size: 13px;
    color: #64748b;
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.no-results-suggestions li:last-child {
    border-bottom: none;
}

.no-results-suggestions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-bg, #667eea);
    font-weight: 600;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-bg, #1a1a2e) 0%, var(--header-bg, #16213e) 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    color: #fff;
}

/* Responsive Category Page */
@media (max-width: 992px) {
    .category-info-panel {
        flex-direction: column;
    }

    .category-image-wrapper {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-page-header {
        padding: 30px 16px 24px;
        margin-bottom: 20px;
    }
    
    .category-page-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    
    .category-page-icon i {
        font-size: 24px;
    }
    
    .category-page-title {
        font-size: 22px;
    }

    .category-info-panel {
        padding: 16px;
    }

    .category-description {
        font-size: 14px;
    }

    .category-subcategories {
        padding: 16px;
    }

    .subcategories-header h3 {
        font-size: 16px;
    }

    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .subcategory-card {
        padding: 12px;
    }

    .subcategory-image {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    .subcategory-name {
        font-size: 12px;
    }
    
    .category-results-stats {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .category-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
    }
    
    .category-controls-left,
    .category-controls-right {
        justify-content: space-between;
    }
    
    .control-group {
        flex: 1;
    }
    
    .control-select {
        width: 100%;
        min-width: auto;
    }
    
    .category-pagination {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }
    
    .pagination-wrapper {
        order: 1;
    }
    
    .pagination-info {
        order: 2;
    }
    
    .category-no-results {
        padding: 40px 20px;
    }
    
    .no-results-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }
    
    .no-results-icon i {
        font-size: 40px;
    }
    
    .no-results-title {
        font-size: 20px;
    }
    
    .no-results-message {
        font-size: 14px;
    }
}
