/* Tesla Store — Products listing page */
.products-section {
    background: var(--amazon-bg, #eaeded);
    min-height: 100vh;
    padding: 2rem 0;
}

.products-section .container {
    position: relative;
}

/* Sidebar filters */
.filters-card {
    background: #fff;
    border: 1px solid #e3e6e6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 17, 17, 0.06);
    overflow: hidden;
}

.filters-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.125rem;
    background: var(--amazon-nav, #232f3e);
    color: #fff;
}

.filters-card-header h5,
.filters-card-header h6 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
}

.filters-card .card-body {
    padding: 1.125rem;
}

.filters-card .form-label {
    font-weight: 600;
    color: var(--amazon-text, #0f1111);
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
}

.filters-card .form-select,
.filters-card .form-control {
    border-radius: 6px;
    border: 1px solid #a6a6a6;
    font-size: 0.875rem;
}

.filters-card .form-select:focus,
.filters-card .form-control:focus {
    border-color: var(--primary-color, #ff9900);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

.filters-card .form-check-input:checked {
    background-color: var(--primary-color, #ff9900);
    border-color: var(--primary-color, #ff9900);
}

.filters-card .form-check-label {
    font-size: 0.8125rem;
    color: var(--amazon-text, #0f1111);
}

/* Themed buttons */
.products-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    font-family: inherit;
}

.products-btn-primary {
    background: var(--amazon-nav, #232f3e);
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(35, 47, 62, 0.2);
}

.products-btn-primary:hover {
    background: #1a2530;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(35, 47, 62, 0.25);
}

.products-btn-accent {
    background: var(--primary-color, #ff9900);
    color: #111 !important;
    box-shadow: 0 2px 6px rgba(255, 153, 0, 0.3);
}

.products-btn-accent:hover {
    background: #e88b00;
    color: #111 !important;
    transform: translateY(-1px);
}

.products-btn-outline {
    background: #fff;
    color: var(--amazon-nav, #232f3e) !important;
    border: 1.5px solid #d5d9d9;
}

.products-btn-outline:hover {
    background: #f7fafa;
    border-color: #adb1b8;
    color: var(--amazon-nav, #232f3e) !important;
}

.filters-toggle,
.products-section .filters-toggle {
    background: var(--amazon-nav, #232f3e);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.filters-toggle:hover {
    background: #1a2530;
    color: #fff !important;
}

/* Active filters panel */
.active-filters-card {
    background: #fff;
    border: 1px solid #e3e6e6;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(15, 17, 17, 0.04);
}

.active-filters-card .filters-card-header {
    padding: 0.75rem 1rem;
}

.active-filters-card .card-body {
    padding: 0.875rem 1rem;
    background: #fafafa;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    background: #eef2f3;
    color: var(--amazon-nav, #232f3e);
    border: 1px solid #d5d9d9;
}

/* Search bar */
.products-search .input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #a6a6a6;
    background: #fff;
}

.products-search .form-control {
    border: none;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    box-shadow: none;
}

.products-search .form-control:focus {
    box-shadow: none;
}

.products-search .btn-search {
    background: var(--amazon-nav, #232f3e);
    color: #fff;
    border: none;
    padding: 0.625rem 1rem;
}

.products-search .btn-search:hover {
    background: #1a2530;
    color: #fff;
}

.products-count {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--amazon-text-muted, #565959);
    background: #fff;
    border: 1px solid #e3e6e6;
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
}

/* Product cards */
.products-section .product-card {
    background: #fff;
    border: 1px solid #e3e6e6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 17, 17, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.products-section .product-card:hover {
    box-shadow: 0 6px 20px rgba(15, 17, 17, 0.1);
    transform: translateY(-3px);
}

.products-section .product-card .card-img-top,
.products-section .product-card .position-relative,
.products-section .product-card-image {
    height: 220px;
    overflow: hidden;
    background: #f7fafa;
}

.products-section .product-card .card-body {
    padding: 1rem 1.125rem 1.125rem;
}

.products-section .product-card .card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--amazon-text, #0f1111);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.products-section .product-card .card-text {
    font-size: 0.8125rem;
    color: var(--amazon-text-muted, #565959);
    margin-bottom: 0.75rem;
}

.products-section .product-card .text-primary,
.products-section .product-price {
    color: #b12704 !important;
    font-weight: 700;
    font-size: 1.0625rem;
}

.products-section .product-card .badge-sale {
    background: #cc0c39;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.products-section .product-card .badge-featured {
    background: var(--primary-color, #ff9900);
    color: #111;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.products-section .product-card .buy-now {
    background: var(--primary-color, #ff9900);
    border: none;
    color: #111;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.products-section .product-card .buy-now:hover {
    background: #e88b00;
    color: #111;
}

.products-section .product-card .btn-view-details {
    background: #fff;
    border: 1.5px solid #d5d9d9;
    color: var(--amazon-nav, #232f3e);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.products-section .product-card .btn-view-details:hover {
    background: #f7fafa;
    border-color: #adb1b8;
    color: var(--amazon-nav, #232f3e);
}

/* Empty state */
.products-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border: 1px solid #e3e6e6;
    border-radius: 10px;
}

.products-empty i {
    font-size: 3rem;
    color: #adb1b8;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.pagination-wrapper .pagination {
    gap: 0.35rem;
}

.pagination .page-link {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    border: 1px solid #d5d9d9 !important;
    color: var(--amazon-nav, #232f3e) !important;
    font-weight: 600;
    font-size: 0.875rem;
    background: #fff !important;
    box-shadow: none !important;
}

.pagination .page-item.active .page-link {
    background: var(--amazon-nav, #232f3e) !important;
    border-color: var(--amazon-nav, #232f3e) !important;
    color: #fff !important;
}

.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #f7fafa !important;
    border-color: #adb1b8 !important;
    color: var(--amazon-nav, #232f3e) !important;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--amazon-text-muted, #565959);
    background: #fff;
    border: 1px solid #e3e6e6;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.pagination-info strong {
    color: var(--amazon-text, #0f1111);
}

@keyframes productsFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-section .product-col {
    animation: productsFadeIn 0.4s ease-out both;
}

@media (max-width: 991px) {
    .filters-toggle {
        display: block;
        width: 100%;
    }

    .filters-card {
        display: none;
    }

    .filters-card.show {
        display: block;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding-top: 120px !important;
    }
}
