/* ==========================================
   Cell C Contracts Page Styles
   ========================================== */

.contracts-page {
    background: #1a1a1a;
    min-height: 100vh;
}

.contracts-main {
    padding: 2rem 0;
}

.contracts-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Sidebar Filters */
.sidebar-filters {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    color: var(--cellc-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b0b0b0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: var(--cellc-white);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--cellc-orange);
}
.product-card a {
    text-decoration: none;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-x: hidden;
}

/* Search and Sort Bar */
.search-sort-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--cellc-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder {
    color: #666;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-box:hover {
    background: #333;
    color: var(--cellc-white);
}

/* Brand Filters - Horizontal Scroll */
.brand-filters-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #444 #2a2a2a;
}

.brand-filters-wrapper::-webkit-scrollbar {
    height: 6px;
}

.brand-filters-wrapper::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 3px;
}

.brand-filters-wrapper::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.brand-filters-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.brand-filters {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    min-width: min-content;
}

.brand-btn {
    padding: 0.75rem 2rem;
    background: #2a2a2a;
    color: #b0b0b0;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-btn:hover {
    background: #333;
    color: var(--cellc-white);
}

.brand-btn.active {
    background: var(--cellc-dark);
    color: var(--cellc-white);
    border: 2px solid var(--cellc-orange);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(234, 91, 12, 0.2);
}

.product-card.hidden {
    display: none;
}

.product-image {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.product-image img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.product-info {
    padding: 1.5rem;
    position: relative;
}

.product-name {
    color: var(--cellc-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-specs li {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-specs li::before {
    content: "•";
    color: var(--cellc-orange);
    font-size: 1.2rem;
}

.product-price {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--cellc-orange);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.price-period {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.25rem;
}

.btn-view-details {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cellc-dark);
    border: 2px solid var(--cellc-orange);
    color: var(--cellc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: var(--cellc-orange);
    transform: scale(1.1);
}

/* Help Section */
.help-section {
    padding: 5rem 0;
    background: #0a0a0a;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.help-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
}

.help-icon {
    margin-bottom: 1.5rem;
}

.help-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cellc-white);
    margin-bottom: 1rem;
}

.help-description {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.help-link {
    color: var(--cellc-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.help-link:hover {
    color: #d04f00;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contracts-container {
        grid-template-columns: 220px 1fr;
    }

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

@media (max-width: 1024px) {
    .contracts-container {
        grid-template-columns: 1fr;
    }

    .sidebar-filters {
        position: static;
        margin-bottom: 1.5rem;
    }

    .filter-section {
        margin-bottom: 1.5rem;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contracts-container {
        padding: 0 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .search-sort-bar {
        flex-direction: column;
    }

    .search-box,
    .sort-box {
        width: 100%;
    }

    .brand-filters {
        gap: 0.75rem;
    }

    .brand-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.75rem;
    }

    .help-card {
        padding: 2rem;
    }
}