﻿body {
    visibility: hidden;
}

.ruby-container {
    padding: 0px 0px 0px 0px !important;
}

.align-items-center {
    align-items: start !important;
}
/* Default header styling */
#header-area.normal-header {
    background: #ffffff;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 9999;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Transparent and fixed header for homepage */
#header-area.transparent-header {
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    /* After scroll on transparent header */
    #header-area.transparent-header.scrolled {
        /*background: rgba(0, 0, 0, 0.95);*/
        background: #730a1d;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

/* Menu links and icons - default */
#mainmenu ul li a,
.header-right-meta a {
    /*color: #000000;*/
    font-weight: 500;
    padding: 10px 15px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

    /* Hover - always red */
    #mainmenu ul li a:hover,
    .header-right-meta a:hover {
        color: #730a1d;
        border-bottom: 2px solid #730a1d;
    }

/* After scroll - white text/icons */
#header-area.transparent-header.scrolled #mainmenu ul li a,
#header-area.transparent-header.scrolled .header-right-meta a {
    color: #ffffff;
}

    /* Hover on scrolled header - red */
    #header-area.transparent-header.scrolled #mainmenu ul li a:hover,
    #header-area.transparent-header.scrolled .header-right-meta a:hover {
        color: #730a1d;
        border-bottom: 2px solid #730a1d;
    }

/* Search bar */
#search-bar {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ccc;
}

    #search-bar::placeholder {
        color: #666;
    }

/* Settings dropdown */
.site-settings {
    background-color: #dbd5d5 !important;
    color: #000000;
    border: 1px solid #000000;
}

    .site-settings a {
        color: #000000;
        font-weight: 500;
    }

        .site-settings a:hover {
            color: #730a1d;
        }

/* Mini cart dropdown */
/* Coupon Section */
.coupon-section {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

/* Wrapper */
.coupon-input-wrapper {
    display: flex;
    gap: 10px;
}

    /* Input Field */
    .coupon-input-wrapper input {
        flex: 1;
        padding: 10px 14px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        outline: none;
        transition: 0.3s ease;
    }

        .coupon-input-wrapper input:focus {
            border-color: #94333c;
            box-shadow: 0 0 0 2px rgba(148, 51, 60, 0.1);
        }

/* Apply Button */
.apply-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #94333c;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

    .apply-btn:hover {
        background-color: #7e2b32;
    }

    .apply-btn:active {
        transform: scale(0.97);
    }

.coupon-message {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

.coupon-error {
    color: #dc3545;
}

.mini-cart {
    background-color: #dbd5d5 !important;
    color: #000000;
    border: 1px solid #000000;
}

    .mini-cart a {
        color: #000000;
    }

        .mini-cart a:hover {
            color: #730a1d;
        }

    .mini-cart .product-details h2 a {
        color: #000000;
        font-size: 14px;
    }

        .mini-cart .product-details h2 a:hover {
            color: #730a1d;
            color: white;
        }
/*#mainmenu ul li a, .header-right-meta a
                {
                        padding: 0px 15px 0px 15px !important;
                }*/

/*@media (max-width: 768px) {
            .row {
                padding-top: 25px;*/ /* stack slides vertically if needed */
/*}
        }*/

@media (max-width: 992px) {
    /* .header-right-meta {
        margin-top: 22px;
    }*/
    #SilkLogomedia .logo-area img {
        display: block !important;
        padding-bottom: 13px !important;
        margin-left: 180% !important;
    }
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
/* ===============================
   POPUP BOX
================================ */
.popup-box {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    padding: 30px 32px;
    position: relative;
    animation: popupIn .25s ease;
}

/* Close */
.popup-close {
    position: absolute;
    padding-left: 11px;
    top: 14px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: white;
}

    .popup-close:hover {
        color: #7a1616;
    }

/* ===============================
   HEADER
================================ */
.popup-header {
    text-align: center;
    margin-bottom: 25px;
}

    .popup-header h3 {
        font-size: 26px;
        font-weight: 700;
        color: #7a1616;
        margin-bottom: 8px;
    }

    .popup-header p {
        font-size: 15px;
        color: #666;
        line-height: 1.5;
    }

/* ===============================
   FORM
================================ */
.popup-body .single-input-item {
    margin-bottom: 16px;
}

.popup-body .form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    border: 1px solid #ddd;
    background: #fafafa;
}

    .popup-body .form-control:focus {
        border-color: #b02253;
        box-shadow: 0 0 0 2px rgba(176,34,83,.15);
        background: #fff;
    }

/* Textarea */
.popup-body textarea {
    min-height: 110px;
    resize: vertical;
}

/* File upload */
.file-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

/* Submit */
.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #7a1616, #b02253);
    transition: all .25s ease;
}

    .btn-submit:hover {
        background: linear-gradient(135deg, #651212, #9c1f47);
        transform: translateY(-1px);
    }

/* Error */
.error-text {
    display: block;
    text-align: center;
    color: red;
    margin-top: 8px;
}

/* ===============================
   ANIMATION
================================ */
@keyframes popupIn {
    from {
        transform: scale(.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 576px) {
    .popup-box {
        padding: 22px 20px;
    }

    .popup-header h3 {
        font-size: 22px;
    }
}
/* ===============================
   THANK YOU SCREEN
================================ */
.thankyou-box {
    text-align: center;
    padding: 30px 10px;
}

.thankyou-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #7a1616, #b02253);
    color: #fff;
    border-radius: 50%;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.thankyou-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: #7a1616;
    margin-bottom: 10px;
}

.thankyou-box p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 22px;
}

@media (min-width: 992px) {
    .scrolled #DesktopSilkLogo {
        display: none !important;
    }
}

#header-area.transparent-header.scrolled {
    height: 80px !important;
}

.banner {
    width: 100%;
    overflow: hidden;
    background: #730a1d;
    color: white;
    font-size: 12px;
    padding: 6px 0;
    position: relative;
}

.slides {
    display: flex;
    animation: slide 12s infinite;
}

.slide {
    flex: 0 0 100%;
    text-align: center;
}

/* Keyframes for step-by-step sliding */
@keyframes slide {
    0%, 33% {
        transform: translateX(0);
    }

    36%, 66% {
        transform: translateX(-100%);
    }

    69%, 99% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(0);
    }
}


/* Prevent background scroll when popup open */
body.modal-open {
    overflow: hidden;
}

/* ---------- CHECKOUT MODAL ---------- */
.checkout-overlay {
    padding: 10px;
}

.checkout-modal {
    max-height: 95vh;
    overflow-y: auto;
}

/* Mobile & Tablet */
@media (max-width: 768px) {

    /* Checkout modal full width */
    .checkout-modal {
        width: 100% !important;
        /*height: auto;
        min-height: auto;*/
        max-height: 95vh;
        border-radius: 12px;
    }

    .checkout-step {
        padding: 16px;
    }

    .checkout-header h3 {
        font-size: 16px;
    }

    .primary-btn,
    .pay-btn {
        font-size: 15px;
        padding: 12px;
    }

    /* Sticky footer spacing fix */
    .pay-footer-fixed {
        padding-bottom: 10px;
    }
}

/* ---------- CART DRAWER ---------- */
@media (max-width: 768px) {

    .cart-drawer {
        width: 100% !important;
        right: -100%;
    }

        .cart-drawer.open {
            right: 0;
        }

    .cart-header h3 {
        font-size: 16px;
    }

    .cart-body {
        padding: 12px;
    }

    .checkout-btn {
        padding: 12px;
        font-size: 15px;
    }
}

/* ---------- ADDRESS CARD ---------- */
@media (max-width: 768px) {

    .address-card {
        padding: 12px;
        font-size: 13px;
    }

    .address-footer {
        padding: 10px;
    }
}

/* ---------- THANK YOU SCREEN ---------- */
@media (max-width: 768px) {

    .thankyou-box {
        padding: 20px 12px;
    }

        .thankyou-box h2 {
            font-size: 18px;
        }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

/* ---------- SEARCH INPUT ---------- */
@media (max-width: 576px) {

    #search-bar {
        width: 150px !important;
        right: 10px !important;
    }
}
/* ===============================
   FIX CHECKOUT BUTTON VISIBILITY
   MOBILE CART POPUP
================================ */

/* Ensure cart uses flex properly */
.cart-drawer {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Make cart items scrollable */
.cart-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

/* Keep checkout button always visible */
.cart-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
    border-top: 1px solid #eee;
}

/* Mobile-specific safety */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100% !important;
    }

    .cart-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Thumbnail image */
.cart-thumb {
    width: 70px;
    height: 90px;
    object-fit: cover; /* crops nicely */
    border-radius: 6px;
    background: #f5f5f5;
    flex-shrink: 0;
}

/* Cart text */
.cart-info h4 {
    font-size: 14px;
    margin: 0 0 4px;
    line-height: 1.2;
}

.cart-info div {
    font-size: 13px;
    color: #555;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: none;
    z-index: 999;
}

.cart-drawer {
    position: fixed;
    right: -420px;
    top: 0;
    width: 420px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
}

    .cart-drawer.open {
        right: 0;
    }

.cart-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-footer {
    padding: 16px;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    background: #7a1616;
    color: #fff;
    padding: 14px;
    border: none;
}

.address-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 14px;
    border-top: 1px solid #eee;
    display: none; /* 👈 IMPORTANT */
}


    .address-footer .primary-btn {
        width: 100%;
        background: #7a1616;
        color: #fff;
        padding: 14px;
        font-size: 16px;
        border-radius: 8px;
        border: none;
    }

.address-card {
    /*border: 1px solid #ddd;*/
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fafafa;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-text {
    font-size: 14px;
    color: #555;
    margin-top: 6px;
}

.address-phone {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.edit-icon {
    cursor: pointer;
    font-size: 16px;
}

.add-new-address {
    margin-top: 14px;
    color: #7a1616;
    font-weight: 600;
    cursor: pointer;
}

.thankyou-box {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #7a1616;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}

.thankyou-box h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.order-msg {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

.order-info {
    background: #fafafa;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    margin-bottom: 20px;
}

    .order-info div {
        margin-bottom: 6px;
    }

.pay-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

    .pay-top .brand {
        font-weight: 600;
        font-size: 15px;
    }

.order-total {
    text-align: right;
    font-size: 13px;
}

    .order-total strong {
        font-size: 16px;
        color: #000;
    }

/* ===== CARD BASE ===== */
.pay-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #eee;
}

/* ===== USER CARD ===== */
.user-card {
    background: #fafafa;
}

.pay-address {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* ===== COUPON ===== */
.coupon-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed #ccc;
    font-size: 14px;
}

/* ===== PAYMENT OPTIONS ===== */
.pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 10px;
    border: 1px solid #eee;
    transition: all .2s ease;
}

    .pay-option input {
        accent-color: #7a1616;
    }

    .pay-option:hover {
        background: #faf4f4;
    }

.pay-option-content small {
    font-size: 12px;
    color: #777;
}

/* ===== STICKY PAY FOOTER ===== */
.pay-footer-fixed {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 14px 0 6px;
    border-top: 1px solid #eee;
}

.pay-btn {
    width: 100%;
    background: #7a1616;
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 600;
}

    .pay-btn:hover {
        background: #651212;
    }

.pay-note {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-top: 8px;
}



.checkout-modal {
    min-height: 600px;
    width: 380px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    animation: pop .3s ease;
}

@keyframes pop {
    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

    .checkout-header h3 {
        margin: 0;
        font-size: 18px;
    }

.back-btn, .close-btn {
    cursor: pointer;
    font-size: 18px;
}

.checkout-step {
    padding: 20px;
    display: none;
}

    .checkout-step.active {
        display: block;
    }

    .checkout-step label {
        font-size: 13px;
        margin-bottom: 6px;
        display: block;
    }

    .checkout-step input,
    .checkout-step textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 14px;
    }

.mobile-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
    margin-bottom: 16px;
}

    .mobile-box span {
        margin-right: 8px;
    }

    .mobile-box input {
        padding-top: 24px !important;
        border: none;
        outline: none;
        padding: 12px;
        flex: 1;
    }

.primary-btn {
    width: 100%;
    background: #7a1616;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
}

.switch-text {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
}

    .switch-text span {
        color: #7a1616;
        cursor: pointer;
        font-weight: 600;
    }

.pay-option.active {
    border-color: #7a1616;
    background: #fff5f5;
}

.account-body-full {
    padding: 15px;
}

/* Overlay */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

/* Center modal */
.account-modal {
    width: 1000px;
    max-width: 95%;
    max-height: 85vh;
    background: #fff;
    border-radius: 18px;
    overflow-y: auto;
}

/* Smooth animation */
@keyframes zoomIn {
    from {
        transform: scale(.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.checkout-overlay.open .account-modal {
    right: 0;
}

@media (max-width:768px) {
    .account-modal {
        width: 100%;
    }
}

.logout-tab {
    margin-left: auto;
}
/* Remove sidebar layout */
.account-body {
    display: block !important;
    padding: 0;
}

@media (max-width: 992px) {
    .account-body-full {
        padding: 20px;
    }
}

.account-content {
    width: 100% !important;
    padding: 0;
}

.account-menu div {
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
}

    .account-menu div:hover,
    .account-menu div.active {
        background: #faf4f4;
        color: #7a1616;
    }

.account-menu .logout {
    font-weight: 600;
    color: #7a1616;
}


.order-card {
    background: #fafafa;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #eee;
}

.order-head {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.order-total {
    text-align: right;
    font-weight: 600;
    color: #7a1616;
}

.pay-mode {
    font-size: 12px;
    color: #666;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

    .order-item:last-child {
        border-bottom: none;
    }

.item-right {
    font-weight: 600;
}

.profile-box {
    background: #fafafa;
    border-radius: 12px;
    padding: 14px;
}

.profile-row {
    margin-bottom: 10px;
    font-size: 14px;
}

.address-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
}

.ui-autocomplete {
    z-index: 9999999 !important;
}

.ui-autocomplete {
    z-index: 9999999 !important;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #ddd;
}


@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        min-height: 80vh;
    }
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.cart-info {
    flex: 1; /* take remaining space */
}

.cart-remove {
    cursor: pointer;
}

    .cart-remove i {
        float: right;
        color: red;
        color: #dc3545;
        font-size: 18px;
        transition: 0.2s ease;
    }

        .cart-remove i:hover {
            color: #a71d2a;
            transform: scale(1.1);
        }

.orders-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
}

.modern-order-card {
    background: #fff;
    padding: 10px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border: 1px solid #f3f3f3;
    transition: 0.3s ease;
}

    .modern-order-card:hover {
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    }

/* TOP */
.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-no {
    font-weight: 600;
    font-size: 16px;
}

.order-date {
    font-size: 13px;
    color: #888;
    margin-top: 3px;
}

.order-summary {
    text-align: right;
}

.order-total {
    font-size: 20px;
    font-weight: 700;
    color: #7a1616;
}

.order-mode {
    font-size: 12px;
    background: #f5f5f5;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    margin-top: 5px;
    color: #555;
}

/* DIVIDER */
.divider {
    height: 1px;
    background: #eee;
    margin: 18px 0;
}

/* ITEMS */
.modern-order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.item-name {
    font-weight: 600;
    font-size: 15px;
}

.item-variant {
    font-size: 13px;
    color: #777;
    margin-top: 3px;
}

.qty-price {
    font-weight: 500;
    font-size: 14px;
}

.empty-order {
    padding: 40px;
    text-align: center;
    color: #888;
    background: #fafafa;
    border-radius: 12px;
}

.modern-order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
}

.item-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.item-left {
    flex: 1;
}

.item-name {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

.item-variant {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.item-right {
    text-align: right;
    font-weight: 500;
    font-size: 14px;
}
/* Full Screen Loader */
#pageLoader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 999999999; /* VERY HIGH */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spinner */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #94333c; /* your theme color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {

    .account-tabs {
        gap: 8px;
    }

    .tab-item {
        font-size: 13px;
        gap: 5px;
    }

        .tab-item span {
            white-space: nowrap;
        }
}

.account-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.account-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
    flex-wrap: nowrap; /* IMPORTANT */
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #777;
    transition: 0.3s ease;
}

    .tab-item:hover {
        color: #7a1616;
    }

    .tab-item.active {
        color: #7a1616;
        font-weight: 600;
        position: relative;
    }

        .tab-item.active::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #7a1616;
        }
/*
.logout-tab {
    margin-left: auto;
}*/
.orders-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Compact Card */
.modern-order-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid #eee;
    transition: 0.3s ease;
}

    .modern-order-card:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

/* Header */
.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-no {
    font-weight: 600;
    font-size: 15px;
}

.order-date {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.order-total {
    font-size: 18px;
    font-weight: 700;
    color: #7a1616;
}

/* COD badge */
.order-mode {
    font-size: 11px;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 6px;
    display: inline-block;
}

/* Items compact */
.modern-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.item-thumb img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
}

.item-name {
    font-weight: 600;
    font-size: 14px;
}

.item-variant {
    font-size: 12px;
    color: #777;
}

.item-right {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
}

/* Divider smaller */
.divider {
    height: 1px;
    background: #eee;
    margin: 12px 0;
}

/* Receipt button */
.receipt-btn {
    margin-top: 10px;
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    background: #7a1616;
    color: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

    .receipt-btn:hover {
        background: #5c1010;
    }

.popup-overlay {
    display: none;
}

    .popup-overlay.active {
        display: flex;
    }
