@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');
@import url('./root-color.css');

.container {
    overflow: visible;
}

.banner img {
    object-fit: cover;
    background-repeat: no-repeat;
    padding: 10px;
    height: 700px;
}

/* Sticky Filter Styling */
.filters {
    position: sticky;
    top: 140px;
    align-self: flex-start;
    z-index: 2;
}

/* Optional: Ensure layout support */
.sticky-filter {
    display: flex;
    gap: 20px;
}

.filters {
    /* min-width: 250px;
    max-width: 300px; */
    background-color: var(--white);
    padding: 20px;
}

.filters h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--color-light-gray-2);
    font-weight: 600;
}

.filter-title {
    border-bottom: 1px solid var(--filter-border-color);
}

.filter-section {
    margin-top: 18px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--filter-border-color);
    color: var(--color-light-gray-2);
}

.filter-section h4 {
    margin-bottom: 10px;
    color: var(--color-light-gray-2);
    font-weight: 500;
}

.range {
    background: var(--color-light-orange);
    border-radius: 8px;
    height: 3.4px;
    width: 300px;
    padding: 0;
    outline: none;
    transition: background 450ms ease-in;
    --webkit-appearance: none;
}

.price-range input[type="range"] {
    /* -webkit-appearance: none; */
    appearance: none;
    width: 100%;
    margin-bottom: 20px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--white);
    border: 1px solid #8e8686;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.price-inputs {
    display: flex;
    align-items: baseline;
    width: 100%;
    margin-bottom: 20px;
}

.price-value {
    margin-left: 1px;
}

.price-inputs input {
    width: 60px;
    font-size: 16px;
    text-align: center;
    border: none;
    outline: none;
    border-bottom: 1px solid var(text-color);
    background: transparent;
    color: var(--color-light-gray-2);
    padding-bottom: 5px;
}

/* Go Button */
.go-button {
    margin-top: 15px;
    margin-left: 5px;
    background: var(--filter-go-btn);
    color: white;
    font-size: 12px;
    padding: 5px 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


/* Saree section */
.page-title {
margin-bottom: 40px;
    color: var(--color-dark-gray);
    font-family: "Philosopher", sans-serif;
    font-size: 40px;
    text-align: center;
}



.sort-bar {
    color: var(--color-light-gray-2);
    margin-bottom: 20px;
    padding: 10px;
}

.sort-options select {
    padding: 5px 8px;
    border: 1px solid var(--color-light-orange);
    color: var(--color-light-gray-2);
    font-weight: 500;
    font-size: 14px;
    margin-left: 8px;
    cursor: pointer;
    appearance: menulist-button;
    -webkit-appearance: menulist-button;
    -moz-appearance: menulist-button;
}
.product{
    padding: 0 20px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
    justify-content: center;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.product-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s;
  margin-bottom: 30px 0;
  border-radius: 10px;
}

.product-image img:hover {
  transform: scale(1.02);
}


.wishlist-icon {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.wishlist-icon:hover {
    transform: scale(1.1);
}

.wishlist-icon i {
    color: #ff6b6b;  /* heart color */
    font-size: 16px;
}

.wishlist-icon.active {
    background: #ff6b6b;
}

.wishlist-icon.active i {
    color: #fff;
}

.shop-now-btn {
    /* position: absolute;
    bottom: -60px;
    left: 50%; */
    /* transform: translateX(-50%); */
    background: var(--color-light-pink-hover);
    color: var(--alert-color);
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: bottom 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    width: 100%;
    text-align: center;
}
.product-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  padding: 10px;
  position: relative;  /* ensure heart positions correctly */
}

.product-card:hover .shop-now-btn {
    bottom: 50px;
}

.product-info {
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

.product-info h3 {
    color: var(--dark-brown);
    font-family: "Philosopher", serif;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.price {
    display: flex;
    gap: 8px;
}

.current {
    color: var(--muted-brown);
    font-family: "Philosopher", serif;
    font-weight: 700;
    font-size: 13px;
}

.original {
    color: #a8a08a;
    font-size: 11px;
    margin-left: 7px;
}

.discount {
    background: var(--color-orange);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 7px;
}

.sort-bar {
    color: var(--color-light-gray-2);
    margin-bottom: 20px;
    padding: 10px;
}

.sort-options select {
    padding: 5px 8px;
    border: 1px solid var(--color-light-orange);
    color: var(--color-light-gray-2);
    font-weight: 500;
    font-size: 14px;
    margin-left: 8px;
}

/* .filters::-webkit-scrollbar {
    display: none;
} */

.filters {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-buttons {
    display: none;
}

.filter-btn,
.sort-btn {
    display: none;
}

/* Filter actions buttons */
.filter-actions {
    display: none;
}

@media (max-width:992px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .mobile-buttons {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        /* padding: 16px; */
        /* background: var(--white); */
        box-shadow : 0 -2px 10px rgba(0, 0, 0, 0.1);
        /* box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05); */
        z-index: 999;
        /* gap: 16px; */
        align-items: center;
        /* background-color: #F1897A; */
    }

    .mobile-buttons img {
        width: 22px;
        margin-right: 10px;
    }

    .sort-btn .pdSorting {
        position: absolute;
        left: 0;
        /* top: 40px; */
        width: 50%;
        outline: 0;
        height: 150px;
        opacity: 0;
        color: var(--color-black);
        bottom: 20%;
    }

    /* .mobile-buttons a,
    .mobile-buttons label {
        font-size: 18px;
        text-transform: uppercase;
    } */
    .filter-btn,
    .sort-btn {
        display: flex;
        flex: 1;
        /* align-items: center; */
        justify-content: center;
        padding: 10px;
        border: none;
        /* border-radius: 8px; */
        color: white;
        font-weight: 500;
        cursor: pointer;
        transform: all 0.3s ease;
    }

    .filter-btn {
        color: var(--white);
    }

    .filter-btn {
        background: var(--color-light-orange);
    }

    .sort-btn {
        background: var(--color-light-orange);
        border-right: 1px solid #dccccc;
    }

    .filter-btn:hover,
    .sort-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .filter-container {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        overflow-y: auto;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .filter-container:target {
        display: block;
        opacity: 1;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        padding: 20px;
    }

    .filter-container:target {
        display: block;
        opacity: 1;
    }

    .filter-actions {
        display: flex;
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 16px 0 0 0;
        background: white;
        /* border-top: 1px solid var(--color-light-gray-5); */
        gap: 16px;
        z-index: 1002;
    }

    .filter-actions a {
        flex: 1;
        padding: 10px;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 500;
        cursor: pointer;
        text-align: center;
        text-transform: uppercase;
    }

    .filter-close {
        background: #f5f5f5;
        color: var(--color-light-gray-3);
        border: 1px solid var(--color-light-gray-5);
    }

    .filter-close:hover {
        background: var(--color-light-gray-5)eee;
        color: var(--text-color);
    }

    .filter-apply {
        background: var(--color-light-orange);
        color: white;
        border: none;
    }

    .filter-apply:hover {
        background: var(--filter-hover);
        transform: translateY(-1px);
    }

    .saree {
        padding: 0 20px;
    }

    .filters {
        width: 80%;
        position: sticky;
        justify-content: center;
        margin-bottom: 30px;
        left: 100px;
        background-color: var(--white);
        /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
        border-radius: 8px;
        top: 0;
    }

    .filters h3 {
        font-size: 20px;
    }

    .filters h4 {
        font-size: 18px;
    }

    .price-inputs span {
        gap: 20px;
    }

    .price-inputs input {
        width: 60px;
        margin-right: 20px;
    }

    .price-inputs button {
        margin-left: 30px;
    }

    .product {
        flex: 1;
        /* min-width: 300px; */
        /* margin-left: 50px; */
    }

    .range {
        width: 100%;
    }

    .offers-grid {
        gap: 20px;
        grid-template-columns: repeat(3 , 1fr);
    }

    .product-image img {
        height: 400px;
        object-fit: cover;
    }

    .product-info {
        padding: 10px;
    }

    .page-title {
        font-size: 28px;
    }

    .filter-section {
        margin-top: 15px;
        padding-bottom: 10px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .price {
        flex-wrap: wrap;
        gap: 12px;
    }

    .price span {
        font-size: 12px;
        align-items: center;
    }

    .price .discount {
        font-size: 11px;
        margin: 0;
        /* padding: 5px 8px; */
        margin-bottom: 1px
    }

    .sort-options label {
        display: none;
    }

    .shop-now-btn {
        padding: 8px;
    }

    .sort-area {
        display: none;
    }
     .footer-bottom .container {
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        /* gap: 50px; */
    }

    .page-title {
        font-size: 30px;
    }

    .product-info h3 {
        font-size: 16px;
    }

    .price {
        justify-content: space-between;
        margin-right: 20px;
    }

    .price span {
        font-size: 14px;
    }

    .sort-bar {
        display: none;
    }

    /* .mobile-buttons {
        /* gap: 12px; 
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        /* background: var(--white); 
        z-index: 999;
        align-items: center;
    } */

    .filters {
        left: 80px;
    }

    .filter-btn,
    .sort-btn {
        font-size: 15px;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 600;
        color: white;
        background: var(----color-light-orange);
        transition: all 0.3s ease;
        padding: 12px;
    }

    .filter-btn:hover,
    .sort-btn:hover {
        background: var(--filter-hover);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

    .filter-actions {
        padding: 12px;
    }

    .filter-actions a {
        padding: 12px;
        font-size: 14px;
    }

    .footer-bottom .container {
        margin-bottom: 60px;
    }

    .sort-area {
        display: none;
    }
}


@media screen and (max-width: 576px) {
    .offers-grid {
        grid-template-columns: repeat(1, 1fr);
        justify-content: center;
        display: grid;
    }
        .product-image img {
            height: auto;
            object-fit: cover;
        }
    .saree h2 {
        font-size: 30px;
        margin-bottom: 10%;
    }

    /* .product-image img {
        height: 200px;
    } */
    .filters {
        left: 40px;
    }

    .sort-area {
        display: none;
    }

    .wishlist-icon {
        width: 30px;
        height: 30px;
    }

    /* .mobile-buttons a {
        font-size: 16px;
    } */
    .wishlist-icon i {
        font-size: 16px;
    }

    .shop-now-btn {
        font-size: 14px;
    }

    .product-card:hover .shop-now-btn {
        bottom: 40px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .filters h3 {
        font-size: 16px;
    }

    .filter-section h4 {
        font-size: 14px;
    }

    .price-inputs input {
        width: 70px;
        font-size: 14px;
    }

    .go-button {
        font-size: 11px;
        padding: 4px 6px;
    }

    .footer-bottom .container {
        margin-bottom: 50px;
    }

    .mobile-buttons a,
    .mobile-buttons label {
        font-size: 14px;
    }

    .mobile-buttons img {
        width: 20px;
    }
}

@media (max-width:400px) {
    .filters {
        left: 20px;
    }
}

/* Product section backgrounds and colors */
/* .product {
    background: var(--cream);
} */

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(61,44,25,0.07);
    transition: box-shadow .18s, transform .18s;
}

.product-card:hover {
    box-shadow: 0 12px 32px rgba(61,44,25,0.13);
    transform: translateY(-4px);
}

.product-info h3 {
    color: var(--dark-brown);
    font-family: "Philosopher", serif;
    font-weight: 600;
}

.current {
    color: var(--muted-brown);
    font-family: "Philosopher", serif;
    font-weight: 700;
}

.original {
    color: #a8a08a;
}

/* Filter section styling */
.filters {
    background: #fff;
    box-shadow: 0 2px 12px rgba(166,140,109,0.45);
}

.filters h3, .filter-section h4 {
    color: var(--dark-brown);
    font-family: "Philosopher", serif;
}

.filter-section {
    border-bottom: 1px solid var(--cream);
}

/* Button styling */
.shop-now-btn {
    background: linear-gradient(90deg, #a68c6d 0%, #bfa16a 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(191,161,106,0.10);
}

.shop-now-btn:hover {
    background: linear-gradient(90deg, #bfa16a 0%, #a68c6d 100%);
    opacity: 0.95;
}

/* Mobile filters/sort buttons */
@media (max-width: 992px) {
    .filter-btn, .sort-btn {
        background: linear-gradient(90deg, #a68c6d 0%, #bfa16a 100%);
    }
    
    .filter-container {
        background: var(--cream);
    }

    .filter-apply {
        background: linear-gradient(90deg, #a68c6d 0%, #bfa16a 100%);
    }
}