.table th {
    text-transform: none; 
    font-size: 0.8125rem;
    letter-spacing: 1px;
    padding-top: 0.88rem;
    padding-bottom: 0.88rem;
}
.vuexy-toast {
    background: #EAF9F0 !important;  
    color: #1E4620 !important;  
    border-radius: 6px !important; 
    border-left: 4px solid #28C76F !important; 
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1); 
    padding: 8px 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.vuexy-toast-title {
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: left !important;
    padding-left: 5px;
}

.vuexy-toast .swal2-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.swal2-show {
    transform: translateY(-5px);
    opacity: 1;
}

.swal2-hide {
    transform: translateY(-5px);
    opacity: 0;
}
.rz-dialog-wrapper {
    box-sizing: border-box;
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    
}
.layout-navbar-fixed body:not(.modal-open) .layout-content-navbar .layout-navbar, .layout-menu-fixed body:not(.modal-open) .layout-content-navbar .layout-navbar, .layout-menu-fixed-offcanvas body:not(.modal-open) .layout-content-navbar .layout-navbar {
    z-index: 1025;
}

/*.rz-scheduler {*/
/*    background-color: #1A2035 !important; */
/*    color: #FFFFFF !important;*/
/*}*/

/*.rz-scheduler-nav {*/
/*    background-color: #2A3045 !important;*/
/*    color: #FFFFFF !important;*/
/*    border: none !important;*/
/*}*/

/*.rz-scheduler-nav .rz-scheduler-nav-title {*/
/*    color: #FFFFFF !important;*/
/*}*/

/*.rz-scheduler-nav-prev-next .rz-button.rz-today {*/
/*    background-color: #1A2035 !important;*/
/*    color: #FFFFFF !important;*/
/*    border: 1px solid #6C5DD3 !important; */
/*}*/
/*.rz-scheduler-nav-prev-next .rz-button.rz-next{*/
/*    background-color: #1A2035 !important;*/
/*    color: #FFFFFF !important;*/
/*    border: 1px solid #6C5DD3 !important; */
/*}*/
/*.rz-scheduler-nav-prev-next .rz-button.rz-prev{*/
/*    background-color: #1A2035 !important;*/
/*    color: #FFFFFF !important;*/
/*    border: 1px solid #6C5DD3 !important; */
/*}*/
/*.rz-scheduler .rz-scheduler-toolbar .rz-button:hover {*/
/*    background-color: #6C5DD3 !important;*/
/*    color: #FFFFFF !important;*/
/*}*/

/*.rz-scheduler-nav-views .rz-button.rz-primary.rz-state-active {*/
/*    background-color: #1A2035 !important;*/
/*    color: #FFFFFF !important;*/
/*    border: 1px solid #2A3045 !important;*/
/*}*/

/*.rz-scheduler-nav-views .rz-button.rz-primary.rz-state-active {*/
/*    background-color: #6C5DD3 !important; */
/*    color: #FFFFFF !important;*/
/*    border-color: #6C5DD3 !important;*/
/*}*/

/*.rz-view-header .rz-slot-header {*/
/*    background-color: #2A3045 !important;*/
/*    color: #FFFFFF !important;*/
/*    border-bottom: 1px solid #1A2035 !important;*/
/*}*/

/*.rz-slot-hours .rz-slot-header {*/
/*    background-color: #2A3045 !important;*/
/*    color: #B0BEC5 !important; */
/*}*/
/*.rz-view-header .rz-slot-hour-header{*/
/*    background-color: #2A3045 !important;*/
/*    color: #B0BEC5 !important; */
/*}*/
/*.rz-scheduler .rz-scheduler-view .rz-scheduler-slot {*/
/*    background-color: #1A2035 !important;*/
/*    border-color: #2A3045 !important;*/
/*}*/

/*.rz-scheduler .rz-scheduler-day.rz-state-selected {*/
/*    background-color: #6C5DD3 !important;*/
/*    color: #FFFFFF !important;*/
/*}*/


/*.rz-event-content{*/
/*    background-color: #4CAF50 !important; */
/*    color: #FFFFFF !important;*/
/*    border-radius: 5px;*/
/*    padding: 3px;*/
/*}*/

/* .rz-event-content:hover {*/
/*    background-color: #00BCD4 !important; */
/*}*/


/*.rz-scheduler .rz-scheduler-slot:hover {*/
/*    background-color: #2A3045 !important;*/
/*}*/

/*.rz-scheduler ::-webkit-scrollbar {*/
/*    width: 8px;*/
/*}*/

/*.rz-scheduler ::-webkit-scrollbar-thumb {*/
/*    background-color: #6C5DD3;*/
/*    border-radius: 4px;*/
/*}*/
/*.rz-colorpicker:not(.invalid), .rz-lookup-search input:not(.invalid), .rz-numeric:not(.invalid), .rz-datepicker > .rz-inputtext:not(.invalid), .rz-multiselect:not(.invalid), .rz-dropdown:not(.invalid), .mask:not(.invalid), .rz-textarea:not(.invalid), .rz-textbox:not(.invalid) {*/
/*    outline: none;*/
/*    display: block;*/
/*    width: 100%;*/
/*    padding: 0.422rem 0.875rem;*/
/*    font-size: 0.9375rem;*/
/*    font-weight: 400;*/
/*    line-height: 1.5;*/
/*    color: #b6bee3;*/
/*    background-color: #2f3349;*/
/*    background-clip: padding-box;*/
/*    border: 1px solid #434968;*/
/*    appearance: none;*/
/*    border-radius: 0.375rem;*/
/*    transition: border-color 0.15sease -in-out, box-shadow 0.15sease -in-out;*/
/*}*/
/*!*.rz-numeric input[type=number], .rz-numeric input[type=text] {*!*/
/*    outline: none;*/
/*    display: block;*/
/*    width: 100%;*/
/*    padding: 0.422rem 0.875rem;*/
/*    font-size: 0.9375rem;*/
/*    font-weight: 400;*/
/*    line-height: 1.5;*/
/*    color: #b6bee3;*/
/*    background-color: #2f3349;*/
/*    background-clip: padding-box;*/

/*}*/
/*.rz-numeric-button .rzi-caret-up:before {*/
/*    content: "expand_less";*/
/*    background-color: #2f3349;*/
/*}*/
/*.rz-numeric-button .rzi-caret-down:before {*/
/*    content: "expand_more";*/
/*    background-color: #2f3349;*/
/*}*/
/*.rz-dialog {*/
/*    background-color: #2A3045 !important; */
/*    color: #FFFFFF !important;           */
/*    border-radius: 12px;                */
/*}*/
/*.rz-dialog-titlebar, .rz-dialog-side-titlebar {*/
/*    background-color: #2A3045 !important;*/
/*    color: #FFFFFF !important;*/
/*    border-radius: 12px;*/
/*}*/
/*.rz-dialog-title {*/
/*    color: #FFFFFF !important;*/
/*}*/
/*.rz-dialog-mask {*/
/*    background-color: rgba(0, 0, 0, 0.7) !important; !* Daha koyu arka plan *!*/
/*}*/
/*.rz-event-content {*/
/*    background: #536bdb !important;*/
/*    border-radius: var(--rz-scheduler-border-radius);*/
/*    color: var(--rz-scheduler-event-color) !important;*/
/*    height: 100%;*/
/*    padding: var(--rz-scheduler-event-content-padding);*/
/*    font-size: var(--rz-scheduler-event-font-size);*/
/*    line-height: var(--rz-scheduler-event-line-height);*/
/*    overflow: hidden;*/
/*}*/
/*.rz-scheduler-nav {*/
/*    display: flex*/
/*;*/
/*    flex-wrap: wrap;*/
/*    justify-content: space-between;*/
/*    padding: var(--rz-scheduler-toolbar-padding);*/
/*    background: #2e324a !important;*/
/*}*/
/*.rz-scheduler-nav-prev-next .rz-button {*/
/*    background-color: #166792 !important;*/
/*    color: var(--rz-scheduler-prev-next-button-color);*/
/*    padding-block: var(--rz-scheduler-prev-next-button-padding-block);*/
/*    padding-inline: var(--rz-scheduler-prev-next-button-padding-inline);*/
/*    font-size: var(--rz-scheduler-prev-next-button-font-size);*/
/*}*/
.rz-event-content {
    background: #6e62e3;
    border-radius: var(--rz-scheduler-border-radius);
    color: var(--rz-scheduler-event-color);
    height: 100%;
    padding: var(--rz-scheduler-event-content-padding);
    font-size: var(--rz-scheduler-event-font-size);
    line-height: var(--rz-scheduler-event-line-height);
    overflow: hidden;
}

/* Radzen onay penceresi (Confirm Dialog) için z-index artırma */
.rz-dialog {
    z-index: 1055 !important; /* Bootstrap modalın varsayılan z-index değeri 1050'dir, bunu daha yukarı çekiyoruz */
}

/* Eğer dialog bileşeni düzgün çalışmazsa, tüm dialoglar için z-index artır */
.rz-overlay {
    z-index: 1050 !important;
}

/* Bootstrap modal'ın z-index değerini aşağı çek */
.modal {
    z-index: 1045 !important;
}
.template-customizer-open-btn {
    display: none !important;
}

.upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.upload-label {
    background-color: #007bff;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
    text-align: center;
}

.upload-label:hover {
    background-color: #0056b3;
}

.upload-input {
    display: none;
}

/* Mobil uyum için */
@media (max-width: 576px) {
    .upload-label {
        width: 100%;
        font-size: 0.95rem;
        padding: 10px;
    }

    .upload-container {
        flex-direction: column;
        align-items: stretch;
    }
}
.live-support-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #6f42c1;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.live-support-button:hover {
    background-color: #5936a4;
    transform: scale(1.05);
}

.icon-pulse {
    animation: pulse-animation 2s infinite;
    font-size: 24px;
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.responsive-tabs .rz-tabview-nav {
    overflow-x: auto !important;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.responsive-tabs .rz-tabview-nav li {
    flex: 0 0 auto;
}
.responsive-tabs .rz-tabview-nav::-webkit-scrollbar {
    display: none;
}
.modal {
    z-index: 1100 !important;
}
.bg-primary {
    --bs-bg-opacity: 1;
     background-color: white!important; 
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #28c76f;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.image-container {
    height: 180px; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    overflow: hidden;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

.product-image:hover {
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .image-container {
        height: 140px; 
    }
}

.btn-outline-primary {
    color: #fff;
    border-color: #968df5;
    background: #968df5;
}
.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
    background-color: white;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-image-wrapper {
    background-color: #f8fafc;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.discount-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: #22c55e;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.old-price {
    text-decoration: line-through;
    color: #6b7280;
    font-size: 0.9rem;
}

.new-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1d4ed8;
}
.card-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-image-container {
    background-color: #f9fafb;
    padding: 1rem;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-align: center;
    color: #111827;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d4ed8;
    text-align: center;
}

.price-old {
    text-align: center;
    text-decoration: line-through;
    color: #6b7280;
    font-size: 0.875rem;
}

.discount-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: #16a34a;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.btn-cart {
    margin-top: 1rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-cart:hover {
    background-color: #4338ca;
}

.card {
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.shadow-sm:hover {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.06) !important;
}
.rz-button.rz-primary.rz-shade-default {
    background-color: #4338ca !important;
    color: var(--rz-on-primary);
}
/* ===== HEADER MOBILE FIXES ===== */

/* Header icon hover and active states */
.layout-navbar .nav-link {
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
}

.layout-navbar .nav-link:hover {
    background-color: rgba(115, 103, 240, 0.08);
}

.layout-navbar .nav-link:active {
    transform: scale(0.95);
}

/* Hamburger menu button styling */
.layout-menu-toggle .nav-link {
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.layout-menu-toggle .nav-link:hover {
    background-color: rgba(115, 103, 240, 0.08);
}

/* Badge positioning and styling */
.nav-link .badge {
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.nav-link .position-relative {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix badge position on cart icon */
.nav-item.position-relative {
    position: relative;
}

.nav-link.position-relative .badge {
    position: absolute !important;
}

@media (max-width: 1199px) {
    .layout-navbar .navbar-nav .nav-item.dropdown .dropdown-menu {
        position: fixed;                 /* stick to viewport for stability */
        top: 64px;                       /* navbar height */
        left: 8px !important;            /* small gutter */
        right: 8px !important;           /* small gutter */
        width: auto;                     /* let left/right control the width */
        min-width: 0;                    
        max-width: none;
        margin: 0;                       /* remove bootstrap margins */
        transform: none !important;      /* prevent off-screen shifts */
        z-index: 1200;                   /* above page content */
    }
}

@media (max-width: 575px) {
    .layout-navbar .navbar-nav .nav-item.dropdown .dropdown-menu {
        top: 60px;                       /* navbar height for small screens */
    }
}

@media (max-width: 390px) {
    .layout-navbar .navbar-nav .nav-item.dropdown .dropdown-menu {
        top: 56px;                       /* navbar height for extra small screens */
    }
}

/* Header Cart Dropdown - Mobile Responsive */
.header-cart-dropdown {
    width: 340px;
    top: 100%;
    right: 0;
    z-index: 1050;
}

@media (max-width: 1199px) {
    .header-cart-dropdown {
        position: fixed !important;
        top: 64px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        z-index: 1200 !important;
    }
}

@media (max-width: 575px) {
    .header-cart-dropdown {
        top: 60px !important;
    }
}

@media (max-width: 390px) {
    .header-cart-dropdown {
        top: 56px !important;
    }
}

/* Navbar spacing improvements for mobile */
@media (max-width: 1199px) {
    /* Header overall layout */
    .layout-navbar {
        padding: 0.75rem 1rem !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 1rem !important;
        min-height: 64px !important;
    }
    
    /* Menu toggle button (hamburger) */
    .layout-menu-toggle {
        flex-shrink: 0;
        order: -1;
        display: flex !important;
        align-items: center !important;
    }
    
    .layout-menu-toggle .nav-link {
        padding: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 44px;
        min-height: 44px;
    }
    
    .layout-menu-toggle .ti-sm,
    .layout-menu-toggle .ti,
    .layout-menu-toggle i {
        font-size: 1.6rem !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        display: inline-block !important;
    }
    
    /* Right side navbar items */
    .navbar-nav-right {
        flex: 1;
        justify-content: flex-end !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .navbar-nav-right .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar-nav .nav-item {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.65rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Icons size and alignment */
    .navbar-nav .ti-md,
    .navbar-nav .ti,
    .navbar-nav i {
        font-size: 1.4rem !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        display: inline-block !important;
    }
}

@media (max-width: 575px) {
    .layout-navbar {
        padding: 0.5rem 0.75rem !important;
        gap: 0.75rem !important;
        min-height: 60px !important;
    }
    
    .layout-menu-toggle .nav-link {
        padding: 0.4rem !important;
        min-width: 40px;
        min-height: 40px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .layout-menu-toggle .ti-sm,
    .layout-menu-toggle .ti,
    .layout-menu-toggle i {
        font-size: 1.4rem !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }
    
    .navbar-nav-right .navbar-nav {
        gap: 0.25rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 0.5rem !important;
        min-width: 40px;
        min-height: 40px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Slightly smaller icons on very small screens */
    .navbar-nav .ti-md,
    .navbar-nav .ti,
    .navbar-nav i {
        font-size: 1.3rem !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }
    
    /* Badge adjustments for mobile */
    .layout-navbar .badge {
        font-size: 0.65rem !important;
        padding: 0.2em 0.4em !important;
    }
}

@media (max-width: 390px) {
    /* Extra small screens (like iPhone SE) */
    .layout-navbar {
        padding: 0.5rem 0.5rem !important;
        gap: 0.5rem !important;
        min-height: 56px !important;
    }
    
    .layout-menu-toggle .nav-link,
    .navbar-nav .nav-link {
        padding: 0.35rem 0.4rem !important;
        min-width: 38px;
        min-height: 38px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .layout-menu-toggle .ti-sm,
    .layout-menu-toggle .ti,
    .layout-menu-toggle i {
        font-size: 1.3rem !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }
    
    .navbar-nav .ti-md,
    .navbar-nav .ti,
    .navbar-nav i {
        font-size: 1.2rem !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }
    
    .navbar-nav-right .navbar-nav {
        gap: 0.15rem !important;
    }
}

/* Cart dropdown content improvements for mobile */
@media (max-width: 767px) {
    .header-cart-dropdown .dropdown-header {
        font-size: 0.95rem !important;
    }
    
    .header-cart-dropdown .list-unstyled img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .header-cart-dropdown .fw-semibold {
        font-size: 0.85rem;
    }
    
    .header-cart-dropdown .btn-sm {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Ensure menu toggle button is visible and properly sized */
@media (max-width: 1199px) {
    .layout-menu-toggle {
        display: flex !important;
        align-items: center;
    }
    
    .layout-menu-toggle .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== SIDE MENU MOBILE IMPROVEMENTS ===== */
@media (max-width: 1199px) {
    /* Ensure side menu is properly positioned and sized on mobile */
    .layout-menu {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 260px !important;
        height: 100vh;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .layout-menu.menu-open {
        transform: translateX(0);
    }
    
    /* Menu overlay for mobile */
    .layout-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1099;
        display: none;
    }
    
    .layout-overlay.active {
        display: block;
    }
    
    /* Menu brand adjustments */
    .layout-menu .app-brand {
        padding: 1rem 1.5rem;
    }
    
    /* Menu items spacing for better touch targets */
    .layout-menu .menu-item .menu-link {
        padding: 0.75rem 1.5rem;
        min-height: 44px; /* Better touch target */
    }
    
    /* Menu sub-items */
    .layout-menu .menu-sub .menu-item .menu-link {
        padding: 0.65rem 1.5rem 0.65rem 3.5rem;
    }
}

@media (max-width: 575px) {
    /* Smaller menu width on very small screens */
    .layout-menu {
        width: 240px !important;
    }
    
    .layout-menu .app-brand {
        padding: 0.875rem 1.25rem;
    }
    
    .layout-menu .app-brand-text {
        font-size: 1.1rem !important;
    }
    
    .layout-menu .menu-item .menu-link {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .layout-menu .menu-icon {
        font-size: 1.2rem !important;
        margin-right: 0.75rem;
    }
}

/* ===== GENERAL MOBILE LAYOUT FIXES ===== */
/* Prevent horizontal overflow on mobile */
@media (max-width: 991px) {
    body {
        overflow-x: hidden;
    }
    
    .layout-wrapper,
    .layout-container,
    .layout-page {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container-xxl,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 575px) {
    .container-xxl,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Navbar height consistency */
.layout-navbar {
    min-height: 56px;
    width: 100%;
}

/* Navbar mobile container fix */
@media (max-width: 1199px) {
    .layout-navbar.container-xxl {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 575px) {
    .layout-navbar.container-xxl {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Safe area insets for iOS devices */
@supports (padding: max(0px)) {
    .layout-navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    @media (max-width: 991px) {
        body {
            padding-top: env(safe-area-inset-top);
        }
    }
}

/* Content area adjustments for mobile */
@media (max-width: 1199px) {
    .layout-page {
        padding-top: 64px; /* Navbar height */
    }
    
    .content-wrapper {
        padding-top: 1rem;
    }
}

@media (max-width: 575px) {
    .layout-page {
        padding-top: 60px; /* Navbar height for small screens */
    }
}

@media (max-width: 390px) {
    .layout-page {
        padding-top: 56px; /* Navbar height for extra small screens */
    }
}

/* Better touch targets for buttons and links on mobile */
@media (max-width: 767px) {
    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }
    
    .btn-sm {
        min-height: 38px;
        padding: 0.4rem 0.8rem;
    }
    
    /* Links should have good touch targets */
    a:not(.btn) {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Text truncation helpers for mobile */
.text-truncate-mobile {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .text-truncate-mobile {
        max-width: 150px;
    }
}

/* Responsive spacing utilities */
@media (max-width: 991px) {
    .pt-lg-mobile {
        padding-top: 0.5rem !important;
    }
    
    .pb-lg-mobile {
        padding-bottom: 0.5rem !important;
    }
    
    .px-lg-mobile {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}
.compact-table th, .compact-table td { padding: .35rem .5rem; font-size: .85rem; vertical-align: middle; }
.compact-input .form-control { padding: .35rem .75rem; font-size: .9rem; }
.product-thumb { width: 40px; }
.table-tight { white-space: nowrap; }

.btn i { line-height: 1; }
.btn.btn-sm i { font-size: .9rem; }
.btn-cart i { font-size: 1rem; }

/* Compact inputs within this modal on small screens */


/* Ensure the invoice table remains readable on mobile */
.table-sm th, .table-sm td { white-space: nowrap; }

.search-input {
    max-width: 400px;
    width: 100%;
}

@media (min-width: 768px) {
    .search-input {
        max-width: 600px;
    }
}



@media (max-width: 576px) {
    .compact-input .input-group-text {
        padding: .35rem .5rem;
    }
    .compact-input input.form-control {
        height: 2.1rem;
        padding-top: .25rem;
        padding-bottom: .25rem;
        font-size: .875rem;
    }
    .search-controls { row-gap: .5rem; }
    .form-check-inline { display: inline-flex; align-items: center; }
    .form-check-input { margin-top: 0; }
}

/* Tighten table a bit more on mobile */
@media (max-width: 576px) {
    .table-tight th, .table-tight td { padding: .35rem .4rem; font-size: .85rem; }
    .product-thumb { width: 36px; }
}

.product-thumb img { object-fit: cover; }

@media (max-width: 576px) {
    #chkTableView {
        transform: scale(0.9);
    }
    .form-check-label {
        font-size: 0.85rem;
    }
}
.search-controls { white-space: nowrap; }

/* Make checkbox switch more compact */
.switch-compact .form-check-input { transform: scale(0.9); }

.min-w-0 { min-width: 0; }

@media (max-width: 576px) {
    .search-controls {
        gap: .5rem;
    }

    .switch-compact .form-check-label {
        font-size: .875rem;
    }

    .compact-input .input-group-text {
        padding-left: .5rem;
        padding-right: .25rem;
    }

    .compact-input input.form-control {
        padding-top: .375rem;
        padding-bottom: .375rem;
    }


}

/* ===== Global modal buttons layout (desktop: row, mobile: stacked) ===== */
.modal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

@media (max-width: 576px) {
    .modal .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .modal .modal-footer .btn {
        width: 100%;
    }
    /* keep modal nicely centered and not touching edges on mobile */
    .modal .modal-dialog {
        margin: .75rem;
    }
    .modal .modal-body {
        padding-top: .75rem;
        padding-bottom: .75rem;
    }
}

/* Ensure 2 columns on mobile for product grid */
@media (max-width: 576px) {
    .row.g-4 > [class*='col-'] {
        max-width: 50%;
        flex: 0 0 50%;
    }
    
    .row.g-4 > .col-6 {
        max-width: 50%;
        flex: 0 0 50%;
    }
    
    /* Mobile-friendly cart button - much smaller */
    .btn-cart-mobile {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        min-height: 28px !important;
    }
    
    /* Reduce card body padding on mobile */
    .card-body {
        padding: 0.5rem !important;
    }
    
    .card-title {
        font-size: 0.85rem !important;
        margin-bottom: 0.125rem !important;
    }
    
    .price-current {
        font-size: 1rem !important;
    }
    
    /* Hide buttons ONLY in table view on mobile */
    .table-responsive .btn-group-sm {
        display: none !important;
    }
    
    /* Hide table on mobile, show card-based layout instead */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }
    
    .table-responsive .table {
        min-width: 600px;
    }
    
    .table-responsive .table th,
    .table-responsive .table td {
        white-space: nowrap;
        padding: 0.2rem 0.15rem;
        font-size: 0.65rem;
    }
    
    .table-responsive .btn-group-sm {
        display: flex;
        gap: 1px;
    }
    
    .table-responsive .btn-sm {
        padding: 0.15rem 0.35rem;
        font-size: 0.6rem;
    }
    
    /* Hide the header text in action column */
    .compact-table th:last-child {
        font-size: 0 !important;
        padding: 0 !important;
    }
    
    .compact-table tr:hover td:last-child {
        background-color: #f5f5f5;
    }
}

/* ===== APP FOOTER - MODERN & İNCE TASARIM ===== */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    background: #7367f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
}

/* ===== DESKTOP: İNCE DÖVİZ TİCKER ===== */
.footer-currency-desktop {
    padding: 6px 0;
    overflow: hidden;
    background: transparent;
}

.currency-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.currency-scroll {
    display: flex;
    gap: 16px;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
    padding: 2px 0;
}

.currency-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.currency-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.currency-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.currency-symbol {
    font-size: 14px;
    opacity: 0.9;
}

.currency-code {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.currency-rate {
    opacity: 0.95;
    font-family: 'Courier New', monospace;
}

.currency-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ===== MOBILE: KOMPAKT BOTTOM NAVİGASYON ===== */
.mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: #7367f0;
    height: 62px;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 6px 4px;
    position: relative;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

/* Aktif durum */
.mobile-bottom-nav .nav-item.active {
    color: #ffffff;
}

.mobile-bottom-nav .nav-item.active i {
    transform: scale(1.1);
}

/* Aktif çizgi */
.mobile-bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #ffd700;
    border-radius: 1px;
}

/* Responsive breakpoints */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .footer-currency-desktop {
        display: block !important;
    }
    
    body {
        padding-bottom: 45px !important;
    }
    
    .layout-wrapper:not(.layout-without-menu) .layout-page,
    .layout-wrapper:not(.layout-without-menu) .content-wrapper {
        padding-bottom: 50px !important;
    }
}

@media (max-width: 991px) {
    .footer-currency-desktop {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: flex !important;
    }
    
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }
    
    .layout-wrapper .layout-page,
    .layout-wrapper .content-wrapper,
    .container-xxl {
        padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 360px) {
    .mobile-bottom-nav .nav-item i {
        font-size: 1.35rem;
    }
    
    .mobile-bottom-nav .nav-item span {
        font-size: 0.62rem;
    }
}

/* Layout padding fixes */
.layout-page {
    padding-bottom: 50px !important;
}

.content-wrapper {
    padding-bottom: 50px !important;
}

@media (max-width: 991px) {
    .layout-page {
        padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
    }
    
    .content-wrapper {
        padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
    }
}

/* Sipariş Numarası Stilleri - Kompakt Tasarım */
.order-header {
    background: linear-gradient(135deg, #7367f0 0%, #5a4fcf 100%);
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(115, 103, 240, 0.2);
    position: relative;
    overflow: hidden;
}

.order-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.order-number {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin-bottom: 4px;
}

.order-subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 500;
}

.order-icon {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Sepet Kartı Stilleri */
.basket-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.basket-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.basket-card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 16px;
}

.basket-item {
    padding: 16px;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.basket-item:hover {
    background-color: #f8f9fa;
}

.basket-item:last-child {
    border-bottom: none;
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.selected-date {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #dee2e6;
    font-size: 0.85rem;
}

.selected-date-mobile {
    position: absolute;
    bottom: 15px;
    left: 90px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #6c757d;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 5;
}

.selected-date-bottom {
    position: absolute;
    bottom: 15px;
    left: 5px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #6c757d;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 3;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-image:hover {
    border-color: #7367f0;
    transform: scale(1.05);
}

.product-info h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-details {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.price-section {
    text-align: right;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.price-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: #28a745;
    margin-top: 10px;
}

.currency-badge {
    color: #6c757d;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 4px;
    background: transparent;
}

/* Döviz Seçici Stilleri */
.currency-selector {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.currency-selector:hover {
    border-color: #ced4da;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.currency-selector:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.currency-selector .input-group-text {
    background: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 5px 0 0 5px;
    font-weight: 500;
}

.currency-selector .form-select {
    border: none;
    border-radius: 0 5px 5px 0;
    background: white;
    font-weight: 400;
    padding: 8px 12px;
}

.currency-selector .form-select:focus {
    box-shadow: none;
    border-color: transparent;
}

.currency-option {
    padding: 8px 12px;
    font-weight: 500;
}

.currency-option:hover {
    background-color: #f8f9fa;
}


/* Mobil Responsive Stiller */
@media (max-width: 768px) {
    .order-header {
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .order-number {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .order-subtitle {
        font-size: 0.75rem;
    }

    .order-icon {
        font-size: 1.2rem;
        top: 6px;
        right: 10px;
    }
    
    .basket-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
        margin-bottom: 0;
        border-bottom: 1px solid #dee2e6;
        min-height: auto;
    }

    .product-image {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        margin-bottom: 0;
        align-self: flex-start;
    }

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

    .product-info h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .product-details {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .product-description {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .price-section {
        text-align: right;
        padding-left: 12px;
        margin-top: 8px;
        width: auto;
        min-width: 100px;
        flex-shrink: 0;
    }

    .price-item {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .price-total {
        font-size: 1.1rem;
        font-weight: 600;
        margin-top: 4px;
    }

    .currency-badge {
        font-size: 0.8rem;
        margin-left: 4px;
    }
}

/* Mobile Delete Button */
.basket-delete-btn {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    z-index: 10 !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #dc3545 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
}

/* Desktop Delete Button */
.basket-delete-btn-desktop {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    z-index: 10 !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
    background-color: #dc3545 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
    min-width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.basket-delete-btn:hover {
    background-color: #c82333 !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.basket-delete-btn:active {
    transform: scale(0.95) !important;
}

.basket-delete-btn-desktop:hover {
    background-color: #c82333 !important;
    color: white !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

.basket-delete-btn-desktop:active {
    transform: scale(0.95) !important;
}

/* Hide mobile delete button on larger screens */
@media (min-width: 992px) {
    .basket-delete-btn {
        display: none !important;
    }
}

/* Order Summary Label Styling */
.card .list-group-item .fw-medium {
    font-weight: 600 !important;
    color: #495057 !important;
    font-size: 0.95rem !important;
}

.card .list-group-item:last-child .fw-medium {
    font-weight: 700 !important;
    color: #28a745 !important;
    font-size: 1rem !important;
}

/* Currency Symbol Styling */
.currency-symbol {
    font-weight: 600 !important;
    color: #28a745 !important;
}

/* Hide desktop delete button on smaller screens */
@media (max-width: 991px) {
    .basket-delete-btn-desktop {
        display: none !important;
    }
}

/* Desktop delete button styling */
@media (max-width: 768px) {
    .price-section .btn-outline-danger {
        display: none !important;
    }
}

/* Çok küçük ekranlar için ekstra responsive */
@media (max-width: 480px) {
    .basket-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
        padding: 10px 8px;
        border-bottom: 1px solid #dee2e6;
        min-height: 120px;
    }

    .product-image {
        width: 45px;
        height: 45px;
        margin-bottom: 0;
        align-self: flex-start;
    }

    .product-info {
        width: 100%;
    }

    .product-info h5 {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .price-section {
        width: 100%;
        text-align: right;
        padding-left: 0;
        margin-top: 5px;
        min-width: auto;
        align-items: flex-end;
    }

    .price-section .btn {
        align-self: flex-end;
        margin-top: 5px;
    }

    .basket-delete-btn {
        top: 8px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        padding: 6px !important;
    }
}

/* 480px için delete button */
@media (max-width: 480px) {
    .basket-delete-btn {
        top: -8px !important;
        right: -8px !important;
        width: 28px !important;
        height: 28px !important;
        padding: 5px !important;
        font-size: 0.8rem !important;
    }

    .selected-date {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px dashed #dee2e6;
        font-size: 0.65rem;
        background: transparent;
        text-align: left;
    }

    .product-details {
        display: none;
    }

    .selected-date-mobile {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 4px 0;
        font-size: 0.65rem;
        margin-top: 4px;
        border-top: 1px dashed #dee2e6;
        border-radius: 0;
    }

    .selected-date-bottom {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 4px 0;
        font-size: 0.65rem;
        margin-top: 4px;
        border-top: 1px dashed #dee2e6;
        border-radius: 0;
        text-align: left;
    }

    .selected-date {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px dashed #dee2e6;
        font-size: 0.7rem;
        background: transparent;
    }

    .product-description {
        display: block !important;
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
}


/* === HEADER COMPACT / ALIGNMENT FIXES === */
#layout-navbar.layout-navbar {
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding-top: .35rem !important;
  padding-bottom: .35rem !important;
  min-height: 56px !important;
}

/* Make the detached style behave like a flat bar on all screens */
.layout-content-navbar .layout-navbar.bg-navbar-theme {
  background-color: #fff !important;
}

/* Tighten right-side icon paddings */
#layout-navbar .navbar-nav-right .nav-link {
  padding: .4rem .55rem !important;
}

/* Ensure consistent vertical centering */
#layout-navbar .navbar-nav-right, 
#layout-navbar .navbar-nav-right .navbar-nav, 
#layout-navbar .navbar-nav-right .nav-item {
  align-items: center !important;
}

/* Subtle hover for icons */
#layout-navbar .nav-link:hover { 
  background-color: rgba(115,103,240,.06) !important; 
}

/* Badge exact position on cart */
#layout-navbar .nav-link.position-relative .badge {
  top: 0 !important;
  right: -2px !important;
}

/* === CART BADGE FIX (Desktop + Mobile) === */
.navbar .nav-link { position: relative; }

/* Specific cart badge rules override earlier generic rules */
.cart-badge {
  position: absolute !important;   /* ensure absolute positioning */
  top: -6px !important;            /* sit slightly above the icon */
  right: -6px !important;          /* tuck into the icon corner */
  transform: none !important;      /* remove translate-middle effects */
  display: flex;                   /* center the number */
  align-items: center;
  justify-content: center;
  min-width: 18px;                 /* round pill size */
  height: 18px;
  padding: 0 4px;                  /* small horizontal padding */
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

/* Tablet & mobile tweaks */
@media (max-width: 1199px) {
  .cart-badge {
    top: -4px !important;
    right: -4px !important;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
  }
}

/* Very small phones */
@media (max-width: 390px) {
  .cart-badge {
    top: -3px !important;
    right: -3px !important;
    min-width: 15px;
    height: 15px;
    font-size: 9.5px;
  }
}

/* Mobile: flat bar, remove radius/shadow entirely */
@media (max-width: 1199px){
  #layout-navbar.layout-navbar { 
    border-radius: 0 !important; 
    box-shadow: none !important; 
  }
}
/* === FULL-WIDTH DETACHED HEADER (no side gaps) === */
#layout-navbar.navbar-detached {
  /* make the white header stretch edge-to-edge */
  width: 100vw !important;
  margin: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important; /* center the 100vw element in page flow */
  border-radius: 0 !important;
  background-color: #fff !important;
  box-shadow: none !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Ensure the wrapper doesn't re-introduce side margins */
.layout-content-navbar .layout-navbar {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* On small screens keep it flush as well */
@media (max-width: 1199px){
  #layout-navbar.navbar-detached { 
    width: 100vw !important; 
    padding-left: .875rem !important; 
    padding-right: .875rem !important; 
  }
}
/* === FORCE HEADER FULL-WIDTH IN ALL LAYOUTS === */
#layout-navbar {
  width: 100vw !important;           /* span entire viewport */
  left: 50% !important;               /* center the 100vw element */
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

/* remove container constraints if any parent wraps it */
#layout-navbar .container-xxl, 
#layout-navbar.container-xxl {
  max-width: none !important;
  width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* keep content below header aligned with page grid */
.layout-page, .content-wrapper {
  overflow-x: hidden;                 /* prevent horizontal scroll from 100vw header */
}