/* Product Listing Page Specific Styles */

.product-listing-page {
    padding: 60px 0 100px;
    background-color: #fff;
}

/* Breadcrumbs */
.breadcrumb-wrapper {
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    gap: 5px;
    font-size: 18px;
    font-weight: 500;
    color: #13036E;
}

.breadcrumb-list a {
    color: #13036E;
    text-decoration: none;
}

.breadcrumb-list span {
    color: #13036E;
}

/* Header Section */
.listing-header {
    margin-bottom: 50px;
}

.listing-title {
    /* font-size: 48px; */
    font-weight: 700;
    color: #1B1B1B;
    margin: 0;
    text-align: left;
}

.search-controls {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 630px;
}

.sort-dropdown-wrapper {
    width: 290px;
    display: flex;
    align-items: center;
    gap: 10px;
        font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}
.search-input-wrapper input {
    width: 100%;
    padding: 12px 20px 12px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 16px;
    color: #4A4A4A;
}
.search-input-wrapper input::placeholder{
    font-size: 16px;
}
.search-input-wrapper .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #1B1B1B;
    pointer-events: auto;
    cursor: pointer;
    z-index: 2;
}

.sort-dropdown {
    min-width: 200px;
}

.sort-dropdown select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    /* font-size: 14px; */
    font-size: 16px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
}


.sort-dropdown select,
::picker(select) {
  appearance: base-select;
}


/* .sort-dropdown select option{font-size: 14px;padding: 10px 20px;line-height: 20px;color: #333;background-color: #fff;font-weight: 500;} */

.sort-dropdown select option{font-size: 16px;padding: 10px 20px;line-height: 20px;color: #333;background-color: #fff;font-weight: 500;}


.sort-dropdown select option::checkmark{display: none;}
.sort-dropdown select:open::picker-icon {
  transform: rotate(180deg);
  transition: all 0.3s ease;
}
.sort-dropdown select::picker-icon{
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    content: url("../images/drop-arrow-icon.png");
 
    color: #333 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
}



.view-options {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #333;
    font-size: 18px;
        width: 230px;
    justify-content: end;
}

.view-toggles {
    display: flex;
    gap: 10px;
}

.view-toggle-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #1B1B1B;
    opacity: 0.5;
}

.view-toggle-btn.active {
    opacity: 1;
}

/* Sidebar Filters */
.filter-sidebar {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.filter-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1B1B1B;
    margin: 0;
}

.btn-clear-filter {
    background: linear-gradient(90deg, #138FFF 0%, #13036E 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 15px;
    /* font-size: 14px; */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.filter-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #F3F4F6;
    padding-bottom: 25px;
}
.filter-section img{
    transform: rotate(0deg);
    transition: all 0.3s ease;
}
.filter-section.collapsed img{
    transform: rotate(180deg);
    transition: all 0.3s ease;
}




.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #1B1B1B;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-section-title svg {
    transition: transform 0.3s ease;
}

.filter-section.collapsed .filter-section-title {
    margin-bottom: 0;
}

.filter-section.collapsed .filter-section-title svg {
    transform: rotate(-180deg);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-section.collapsed .filter-options {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #4A4A4A;
    cursor: pointer;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.rating-stars {
    display: flex;
    gap: 4px;
    color: #FBBF24;
}

/* Product Grid */
.product-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 12px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-img-wrapper {
    background-color: #F3F8FF;
    border-radius: 15px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 30px;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* List View Styles */
.product-grid-wrapper.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-grid-wrapper.list-view .product-card {
    flex-direction: row;
    padding: 15px;
    gap: 25px;
    align-items: center;
}

.product-grid-wrapper.list-view .product-img-wrapper {
    width: 250px;
    height: 200px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.product-grid-wrapper.list-view .product-card-body {
    flex: 1;
    padding: 0;
}

.product-grid-wrapper.list-view .product-card h6 {
    /* font-size: 26px; */
    font-size: 16px;
    margin-bottom: 12px;
}

.product-grid-wrapper.list-view .price-row {
    margin-top: 20px;
}

@media (max-width: 767.98px) {
    .product-grid-wrapper.list-view .product-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-grid-wrapper.list-view .product-img-wrapper {
        width: 100%;
        height: 200px;
    }
}

.product-card h6 {
    /* font-size: 24px; */
    font-size: 16px;
    font-weight: 600;
    color: #1B1B1B;
    margin-bottom: 10px;
    line-height: normal;
}

.product-card .rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}





.product-card-body {
    padding: 0 8px ;
}

.product-card .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card .price {
    /* font-size: 24px; */
      font-size: 18px;
    font-weight: 600;
    color: #1B1B1B;
}

.btn-add-cart {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #138FFF;
    border: none;
    .search-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.sort-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.sort-dropdown-wrapper:hover {
    border-color: #138FFF;
}

.sort-label {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    white-space: nowrap;
}

.sort-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.sort-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 700;
    color: #1B1B1B;
    cursor: pointer;
    padding-right: 20px;
}

.dropdown-arrow {
    position: absolute;
    right: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    color: #1B1B1B;
}
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background-color: #13036E;
    transform: scale(1.1);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 15px;
}

.pagination-item {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #4A4A4A;
    transition: all 0.3s ease;
}

.pagination-item.active {
    background-color: #13036E;
    color: #fff;
    border-color: #13036E;
}

.pagination-item:hover:not(.active) {
    background-color: #F3F8FF;
    border-color: #138FFF;
    color: #138FFF;
}

/* Responsiveness */
@media (min-width: 1401px) and (max-width: 1800px) {
    .container { max-width: 1520px !important; }
    .product-grid-wrapper { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) and (max-width: 1399.99px) {
    .container { max-width: 1140px !important; }
    .product-grid-wrapper { grid-template-columns: repeat(3, 1fr); gap: 30px 22px;}

    .product-img-wrapper{height: 200px;}
    .search-input-wrapper{max-width: 340px;}
    .search-controls{gap: 30px;}
    .sort-dropdown-wrapper{width: 280px;}
}


@media (min-width: 992px) and (max-width: 1199.98px) {
    .container { max-width: 960px !important; }
    .product-grid-wrapper { grid-template-columns: repeat(2, 1fr); gap: 30px;}

       .product-img-wrapper{height: 200px;}
    .search-input-wrapper{max-width: 340px;}
    .search-controls{gap: 30px;        justify-content: end;}
    .sort-dropdown-wrapper{width: 280px;}

      .filter-sidebar{padding: 20px;}
      .btn-clear-filter{padding: 5px 10px;}

      main.product-listing-page .row .col-lg-3{flex:0 0 auto;width: 32%;}
       main.product-listing-page .row .col-lg-9{width: 68%;}
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .container { max-width: 720px !important; }
    .product-grid-wrapper { grid-template-columns: repeat(2, 1fr); }
    .filter-sidebar { margin-bottom: 40px; }
}

@media (max-width: 767.98px) {
    .product-listing-page { padding: 40px 0 60px; }
    .search-controls { flex-direction: column; align-items: stretch; gap: 15px; }
    .product-grid-wrapper { grid-template-columns: 1fr; }
    .filter-sidebar { margin-bottom: 30px; padding: 20px; }
    .listing-header { margin-bottom: 30px; }
    .product-img-wrapper { height: 200px; }
    .pagination-item { width: 40px; height: 40px; }



    .breadcrumb-wrapper{margin-bottom: 20px;}
    .view-toggles{display: none;}

    .view-options{justify-content: start;}
}
