/**
 * Nice Technology - Custom 3-Row Header Styles (Header Style 2)
 * Inspired by steps-workdo Shopify Reference
 * Scoped under .nt-custom-header and .nt-drawer
 */

/* ==========================================================================
   Base Header Container & Sticky Behaviors
   ========================================================================== */
.nt-custom-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #222222;
    background: #ffffff;
    transition: all 0.25s ease-in-out;
}

.nt-custom-header a {
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.nt-custom-header a:hover {
    text-decoration: none;
}

.nt-custom-header .nt-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 16px;
}

.nt-custom-header .nt-container-fluid {
    width: 100%;
    padding: 0 24px;
}

.nt-custom-header.has-shadow {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Sticky Header on Scroll */
.nt-custom-header.is-sticky {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    animation: ntSlideDown 0.3s ease-out;
}

@keyframes ntSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ==========================================================================
   Row 1: Top Information Bar
   ========================================================================== */
.nt-topbar {
    width: 100%;
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nt-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    flex-wrap: wrap;
    gap: 12px;
}

.nt-topbar-left,
.nt-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nt-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nt-topbar-item i {
    font-size: 15px;
    opacity: 0.9;
}

.nt-topbar-item a {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nt-topbar-item a:hover {
    opacity: 0.85;
}

/* Currency & Language Dropdowns */
.nt-dropdown {
    position: relative;
    display: inline-block;
}

.nt-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: inherit;
    font-weight: 500;
}

.nt-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nt-dropdown-toggle img.flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.nt-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    display: none;
    min-width: 140px;
    padding: 6px 0;
    margin: 4px 0 0;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    list-style: none;
}

.nt-dropdown.open .nt-dropdown-menu,
.nt-dropdown:hover .nt-dropdown-menu {
    display: block;
    animation: ntFadeIn 0.2s ease-in-out;
}

@keyframes ntFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nt-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: 13px;
    color: #333333 !important;
    white-space: nowrap;
    text-decoration: none;
}

.nt-dropdown-item:hover,
.nt-dropdown-item.active {
    background-color: #f6f7f9;
    color: #f26522 !important;
}

.nt-dropdown-item img.flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
}

/* ==========================================================================
   Row 2: Main Header (Logo, Primary Nav, Actions)
   ========================================================================== */
.nt-main-header {
    width: 100%;
    position: relative;
    border-bottom: 1px solid #ebebeb;
}

.nt-main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 20px;
}

/* Brand Logo */
.nt-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nt-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nt-header-logo {
    height: var(--desktop-h, 50px);
    max-width: var(--desktop-w, 160px);
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.2s ease, max-width 0.2s ease;
}

@media (max-width: 767.98px) {
    .nt-header-logo {
        height: var(--mobile-h, 38px);
        max-width: var(--mobile-w, 120px);
    }
}

/* Primary Navigation Menu */
.nt-primary-nav {
    display: flex;
    align-items: center;
    flex: 1;
}

.nt-primary-nav.align-center {
    justify-content: center;
}

.nt-primary-nav.align-left {
    justify-content: flex-start;
    margin-left: 20px;
}

.nt-primary-nav.align-right {
    justify-content: flex-end;
    margin-right: 20px;
}

.nt-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.nt-nav-item {
    position: relative;
}

.nt-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    position: relative;
    transition: all 0.2s ease;
}

.nt-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.25s ease;
}

.nt-nav-link:hover::after,
.nt-nav-item.active .nt-nav-link::after {
    width: 100%;
}

.nt-nav-link i.caret {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.nt-nav-item:hover .nt-nav-link i.caret {
    transform: rotate(180deg);
}

/* Primary Submenu Dropdown */
.nt-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1060;
    display: none;
    min-width: 210px;
    padding: 8px 0;
    margin: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    list-style: none;
}

.nt-nav-item:hover > .nt-submenu {
    display: block;
    animation: ntFadeIn 0.25s ease;
}

.nt-submenu-item a {
    display: block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    transition: all 0.15s ease;
}

.nt-submenu-item a:hover {
    background-color: #f7f8fa;
    padding-left: 22px;
}

/* Action Icons Group (Right) */
.nt-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nt-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #222222;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.nt-action-btn:hover {
    background: #f4f4f4;
    color: #f26522;
}

.nt-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    background-color: var(--theme-primary-color, #f26522);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* User Account / Profile Area */
.nt-account-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nt-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 4px;
    color: #222222;
    background: transparent !important;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nt-account-trigger:hover {
    color: #f26522;
    text-decoration: none;
}

.nt-account-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    width: auto;
    height: auto;
    border-radius: 0;
    font-size: 21px;
    line-height: 1;
}

.nt-account-name {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
}

.nt-account-caret {
    font-size: 14px;
    color: inherit;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nt-account-wrapper:hover .nt-account-caret {
    transform: rotate(180deg);
}

/* Account Dropdown Menu */
.nt-account-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 1080;
    display: none;
    min-width: 220px;
    padding: 8px 0;
    margin: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    list-style: none;
}

/* Invisible bridge to prevent mouse leaving trigger flickering */
.nt-account-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.nt-account-wrapper:hover .nt-account-dropdown,
.nt-account-wrapper:focus-within .nt-account-dropdown {
    display: block;
    animation: ntFadeIn 0.2s ease-in-out;
}

.nt-account-dropdown-header {
    padding: 10px 18px 8px 18px;
}

.nt-account-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.nt-account-user-role {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nt-dropdown-divider {
    height: 1px;
    margin: 6px 0;
    background-color: #f1f5f9;
    border: none;
}

.nt-account-dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nt-account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155 !important;
    text-decoration: none !important;
    transition: all 0.18s ease;
}

.nt-account-dropdown-item i {
    font-size: 16px;
    color: #64748b;
    transition: color 0.18s ease;
}

.nt-account-dropdown-item:hover {
    background-color: #f8fafc;
    color: #f26522 !important;
    padding-left: 21px;
}

.nt-account-dropdown-item:hover i {
    color: #f26522;
}

.nt-account-dropdown-item.nt-account-logout:hover {
    background-color: #fef2f2;
    color: #dc2626 !important;
}

.nt-account-dropdown-item.nt-account-logout:hover i {
    color: #dc2626;
}

/* Expandable Inline Search Bar */
.nt-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.nt-search-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.nt-search-input {
    width: 240px;
    height: 38px;
    padding: 6px 36px 6px 14px;
    font-size: 13px;
    color: #333333;
    background-color: #f7f7f7;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    outline: none;
    transition: all 0.25s ease;
}

.nt-search-input:focus {
    width: 290px;
    background-color: #ffffff;
    border-color: #f26522;
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15);
}

.nt-search-submit-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 50%;
}

.nt-search-submit-btn:hover {
    color: #f26522;
}

/* Hamburger Trigger */
.nt-hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #222222;
    cursor: pointer;
    border-radius: 4px;
}

.nt-hamburger-btn:hover {
    background: #f4f4f4;
}

/* ==========================================================================
   Row 3: Secondary Navigation Bar (Orange Bar)
   ========================================================================== */
.nt-secondary-bar {
    width: 100%;
    position: relative;
    z-index: 990;
    background-color: #f26522;
}

.nt-secondary-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 16px;
}

/* Left: All Categories Trigger & Menu */
.nt-category-dropdown {
    position: relative;
    flex-shrink: 0;
}

.nt-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.nt-category-btn:hover {
    background: rgba(0, 0, 0, 0.25);
}

.nt-category-btn i {
    font-size: 18px;
}

.nt-category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1070;
    display: none;
    width: 250px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0;
    margin: 4px 0 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    list-style: none;
}

.nt-category-dropdown.open .nt-category-menu,
.nt-category-dropdown:hover .nt-category-menu {
    display: block;
    animation: ntFadeIn 0.2s ease;
}

.nt-category-menu-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    border-bottom: 1px solid #f6f6f6;
    transition: all 0.15s ease;
}

.nt-category-menu-item:last-child a {
    border-bottom: none;
}

.nt-category-menu-item a:hover {
    background-color: #fff6f2;
    color: #f26522;
    padding-left: 22px;
}

.nt-category-menu-item i {
    font-size: 16px;
    color: #f26522;
}

/* Center: Secondary Navigation Links */
.nt-secondary-nav {
    display: flex;
    align-items: center;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.nt-secondary-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    white-space: nowrap;
}

.nt-secondary-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: transparent !important;
    overflow: hidden;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nt-secondary-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #dc2626; /* Animated red top border */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nt-secondary-link:hover::before,
.nt-secondary-link:focus::before,
.nt-secondary-link.active::before {
    transform: scaleX(1);
}

.nt-secondary-link:hover {
    color: #ffffff !important;
    background: transparent !important;
    opacity: 1;
    text-decoration: none;
    transform: none; /* No layout shifts */
}

/* Right: Promotional Button */
.nt-promo-wrap {
    flex-shrink: 0;
}

.nt-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 20px;
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.nt-promo-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
    color: #ffffff;
}

.nt-promo-btn i {
    font-size: 15px;
    color: #ffb703;
}

/* ==========================================================================
   Mobile / Tablet Responsive Slide-Out Drawer (.nt-drawer)
   ========================================================================== */
.nt-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nt-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nt-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
}

.nt-drawer.active {
    transform: translateX(0);
}

.nt-drawer.pos-right {
    left: auto;
    right: 0;
    transform: translateX(100%);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
}

.nt-drawer.pos-right.active {
    transform: translateX(0);
}

.nt-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eeeeee;
}

.nt-drawer-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #444444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.nt-drawer-close-btn:hover {
    color: #f26522;
}

.nt-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.nt-drawer-search {
    margin-bottom: 20px;
}

.nt-drawer-search input {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    outline: none;
}

.nt-drawer-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888888;
    margin: 16px 0 8px;
}

.nt-drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nt-drawer-nav-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    border-bottom: 1px solid #f2f2f2;
}

.nt-drawer-nav-item a:hover {
    color: #f26522;
}

.nt-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #eeeeee;
    background: #fafafa;
    font-size: 13px;
}

.nt-drawer-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #555555;
}

.nt-drawer-footer-item i {
    color: #f26522;
    font-size: 16px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991.98px) {
    .nt-primary-nav {
        display: none !important;
    }

    .nt-hamburger-btn {
        display: inline-flex !important;
    }

    .nt-search-box {
        display: none !important;
    }

    .nt-secondary-bar {
        display: none !important;
    }

    .nt-topbar-left {
        display: none !important;
    }

    .nt-topbar-inner {
        justify-content: flex-end;
    }

    .nt-main-header-inner {
        min-height: 64px;
    }
}

@media (max-width: 575.98px) {
    .nt-account-name {
        display: none !important;
    }

    .nt-topbar {
        font-size: 11px;
    }

    .nt-topbar-inner {
        min-height: 32px;
    }
}

/* ==========================================================================
   AJAX Shopping Cart Sidebar Drawer (Header Style 2)
   Matches States A, B, and C UI References
   ========================================================================== */

/* Cart Backdrop Overlay */
.nt-cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.nt-cart-open .nt-cart-backdrop {
    opacity: 1;
    visibility: visible;
}

/* Cart Drawer Panel */
.nt-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 460px;
    max-width: 100vw;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    background: #ffffff;
    z-index: 10051;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -6px 0 28px rgba(15, 23, 42, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

body.nt-cart-open .nt-cart-drawer {
    transform: translateX(0);
}

body.nt-cart-open {
    overflow: hidden !important;
}

/* 1. Drawer Header */
.nt-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    min-height: 60px;
    flex-shrink: 0;
}

.nt-cart-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nt-cart-header-icon {
    stroke: var(--theme-primary-color, #f26522);
    color: var(--theme-primary-color, #f26522);
    flex-shrink: 0;
}

.nt-cart-header-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.nt-cart-close-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    margin-right: -6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.nt-cart-close-btn:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

/* 2. Drawer Body (Scrollable Container) */
.nt-cart-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: #ffffff;
    overscroll-behavior: contain;
}

.nt-cart-body::-webkit-scrollbar {
    width: 6px;
}

.nt-cart-body::-webkit-scrollbar-track {
    background: #f8fafc;
}

.nt-cart-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.nt-cart-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading Overlay */
.nt-cart-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(1px);
}

.nt-cart-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #f1f5f9;
    border-top-color: var(--theme-primary-color, #f26522);
    border-radius: 50%;
    animation: ntCartSpin 0.75s linear infinite;
}

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

/* Empty States (States A & B) */
.nt-cart-state-view {
    width: 100%;
}

#ntCartStateGuest,
#ntCartStateEmpty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    min-height: 420px;
    text-align: center;
}

.nt-empty-bag-illustration {
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.nt-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.nt-empty-subtitle {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    max-width: 310px;
    margin: 0 0 24px 0;
}

.nt-cart-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme-primary-color, #f26522);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 32px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(var(--theme-primary-color-rgb, 242, 101, 34), 0.25);
    border: none;
    cursor: pointer;
}

.nt-cart-action-btn:hover {
    background-color: var(--theme-primary-color-hover, #d9531e);
    filter: brightness(0.92);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(var(--theme-primary-color-rgb, 242, 101, 34), 0.35);
    color: #ffffff !important;
}

/* Cart Items List (State C) */
.nt-cart-items-list {
    display: flex;
    flex-direction: column;
}

.nt-cart-item-row {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
    background: #ffffff;
    transition: background-color 0.15s ease;
}

.nt-cart-item-row:hover {
    background-color: #fafbfd;
}

.nt-item-thumb-link {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    padding: 4px;
    overflow: hidden;
    box-sizing: border-box;
    text-decoration: none;
}

.nt-item-thumb {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
    border: none;
}

.nt-item-info {
    flex: 1;
    min-width: 0;
}

.nt-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a !important;
    text-transform: uppercase;
    line-height: 1.35;
    margin: 0 0 3px 0;
    text-decoration: none !important;
    display: block;
    transition: color 0.15s;
    white-space: normal;
}

.nt-item-title:hover {
    color: var(--theme-primary-color, #f26522) !important;
}

.nt-item-variant {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.nt-item-price {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--theme-primary-color, #f26522);
    margin: 0 0 8px 0;
}

.nt-item-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nt-qty-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    height: 28px;
    overflow: hidden;
}

.nt-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.nt-qty-btn:hover {
    background: rgba(var(--theme-primary-color-rgb, 242, 101, 34), 0.08);
    color: var(--theme-primary-color, #f26522);
}

.nt-qty-val {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    user-select: none;
}

.nt-item-remove-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.18s ease;
}

.nt-item-remove-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* 3. Drawer Footer (Sticky bottom action panel) */
.nt-cart-footer {
    padding: 14px 20px max(16px, env(safe-area-inset-bottom, 16px)) 20px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    flex-shrink: 0;
    margin-top: auto;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    z-index: 5;
}

.nt-cart-coupon-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.nt-coupon-input-box {
    position: relative;
    flex: 1;
}

.nt-coupon-tag-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    stroke: #94a3b8;
}

.nt-coupon-input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12.5px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.nt-coupon-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.nt-coupon-input:focus {
    border-color: var(--theme-primary-color, #f26522);
    box-shadow: 0 0 0 2px rgba(var(--theme-primary-color-rgb, 242, 101, 34), 0.15);
}

.nt-coupon-btn {
    height: 40px;
    padding: 0 20px;
    background-color: #0f172a;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.nt-coupon-btn:hover {
    background-color: var(--theme-primary-color, #f26522);
}

.nt-coupon-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nt-coupon-feedback {
    font-size: 12px;
    margin-top: -6px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.nt-feedback-error {
    color: #dc2626;
    background: #fef2f2;
}

.nt-feedback-success {
    color: #16a34a;
    background: #f0fdf4;
}

.nt-cart-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13.5px;
    color: #475569;
}

.nt-total-label {
    font-weight: 500;
}

.nt-total-val {
    font-weight: 600;
    color: #0f172a;
}

.nt-discount-line {
    color: #16a34a !important;
}

.nt-cart-total-line.nt-grand-total {
    margin-top: 8px;
    margin-bottom: 14px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.nt-grand-label {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.nt-grand-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--theme-primary-color, #f26522);
}

/* Action Buttons (View Cart & Checkout) */
.nt-cart-actions-row {
    display: flex;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.nt-btn-view-cart {
    flex: 1;
    min-width: 0;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a !important;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.nt-btn-view-cart:hover {
    background: #f8fafc;
    border-color: var(--theme-primary-color, #f26522);
    color: var(--theme-primary-color, #f26522) !important;
}

.nt-btn-checkout {
    flex: 1.1;
    min-width: 0;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--theme-primary-color, #f26522);
    border: 1px solid var(--theme-primary-color, #f26522);
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(var(--theme-primary-color-rgb, 242, 101, 34), 0.25);
    box-sizing: border-box;
    white-space: nowrap;
}

.nt-btn-checkout:hover {
    background: var(--theme-primary-color-hover, #d9531e);
    border-color: var(--theme-primary-color-hover, #d9531e);
    filter: brightness(0.92);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-color-rgb, 242, 101, 34), 0.35);
    color: #ffffff !important;
}

/* Responsive adjustments for mobile and tablet */
@media (max-width: 576px) {
    .nt-cart-drawer {
        width: 100vw;
        max-width: 100vw;
        height: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        left: 0;
        right: 0;
    }

    .nt-cart-header {
        padding: 12px 16px;
        min-height: 52px;
    }

    .nt-cart-item-row {
        padding: 12px 14px;
        gap: 10px;
    }

    .nt-item-thumb-link {
        width: 58px;
        height: 58px;
    }

    .nt-item-title {
        font-size: 12.5px;
    }

    .nt-item-price {
        font-size: 13.5px;
        margin: 0 0 6px 0;
    }

    .nt-cart-footer {
        padding: 10px 14px max(14px, env(safe-area-inset-bottom, 14px)) 14px;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
    }

    .nt-cart-coupon-wrap {
        gap: 6px;
        margin-bottom: 8px;
    }

    .nt-coupon-input {
        height: 38px;
        font-size: 12px;
        padding: 0 10px 0 32px;
    }

    .nt-coupon-tag-icon {
        left: 10px;
        width: 14px;
        height: 14px;
    }

    .nt-coupon-btn {
        height: 38px;
        padding: 0 16px;
        font-size: 12px;
    }

    .nt-cart-total-line {
        margin-bottom: 4px;
        font-size: 12.5px;
    }

    .nt-cart-total-line.nt-grand-total {
        margin-top: 6px;
        margin-bottom: 10px;
        padding-top: 6px;
    }

    .nt-grand-label {
        font-size: 14px;
    }

    .nt-grand-val {
        font-size: 15.5px;
    }

    .nt-cart-actions-row {
        display: flex;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .nt-btn-view-cart,
    .nt-btn-checkout {
        flex: 1 1 50%;
        min-width: 0;
        height: 42px;
        min-height: 42px;
        font-size: 13px;
        padding: 0 8px;
        box-sizing: border-box;
        white-space: nowrap;
        border-radius: 8px;
    }

    .nt-btn-checkout svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
}

/* ==========================================================================
   AUTHENTICATION POPUP MODAL (Header Style 2)
   ========================================================================== */

/* Prevent background scrolling when modal is active */
body.nt-modal-open {
    overflow: hidden !important;
}

/* Modal Dark Semi-Transparent Backdrop */
.nt-auth-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.nt-auth-backdrop.nt-active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Modal Window Container */
.nt-auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.05);
    z-index: 99999;
    padding: 32px 34px 34px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.nt-auth-modal.nt-active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Close Icon Button */
.nt-auth-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    z-index: 10;
}

.nt-auth-close-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* Pill Tab Switcher */
.nt-auth-pill-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.nt-auth-pill {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 999px;
    gap: 4px;
    border: 1px solid #e2e8f0;
}

.nt-auth-pill-item {
    border: 1px solid transparent;
    background: transparent;
    padding: 7px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.2;
}

.nt-auth-pill-item.active {
    background: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nt-auth-pill-item:not(.active):hover {
    color: #0f172a;
}

/* Auth Modal Header */
.nt-auth-header {
    margin-bottom: 22px;
}

.nt-auth-title {
    font-size: 23px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.nt-auth-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Form Layout */
.nt-form-group {
    margin-bottom: 18px;
    text-align: left;
}

.nt-form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 7px;
}

.nt-label-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

/* Primary Color Links */
.nt-link-primary {
    color: var(--theme-primary-color, #f26522);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nt-link-primary:hover {
    color: var(--theme-primary-color-hover, #d9531e);
    text-decoration: underline;
}

.nt-forgot-link {
    font-size: 12.5px;
}

/* Input Container Box with Icon */
.nt-input-box {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    padding: 0 14px;
    height: 48px;
    position: relative;
}

.nt-input-box:focus-within {
    border-color: var(--theme-primary-color, #f26522);
    box-shadow: 0 0 0 3.5px rgba(var(--theme-primary-color-rgb, 242, 101, 34), 0.14);
}

.nt-input-box.nt-has-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.14) !important;
}

.nt-input-icon {
    color: #94a3b8;
    font-size: 19px;
    margin-right: 11px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nt-form-control {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 14.5px !important;
    color: #0f172a !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.nt-form-control::placeholder {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    opacity: 1;
}

/* Password Visibility Toggle Button */
.nt-pwd-toggle-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.nt-pwd-toggle-btn:hover {
    color: #334155;
}

/* Validation Errors & Helper Text */
.nt-field-error {
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 5px;
    display: none;
    line-height: 1.35;
    text-align: left;
}

.nt-field-helper {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.4;
    text-align: left;
}

.nt-terms-text {
    font-size: 12px;
    color: #64748b;
    margin: 16px 0 20px;
    line-height: 1.5;
}

/* Prominent Submit Button */
.nt-auth-submit-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background-color: var(--theme-primary-color, #f26522);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(var(--theme-primary-color-rgb, 242, 101, 34), 0.28);
}

.nt-auth-submit-btn:hover {
    background-color: var(--theme-primary-color-hover, #d9531e);
    box-shadow: 0 6px 18px rgba(var(--theme-primary-color-rgb, 242, 101, 34), 0.38);
    transform: translateY(-1px);
}

.nt-auth-submit-btn:active {
    transform: translateY(0);
}

.nt-auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Alert Boxes */
.nt-auth-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
    text-align: left;
}

.nt-auth-alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.nt-auth-alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

/* Modal Footer Message */
.nt-auth-footer {
    margin-top: 22px;
    font-size: 13.5px;
    color: #64748b;
}

.nt-auth-footer span {
    margin-right: 4px;
}

/* Responsive Modal Layout */
@media (max-width: 576px) {
    .nt-auth-modal {
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
        padding: 26px 20px 24px;
        border-radius: 18px;
    }

    .nt-auth-title {
        font-size: 21px;
    }

    .nt-auth-subtitle {
        font-size: 12.5px;
        margin-bottom: 18px;
    }

    .nt-input-box {
        height: 46px;
    }

    .nt-auth-submit-btn {
        height: 46px;
        font-size: 15px;
    }
}

