:root {
    --bg: #ffffff;
    --muted: #f5f5f6;
    --accent: #FFE189;
    --text: #111;
    --card: #ffffff;
    --radius: 12px;
    --shadow: 0 6px 18px rgba(12, 12, 14, 0.08);
    --glass: rgba(255, 255, 255, 0.6);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    background-color: #ffeaac;
    color: var(--text);
    line-height: 1.35;
    font-size: 1rem;
    font-weight: 400;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-width: 320px;

}

/* Layout helpers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Topbar */
.topbar {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(4.2px);
    backdrop-filter: blur(4.2px);
    border: 1px solid rgba(255, 255, 255, 0.24);

}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
}

.logo .accent {
    color: red;
    font-weight: 800;
    margin-left: 6px;
    font-style: italic;
}

.logo a {
    text-decoration: none;
    color: var(--text);
}

.user-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.user-actions .btn-link {
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
}

.user-actions .points-display {
    font-weight: 600;
    background: #fffbe8;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #f0e0b0;
}

#user-view {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: transparent;
    border: 0;
    font-size: 1.4rem;
    padding: 8px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

#open-cart {
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    border: 0;
    cursor: pointer;
    font-size: 1.4rem;
}

/* Hero */
.hero {
    margin-top: 18px;
}

.carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 36px;
    color: #fff;
    position: relative;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-cta {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.btn {
    background: #fff;
    color: #111;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

/* Carousel controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    border: 0;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.3rem;
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.dots {
    position: absolute;
    right: 20px;
    bottom: 18px;
    display: flex;
    gap: 8px;
    z-index: 12;
}

.dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.dots button.active {
    width: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

/* Sections */
.section {
    margin: 26px 0;
    padding: 18px;
    background: var(--muted);
    border-radius: 14px;
}

.section-title {
    font-size: 1.4rem;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.section-title em {
    font-style: italic;
    color: var(--text);
    font-weight: 600;
}

/* Product row */
.product-row {
    position: relative;
    display: flex;
    align-items: center;
}

.row-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 6px;
    scroll-behavior: smooth;
}

.row-track::-webkit-scrollbar {
    display: none;
}

.card {
    min-width: 180px;
    background: var(--card);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
    flex: 0 0 180px;
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.card .title {
    font-weight: 600;
    margin-top: 8px;
    font-size: 0.95rem;
}

.card .price {
    margin-top: 6px;
    color: #666;
    font-weight: 600;
}

.card .meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    align-items: center;
}

.card .add {
    background: var(--accent);
    border: 0;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.card .wishlist-btn.active {
    color: #e53e3e; /* red */
    transform: scale(1.1);
}

/* Row arrows */
.row-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.row-arrow.left {
    left: -6px;
}

.row-arrow.right {
    right: -6px;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 20px;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal-body {
    display: flex;
    gap: 18px;
    padding: 18px;
}

.modal-body img {
    width: 50%;
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-body .info {
    flex: 1;
}

.modal .close {
    position: absolute;
    right: 14px;
    top: 12px;
    background: transparent;
    border: 0;
    font-size: 1.1rem;
}

/* Auth Modals */
.auth-modal {
    max-width: 400px;
}

.auth-modal h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-modal form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.auth-modal form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 4px;
}

.auth-modal .form-switch {
    text-align: center;
    margin-top: 1rem;
}

/* Cart drawer */
.cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 360px;
    max-width: 92vw;
    background: #fff;
    box-shadow: -8px 0 40px rgba(10, 10, 12, 0.12);
    transform: translateX(110%);
    transition: transform .35s ease;
    z-index: 70;
    display: flex;
    flex-direction: column;
}

.cart-drawer[aria-hidden="false"] {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #eee;
}

.cart-body {
    padding: 12px;
    overflow: auto;
    flex: 1;
}

.cart-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    background: var(--muted);
    margin-bottom: 8px;
}

.cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}

.qty {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cart-footer {
    padding: 12px;
    border-top: 1px solid #eee;
}

.full {
    width: 100%;
}

/* Checkout overlay */
.checkout-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 80;
}

.checkout-overlay[aria-hidden="false"] {
    display: flex;
}

.checkout-panel {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    width: 420px;
    max-width: 92vw;
    box-shadow: var(--shadow);
}

.checkout-panel label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.checkout-panel input {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 6px;
}

/* Footer */
.footer {
    padding: 30px 0;
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: 30px;
    text-align: center;
}

/* Responsive */
@media(min-width:760px) {
    .slide {
        min-height: 400px;
    }

    .card {
        min-width: 220px;
        flex: 0 0 220px;
    }
}

/* Existing styles ko vaise hi rehne dein */

/* ... Aapke maujooda styles ... */

/* ====== Toggle Switch Styles ====== */
.toggle-switch {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.toggle-switch span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
}

#role-label-buyer {
    margin-right: 0.5rem;
}

#role-label-seller {
    margin-left: 0.5rem;
}

.toggle-switch .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.toggle-switch input:checked+.slider {
    background-color: #007bff; /* Accent color */
}

.toggle-switch input:focus+.slider {
    box-shadow: 0 0 1px #007bff;
}

.toggle-switch input:checked+.slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

.toggle-switch .slider.round {
    border-radius: 34px;
}

.toggle-switch .slider.round:before {
    border-radius: 50%;
}

/* ====== Seller View Styles ====== */
.seller-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.seller-form-container h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.seller-form-container p {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.seller-form label {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.seller-form input,
.seller-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.seller-form textarea {
    resize: vertical;
}

.seller-form .btn.full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* ====== Authentication Modal Styles ====== */
.auth-modal {
    padding: 2rem 2.5rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.auth-modal h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.auth-modal label {
    display: block;
    text-align: left;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #555;
}

.auth-modal input {
    width: 100%;
    padding: 12px 15px;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-modal input:focus {
    outline: none;
    border-color: #007bff; /* Accent color */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.auth-modal .btn.full {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-top: 1rem;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border: none;
}

.auth-modal .form-switch {
    margin-top: 1.5rem;
    color: #666;
}

.auth-modal .btn-link {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}
.auth-modal .btn-link:hover {
    text-decoration: underline;
}
/* ====== Flash Message Styles ====== */
#flash-message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.flash-message {
    padding: 15px 25px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards, fadeOut 0.5s 3.5s forwards;
}

/* Success Message (Green) */
.flash-message.success {
    background: linear-gradient(90deg, #28a745, #218838);
}

/* Error/Warning Message (Red) */
.flash-message.error {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

/* Animations */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
/* ... aapke purane styles ... */

/* ====== UPDATED Toggle Switch Styles ====== */
.toggle-switch {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.toggle-switch span {
    font-size: 0.9rem;
    font-weight: 600; /* Font ko thoda bold kiya hai */
    color:blue;
    transition: color 0.3s;
}

/* --- Yahan Badlav Kiya Gaya Hai --- */
/* Checked (Seller) state ke liye slider ka color */
.toggle-switch input:checked+.slider {
    background-color: #ff8c00; /* Naya Orange Color */
}

/* Slider par focus karne par shadow ka color */
.toggle-switch input:focus+.slider {
    box-shadow: 0 0 1px #ff8c00;
}

#wishlist-count,
#cart-count {
    color: #e53935; /* Naya Red Color */
    font-weight: 700; /* Number ko thoda bold banane ke liye */
}
/* --- Responsive Styles for Mobile --- */
/* --- Responsive Navbar (FIXED) --- */
@media (max-width: 850px) {
    .site-header {
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem;
    }

    .brand {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .top-controls {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .top-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        order: 2; /* Nav ko search ke neeche rakhega */
    }

    .search-lang {
        width: 100%;
        order: 1; /* Search ko upar rakhega */
    }

    #globalSearch {
        width: 100%;
    }

    .points-hub {
        order: 3; /* Points bell ko sabse neeche rakhega */
    }
}
/* ====== Responsive Navbar Styles ====== */

/* Hamburger Icon Styling */
.hamburger {
    display: none; /* Default रूप से छिपा रहेगा */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* सबसे ऊपर रखने के लिए */
}

.hamburger .line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* 850px से छोटी स्क्रीन के लिए Styles */
@media (max-width: 850px) {
    .header-inner {
        flex-wrap: wrap; /* Items को अगली लाइन में भेजने के लिए */
    }

    .user-actions {
        display: none; /* Nav links को छिपा दें */
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 20px 0;
        position: absolute;
        top: 65px; /* Navbar की height के नीचे */
        left: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .user-actions.active {
        display: flex; /* Hamburger पर क्लिक होने पर दिखाएँ */
    }

    .user-actions > div {
        margin: 10px 0;
        justify-content: center;
    }

    .hamburger {
        display: block; /* Hamburger को सिर्फ मोबाइल पर दिखाएँ */
        position: absolute;
        right: 18px; /* इसे दाईं ओर सेट करें */
        top: 14px;
    }

    /* Hamburger to Cross (X) Animation */
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}