/* Main Section */
.main-section {
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--dark-color);
    font-weight: 500;
}

/* Page Header */
.page-header {
    background: white;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 2rem;
    position: relative;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

/* Search in Section Header */
.section-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-light);
    margin-top: 1rem;
    max-width: 400px;
}

.section-search input {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    flex: 1;
    background: transparent;
    font-size: 0.95rem;
}

.section-search button {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.section-search button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Filters Section */
.filters {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
    margin-bottom: 2rem;
}

.filter-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.filter-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
    transition: var(--transition);
}

.filter-title:hover {
    color: var(--primary-color);
}

.filter-title[aria-expanded="true"] .filter-arrow {
    transform: rotate(180deg);
}

.filter-arrow {
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-item label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: var(--gray-medium);
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-item label:hover {
    color: var(--dark-color);
}

.filter-item input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin: 1rem 0;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    gap: 0.5rem;
}

.mobile-filter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Top Bar */
.topbar {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-group label {
    margin: 0;
    color: var(--dark-color);
    font-weight: 500;
}

.sort-group .form-select {
    border-color: var(--gray-light);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    font-weight: 500;
    width: 200px;
}

.sort-group .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(18, 53, 89, 0.25);
}

/* Products Grid - Same as Landing Page */
.products-row {
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.sale {
    background-color: var(--danger-color);
}

.product-badge.new {
    background-color: var(--success-color);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.product-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-action-btn.active {
    background: var(--primary-color);
    color: white;
}

.product-content {
    padding: 20px;
}

.product-category {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
    line-height: 1.3;
}

.product-description {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    color: var(--warning-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-count {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-left: 5px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 1rem;
    color: var(--gray-medium);
    text-decoration: line-through;
}

.product-button {
    display: grid;
    gap: 10px;
}

/* Top Sellers & Trending Sections - Full Width */
.top-sellers-section,
.trending-section {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid var(--gray-light);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.section-header {
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

.section-tit {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-tit:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.products-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.side-arrows {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.side-arrow {
    background: white;
    border: 1px solid var(--gray-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.side-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.products-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

/* Product card for scroll sections */
.product-card-scroll {
    flex: 0 0 auto;
    width: 280px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.product-card-scroll:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card-scroll .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-card-scroll .product-badge.sale {
    background-color: var(--danger-color);
}

.product-card-scroll .product-badge.new {
    background-color: var(--success-color);
}

.product-card-scroll .product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-card-scroll .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-scroll:hover .product-image img {
    transform: scale(1.05);
}

.product-card-scroll .product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.product-card-scroll:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card-scroll .product-action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.product-card-scroll .product-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-card-scroll .product-action-btn.active {
    background: var(--primary-color);
    color: white;
}

.product-card-scroll .product-content {
    padding: 20px;
}

.product-card-scroll .product-category {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-card-scroll .product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
    line-height: 1.3;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-scroll .product-description {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-scroll .product-rating {
    color: var(--warning-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-card-scroll .rating-count {
    color: var(--gray-medium);
    font-size: 0.85rem;
    margin-left: 5px;
}

.product-card-scroll .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-card-scroll .current-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-card-scroll .old-price {
    font-size: 0.9rem;
    color: var(--gray-medium);
    text-decoration: line-through;
}

.product-card-scroll .product-button {
    display: grid;
    gap: 10px;
}

/* Mobile Filters */
.mobile-filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1100;
    overflow-y: auto;
    transition: var(--transition);
    padding: 0;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-filters-sidebar.show {
    left: 0;
}

.mobile-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--gray-light);
    background: var(--primary-color);
    color: white;
}

.mobile-filters-header h5 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.mobile-filters-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.mobile-filters-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-filters-content {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.mobile-filters-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 1rem;
    background: #f8f9fa;
}

.mobile-filters-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-weight: 600;
}

.mobile-filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-filters-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Results Count */
.results-count {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .product-card-scroll {
        width: 260px;
    }
}

@media (max-width: 992px) {

    .filters {
        display: none;
    }

    .mobile-filter-btn {
        display: inline-flex;
    }

    .topbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .sort-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .sort-group .form-select {
        width: 100%;
    }

    .side-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .product-card-scroll {
        width: 240px;
    }

    .side-arrows {
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.6rem;
    }

    .topbar {
        padding: 1rem;
    }

    .section-search {
        max-width: 100%;
    }

    .product-actions,
    .product-card-scroll .product-actions {
        opacity: 1;
        transform: translateX(0);
        flex-direction: row;
        top: auto;
        bottom: 15px;
        right: 15px;
    }

    .product-action-btn,
    .product-card-scroll .product-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .side-arrows {
        display: none;
    }

    .products-scroll {
        gap: 1rem;
        padding: 0.5rem 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .mobile-filters-sidebar {
        max-width: 320px;
    }

    .product-card-scroll {
        width: 220px;
    }

    .product-card-scroll .product-name {
        font-size: 1rem;
        height: 45px;
    }

    .product-card-scroll .current-price {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {

    .page-header {
        padding: 1rem 0;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    .mobile-filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .mobile-filters-sidebar {
        max-width: 280px;
    }

    .mobile-filters-header {
        padding: 1rem;
    }

    .mobile-filters-content {
        padding: 1rem;
    }

    .mobile-filters-actions {
        padding: 1rem;
        flex-direction: column;
    }

    .section-title:after {
        width: 40px;
    }

    .products-scroll {
        padding: 0.5rem;
    }

    .product-card-scroll {
        width: 200px;
    }

    .product-card-scroll .product-image {
        height: 180px;
    }

    .top-sellers-section,
    .trending-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .product-card-scroll {
        width: 180px;
    }

    .product-card-scroll .product-content {
        padding: 15px;
    }

    .product-card-scroll .product-name {
        font-size: 0.95rem;
        height: 40px;
    }

    .product-card-scroll .current-price {
        font-size: 1.1rem;
    }
}