* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    height: 100vh;
    padding-top: 70px;
}

.container {
    width: 100%;
    max-width: 1000px;
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-self: center;
}


/* Header Styles */
.header {
    background-color: #331a5c;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.logo_con{
    width: 120px;
    height: 40px;
    background-color: #331a5c;
    display: flex;
    justify-content: center;
    border-radius: 10px;
}
.logo{
    width: 120px;
    height: 40px;
    object-fit: cover;
}

.location-text {
    font-size: 14px;
    color: #6b7280;
}

.location-value {
    font-weight: 600;
    color: #1f2937;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 26px;
}






.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: #331a5c;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color:white;
    min-width: 160px;
    /* box-shadow: var(--shadow); */
    border-radius: 5px;
    z-index: 1;
    margin-top: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* .dropdown-content a:hover {
    background-color: var(--secondary-color);
} */

.dropdown:hover .dropdown-content {
    display: block;
}









.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #10b981;
    cursor: pointer;
    object-fit: cover;
}

/* Search Bar */
.filter-button {
    max-width: max-content;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background-color: white;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.filter-button:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.filter-icon {
    padding: 8px;
    border-radius: 9999px;
    background-color: #331a5c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-icon svg {
    height: 20px;
    width: 20px;
}
.options-container{
    display: flex;
}
.option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
}

.option-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.option-icon {
    height: 16px;
    width: 16px;
    color: #6b7280;
}









.category-nav-container {
    width: 100%;
    background-color: #fff;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.section-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-nav {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.category-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #1f2937;
    position: relative;
    transition: transform 0.2s ease-in-out;
    padding: 0.5rem 1rem;
    background-color: #f9fafb;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    gap: 0.75rem;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.product-count-badge {
    background-color: #8b5cf6;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


*>a {
    text-decoration: none;
}


.like {
    position: absolute;
    height: 30px !important;
    width: 30px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    top: 0px;
    font-size: 25px !important;
    margin: 5px;
    right: 0px;
    background: rgba(255, 255, 255, 0.151);
    backdrop-filter: blur(10px);
    color: #331a5c;
}

.like>img {
    width: 25px;
    height: 25px;
}

.likeCount {
    position: absolute;
    height: 30px !important;
    width: 30px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    top: 0px;
    font-size: 20px;
    margin: 5px;
    right: 30px;
    font-weight: bolder;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.151);
    backdrop-filter: blur(10px);
}


.sec5 {
    grid-column: 1/5;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.head {
    font-size: 23px;
    font-weight: bolder;
    margin: 30px 30px 10px;
    color: #331a5c;
}
.hot {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


.product {
    position: relative;
    display: flex !important;
    flex-direction: column;
    width: 200px;
    height: 300px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 5px #8069d3;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    text-decoration: none;
    padding: 10px;
}

.open-link {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
}

.product>.image {
    position: relative;
    height: 70%;
    width: 100%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


.image>button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    padding: 5px;
    border: 1px solid #ffffff;
    box-shadow: 0px 0px 5px #ffffff;
    background-color: rgb(250, 250, 250);
    display: flex;
    justify-content: center;
    border-radius: 50%;
    z-index: 20;
}

.profile {
    position: absolute;
    bottom: 27%;
    left: 10px;
    width: 40px;
    height: 40px;
    z-index: 30;
}

.profile>img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.rest {
    position: relative;
    width: 100%;
    height: 30%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.rest>p {
    font-size: 15px;
    margin-left: 10px;
    font-weight: bolder;
    margin: 1px;
    margin-left: 5px;
}

.rest>.small {
    font-size: 10px;
}

.rest .name {
    color: #331a5c;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rest .price {
    color: #331a5c;
    font-weight: bold;
}

@media screen and (max-width: 700px) {
    .product {
        width: 165px;
        height: 240px;
    }

    .hot {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}


.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    /* Hidden by default, shown when scrolling */
}

.back-to-top img {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.back-to-top img:hover {
    opacity: 1;
}
.chat {
    position: fixed;
    bottom: 50px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    /* Hidden by default, shown when scrolling */
}



.loading-ui {
    text-align: center;
    padding: 20px;
    grid-column: 1 / -1;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    color: #d9534f;
}

.btn {
    padding: 5px 15px;
    background: #337ab7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}









/* modal ui */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #f0f4f8;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #666;
}

.modal-body {
    padding: 0.5rem 1.5rem 1.5rem;
    background-color: white;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #331a5c;
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.2);
}

.price-group {
    display: flex;
    gap: 1rem;
}

.price-group .form-control {
    flex: 1;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
}

.apply-btn {
    background-color: #331a5c;
    color: white;
}

.apply-btn:hover {
    background-color: #58008a;
}

.clear-btn {
    background-color: #e9eef3;
    color: #666;
}

.clear-btn:hover {
    background-color: #d8e0e8;
}


.btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    display: inline-flex;
}

.hidden {
    display: none;
}