@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* =========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================= */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Harmonious Color Palette */
    --color-primary: #1b5e20;        /* Deep Premium Forest Green */
    --color-primary-light: #2e7d32;  /* Lighter Accent Green */
    --color-primary-dark: #0f3d13;
    --color-secondary: #e65100;      /* Warm Copper / Amber Orange */
    --color-secondary-light: #f57c00;
    --color-accent: #c62828;         /* Premium Red */
    --color-accent-light: #ef5350;
    
    --color-bg: #f8f9fa;             /* Clean Off-white */
    --color-surface: #ffffff;        /* Pure White */
    --color-surface-glass: rgba(255, 255, 255, 0.85);
    
    --color-text-main: #1a251c;      /* Soft Charcoal-Green */
    --color-text-muted: #627566;     /* Muted Grey-Green */
    --color-border: #e2e8e3;         /* Thin Soft Border */
    
    --shadow-sm: 0 2px 4px rgba(27, 94, 32, 0.04);
    --shadow-md: 0 8px 24px rgba(27, 94, 32, 0.06);
    --shadow-lg: 0 16px 32px rgba(27, 94, 32, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   BASE RESET & LAYOUT
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-dark);
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c3cfc4;
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* =========================================================================
   APP SHELL (SIDEBAR & WRAPPER)
   ========================================================================= */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.app-sidebar {
    width: 280px;
    background-color: var(--color-primary-dark);
    color: #f1f8f2;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo i {
    font-size: 28px;
    color: #ffd54f; /* Golden Glow accent */
}

.sidebar-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    padding: 12px 16px 6px;
    font-weight: 700;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.sidebar-item a i {
    font-size: 18px;
}

.sidebar-item a:hover,
.sidebar-item.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar-item.active a {
    background-color: var(--color-primary-light);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.sidebar-user {
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.2);
}

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

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    font-weight: 600;
}

/* App Content Area */
.app-content {
    margin-left: 280px;
    flex: 1;
    padding: 32px;
    min-width: 0;
    transition: var(--transition-smooth);
}

/* Top Navbar (Mobile / Action bar) */
.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.topbar-title h1 {
    font-size: 22px;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* =========================================================================
   SALES & RESELLER TOP NAVIGATION LAYOUT
   ========================================================================= */
.topnav-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topnav-navbar {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.topnav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
}

.topnav-logo i {
    color: #ffd54f;
}

.topnav-links {
    display: flex;
    list-style: none;
    gap: 16px;
}

.topnav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

.topnav-links a:hover,
.topnav-links .active a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.topnav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topnav-user-name {
    font-size: 14px;
    font-weight: 600;
}

.topnav-content {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* =========================================================================
   PREMIUM GLASS CARDS & UI COMPONENTS
   ========================================================================= */
.premium-card {
    background: var(--color-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
    padding: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-secondary));
    opacity: 0;
    transition: var(--transition-smooth);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(46, 125, 50, 0.15);
}

.premium-card:hover::before {
    opacity: 1;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 14px;
}

/* Dashboard Statistic Widgets */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.widget-card {
    padding: 24px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.widget-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.widget-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.widget-icon.primary {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--color-primary-light);
}

.widget-icon.secondary {
    background-color: rgba(230, 81, 0, 0.1);
    color: var(--color-secondary);
}

.widget-icon.accent {
    background-color: rgba(198, 40, 40, 0.1);
    color: var(--color-accent);
}

.widget-icon.info {
    background-color: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
}

.widget-info {
    flex: 1;
}

.widget-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.widget-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.widget-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* =========================================================================
   COMPACT PREMIUM TABLES
   ========================================================================= */
.table-responsive-custom {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-custom th {
    background-color: #f1f5f2;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-dark);
    padding: 14px 18px;
    text-align: left;
    border-bottom: 2px solid var(--color-border);
}

.table-custom td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-main);
    vertical-align: middle;
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:hover td {
    background-color: rgba(46, 125, 50, 0.02);
}

/* =========================================================================
   FORMS & CONTROLS
   ========================================================================= */
.form-group-custom {
    margin-bottom: 20px;
}

.form-label-custom {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    background: #fcfdfe;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--color-primary-light);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

textarea.form-control-custom {
    min-height: 100px;
    resize: vertical;
}

/* =========================================================================
   PREMIUM BUTTONS
   ========================================================================= */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-premium-primary {
    background-color: var(--color-primary-light);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.2);
}

.btn-premium-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.btn-premium-secondary {
    background-color: var(--color-secondary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(230, 81, 0, 0.2);
}

.btn-premium-secondary:hover {
    background-color: #bf4300;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.3);
}

.btn-premium-accent {
    background-color: var(--color-accent);
    color: #ffffff;
}

.btn-premium-accent:hover {
    background-color: #a81c1c;
    transform: translateY(-2px);
}

.btn-premium-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.btn-premium-outline:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
    background-color: rgba(46, 125, 50, 0.04);
}

.btn-premium-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* =========================================================================
   FURNITURE CATALOG GRID (SALES / RESELLER)
   ========================================================================= */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.catalog-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(46,125,50,0.15);
}

.catalog-img-container {
    height: 200px;
    background-color: #f1f5f2;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.catalog-card:hover .catalog-img-container img {
    transform: scale(1.08);
}

.catalog-badge-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.catalog-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-category {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.catalog-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 44px;
}

.catalog-price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-top: auto;
    margin-bottom: 14px;
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
    margin-top: auto;
}

/* =========================================================================
   LOGIN SCREEN LAYOUT
   ========================================================================= */
.login-body {
    background: linear-gradient(135deg, #112d15 0%, #1b5e20 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    transition: var(--transition-smooth);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 40px;
    color: var(--color-primary-light);
    margin-bottom: 12px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.text-end { text-align: right !important; }
.w-100 { width: 100% !important; }
.text-danger { color: var(--color-accent) !important; }
.text-success { color: var(--color-primary-light) !important; }

/* Grid utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

/* Toast styling override */
.swal2-popup.swal2-toast {
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--color-border) !important;
    font-family: var(--font-body) !important;
}

/* POS / Checkout Cart styling */
.cart-sticky {
    position: sticky;
    top: 100px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.cart-item-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 12px;
    color: var(--color-text-muted);
}

.cart-item-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty-input {
    width: 46px;
    text-align: center;
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 13px;
}

/* =========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================= */
@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
    .app-content {
        margin-left: 0;
        padding: 20px;
    }
    .topnav-navbar {
        padding: 16px 20px;
    }
    .topnav-links {
        display: none; /* Collapsed under mobile burger */
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .widget-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(27, 94, 32, 0.08);
    padding: 0 10px;
    transition: var(--transition-smooth);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted) !important;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    height: 100%;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.bottom-nav-item i {
    font-size: 20px;
    transition: var(--transition-smooth);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--color-primary-light) !important;
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
    color: var(--color-primary-light) !important;
}

@media (max-width: 1024px) {
    body {
        padding-bottom: 74px !important; /* Tambahkan ruang kosong agar tidak tertutup menu */
    }
}

/* Responsive Search Form in Catalog */
.search-form-responsive {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}
.search-input-group {
    flex: 2;
    min-width: 0;
}
.search-select-group {
    flex: 1.5;
    min-width: 0;
}
.btn-search-custom {
    flex: 0 0 auto;
    padding: 12px 18px !important;
}

/* 2-Column Mobile Catalog Grid with Premium Styling */
@media (max-width: 576px) {
    .search-form-responsive {
        flex-wrap: wrap;
        gap: 6px;
    }
    .search-input-group {
        flex: 1 1 100%;
        margin-bottom: 2px;
    }
    .search-select-group {
        flex: 1 1 calc(100% - 62px);
    }
    .btn-search-custom {
        flex: 0 0 54px;
        height: 45px;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 2-Column Grid */
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Adjust card height and padding for 2-column view */
    .catalog-card {
        border-radius: var(--radius-sm) !important;
    }
    
    .catalog-img-container {
        height: 120px !important;
    }
    
    .catalog-body {
        padding: 10px !important;
    }
    
    .catalog-category {
        font-size: 9px !important;
        margin-bottom: 2px !important;
    }
    
    .catalog-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        min-height: 34px !important;
        margin-bottom: 6px !important;
    }
    
    .catalog-price {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .catalog-meta {
        font-size: 10px !important;
        padding-top: 6px !important;
        margin-bottom: 8px !important;
    }
    
    .catalog-body button,
    .catalog-body .btn-premium {
        font-size: 11px !important;
        padding: 8px 10px !important;
        border-radius: var(--radius-sm) !important;
    }
    
    /* Catalog badge overlay */
    .catalog-badge-overlay .badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
}

/* Print Styling */
@media print {
    .app-sidebar,
    .app-topbar,
    .topnav-navbar,
    .btn-premium,
    .no-print {
        display: none !important;
    }
    .app-content,
    .topnav-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    body {
        background: #fff;
        color: #000;
    }
}

/* Bulat di Tengah: Premium Floating Cart Button */
.bottom-nav-item.bottom-nav-cart-btn {
    position: relative;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cart-btn-circle {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
    border: 3.5px solid #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1060;
}

.bottom-nav-item.bottom-nav-cart-btn span {
    margin-top: 28px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.cart-btn-circle i {
    font-size: 20px;
    color: #fff !important;
}

.bottom-nav-item.bottom-nav-cart-btn:hover .cart-btn-circle {
    transform: translateX(-50%) translateY(-3px) scale(1.06);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.45);
}

/* Micro-animation Badge */
.cart-badge-anim {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 9px !important;
    padding: 2.5px 5px !important;
    border: 1.5px solid #fff;
    animation: popScale 0.35s ease-out;
}

@keyframes popScale {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Bounce Animation when Added */
.cart-item-bounce {
    animation: cartBounce 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBounce {
    0%, 100% { transform: translateX(-50%) scale(1); }
    55% { transform: translateX(-50%) scale(1.28); }
}

/* Responsive Offcanvas Adaptations */
@media (max-width: 767.98px) {
    .offcanvas-md.premium-card {
        border-radius: 0 !important;
        border: none !important;
    }
}

/* Fix mobile cart badge text visibility contrast */
.bottom-nav-item .badge,
.bottom-nav-cart-btn .badge {
    color: #ffffff !important;
}

