.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 20px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.search-container input {
    width: 70%;
    height: 45px;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 10px 0 0 10px;
}

.search-container input:focus {
    outline: 2px solid var(--secondary-color);
}

.search-container button {
    padding: 10px 20px;
    border-radius: 0 10px 10px 0;
}

.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 2;
}

.wishlist-icon i {
    color: #ccc;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.wishlist-icon:hover {
    transform: scale(1.1);
}

.wishlist-icon.active i {
    color: var(--main-color);
}

.wishlist-icon.active {
    background: rgba(217, 22, 86, 0.1);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: #f8f9fa;
}

.autocomplete-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
}

.autocomplete-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.autocomplete-name {
    font-weight: 600;
    color: var(--ternary-color);
}

.autocomplete-flavor {
    font-size: 0.85rem;
    color: #888;
}

.autocomplete-price {
    font-weight: 700;
    color: var(--main-color);
}


.categories-wrapper {
    margin-bottom: 20px;
    text-align: center;
    margin-top: 40px;
}

.categories-wrapper button {
    font-size: 15px;
    width: fit-content;
    padding: 7px 20px;
    border: 1px solid var(--main-color);
    margin: 5px;
    background-image: var(--background-image);
}

.categories-wrapper button:not(.active) {
    background-image: none;
    color: var(--main-color);
    background-color: transparent;
}

.categories-wrapper button:hover {
    background-color: var(--main-color);
    color: var(--body-color);
}

.products .products-box {
    gap: 20px;
}

.products .products-box .box {
    position: relative;
    flex: 1 1 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: 0 0 15px whitesmoke;
    opacity: 1;
    transform: none;
}

.image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.cat-label {
    background-color: var(--body-color);
    color: var(--main-color);
    border: 1px solid var(--main-color);
    padding: 5px;
    position: absolute;
    bottom: 5px;
    font-size: 12px;
    left: 5px;
    border-radius: 25px;
}

.products .products-box .box .off,
.products .products-box .quick-view-icon  {
    position: absolute;
    width: 60px;
    height: 40px;
    font-size: 20px;
    text-align: center;
    top: 15px;
    left: 0px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--body-color);
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 25px 25px 0;

}

.product-badge {
    position: absolute;
    top: 60px;
    left: 0;
    background-color: var(--ternary-color);
    color: white;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 25px 25px 0;
    z-index: 2;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.sort-container select:focus {
    outline: none;
    border-color: var(--main-color);
}

.products .products-box .quick-view-icon {
    left: auto;
    right: 0;
    border-radius: 25px 0 0 25px;
    transition: 0.3s;
}
.products .products-box .quick-view-icon:hover {
    background: var(--secondary-color);
}

.products .products-box .box:hover {
    box-shadow: 0 0 10px var(--secondary-color);
}

.products .products-box .box img {
    width: 100%;
    height: 100%;
    display: inline-block;
    border-radius: 15px;
}


.products .products-box .box .name-price {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 22px;
    padding: 10px 1px;
    text-align: center;
}

.products .products-box .box .description {
    width: 100%;
    text-align: center;
    font-size: 15px;
}

.products .products-box .box .qty {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product details */
.text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text .name {
    font-size: 18px;
    font-weight: 600;
}

.text .description {
    font-size: 14px;
    color: #888;
}

/* Price styling */
.price {
    font-size: 18px;
    font-weight: bold;
    /* margin-top: 5px; */
    color: #333;
}

.qtycart span:hover {
    background-color: #f1f1f1;
}

.products .products-box .box .qty span {
    margin: 15px 0;
    display: inline-block;
    height: 35px;
    width: 45px;
    line-height: 31px;
    font-size: 20px;
    border: 2px solid var(--main-color);
    text-align: center;
    transition: 0.3s;
}



.products .products-box .box .qty .increase,
.decrease {
    cursor: pointer !important;
    user-select: none;
}

.products .products-box .box .qty .pcs {
    cursor: default;
}

.products .products-box .box .qty span:first-of-type:hover,
.products .products-box .box .qty span:last-of-type:hover {
    background-color: var(--main-color);
    color: white;
}

.products .products-box .box .qty span:first-of-type {
    border-radius: 25px 0 0 25px;
    border-right-width: 0;
}

.products .products-box .box .qty span:last-of-type {
    border-radius: 0 25px 25px 0;
    border-left-width: 0;
}

.products-box button {
    width: 100%;
}


/* Center alignment and column layout for the container */
.no-product-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

/* Styling for the "No Product Found" heading */
.no-product-heading {
    color: #ff69b4;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.1); 
    margin: 0;
    font-size: 2rem; 
}

/* Image styling */
.no-product-image {
    width: 50%;
    max-width: 12rem; 
    height: auto;
    margin: 1rem 0; 
}

/* Styling for the paragraph */
.no-product-text {
    font-size: 1.125rem;
    margin-top: 1.25rem;
    color: #640D5F;
    line-height: 1.5; 
}

/* Quick-View Icon Display */

.image-wrapper {
    position: relative;
}
/* .quick-view-icon {
    position: absolute;
    width: 60px;
    height: 40px;
    font-size: 20px;
    text-align: center;
    top: 15px;
    left: auto;
    right: 0;
    background-color: var(--main-color);
    color: var(--body-color);
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.image-wrapper:hover .quick-view-icon {
    opacity: 1;
}



/* Overlay background */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Quick view pop-up styling */
.quick-view-popup {
    background: var(--surface-color);
    padding: 20px;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}


.close-btn {
    position:absolute;
    top:5px;
    right:5px;
    font-size: 30px;
    width: 40px; 
    height: 40px;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 2px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;
    border: 1px solid var(--secondary-color);
    transition: 0.3s;
}
.close-btn:hover {
    transform: scale(1);
    color: white;
    background-color: var(--secondary-color); 
}


/* Content container inside the popup */
.popup-content {
    display: flex;
    gap: 20px;
}

/* Left section for the image */
.left-section {
    flex: 1;
}

.quick-view-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Right section for text content */
.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-rating {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating span {
    color: #888;
    font-size: 0.75rem;
}

.product-review {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-style: italic;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    gap: 8px;
}

.product-review i {
    color: var(--main-color);
    font-size: 0.7rem;
    margin-top: 3px;
}

[data-theme='dark'] .product-review { background: #2a2a2a; color: #ccc; }

.right-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.right-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.right-section .price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Responsive Design for Products Page */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        align-items: center;
        margin: 20px 10px;
    }

    .search-container input {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .search-container button {
        width: 100%;
        border-radius: 10px;
    }

    .categories-wrapper {
        margin-top: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .categories-wrapper button {
        font-size: 14px;
        padding: 8px 16px;
        margin: 0;
    }

    .products .products-box .box {
        flex: 1 1 calc(50% - 10px);
        min-width: 150px;
        max-width: none;
    }

    .products .products-box .box .name-price {
        font-size: 18px;
    }

    .products .products-box .box .description {
        font-size: 13px;
    }

    .products .products-box .box .qty span {
        width: 35px;
        height: 30px;
        line-height: 26px;
        font-size: 16px;
    }

    .image-wrapper {
        height: 150px;
    }

    .wishlist-icon {
        width: 30px;
        height: 30px;
    }

    .wishlist-icon i {
        font-size: 0.9rem;
    }

    .product-badge {
        font-size: 12px;
        padding: 4px 8px;
    }

    .popup-content {
        flex-direction: column;
    }

    .quick-view-popup {
        width: 95%;
        padding: 15px;
    }

    .right-section h2 {
        font-size: 20px;
    }

    .right-section p {
        font-size: 14px;
    }

    .no-product-heading {
        font-size: 1.5rem;
    }

    .no-product-image {
        width: 70%;
        max-width: 10rem;
    }

    .no-product-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .products .products-box .box {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .products .products-box {
        gap: 15px;
    }

    .products .products-box .box .name-price {
        font-size: 16px;
    }

    .products .products-box .box .description {
        font-size: 12px;
    }

    .image-wrapper {
        height: 120px;
    }

    .categories-wrapper button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .autocomplete-item {
        padding: 10px;
    }

    .autocomplete-item img {
        width: 40px;
        height: 40px;
    }

    .autocomplete-name {
        font-size: 0.9rem;
    }

    .autocomplete-flavor {
        font-size: 0.75rem;
    }

    .autocomplete-price {
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products .products-box .box {
        flex: 1 1 calc(33.333% - 14px);
    }

    .search-container input {
        width: 60%;
    }
}
