:root {
    --btn-bgcolor: rgb(28, 97, 231);
    --btn-bgcolor-onhover: rgb(32, 90, 207);
    --color-white: white;
    --border-color: #80808059;
}

.flexrow {
    display: flex;
    flex-direction: row;
}

.pointer {
    cursor: pointer;
}

.grab {
    cursor: grab;
}

.grab:active {
    cursor: grabbing;
}

.underlinehover:hover {
    text-decoration: underline !important;
}

.width100 {
    width: 100% !important;
}

.width50 {
    width: 50% !important;
}

.heigth100 {
    height: 100% !important;
}

.list-style {
    list-style: none;
}

.margin0 {
    margin: 0 !important;
}

.white-space-nowrap {
    white-space: nowrap;
}

.border-radius-10 {
    border-radius: 10px;
}

.font-color {
    color: #0b0b0bc5 !important;
}

.default-cursor {
    cursor: default;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.heigth315px {
    height: 315px;
}

.border-top {
    border-top: solid 1px #80808059;
}

.border-bottom {
    border-bottom: solid 1px #80808059;
}

.margin-left-11px {
    margin-left: 11px;
}

.background-none {
    background: none !important;
}

.text-hover-effect:hover {
    color: #dc3545 !important;
    text-decoration: underline !important;
}

.border {
    border: solid 1px var(--border-color);
}

.border-top {
    border-top: solid 1px var(--border-color);
}

.border-bottom {
    border-bottom: solid 1px var(--border-color);
}

.border-left {
    border-left: solid 1px var(--border-color);
}

.bg-light-gray {
    background: #f8f9fa;
}

.vertical-align-middle {
    vertical-align: middle;
}

.card-h-430 {
    height: 418px !important;
}

.btn-primary {
    color: #fff;
    background-color: #1c61e7;
    border-color: #1c61e7;
}

.btn-primary:hover {
    color: #fff;
    background-color: rgb(32, 90, 207);
}

.btn-close:focus {
    outline: 0;
    box-shadow: none;
    opacity: 1;
}

.mb-20px {
    margin-bottom: 20px;
}

.border-radius-5 {
    border-radius: 5px !important;
}

@media (max-width:767px) {
    .fs-md-12 {
        font-size: 12px;
    }
}

/* =============================================================
   Checkout Modern Enhancements (duplicated from custom.css so
   they take effect because custom.css is not included here)
   ============================================================= */
/* Root tokens (scoped additions) */
:root {
    --checkout-bg: #ffffff;
    --checkout-muted-bg: #f6f7f9;
    --checkout-border: rgba(0, 0, 0, 0.08);
    --checkout-radius: 14px;
    --checkout-radius-sm: 8px;
    --checkout-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
    --checkout-shadow-sm: 0 2px 6px -1px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.06);
    --checkout-transition: .25s cubic-bezier(.4, .0, .2, 1);
}

/* Section containers */
.billing-detail-section,
.Payment-Method-section,
.order-checkout-detail,
.wallet-use-section {
    background: var(--checkout-bg);
    border: 1px solid var(--checkout-border);
    box-shadow: var(--checkout-shadow-sm);
    border-radius: var(--checkout-radius);
}

.billing-detail-section:hover,
.Payment-Method-section:hover,
.order-checkout-detail:hover,
.wallet-use-section:hover {
    box-shadow: var(--checkout-shadow);
}

/* Step bar */
.checkout-step {
    background: linear-gradient(135deg, var(--checkout-muted-bg), #fff);
    color: #555;
    padding: 18px 20px;
    gap: 28px;
    border: 1px solid var(--checkout-border);
    box-shadow: var(--checkout-shadow-sm);
    border-radius: 10px;
}

.checkout-step h3 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .5px;
    opacity: .55;
    transition: var(--checkout-transition);
    position: relative;
    padding: 4px 2px;
    color: #444 !important;
}

.checkout-step .step-active {
    color: var(--primary-color) !important;
    opacity: 1;
}

.checkout-step .step-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    background: var(--primary-color);
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .15);
}

.checkout-step h3:hover:not(.step-active) {
    opacity: .85;
}

/* Payment type grid */
.payment-type {
    display: flex;
    flex-wrap: nowrap; /* force single row */
    gap: 10px;
    padding: 8px 6px 6px;
    overflow-x: auto; /* horizontal scroll if overflow */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

html[dir="rtl"] .password-insert .eye-icons {
    left: 8px !important;
    right: auto !important;
}
html[dir="rtl"] .password-insert input {
    padding-left: 2rem !important;
}
html:not([dir="rtl"]) .password-insert input {
    padding-right: 2rem !important;
}

/* Simple dropdown for location suggestions */
.location-suggestions {
    position: absolute;
    z-index: 1055;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 6px 12px rgba(0,0,0,.08);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.location-suggestions .suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    line-height: 1.25rem;
}
.location-suggestions .suggestion-item:hover, .location-suggestions .suggestion-item.active {
    background: #f6f7f9;
}
.location-suggestions.d-none { display: none !important; }

/* Modern styling for the addresses table */
.modern-address-table {
    border-radius: 10px;
    overflow: hidden;
}
.modern-address-table thead th {
    background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(123,67,255,0.06));
    border-bottom: 2px solid rgba(0,0,0,0.04);
    color: #222;
    font-weight: 600;
    padding: 12px 14px;
    vertical-align: middle;
}
.modern-address-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
}
.modern-address-table.table-hover tbody tr:hover {
    background: #faf8ff;
}
.modern-address-table .btn {
    border-radius: 8px;
    padding: 6px 10px;
}
.modern-address-table .fixed-table-container {
    border: none;
}
/* make the table header sticky on large screens */
@media (min-width: 768px) {
    .modern-address-table thead th {
        position: sticky;
        top: 0;
        z-index: 3;
        backdrop-filter: blur(4px);
    }
}

/* Fix Select2 placement for city field so label doesn't overlap */
.city-container.select2-container,
.city-container {
    width: 100% !important;
    margin-top: 0 !important; /* override global negative margin */
}
.city-container .select2-selection--single {
    min-height: 44px !important;
    height: auto !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem !important;
    display: block;
}
.city-dropdown.select2-dropdown {
    z-index: 10550; /* ensure dropdown appears above modals and other elements */
}

/* Extra-specific overrides: target the Select2 container that is inserted after the original select
   (Select2 inserts the container as a sibling). This prevents the global negative margin from
   moving the widget up under the label. */
select#city + .select2-container,
select#edit_city + .select2-container,
.city-container.select2-container,
.city-container {
    margin-top: 0 !important;
    width: 100% !important;
    display: block !important;
}

select#city + .select2-container .select2-selection--single,
select#edit_city + .select2-container .select2-selection--single {
    min-height: 44px !important;
    padding: 0.375rem 0.75rem !important;
    line-height: 1.4 !important;
}

/* In case Select2 uses inline style or other classes, ensure label sits above by keeping
   the original <select> visible in layout flow (it's hidden off-screen by Select2, but
   the container should occupy normal flow). */
.select2-container { position: relative !important; }

/* Styles for the custom city dropdown widget */
.city-dropdown-list {
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 18px rgba(45,45,60,0.06);
    max-height: 260px;
    overflow: auto;
    z-index: 10600;
    border-radius: 6px;
    padding: 6px 0;
}
.city-dropdown-list .city-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}
.city-dropdown-list .city-item:hover { background: #f7f6ff; }
.city-dropdown-list .no-results { padding: 10px 14px; color: #777; }

/* Webkit scrollbar styling for horizontal bar */
.payment-type::-webkit-scrollbar { height: 10px; }
.payment-type::-webkit-scrollbar-track { background: transparent; }
.payment-type::-webkit-scrollbar-thumb { background: var(--bs-gray-300); border-radius: 20px; }
.payment-type::-webkit-scrollbar-thumb:hover { background: var(--bs-gray-400); }

.payment-type .form-check {
    margin: 0;
    padding: 0;
}

.payment-type .form-check-label {
    --_border: 1px solid var(--checkout-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--checkout-muted-bg);
    border: var(--_border);
    border-radius: 10px;
    padding: 10px 18px;
    min-width: 120px; /* consistent width for horizontal flow */
    cursor: pointer;
    transition: var(--checkout-transition);
    box-shadow: inset 0 0 0 0 var(--primary-color);
    flex: 0 0 auto; /* prevent shrinking */
}

/* Compact on very small phones */
@media (max-width: 480px) {
    .payment-type .form-check-label { min-width: 100px; padding: 8px 14px; }
}

/* Fallback to wrapped grid if too many and user prefers reduced motion / no horizontal scroll */
@media (prefers-reduced-motion: reduce) {
    .payment-type { flex-wrap: wrap; overflow-x: visible; }
}

.payment-type .form-check-label:hover {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.payment-type .form-check-label:active {
    transform: scale(.97);
}

.payment-type .form-check-label input.form-check-input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}

.payment-type .form-check-label .payment-type-img-box {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90px;
    height: 44px;
    filter: saturate(.85) brightness(.95);
    transition: var(--checkout-transition);
}

.payment-type .form-check-label img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.payment-type .form-check-label input:checked+.payment-type-img-box {
    filter: none;
    transform: translateY(-2px) scale(1.02);
}

.payment-type .form-check-label input:checked~* {
    box-shadow: 0 0 0 2px var(--primary-color) inset, 0 4px 10px -2px rgba(0, 0, 0, .08);
    background: #fff;
    border-color: var(--primary-color);
}

/* Ordered products */
.ordered-product {
    background: var(--checkout-muted-bg);
    margin: 0 0 12px 0 !important;
    padding: 14px 10px 10px !important;
    border: 1px solid var(--checkout-border);
    border-radius: var(--checkout-radius-sm);
    position: relative;
    overflow: hidden;
    transition: var(--checkout-transition);
}

.ordered-product:hover {
    background: #fff;
    box-shadow: var(--checkout-shadow-sm);
}

.ordered-product-img img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
}

.ordered-product-price p {
    font-weight: 600;
    color: var(--primary-color);
}

/* Totals & charges */
.ordered-subtotal-section,
.charges-section,
.final-order-total {
    border-top: 1px solid var(--checkout-border);
}

.final-order-total {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.final-order-total .total-price {
    font-weight: 600;
    font-size: 20px;
    color: var(--primary-color);
}

/* Coupon */
.coupon-box {
    background: var(--checkout-muted-bg);
    padding: 14px 14px;
    border-radius: var(--checkout-radius-sm);
}

.coupon-box input {
    border-radius: var(--checkout-radius-sm) !important;
    border: 1px solid var(--checkout-border);
}

.coupon-box .btn {
    height: 100%;
    border-radius: var(--checkout-radius-sm);
    font-weight: 500;
}

/* Buttons */
#place_order_btn {
    font-size: 18px;
    padding: 14px 20px;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .15);
}

#place_order_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(0, 0, 0, .18);
}

#place_order_btn:active {
    transform: translateY(0);
}

/* Address */
.shipping-address {
    background: var(--checkout-muted-bg);
    border-radius: var(--checkout-radius-sm);
    border: 1px solid var(--checkout-border);
}

.shipping-address p {
    margin-bottom: 4px;
}

/* Wallet */
.wallet-use-section .form-check {
    background: var(--checkout-muted-bg);
    padding: 10px 14px;
    border-radius: var(--checkout-radius-sm);
    border: 1px solid var(--checkout-border);
}

.wallet-use-section .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Stripe */
#stripe-card-element {
    background: var(--checkout-muted-bg);
    border: 1px solid var(--checkout-border);
    border-radius: var(--checkout-radius-sm);
}

#card-error {
    color: #d93025;
    font-size: 13px;
    margin-top: 6px;
}

/* Sticky summary */
@media (min-width:992px) {
    .order-checkout-detail {
        position: sticky;
        top: 110px;
    }
}

@media (max-width:991.98px) {
    .checkout-step {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px 16px;
    }

    .checkout-step h3 {
        font-size: 16px;
    }

    .ordered-product {
        padding: 12px 10px !important;
    }

    .payment-type .form-check-label {
        flex: 1 1 calc(33.333% - 14px);
        min-width: 90px;
    }

    /* --- PAYMENT TYPE HORIZONTAL OVERRIDES (force horizontal) --- */
    .payment-type { 
        display: flex !important; 
        flex-direction: row !important; 
        flex-wrap: nowrap !important; 
        align-items: stretch; 
        gap: 12px !important; 
        overflow-x: auto; 
        padding: 10px 4px 6px !important; 
        white-space: nowrap; 
    }
    .payment-type .form-check { 
        display: flex !important; 
        align-items: stretch; 
        margin: 0 !important; 
        padding: 0 !important; 
        flex: 0 0 auto !important; 
        width: auto !important; 
    }
    .payment-type .form-check-label { 
        width: 140px; 
        max-width: 160px; 
        flex: 0 0 auto !important; 
    }
    /* If only a few methods, center them */
    @media (min-width: 768px) { 
        .payment-type:not(:has(.form-check:nth-child(5))) { justify-content: flex-start; }
    }
    /* Fallback: if flex somehow overridden again, use inline-block technique */
    .payment-type[data-layout="vertical-fallback"] { display:block !important; white-space:nowrap; }
    .payment-type[data-layout="vertical-fallback"] .form-check { display:inline-block !important; }

}

@media (max-width:575.98px) {
    .payment-type .form-check-label {
        flex: 1 1 calc(50% - 14px);
    }

    .final-order-total .total-price {
        font-size: 18px;
    }

    #place_order_btn {
        font-size: 16px;
        padding: 12px 16px;
    }
}

form#checkout_form .billing-detail-section,
form#checkout_form .Payment-Method-section,
form#checkout_form .order-checkout-detail {
    animation: checkoutFade .5s ease;
}

@keyframes checkoutFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deliverable_status {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.deliverable_status:not(:empty) {
    color: #d93025;
}

#promocode_div span,
#promocode_amount,
.wallet_used {
    color: var(--primary-color);
    font-weight: 600;
}

.charges-section:last-of-type {
    margin-bottom: 6px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.form-check-label:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.order-checkout-detail p.fst-italic {
    font-size: 12px;
    opacity: .7;
}

/* FINAL HORIZONTAL ENFORCEMENT (outside media queries) */
form#checkout_form .payment-type {display:flex !important;flex-direction:row !important;flex-wrap:nowrap !important;gap:12px !important;overflow-x:auto;align-items:stretch;padding:10px 4px 6px !important;}
form#checkout_form .payment-type .form-check {flex:0 0 auto !important;width:auto !important;display:flex !important;padding:0 !important;margin:0 !important;}
form#checkout_form .payment-type .form-check-label {display:inline-flex !important;flex-direction:column;justify-content:center;align-items:center;flex:0 0 auto !important;width:140px;max-width:160px;border-radius:10px;}
/* Remove accidental block expansion */
form#checkout_form .payment-type .form-check-label img {display:block;margin:0 auto;}
/* Allow vertical wrap only if explicit class added */
form#checkout_form .payment-type.allow-wrap {flex-wrap:wrap !important;overflow-x:visible;}

/* --- Refined payment selection style & spacing overrides --- */
form#checkout_form .payment-type {gap:16px !important;}
form#checkout_form .payment-type .form-check {margin:0 !important;padding:0 !important;}
form#checkout_form .payment-type .form-check:not(:last-child) {margin-right:4px;}
form#checkout_form .payment-type .form-check-label { 
    border:1px solid var(--checkout-border) !important; 
    background:var(--checkout-muted-bg); 
    position:relative; 
    transition:background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; 
}
/* Remove the earlier heavy inset shadow when checked (fallback) */
form#checkout_form .payment-type .form-check-label input:checked+ .payment-type-img-box,
form#checkout_form .payment-type .form-check-label input:checked~* { 
    box-shadow:none !important; 
    background:transparent; 
    border-color:unset; 
    transform:none; 
}
form#checkout_form .payment-type .form-check-label:has(input:checked) { 
    background:#fff; 
    border-color:var(--primary-color) !important; 
    box-shadow:0 2px 6px rgba(0,0,0,.06), 0 0 0 2px rgba(0,0,0,0.02); 
}
form#checkout_form .payment-type .form-check-label:focus-within { 
    outline:2px solid var(--primary-color); 
    outline-offset:2px; 
}
/* Hover effect */
form#checkout_form .payment-type .form-check-label:hover { 
    background:#fff; 
    box-shadow:0 2px 8px -2px rgba(0,0,0,.08); 
}
form#checkout_form .payment-type .form-check-label input.form-check-input { 
    width:100%; height:100%; cursor:pointer; 
}

form#checkout_form .payment-type .form-check {margin-right:16px !important;}
form#checkout_form .payment-type .form-check:last-child {margin-right:0 !important;}
/* Extra breathing room inside each card */
form#checkout_form .payment-type .form-check-label {margin:0 !important;}
form#checkout_form .payment-type .form-check {display:flex !important;flex-wrap:nowrap !important;gap:16px !important;}
form#checkout_form .payment-type .form-check > .form-check-label + .form-check-label {margin-left:16px !important;}

form#checkout_form .payment-type .form-check-label {flex-direction:column;gap:6px;}
form#checkout_form .payment-type .form-check-label::after { 
    content: attr(data-label); 
    font-size:12px; 
    font-weight:500; 
    color:#2f2f2f; 
    letter-spacing:.2px; 
    line-height:1.15; 
    text-align:center; 
    display:block; 
    pointer-events:none; 
}
form#checkout_form .payment-type .form-check-label[for="cod"]::after {content:'Cash on Delivery';}
form#checkout_form .payment-type .form-check-label[for="phonepe"]::after {content:'PhonePe';}
form#checkout_form .payment-type .form-check-label[for="paypal"]::after {content:'PayPal';}
form#checkout_form .payment-type .form-check-label[for="fatora"]::after {content:'Fatora';}
form#checkout_form .payment-type .form-check-label[for="razorpay"]::after {content:'Razorpay';}
form#checkout_form .payment-type .form-check-label[for="paystack"]::after {content:'Paystack';}
form#checkout_form .payment-type .form-check-label[for="payumoney"]::after {content:'PayU Money';}
form#checkout_form .payment-type .form-check-label[for="flutterwave"]::after {content:'Flutterwave';}
form#checkout_form .payment-type .form-check-label[for="paytm"]::after {content:'Paytm';}
form#checkout_form .payment-type .form-check-label[for="stripe"]::after {content:'Stripe';}
form#checkout_form .payment-type .form-check-label[for="midtrans"]::after {content:'Midtrans';}
form#checkout_form .payment-type .form-check-label[for="instamojo"]::after {content:'Instamojo';}
form#checkout_form .payment-type .form-check-label[for="bank_transfer"]::after {content:'Bank Transfer';}
/* If a label already contains textual children, keep spacing tight */
form#checkout_form .payment-type .form-check-label:has(.payment-text) {gap:4px;}

.section-title {
    position: relative;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-onhover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(97, 51, 189, 0.1);
    transition: all 0.3s ease;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-onhover));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-title:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(97, 51, 189, 0.2);
}

.section-title:hover::after {
    width: 80px;
}

/* Responsive enhancements */
@media (max-width: 767px) {
    .section-title {
        font-size: 22px;
        margin-bottom: 1.2rem;
        letter-spacing: -0.015em;
    }
    
    .section-title::after {
        width: 45px;
        height: 2.5px;
    }
    
    .section-title:hover::after {
        width: 65px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
        margin-bottom: 1rem;
    }
    
    .section-title::after {
        width: 40px;
    }
    
    .section-title:hover::after {
        width: 55px;
    }
}

/* Cart Badge Styles - Fix for cart count visibility */
.modern-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    z-index: 10 !important;
    animation: pulse 2s infinite !important;
}

.modern-badge:empty {
    display: none !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Ensure cart icon container has relative positioning */
.modern-icon-btn {
    position: relative !important;
}

/* Ensure the badge is always visible when it has content */
.cart-count {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Additional fix for cart badge visibility */
.modern-icon-btn .modern-badge.cart-count:not(:empty) {
    display: flex !important;
}

/* Enhanced cart badge update mechanism */
.modern-badge.cart-count {
    transition: all 0.3s ease !important;
}

.modern-badge.cart-count[data-count="0"] {
    display: none !important;
}

.modern-badge.cart-count[data-count]:not([data-count="0"]) {
    display: flex !important;
    animation: bounceIn 0.5s ease !important;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/*
CART BADGE FIX INSTRUCTIONS:
============================
If the cart badge still doesn't show, add this JavaScript to your page:

<script>
// Enhanced cart badge update function
function updateCartBadge(count) {
    var badge = $('.modern-badge.cart-count');
    
    if (count > 0) {
        badge.text(count).attr('data-count', count);
        badge.show().addClass('animate__animated animate__bounceIn');
    } else {
        badge.hide().attr('data-count', '0');
    }
}

// Update all cart count related JavaScript calls to use this function:
// Replace $('.cart-count').text(result.data.cart_count) with:
// updateCartBadge(result.data.cart_count);
</script>

Alternative fix: Make sure the modern-badge span exists in HTML even when cart is empty.
Change the PHP condition from:
<?php if ($cart_count > 0) { ?>
    <span class="modern-badge cart-count"><?= $cart_count ?></span>
<?php } ?>

To:
<span class="modern-badge cart-count" style="<?= $cart_count == 0 ? 'display:none;' : '' ?>"><?= $cart_count ?></span>
*/

/* RTL Support - Proper spacing for Arabic language */
/* Fix spacing between icons and text in RTL layout */
[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .menu-icon {
    margin-left: 0.75rem !important;
    margin-right: 0 !important;
}

/* Additional RTL spacing fixes */
html[dir="rtl"] .me-2,
body[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

html[dir="rtl"] .menu-icon,
body[dir="rtl"] .menu-icon {
    margin-left: 0.75rem !important;
    margin-right: 0 !important;
}

/* RTL spacing for modern dropdown items */
html[dir="rtl"] .modern-dropdown-item i,
body[dir="rtl"] .modern-dropdown-item i,
[dir="rtl"] .modern-dropdown-item i {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

/* RTL spacing for offcanvas menu icons */
html[dir="rtl"] .modern-offcanvas .menu-icon,
body[dir="rtl"] .modern-offcanvas .menu-icon,
[dir="rtl"] .modern-offcanvas .menu-icon {
    margin-left: 0.75rem !important;
    margin-right: 0 !important;
}

/* ============================================ */
/*             ARABIC FONT ENHANCEMENTS        */
/* ============================================ */

/* Strong Arabic font rules with high specificity */
html[dir="rtl"] *,
[dir="rtl"] *,
html[lang="ar"] *,
[lang="ar"] * {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Override for specific elements */
html[dir="rtl"] body,
[dir="rtl"] body,
html[lang="ar"] body,
[lang="ar"] body {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* Arabic-specific font improvements */
html[dir="rtl"],
[dir="rtl"] {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Better Arabic text rendering for form elements */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .form-control,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] .form-control {
    font-family: var(--font-arabic);
    font-size: 15px;
    font-weight: 400;
}

/* Arabic text in cards and product descriptions */
html[dir="rtl"] .card-body,
html[dir="rtl"] .product-description,
html[dir="rtl"] .product-title,
[dir="rtl"] .card-body,
[dir="rtl"] .product-description,
[dir="rtl"] .product-title {
    font-family: var(--font-arabic);
    line-height: 1.5;
}

/* Better Arabic rendering for prices and numbers */
html[dir="rtl"] .price,
html[dir="rtl"] .product-price,
html[dir="rtl"] .amount,
[dir="rtl"] .price,
[dir="rtl"] .product-price,
[dir="rtl"] .amount {
    font-family: var(--font-arabic);
    font-weight: 600;
    font-feature-settings: "tnum" 1;
}

/* Arabic breadcrumbs and navigation */
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .pagination,
html[dir="rtl"] .nav-tabs,
[dir="rtl"] .breadcrumb,
[dir="rtl"] .pagination,
[dir="rtl"] .nav-tabs {
    font-family: var(--font-arabic);
    font-weight: 500;
}

/* Improved Arabic table text */
html[dir="rtl"] table,
html[dir="rtl"] .table th,
html[dir="rtl"] .table td,
[dir="rtl"] table,
[dir="rtl"] .table th,
[dir="rtl"] .table td {
    font-family: var(--font-arabic);
    font-size: 14px;
}

/* Arabic modal and alert text */
html[dir="rtl"] .modal-body,
html[dir="rtl"] .modal-title,
html[dir="rtl"] .alert,
[dir="rtl"] .modal-body,
[dir="rtl"] .modal-title,
[dir="rtl"] .alert {
    font-family: var(--font-arabic);
    line-height: 1.5;
}

/* Better Arabic rendering for small text */
html[dir="rtl"] small,
html[dir="rtl"] .small,
html[dir="rtl"] .text-muted,
[dir="rtl"] small,
[dir="rtl"] .small,
[dir="rtl"] .text-muted {
    font-family: var(--font-arabic);
    font-size: 13px;
    line-height: 1.4;
}

/* Arabic category and tag labels */
html[dir="rtl"] .badge,
html[dir="rtl"] .label,
html[dir="rtl"] .tag,
[dir="rtl"] .badge,
[dir="rtl"] .label,
[dir="rtl"] .tag {
    font-family: var(--font-arabic);
    font-weight: 500;
    font-size: 13px;
}

/* Better font weight for Arabic headings in specific components */
html[dir="rtl"] .section-title,
html[dir="rtl"] .category-title,
html[dir="rtl"] .brand-title,
[dir="rtl"] .section-title,
[dir="rtl"] .category-title,
[dir="rtl"] .brand-title {
    font-family: var(--font-arabic);
    font-weight: 700;
    line-height: 1.3;
}

/* Improved Arabic search and filters */
html[dir="rtl"] .search-box,
html[dir="rtl"] .filter-option,
html[dir="rtl"] .sort-option,
[dir="rtl"] .search-box,
[dir="rtl"] .filter-option,
[dir="rtl"] .sort-option {
    font-family: var(--font-arabic);
    font-size: 14px;
}

/* Arabic footer text */
html[dir="rtl"] .footer,
html[dir="rtl"] .footer-text,
[dir="rtl"] .footer,
[dir="rtl"] .footer-text {
    font-family: var(--font-arabic);
    font-size: 14px;
    line-height: 1.6;
}

/* RTL Phone Input (intlTelInput) Fixes */
[dir="rtl"] .intl-tel-input {
    direction: rtl;
}

[dir="rtl"] .intl-tel-input.allow-dropdown input,
[dir="rtl"] .intl-tel-input.allow-dropdown input[type=text], 
[dir="rtl"] .intl-tel-input.allow-dropdown input[type=tel] {
    padding-left: 6px !important;
    padding-right: 60px !important;
    text-align: right;
}

[dir="rtl"] .intl-tel-input.allow-dropdown .flag-container {
    left: auto !important;
    right: 0 !important;
}

[dir="rtl"] .intl-tel-input input,
[dir="rtl"] .intl-tel-input input[type=text],
[dir="rtl"] .intl-tel-input input[type=tel] {
    padding-left: 6px !important;
    padding-right: 45px !important;
    text-align: right;
}

[dir="rtl"] .intl-tel-input .flag-container {
    left: auto !important;
    right: 0 !important;
}

[dir="rtl"] .intl-tel-input .selected-flag {
    padding: 0 8px 0 0 !important;
}

/* RTL Country List */
[dir="rtl"] .intl-tel-input .country-list {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .intl-tel-input .country-list .country {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .intl-tel-input .country-list .flag-box,
[dir="rtl"] .intl-tel-input .country-list .country-name {
    margin-right: 0 !important;
    margin-left: 6px !important;
}

[dir="rtl"] .intl-tel-input .country-list .dial-code {
    float: left;
}

/* Separate dial code RTL fix */
[dir="rtl"] .intl-tel-input.allow-dropdown.separate-dial-code .selected-dial-code {
    padding-right: 28px !important;
    padding-left: 0 !important;
}

[dir="rtl"] .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-3 input,
[dir="rtl"] .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-3 input[type=text],
[dir="rtl"] .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-3 input[type=tel] {
    padding-right: 90px !important;
    padding-left: 6px !important;
}

[dir="rtl"] .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-4 input,
[dir="rtl"] .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-4 input[type=text],
[dir="rtl"] .intl-tel-input.allow-dropdown.separate-dial-code.iti-sdc-4 input[type=tel] {
    padding-right: 95px !important;
    padding-left: 6px !important;
}

.address-form-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    border: 1px solid #f0f0f3;
    position: relative;
    overflow: hidden;
}

.address-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

/* Header styling */
.address-form-header .header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.address-form-header .section-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.75rem;
}

/* Form sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, transparent 100%);
    margin-left: 1rem;
}

/* Enhanced input styling */
.input-group-modern {
    position: relative;
    margin-bottom: 0;
}

.form-label-modern {
    display: block;
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.required-star {
    color: #e53e3e;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control-modern {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: #2d3748;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #fafbfc;
}

.form-control-modern::placeholder {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* Input icons */
.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #718096;
    z-index: 2;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #667eea;
}

.dropdown-arrow, .search-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #a0aec0;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Textarea specific styling */
.textarea-wrapper {
    display: block;
}

.textarea-modern {
    resize: vertical;
    min-height: 100px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.textarea-wrapper .input-icon {
    top: 1.5rem;
    transform: none;
}

/* Address type selector */
.address-type-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.type-option {
    flex: 1;
    min-width: 140px;
}

.type-radio {
    display: none;
}

.type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.type-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.type-label:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.type-radio:checked + .type-label {
    border-color: #667eea;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.type-radio:checked + .type-label::before {
    transform: scaleX(1);
}

.type-icon {
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    color: #718096;
    transition: color 0.3s ease;
}

.type-radio:checked + .type-label .type-icon {
    color: #667eea;
}

.type-text {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

/* Enhanced submit button */
.form-actions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-save-address {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    min-width: 200px;
}

.btn-save-address::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-save-address:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-save-address:hover::before {
    left: 100%;
}

.btn-save-address:active {
    transform: translateY(0);
}

.btn-save-address:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    margin-left: 0.5rem;
}

.form-result {
    margin-top: 1rem;
    text-align: center;
}

/* Enhanced city dropdown styles */
.city-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1050;
    padding: 0.5rem 0;
    margin-top: 4px;
}

.city-dropdown-list .city-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
    font-weight: 500;
}

.city-dropdown-list .city-item:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #667eea;
}

.city-dropdown-list .no-results {
    padding: 1rem;
    color: #a0aec0;
    font-style: italic;
    text-align: center;
}

/* Location suggestions styling */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1050;
    padding: 0.5rem 0;
    margin-top: 4px;
}

.location-suggestions .suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
    font-weight: 500;
    border-bottom: 1px solid #f7fafc;
}

.location-suggestions .suggestion-item:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #667eea;
}

.location-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .address-form-card {
        padding: 1.5rem;
        margin: 0 -15px;
        border-radius: 12px;
    }
    
    .address-form-header .section-title {
        font-size: 1.5rem;
    }
    
    .address-type-selector {
        flex-direction: column;
    }
    
    .type-option {
        min-width: auto;
    }
    
    .form-control-modern {
        padding: 0.875rem 0.875rem 0.875rem 3rem;
    }
    
    .input-icon {
        left: 1rem;
        font-size: 1.1rem;
    }
    
    .btn-save-address {
        width: 100%;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .address-form-header {
        text-align: center;
    }
    
    .address-form-header .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .address-form-header .header-icon {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
}

/* ===== ENHANCED ADDRESS TABLE STYLES ===== */

/* Address list section */
.address-list-section {
    margin-top: 3rem;
}

.address-list-header {
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem 2rem;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    position: relative;
}

.address-list-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.list-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.list-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.25rem;
}

.list-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.list-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced table container */
.enhanced-table-container {
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    border: 1px solid #e2e8f0;
    border-top: none;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* Enhanced table styling */
.enhanced-address-table {
    margin-bottom: 0;
    border: none;
    background: #ffffff;
}

/* Table header styling */
.enhanced-address-table thead tr {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: none;
}

.enhanced-address-table thead th {
    border: none;
    padding: 1.25rem 1rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    background: transparent;
}

.enhanced-address-table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: #e2e8f0;
}

.th-content {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.th-content ion-icon {
    color: #667eea;
    font-size: 1rem;
}

/* Table body styling */
.enhanced-address-table tbody tr {
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.enhanced-address-table tbody tr:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.enhanced-address-table tbody tr::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: #f1f5f9;
}

.enhanced-address-table tbody tr:last-child::after {
    display: none;
}

.enhanced-address-table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Address type badges */
.enhanced-address-table tbody td[data-field="type"] {
    text-align: center;
}

/* Action buttons in table */
.enhanced-address-table .btn {
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: none;
}

.enhanced-address-table .btn-danger {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.enhanced-address-table .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.enhanced-address-table .btn ion-icon {
    font-size: 0.9rem;
}

/* Bootstrap Table toolbar styling */
.fixed-table-toolbar {
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.fixed-table-toolbar .search input {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.fixed-table-toolbar .search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Bootstrap Table pagination */
.fixed-table-pagination {
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.fixed-table-pagination .pagination {
    margin: 0;
    justify-content: center;
}

.fixed-table-pagination .page-link {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-weight: 500;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.fixed-table-pagination .page-link:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
}

.fixed-table-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Empty state styling */
.fixed-table-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: #a0aec0;
    font-style: italic;
}

.fixed-table-empty::before {
    content: '📍';
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Loading state */
.fixed-table-loading {
    padding: 2rem;
    text-align: center;
}

/* Responsive table enhancements */
@media (max-width: 992px) {
    .enhanced-table-container {
        border-radius: 12px;
        margin: 0 -15px;
    }
    
    .address-list-header {
        border-radius: 12px 12px 0 0;
        padding: 1rem 1.5rem;
    }
    
    .address-list-header .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .address-list-header .list-actions {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .enhanced-address-table thead th {
        padding: 1rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .enhanced-address-table tbody td {
        padding: 0.875rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .th-content {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .th-content ion-icon {
        font-size: 1.1rem;
    }
    
    .enhanced-address-table .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .address-list-section {
        margin-top: 2rem;
    }
    
    .enhanced-table-container {
        box-shadow: none;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .address-list-header {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .enhanced-address-table thead th,
    .enhanced-address-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .fixed-table-toolbar,
    .fixed-table-pagination {
        border-radius: 8px;
        padding: 0.75rem;
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* Custom scrollbar for table */
.enhanced-table-container .table-responsive::-webkit-scrollbar {
    height: 8px;
}

.enhanced-table-container .table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.enhanced-table-container .table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.enhanced-table-container .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}