/* ===== RIFLES PAGE STYLES ===== */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-dark) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero__brand {
    margin-bottom: 30px;
}

.page-hero__logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.page-hero__logo:hover {
    transform: scale(1.05);
}

.page-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-hero__subtitle {
    font-size: 1.25rem;
    color: var(--white);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Catalog Layout */
.catalog-layout {
    background: var(--dark-gray);
    min-height: 600px;
}

.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 2rem;
    display: flex;
    gap: 30px;
}

.catalog-sidebar {
    flex: 0 0 25%;
    /* position: sticky; */
    top: 20px;
    height: fit-content;
    max-width: 350px;
}

.catalog-main {
    flex: 1;
    min-width: 0;
}

/* Filter Section - Redesigned */
.filter-section {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-gray);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-red);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group__title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary-red);
    border-radius: 2px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-option:hover {
    background: var(--dark-gray);
    border-color: var(--primary-red);
    transform: translateX(4px);
}

.filter-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red);
    cursor: pointer;
}

.filter-label {
    font-size: 0.95rem;
    color: var(--light-gray);
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.filter-clear-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.filter-clear-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
}

/* Products Section - Redesigned */
.products-section {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.products-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-gray);
}

.products-count {
    font-size: 1rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* Product Cards - Enhanced */
.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-red);
}

.product-card__image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--light-gray);
    flex-shrink: 0;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.08);
}

.product-card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card__spec {
    background: var(--light-gray);
    color: var(--medium-gray);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-card__description {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-gray);
    border-radius: 16px;
    margin: 20px 0;
}

.no-results__content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results__content i {
    font-size: 3rem;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.no-results__content h3 {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.no-results__content p {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .catalog-container {
        flex-direction: column;
        gap: 30px;
        padding: 40px 2rem;
    }
    
    .catalog-sidebar {
        flex: none;
        position: static;
        max-width: none;
    }
    
    .filter-section {
        position: static;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .page-hero__title {
        font-size: 2.5rem;
    }
    
    .page-hero__subtitle {
        font-size: 1.1rem;
    }
    
    .catalog-container {
        padding: 40px 1rem;
    }
    
    .filter-section,
    .products-section {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .product-card__image-container {
        height: 200px;
    }
    
    .product-card__content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-hero__title {
        font-size: 2rem;
    }
    
    .page-hero__logo {
        height: 60px;
    }
    
    .catalog-container {
        padding: 30px 1rem;
    }
    
    .filter-section,
    .products-section {
        padding: 15px;
        border-radius: 12px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card__content {
        padding: 12px;
    }
    
    .product-card__title {
        font-size: 1rem;
    }
} 