/**
 * ========================================
 * RONGHAO Product List Page Styles
 * ========================================
 */

/* ========================================
   Page Header (Dark Hero Style)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--color-primary, #262626) 0%, #1a1a1a 100%);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(190, 18, 60, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(190, 18, 60, 0.1) 0%, transparent 40%);
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: var(--color-white, #FFFFFF);
}

.breadcrumb-separator {
    width: 16px;
    height: 1px;
    background: rgba(255,255,255,0.4);
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--color-white, #FFFFFF);
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
}

.product-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.product-count strong {
    color: var(--color-accent, #BE123C);
    font-weight: 600;
}

/* ========================================
   Main Content Layout
   ======================================== */
.products-section {
    padding: 40px 0 80px;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* ========================================
   Sidebar Filters
   ======================================== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-group {
    background: var(--color-white, #FFFFFF);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary, #262626);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-secondary, #57534E);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-option:hover {
    color: var(--color-primary, #262626);
}

.filter-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-radio {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.filter-option:hover .filter-radio {
    border-color: var(--color-accent, #BE123C);
}

.filter-option.active .filter-radio {
    background: var(--color-accent, #BE123C);
    border-color: var(--color-accent, #BE123C);
}

.filter-option.active .filter-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.filter-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--color-secondary, #57534E);
    background: var(--color-background, #F5F5F4);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Clear Filters Button */
.clear-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary, #57534E);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

.clear-filters:hover {
    border-color: var(--color-accent, #BE123C);
    color: var(--color-accent, #BE123C);
}

.clear-filters svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: var(--color-white, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--color-background, #F5F5F4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-secondary, #57534E);
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary, #262626);
    margin-bottom: 8px;
}

.empty-text {
    font-size: 15px;
    color: var(--color-secondary, #57534E);
    margin-bottom: 24px;
}

.empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-clear-filters {
    padding: 12px 24px;
    background: var(--color-primary, #262626);
    color: var(--color-white, #FFFFFF);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

.btn-clear-filters:hover {
    background: var(--color-accent, #BE123C);
}

/* ========================================
   Pagination
   ======================================== */
.pagination-wrapper {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background: var(--color-white, #FFFFFF);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary, #57534E);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

.page-btn:hover {
    border-color: var(--color-primary, #262626);
    color: var(--color-primary, #262626);
}

.page-btn.active {
    background: var(--color-primary, #262626);
    border-color: var(--color-primary, #262626);
    color: var(--color-white, #FFFFFF);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn svg {
    width: 16px;
    height: 16px;
}

.page-btn.prev-btn,
.page-btn.next-btn {
    padding: 0 16px;
    gap: 6px;
}

.page-ellipsis {
    padding: 0 8px;
    color: var(--color-secondary, #57534E);
    font-size: 14px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-primary, #262626);
    color: var(--color-white, #FFFFFF);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--color-white, #FFFFFF);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

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

@media (max-width: 991px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 120px 0 40px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
