/* Hero Banner */
.hero-banner {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #2a4d31 0%, #1f3a24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 40px;
    background: #f8f8f8;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: #2a4d31;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1f3a24;
    text-decoration: underline;
}

/* Products Section */
.products-section {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar Filter - Sticky positioning */
.sidebar-filter {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    height: fit-content;
    position: sticky;
    top: 20px;
    align-self: start;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f3a24;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Brand Filters */
.brand-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-btn {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.brand-btn:hover {
    background: #f0f8f4;
    border-color: #2a4d31;
}

.brand-btn.active {
    background: #2a4d31;
    color: white;
    border-color: #2a4d31;
}

/* Model Filter */
.model-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.model-list::-webkit-scrollbar {
    width: 6px;
}

.model-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.model-list::-webkit-scrollbar-thumb {
    background: #2a4d31;
    border-radius: 3px;
}

.filter-item {
    margin-bottom: 12px;
}

.select-all-item {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    user-select: none;
}

.filter-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #2a4d31;
    border-radius: 4px;
    transition: all 0.3s;
}

.filter-checkbox:checked ~ .checkbox-custom {
    background-color: #2a4d31;
}

.filter-checkbox:checked ~ .checkbox-custom:after {
    content: "";
    position: absolute;
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.select-all-item .filter-text {
    font-weight: 700;
    color: #1f3a24;
}

.clear-btn {
    width: 100%;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: #e9ecef;
    color: #333;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f3a24;
    margin: 0;
}

.product-count {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f8f9fa;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2a4d31;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f3a24;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 48px;
}

.card-price-section {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.card-price {
    font-size: 24px;
    font-weight: 700;
    color: #2a4d31;
    display: block;
}

/* Card Action - Full Width Button at Bottom */
.card-action {
    padding: 0;
    margin: 0;
}

/* Cool CTA Button - Full Width */
.view-details-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #2a4d31 0%, #1f3a24 100%);
    color: white;
    border: none;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.view-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.view-details-btn:hover::before {
    left: 100%;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #1f3a24 0%, #2a4d31 100%);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.view-details-btn svg {
    transition: transform 0.3s;
}

.view-details-btn:hover svg {
    transform: translateX(5px);
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
}

.no-products-icon {
    font-size: 70px;
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 24px;
    color: #1f3a24;
    margin-bottom: 10px;
}

.no-products p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.btn-back {
    display: inline-block;
    padding: 12px 28px;
    background: #2a4d31;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #1f3a24;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f3a24;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Filter Notice */
.filter-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #2e7d32;
    line-height: 1.5;
}

.filter-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #2e7d32;
}

.filter-notice span {
    flex: 1;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar-filter {
        position: static;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .container {
        padding: 0 20px;
    }

    .main-content {
        padding: 20px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 200px;
    }

    .breadcrumb {
        padding: 12px 20px;
        font-size: 12px;
    }

    .products-section {
        padding: 30px 0 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 200px;
    }

    .view-details-btn {
        width: 100%;
        justify-content: center;
    }
}
