/**
 * SAJON - Main Stylesheet
 * Mobile App Style - Complete responsive design
 */

/* CSS Variables */
:root {
    --cream: #E5D9B6;
    --light-green: #A4BE7B;
    --medium-green: #5F8D4E;
    --dark-green: #285430;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', 'Noto Sans Bengali', 'Noto Serif Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-gray);
    color: var(--black);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* Bengali font specific */
html[lang="bn"] body,
html[lang="bn"] p,
html[lang="bn"] span,
html[lang="bn"] div,
html[lang="bn"] a,
html[lang="bn"] li,
html[lang="bn"] .navbar-title,
html[lang="bn"] .card-title,
html[lang="bn"] .btn,
html[lang="bn"] .form-label,
html[lang="bn"] .stat-label {
    font-family: 'Noto Sans Bengali', 'Noto Serif Bengali', 'Inter', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0;
}

/* Chrome-specific Bengali font fix */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    html[lang="bn"] body,
    html[lang="bn"] p,
    html[lang="bn"] span,
    html[lang="bn"] div,
    html[lang="bn"] a,
    html[lang="bn"] .navbar-title,
    html[lang="bn"] .btn {
        font-family: 'Noto Sans Bengali', 'Noto Serif Bengali', 'Segoe UI', sans-serif !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-green);
}

/* Mobile App Container */
.app-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--light-gray);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* Buttons - Mobile Friendly */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--medium-green) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(40, 84, 48, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 84, 48, 0.4);
}

.btn-secondary {
    background-color: var(--light-green);
    color: var(--dark-green);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--dark-green);
    color: var(--dark-green);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Cards - Mobile Optimized */
.card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 12px;
}

.card:active {
    transform: scale(0.99);
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid var(--cream);
    background: var(--white);
}

.card-header h3, .card-header h4 {
    margin: 0;
}

.card-body {
    padding: 16px;
}

.card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--cream);
    background: #fafbfc;
}

/* Forms - Mobile Friendly */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-green);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1.5px solid var(--cream);
    border-radius: 12px;
    transition: var(--transition);
    background: var(--white);
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--medium-green);
    box-shadow: 0 0 0 3px rgba(95, 141, 78, 0.1);
}

.form-control::placeholder {
    color: var(--gray);
    font-size: 0.9rem;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
}

/* Stats Grid - Mobile */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    padding: 16px 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--medium-green);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-green);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Profit Stats Grid */
.profit-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.profit-stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profit-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.profit-stat-info {
    flex: 1;
}

.profit-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.profit-stat-label {
    font-size: 0.7rem;
    color: var(--gray);
}

.profit-stat-sub {
    font-size: 0.6rem;
    opacity: 0.8;
}

/* Card specific colors */
.profit-card-sales .profit-stat-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.profit-card-sales .profit-stat-value { color: #667eea; }

.profit-card-admin .profit-stat-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.profit-card-admin .profit-stat-value { color: #f5576c; }

.profit-card-employee .profit-stat-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.profit-card-employee .profit-stat-value { color: #0099cc; }

.profit-card-customer .profit-stat-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.profit-card-customer .profit-stat-value { color: #2E7D32; }

/* Tables - Horizontal Scroll */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}

.table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--cream);
    font-size: 0.85rem;
}

.table th {
    background: linear-gradient(135deg, var(--dark-green), var(--medium-green));
    color: var(--white);
    font-weight: 600;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px;
    padding-bottom: calc(8px + var(--safe-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid var(--cream);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.7rem;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 30px;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 1.3rem;
}

.bottom-nav-item.active {
    color: var(--dark-green);
    background: var(--cream);
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

/* Add padding for bottom nav */
body.has-bottom-nav {
    padding-bottom: 70px;
}

body.has-bottom-nav .admin-main,
body.has-bottom-nav .main-content {
    margin-bottom: 0;
}

/* Toast Notification */
.toast-message {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    z-index: 2000;
    white-space: nowrap;
    max-width: 90%;
    white-space: normal;
    text-align: center;
    animation: toastFadeInOut 2.5s ease forwards;
}

@keyframes toastFadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); visibility: hidden; }
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--cream);
    border-top-color: var(--medium-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pull to Refresh */
.pull-to-refresh {
    text-align: center;
    padding: 15px;
    color: var(--gray);
    font-size: 0.8rem;
    background: var(--white);
    margin-bottom: 10px;
    border-radius: 12px;
}

/* Modal - Mobile Optimized */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--cream);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--cream);
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: var(--white);
}

/* Dropdown Menu - Mobile */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    min-width: 200px;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    color: var(--black);
    transition: var(--transition);
}

.dropdown-menu li a:active {
    background: var(--cream);
}

/* Product Grid - Mobile */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-green);
}

.price-old {
    font-size: 0.7rem;
    color: var(--gray);
    text-decoration: line-through;
}

/* Cart Item - Mobile */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 8px;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background: #f5f5f5;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--dark-green);
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--cream);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 45px;
    text-align: center;
    border: 1px solid var(--cream);
    border-radius: 8px;
    padding: 5px;
}

/* Order Status Timeline - Mobile */
.order-timeline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    background: var(--white);
    border-radius: 16px;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.timeline-step.completed .timeline-dot {
    background: var(--medium-green);
    color: white;
}

.timeline-step.active .timeline-dot {
    background: var(--dark-green);
    color: white;
    box-shadow: 0 0 0 3px rgba(40,84,48,0.2);
}

.timeline-label {
    font-size: 0.7rem;
    color: var(--gray);
}

.timeline-step.completed .timeline-label,
.timeline-step.active .timeline-label {
    color: var(--dark-green);
    font-weight: 600;
}

/* Search Bar */
.search-bar {
    background: var(--white);
    padding: 12px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-bar i {
    color: var(--gray);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--cream);
    border-radius: 30px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: var(--transition);
}

.chip:active {
    transform: scale(0.96);
}

.chip.active {
    background: var(--dark-green);
    color: var(--white);
    border-color: var(--dark-green);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-delivered { background: #d1ecf1; color: #0c5460; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-on-delivery { background: #cce5ff; color: #004085; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--cream);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1.2rem;
    color: var(--dark-green);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 20px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark-green);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.back-to-top:active {
    transform: scale(0.92);
}

/* ============================================
   MOBILE NAVBAR STYLES
   ============================================ */
.mobile-navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 12px;
}

.navbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Logo and Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
}

.navbar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.navbar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-green);
    letter-spacing: -0.5px;
}

/* Search Bar */
.navbar-search {
    flex: 1;
    position: relative;
    min-width: 150px;
}

.navbar-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1.5px solid var(--cream);
    border-radius: 30px;
    font-size: 0.9rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.navbar-search input:focus {
    outline: none;
    border-color: var(--medium-green);
    background: var(--white);
}

.navbar-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Three-dot Menu Button */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--dark-green);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-toggle:active {
    background: var(--cream);
    transform: scale(0.95);
}

/* Categories Row */
.categories-row {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 12px;
    background: var(--white);
    border-bottom: 1px solid var(--cream);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories-row::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 6px 16px;
    background: var(--light-gray);
    border-radius: 30px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: var(--dark-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-chip:active {
    background: var(--cream);
    transform: scale(0.96);
}

.category-chip.active {
    background: var(--dark-green);
    color: white;
}

/* ============================================
   DESKTOP NAVBAR STYLES
   ============================================ */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-logo {
    height: 45px;
    width: auto;
}

.navbar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-green);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-green);
}

/* Desktop Navigation Links */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 8px 16px;
    font-weight: 500;
    color: var(--black);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--dark-green);
    background-color: var(--cream);
}

/* Search Box Desktop */
.search-box {
    position: relative;
    flex: 1;
    max-width: 350px;
    margin: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid var(--cream);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--medium-green);
    outline: none;
}

.search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

/* Language Toggle Desktop */
.lang-toggle {
    padding: 6px 12px;
    background-color: var(--cream);
    color: var(--dark-green);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.lang-toggle:hover {
    background-color: var(--light-green);
}

/* Cart Icon Desktop */
.cart-icon {
    position: relative;
    padding: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cart-icon i {
    font-size: 1.4rem;
    color: var(--dark-green);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--medium-green);
    color: var(--white);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 600;
}

/* Desktop Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 200px;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background-color: var(--cream);
    color: var(--dark-green);
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile view (up to 991px) - Show mobile navbar, hide desktop */
@media (max-width: 991px) {
    .mobile-navbar {
        display: block !important;
    }
    
    .navbar {
        display: none !important;
    }
}

/* Desktop view (992px and above) - Show desktop navbar, hide mobile */
@media (min-width: 992px) {
    .mobile-navbar {
        display: none !important;
    }
    
    .navbar {
        display: block !important;
    }
}

/* Tablet adjustments (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .profit-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop adjustments (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-container {
        padding: 10px 16px;
    }
    
    .navbar-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        max-width: 280px;
        margin: 0 10px;
    }
    
    .navbar-nav {
        gap: 12px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .profit-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop (1201px and above) */
@media (min-width: 1201px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .profit-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile small devices (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .profit-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
}

/* Print Styles */
@media print {
    .bottom-nav,
    .back-to-top,
    .btn,
    .mobile-navbar,
    .navbar {
        display: none !important;
    }
    
    body {
        padding: 0;
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}