/* ========== मेन नेविगेशन ========== */
.navbar {
    background-color: #131921;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: white;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
}

.nav-logo:hover {
    border: 1px solid white;
}

.logo-amazon {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -2px;
    color: #ff9900;
    line-height: 1;
    text-align: center;
}

.logo-dotin {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0px;
    color: white;
}

.admin-logo {
    width: 55px;
    height: 35px;
    margin-right: 2px;
}

/* ========== डिलीवरी बॉक्स ========== */
.deliver-box {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    white-space: nowrap;
    cursor: pointer;
}

.deliver-box:hover {
    border: 1px solid white;
}

.deliver-icon {
    font-size: 18px;
}

.deliver-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.deliver-up {
    font-size: 12px;
    color: #ccc;
}

.deliver-down {
    font-size: 14px;
    font-weight: 700;
}

/* ========== सर्च बार ========== */
.search-section {
    flex: 1;
    display: flex;
    max-width: 800px;
    position: relative;
}

.search-category {
    background-color: #e6e6e6;
    color: #0f1111;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-radius: 6px 0 0 6px;
    width: 60px;
    cursor: pointer;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    outline: none;
}

.search-btn {
    background-color: #febd69;
    border: none;
    width: 50px;
    border-radius: 0 6px 6px 0;
    font-size: 20px;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #f3a847;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d5d9d9;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 28px rgba(15, 17, 17, 0.18);
    z-index: 1100;
    overflow: hidden;
}

.search-suggestion-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: #ffffff;
    padding: 10px 14px;
    cursor: pointer;
    text-align: left;
}

.search-suggestion-item:hover {
    background: #f7fafa;
}

.search-suggestion-icon {
    width: 18px;
    flex: 0 0 18px;
    color: #565959;
    font-size: 14px;
    text-align: center;
}

.search-suggestion-image {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    flex: 0 0 28px;
}

.search-suggestion-text {
    color: #111111;
    font-size: 15px;
    line-height: 1.35;
}

/* ========== राइट नेविगेशन ========== */
.right-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.nav-item {
    display: flex;
    flex-direction: column;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
}

.nav-item:hover {
    border: 1px solid white;
}

.nav-item span:first-child {
    font-size: 12px;
    color: #ccc;
}

.nav-item span:last-child {
    font-size: 14px;
    font-weight: 700;
}

/* ========== लैंग्वेज ड्रॉपडाउन ========== */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: transparent;
    border: 1px solid transparent;
    color: white;
    padding: 8px 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 3px;
}

.language-btn:hover {
    border: 1px solid white;
}

.language-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 240px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 8px;
    padding: 15px;
    right: 0;
    color: #0f1111;
    margin-top: 5px;
}

.language-content.show {
    display: block;
}

.language-content h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.language-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.language-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* ========== कार्ट आइकन ========== */
.cart-item {
    display: flex;
    align-items: flex-end;
    font-size: 24px;
    gap: 2px;
    padding: 5px 5px;
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
}

.cart-item:hover {
    border: 1px solid white;
}

.cart-count {
    font-size: 16px;
    font-weight: 700;
    color: #ff9900;
}

/* ========== सेकेंडरी नेव ========== */
/* सेकेंडरी नेव - मोबाइल स्क्रॉल */
.secondary-nav {
    background-color: #232f3e;
    color: white;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.secondary-nav::-webkit-scrollbar {
    display: none;
}

.hamburger-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 14px;
    background: #3b4b5e;
    padding: 6px 12px;
    border-radius: 20px;
    position: relative;
}

.hamburger-menu:hover {
    border: 1px solid white;
}

/* मेगा मेनू - मोबाइल फ्रेंडली */
.mega-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.mega-menu.show {
    left: 0;
}

.mega-menu-close {
    text-align: right;
    font-size: 24px;
    margin-bottom: 15px;
    color: #ff9900;
    cursor: pointer;
}

.mega-col {
    margin-bottom: 20px;
}

.mega-col h4 {
    color: #0f1111;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.mega-col a {
    display: block;
    color: #565959;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}



.sec-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.sec-links a {
    color: white;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 5px 0;
}

.sec-links a:hover {
    border-bottom: 1px solid white;
}

/* ओवरले */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.menu-overlay.show {
    display: block;
}

body.location-modal-open {
    overflow: hidden;
}

.location-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 17, 17, 0.72);
}

.location-modal-backdrop[hidden] {
    display: none !important;
}

.account-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: transparent;
}

.account-dialog-backdrop[hidden] {
    display: none !important;
}

.account-dialog {
    position: absolute;
    top: 72px;
    right: 116px;
    width: min(92vw, 520px);
    max-width: 520px;
    background: #ffffff;
    color: #0f1111;
    border-radius: 12px;
    border: 1px solid #d5d9d9;
    box-shadow: 0 18px 44px rgba(15, 17, 17, 0.28);
    padding: 18px 18px 16px;
}

.account-dialog::before {
    content: "";
    position: absolute;
    top: -12px;
    left: var(--account-dialog-arrow-left, calc(100% - 64px));
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #ffffff;
}

.account-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: #0f1111;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.account-dialog-top {
    border-bottom: 1px solid #eaeded;
    padding: 0 28px 14px 0;
    margin-bottom: 16px;
}

.account-dialog-top h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
}

.account-dialog-subtitle {
    margin: 0;
    font-size: 13px;
    color: #565959;
}

.account-dialog-subtitle a {
    color: #007185;
}

.account-signin-btn {
    width: 100%;
    border: 1px solid #f0c14b;
    background: linear-gradient(180deg, #f7d774 0%, #f0bf3f 100%);
    color: #0f1111;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
}

.account-logout-btn {
    margin-top: 12px;
    margin-bottom: 0;
}

.account-dialog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.account-dialog-column h4 {
    margin: 0 0 12px;
    font-size: 18px;
}

.account-dialog-column a {
    display: block;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    padding: 5px 0;
}

.account-dialog-column a:hover {
    color: #c7511f;
    text-decoration: underline;
}

.location-modal {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    color: #0f1111;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 17, 17, 0.28);
    padding: 22px 22px 18px;
    position: relative;
}

.location-modal h3 {
    margin: 0 36px 10px 0;
    font-size: 24px;
    line-height: 1.2;
}

.location-modal-copy {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #565959;
}

.location-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    color: #0f1111;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.location-signin-btn {
    width: 100%;
    border: 1px solid #f0c14b;
    background: linear-gradient(180deg, #f7d774 0%, #f0bf3f 100%);
    color: #0f1111;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.location-divider {
    margin: 16px 0 14px;
    text-align: center;
    position: relative;
    font-size: 13px;
    color: #565959;
}

.location-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e7e7e7;
}

.location-divider span {
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 0 12px;
}

.location-pincode-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.location-pincode-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #888c8c;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
}

.location-pincode-input:focus {
    border-color: #007185;
    box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.16);
}

.location-apply-btn {
    min-width: 104px;
    border: 1px solid #888c8c;
    background: #ffffff;
    color: #0f1111;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.location-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.location-cancel-btn {
    border: 1px solid #d5d9d9;
    background: #f7fafa;
    color: #0f1111;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.location-apply-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.location-feedback {
    min-height: 22px;
    margin: 12px 0 6px;
    font-size: 13px;
    line-height: 1.5;
}

.location-feedback.is-error {
    color: #b12704;
}

.location-feedback.is-success {
    color: #067d62;
}

.location-current {
    margin: 0;
    font-size: 13px;
    color: #565959;
}

@media (max-width: 640px) {
    .return-orders_nav {
        display: none;
    }

    .language-content {
        min-width: min(240px, calc(100vw - 24px));
    }

    .account-dialog {
        top: 62px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100vw - 24px);
        max-width: none;
    }

    .account-dialog::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .account-dialog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .location-modal {
        max-width: 100%;
        padding: 18px 18px 16px;
        border-radius: 12px;
    }

    .location-modal h3 {
        font-size: 21px;
    }

    .location-pincode-row {
        flex-direction: column;
        align-items: stretch;
    }

    .location-apply-btn {
        width: 100%;
    }

    .location-action-row {
        justify-content: stretch;
    }

    .location-cancel-btn {
        width: 100%;
    }
}