/* --- 1. GLOBAL & BACKGROUND SETTINGS --- */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* POS Dashboard Color Variables */
    --primary-accent: #6f4e37;
    --primary-accent-hover: #8b4513;
    --panel-bg: rgba(255, 255, 255, 0.95);
    --text-color-dark: #333333;
    --text-color-light: #666666;
    --card-border-color: #e0e0e0;
}

body {
    background-image: url('https://images.unsplash.com/photo-1497935586351-b67a49e012bf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #4A3B32;
    min-height: 100vh;
}

/* =========================================
   LOGIN & AUTH STYLES
   ========================================= */
.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.auth-card {
    background: rgba(255, 252, 245, 0.82);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 35px 35px;
    /* Reduced from 60px 45px */
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.8s ease-in-out;
}

.back-home-icon {
    position: absolute;
    top: 25px;
    left: 25px;
    color: #623428;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s transform, 0.3s color, 0.3s background;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(98, 52, 40, 0.05);
    z-index: 10;
}

.back-home-icon:hover {
    background: rgba(98, 52, 40, 0.1);
    color: #c99368;
    transform: translateX(-3px);
}

.brand-title {
    color: #6F4E37;
    font-size: 30px;
    /* Reduced from 36px */
    margin-bottom: 5px;
    margin-top: 0;
    font-weight: 800;
}

.subtitle {
    font-size: 16px;
    color: #8C7A6B;
    margin-bottom: 35px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #5D4037;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    /* Reduced from 15px 18px */
    border: 1px solid #D9CFC4;
    border-radius: 8px;
    font-size: 15px;
    /* Slightly smaller from 16px */
    outline: none;
    transition: all 0.3s ease;
    background-color: #fdfbf9;
}

.input-group input:focus {
    border-color: #6F4E37;
    box-shadow: 0 0 5px rgba(111, 78, 55, 0.2);
}

.show-password-container {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 20px;
    color: #4A3B32;
    cursor: pointer;
    text-align: left;
}

.show-password-container input {
    margin-right: 8px;
    width: auto;
    cursor: pointer;
}

.forgot-pass {
    display: block;
    text-align: right;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 20px;
    color: #C08261;
    text-decoration: none;
    font-weight: 500;
}

.forgot-pass:hover {
    text-decoration: underline;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 16px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s;
    margin-top: 10px;
}

.btn-primary {
    background-color: #6F4E37;
}

.btn-primary:hover {
    background-color: #5D4037;
}

.btn-secondary {
    background-color: #8C7A6B;
}

.btn-secondary:hover {
    background-color: #7A6A5C;
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
}

.alert-error,
.form-warning,
.auth-notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 14px 16px 14px 18px;
    margin-bottom: 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 10px 25px rgba(73, 45, 29, 0.08);
    overflow: hidden;
    animation: noticeDrop 0.36s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.alert-error::before,
.form-warning::before,
.auth-notice::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 55%);
    pointer-events: none;
}

.alert-error i,
.form-warning i,
.auth-notice i {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.32);
}

.alert-error,
.form-warning,
.auth-notice--warning {
    background: linear-gradient(135deg, #fff4d6 0%, #fffaf0 100%);
    color: #7b5200;
    border-color: rgba(241, 210, 140, 0.9);
}

.alert-success,
.auth-notice--success {
    background: linear-gradient(135deg, #e6f7ee 0%, #f3fbf7 100%);
    color: #1e7c4f;
    border: 1px solid #cdebd9;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(73, 45, 29, 0.08);
}

.auth-notice--error {
    background: linear-gradient(135deg, #fff4d6 0%, #fffaf0 100%);
    color: #7b5200;
    border-color: rgba(241, 210, 140, 0.9);
}

/* Shared warning modal used across save, cancel, and delete actions */
.action-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 10, 6, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.action-confirm-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.action-confirm-box {
    width: min(440px, 100%);
    background: linear-gradient(180deg, #fffdf9 0%, #fff8f2 100%);
    border: 1px solid rgba(123, 82, 52, 0.1);
    border-radius: 32px;
    padding: 32px 30px;
    box-shadow: 0 30px 80px rgba(38, 22, 14, 0.24);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.action-confirm-overlay.open .action-confirm-box {
    transform: translateY(0) scale(1);
}

.action-confirm-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: #fff3e6;
    color: #b87342;
}

.action-confirm-box h3 {
    margin: 0 0 10px;
    color: #2b1a12;
    font-size: 1.35rem;
}

.action-confirm-box p {
    margin: 0 0 26px;
    color: #7e685c;
    line-height: 1.7;
}

.action-confirm-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.action-confirm-cancel,
.action-confirm-proceed {
    border: none;
    border-radius: 16px;
    padding: 13px 20px;
    font-weight: 800;
    cursor: pointer;
    min-width: 132px;
}

.action-confirm-cancel {
    background: #f3ece6;
    color: #5d4037;
}

.action-confirm-proceed {
    background: #6f4328;
    color: #fffaf5;
}

.action-confirm-proceed.is-danger {
    background: #c0392b;
}

@media (max-width: 700px) {
    .action-confirm-box {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .action-confirm-btns {
        flex-direction: column;
    }

    .action-confirm-cancel,
    .action-confirm-proceed {
        width: 100%;
    }

    .settings-select {
        width: 100%;
        min-width: 0;
    }

    .btn-save-settings {
        width: 100%;
    }

    .setting-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-row,
    .photo-actions,
    .staff-actions,
    .actions,
    .item-actions,
    .role-actions,
    .badge-row {
        width: 100%;
    }

    .role-actions {
        flex-wrap: wrap;
    }

    .role-form {
        flex-wrap: wrap;
        width: 100%;
    }

    .role-select,
    .role-save,
    .role-view-btn,
    .role-delete-btn {
        width: 100%;
        justify-content: center;
    }

    .history-table,
    .role-table {
        min-width: 640px;
    }

    .profile-topbar,
    .admin-hero-top,
    .about-hero,
    .edit-hero,
    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

.auth-notice--warning {
    background: linear-gradient(135deg, #fff4d6 0%, #fffaf0 100%);
    color: #7b5200;
    border-color: rgba(241, 210, 140, 0.9);
}

.auth-notice--success {
    color: #1e7c4f;
    border-color: #cdebd9;
}

.auth-notice span {
    position: relative;
    z-index: 1;
}

@keyframes noticeDrop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #bee5eb;
}

.bot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.auth-footer {
    margin-top: 25px;
    font-size: 14px;
    color: #8C7A6B;
}

.auth-footer a {
    color: #C08261;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 50px white inset !important;
    -webkit-text-fill-color: #4A3B32 !important;
    transition: background-color 5000s ease-in-out 0s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a.btn-primary {
    display: inline-block;
    text-align: center;
    line-height: 1;
}

/* =========================================
   NEW POS DASHBOARD STYLES
   ========================================= */
body:has(.dashboard-container) {
    overflow: hidden;
}

.dashboard-container {
    display: grid;
    grid-template-areas: "sidebar main cart";
    grid-template-columns: 80px 1fr 380px;
    height: 100vh;
    box-sizing: border-box;
    background: transparent;
}

/* --- OVERALL SCROLLBAR STYLING --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    /* Full View: Just Sidebar and Main */
    grid-template-rows: 100vh;
    grid-template-areas: "sidebar main";
    height: 100vh;
    overflow: hidden;
    background-color: #f7f3f0;
    position: relative;
}

::-webkit-scrollbar-thumb {
    background: #e0dcd9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c3bbb5;
}

/* --- LAYOUT PANELS --- */
.left-sidebar {
    grid-area: sidebar;
    background: #1e130c;
    /* Deep espresso */
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    z-index: 100;
    color: #fff;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);
}

.main-panel {
    grid-area: main;
    background-color: #f7f3f0;
    padding: 30px 48px;
    color: #1e130c;
    overflow-y: auto;
}

.cart-sidebar-panel {
    position: fixed;
    right: -420px;
    /* Hidden by default */
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: #ffffff;
    padding: 0 32px;
    color: #1e130c;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-sidebar-panel.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

/* --- LEFT SIDEBAR CONTENT --- */
.sidebar-logo h2 {
    color: #e5d3c8;
    font-size: 1.4rem;
    margin: 0 0 50px 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    padding-left: 10px;
    letter-spacing: -0.5px;
}

.sidebar-logo i {
    font-size: 1.6rem;
    color: #c99368;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu li {
    width: 100%;
}

.sidebar-menu a {
    display: flex;
    flex-direction: row;
    /* Horizontal labels */
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 14px 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    gap: 15px;
    border-radius: 12px;
    font-weight: 500;
}

.sidebar-menu a i {
    font-size: 1.1rem;
    width: 20px;
}

.sidebar-menu li.active a {
    background: rgba(201, 147, 104, 0.15);
    color: #f7f3f0;
    font-weight: 700;
    position: relative;
    box-shadow: none;
}

.sidebar-menu li.active a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #c99368;
    border-radius: 0 4px 4px 0;
}

.sidebar-menu a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-bottom {
    margin-top: auto;
    width: 100%;
}

.logout-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    padding: 14px 18px;
    font-size: 0.95rem;
    gap: 15px;
    font-weight: 500;
    transition: 0.3s;
    border-radius: 12px;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #ff7675;
}

.logout-btn i {
    font-size: 1.1rem;
    width: 20px;
}

/* --- MAIN HEADER --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.main-header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: #2b2b2b;
    font-weight: 800;
}

.search-container {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0938b;
}

#searchInput {
    width: 100%;
    padding: 14px 50px 14px 22px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    outline: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: #c99368;
    box-shadow: 0 0 0 4px rgba(201, 147, 104, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-header-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: #1e130c;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.profile-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(201, 147, 104, 0.2);
}

.profile-header-btn img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
}

.profile-header-btn .btn-text {
    display: flex;
    flex-direction: column;
}

.profile-header-btn .btn-text .user-name {
    font-size: 0.95rem;
    font-weight: 800;
}

.profile-header-btn .btn-text .user-role {
    font-size: 0.75rem;
    color: #8d7b70;
    font-weight: 500;
}


/* --- CATEGORY PILLS --- */
.filter-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 22px;
    padding: 15px;
    min-width: 100px;
    color: #8d7b70;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.filter-btn .icon-wrap {
    background: #fdfbf9;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
    transition: inherit;
}

.filter-btn.active {
    background: #c99368;
    color: #fff;
    border-color: #c99368;
    box-shadow: 0 10px 25px rgba(201, 147, 104, 0.3);
}

.filter-btn.active .icon-wrap {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.filter-btn:hover:not(.active) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #d9cfc4;
}

/* --- MENU HEADER & GRID --- */
.menu-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.menu-section-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #2b2b2b;
    font-weight: 700;
}

.results-count {
    color: #a0938b;
    font-size: 0.9rem;
    font-weight: 600;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* --- MENU ITEM CARDS --- */
.menu-item {
    background: #ffffff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(201, 147, 104, 0.2);
}

.menu-item-top {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.menu-item-top img {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.menu-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-info h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    color: #1e130c;
    font-weight: 800;
}

.menu-item-info .description {
    font-size: 0.85rem;
    color: #8d7b70;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.menu-item-info .price-tag {
    font-weight: 900;
    font-size: 1.35rem;
    color: #c99368;
}

.custom-options-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 15px;
    border-top: 1px dashed #efe8e2;
}

.opt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.opt-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.opt-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2b2b2b;
}

.opt-selector {
    display: flex;
    gap: 6px;
}

.opt-choice {
    background: #fdfcfb;
    border: 1px solid #e0dcd9;
    border-radius: 20px;
    width: auto;
    min-width: 34px;
    padding: 0 8px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #a0938b;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 600;
}

.opt-choice:hover {
    border-color: #623428;
}

.opt-choice.active {
    background: #fff;
    border: 1px solid #623428;
    color: #623428;
}


.add-to-billing-btn {
    background: #c99368;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(201, 147, 104, 0.2);
}

.add-to-billing-btn:hover {
    background: #b07e56;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 147, 104, 0.3);
}


/* --- RIGHT SIDEBAR / CART DETAILS --- */
.cart-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
}

.user-text .role {
    font-size: 0.8rem;
    color: #8d7b70;
    font-weight: 600;
}

.user-text strong {
    font-size: 1.05rem;
    color: #1e130c;
    font-weight: 800;
}

.notification-btn {
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    position: relative;
    cursor: pointer;
    color: #1e130c;
    font-size: 1.3rem;
}

.notification-btn .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid #fff;
}

.cart-header {
    margin-bottom: 20px;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #1e130c;
    font-weight: 800;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 5px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
    background: #fdfbf9;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: #d9cfc4;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #1e130c;
    font-weight: 800;
}

.cart-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.qty {
    font-size: 0.9rem;
    color: #c99368;
    font-weight: 800;
}

.edit-notes-btn {
    background: rgba(201, 147, 104, 0.1);
    color: #c99368;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.cart-item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.cart-item-price {
    font-weight: 800;
    font-size: 1rem;
    color: #1e130c;
    margin: 0;
}

.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    opacity: 0.5;
    transition: 0.2s;
}

.remove-btn:hover {
    opacity: 1;
}

.cart-footer {
    padding: 30px 0;
    border-top: 2px dashed #efe8e2;
    margin-top: auto;
}

.bill-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #8d7b70;
}

.summary-line strong {
    color: #1e130c;
    font-weight: 800;
}

.total-line {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #efe8e2;
}

.total-line span {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e130c;
}

.total-line strong {
    font-size: 1.6rem;
    color: #c99368;
    font-weight: 900;
}

.payment-methods h4 {
    font-size: 0.95rem;
    color: #1e130c;
    margin-bottom: 20px;
    font-weight: 800;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.pay-btn {
    background: #fdfbf9;
    border: 1px solid #efe8e2;
    padding: 15px 10px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #8d7b70;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-btn i {
    font-size: 1.2rem;
}

.pay-btn.active {
    background: #c99368;
    color: #fff;
    border-color: #c99368;
    box-shadow: 0 8px 20px rgba(201, 147, 104, 0.2);
}

.checkout-btn {
    width: 100%;
    background: #1e130c;
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(30, 19, 12, 0.15);
}

.checkout-btn:hover {
    background: #2b1d15;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(30, 19, 12, 0.2);
}

/* Empty Cart / Receipt Placeholder */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: #8d7b70;
    opacity: 0.6;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* --- RESPONSIVE FALLBACKS --- */
@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 80px 1fr;
    }

    .sidebar-menu a span,
    .sidebar-logo h2 {
        display: none;
    }
}

@media (max-width: 600px) {
    .dashboard-container {
        grid-template-areas: "main";
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .cart-sidebar-panel {
        width: 100%;
        right: -100%;
    }

    .left-sidebar {
        flex-direction: row;
        height: auto;
        padding: 10px;
        position: sticky;
        bottom: 0;
        width: 100%;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .sidebar-menu {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    .sidebar-logo,
    .sidebar-bottom {
        display: none;
    }

    .main-panel,
    .cart-sidebar-panel {
        padding: 20px;
    }
}

/* =========================================
   HOMEPAGE END USER STYLES
   ========================================= */
body.homepage-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
}

body.customer-theme-dark {
    background-image: linear-gradient(rgba(17, 12, 9, 0.92), rgba(17, 12, 9, 0.95)), url('https://images.unsplash.com/photo-1497935586351-b67a49e012bf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    color: #f4e6d9;
}

body.customer-theme-dark .main-panel,
body.customer-theme-dark .profile-main-panel,
body.customer-theme-dark .cart-sidebar-panel,
body.customer-theme-dark .menu-item,
body.customer-theme-dark .profile-header,
body.customer-theme-dark .content-box,
body.customer-theme-dark .stats-card,
body.customer-theme-dark .promo-card,
body.customer-theme-dark .promos-header-section,
body.customer-theme-dark .settings-nav,
body.customer-theme-dark .settings-box,
body.customer-theme-dark .summary-modal {
    background: rgba(42, 29, 21, 0.95) !important;
    color: #f7eadf !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.customer-theme-dark .menu-item-info h3,
body.customer-theme-dark .main-header h2,
body.customer-theme-dark .profile-topbar h2,
body.customer-theme-dark .profile-info h1,
body.customer-theme-dark .content-box h3,
body.customer-theme-dark .settings-box h3,
body.customer-theme-dark .promo-info h3,
body.customer-theme-dark .setting-label strong,
body.customer-theme-dark .summary-row strong {
    color: #fff6ef !important;
}

body.customer-theme-dark .description,
body.customer-theme-dark .results-count,
body.customer-theme-dark .setting-label span,
body.customer-theme-dark .promo-info p,
body.customer-theme-dark .promo-expiry,
body.customer-theme-dark .profile-info p,
body.customer-theme-dark .history-table td,
body.customer-theme-dark .history-table th {
    color: #d5c0b1 !important;
}

body.customer-theme-dark .search-container,
body.customer-theme-dark .profile-header-btn,
body.customer-theme-dark .filter-btn,
body.customer-theme-dark .settings-select,
body.customer-theme-dark .confirm-box {
    background: rgba(59, 42, 31, 0.95) !important;
    color: #f7eadf !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.customer-theme-dark .filter-btn .icon-wrap {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f3d2b5 !important;
}

body.customer-theme-dark .filter-btn.active,
body.customer-theme-dark .btn-save-settings,
body.customer-theme-dark .checkout-btn,
body.customer-theme-dark .back-btn,
body.customer-theme-dark .claim-btn {
    background: #c99368 !important;
    color: #1e130c !important;
}

body.customer-theme-dark .left-sidebar {
    background: #120c08;
}

body.customer-theme-dark .sidebar-menu a,
body.customer-theme-dark .logout-btn {
    color: #f4e6d9;
}

body.customer-theme-dark .sidebar-menu li.active a,
body.customer-theme-dark .sidebar-menu a:hover,
body.customer-theme-dark .logout-btn:hover {
    background: rgba(201, 147, 104, 0.2);
    color: #ffd9b8;
}

.home-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-logo i {
    font-size: 2.2rem;
    color: #c99368;
}

.home-logo h2 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: 900;
    color: #fff;
}

.home-nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.home-nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.home-nav-links a:hover,
.home-nav-links a.active {
    color: #c99368;
}

.home-nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.home-nav-actions .action-icon {
    font-size: 1.3rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.home-nav-actions .action-icon:hover {
    color: #c99368;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cart-icon-wrapper .badge {
    position: absolute;
    top: -6px;
    right: -12px;
    background: #c99368;
    color: #fff;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}

.nav-cta-btn {
    background: #c99368;
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.nav-cta-btn.secondary {
    background: transparent;
    border: 2px solid #c99368;
    color: #c99368;
}

.nav-cta-btn.secondary:hover {
    background: #c99368;
    color: #fff;
}

/* The actual Dark coffee bean BG matching the screenshot vibe */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: url('https://images.unsplash.com/photo-1497935586351-b67a49e012bf?auto=format&fit=crop&w=1920&q=80') center center/cover no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.4) 60%, rgba(10, 10, 10, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    animation: slideUpFade 1s ease-out forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.15rem;
    color: #e0dcd9;
    line-height: 1.6;
    margin: 0 0 45px 0;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c99368;
    color: #fff;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #b07e56;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 4px;
    border: 2px solid #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #fff;
    color: #111;
}

/* New Content Page Styles (About/Blog) */
.hero-section.small-hero {
    height: 40vh;
    /* Shorter for content pages */
}

.page-content {
    padding: 60px 10%;
    background-color: #fdfcfb;
    color: #333;
}

/* About Us Layout */
.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #623428;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Blog Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-info {
    padding: 25px;
}

.blog-info .date {
    font-size: 0.8rem;
    color: #c99368;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-info h3 {
    margin: 10px 0;
    color: #623428;
    font-size: 1.4rem;
}

.blog-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    color: #c99368;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .home-nav {
        padding: 20px;
    }

    .home-nav-links {
        display: none;
    }

    /* Mobile hide */
}

/* Learn More Section Styles */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: 0.3s transform;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: #c99368;
    margin-bottom: 20px;
}

/* --- FLOATING CART BUTTON --- */
.floating-cart-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: #c99368;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 30px rgba(201, 147, 104, 0.4);
    cursor: pointer;
    z-index: 900;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.floating-cart-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background: #b07e56;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #1e130c;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #f7f3f0;
}

/* --- CHECKOUT SUMMARY MODAL --- */
.summary-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 19, 12, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.summary-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.summary-modal {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.summary-modal-overlay.active .summary-modal {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3.5rem;
    color: #c99368;
    margin-bottom: 25px;
}

.summary-modal h2 {
    font-size: 2rem;
    color: #1e130c;
    margin-bottom: 15px;
}

.summary-details {
    background: #fdfbf9;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    color: #8d7b70;
}

.summary-row strong {
    color: #1e130c;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary-modal {
    flex: 1;
    background: #f7f3f0;
    color: #8d7b70;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary-modal {
    flex: 1.5;
    background: #c99368;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
}

/* --- TOAST NOTIFICATION --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    pointer-events: none;
}

.toast {
    background: #1e130c;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: toastFadeIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), toastFadeOut 0.3s 2.7s forwards;
}

.toast i {
    color: #c99368;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* --- PROFILE PAGE STYLES --- */
.profile-main-panel {
    background-color: #f7f3f0;
    padding: 30px 48px;
    color: #1e130c;
    overflow-y: auto;
    width: 100%;
}

.profile-header {
    background: #fff;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}

.profile-user-card {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 32px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-info h1 {
    margin: 0;
    font-size: 2.2rem;
    color: #1e130c;
}

.profile-info p {
    margin: 5px 0 0;
    color: #8d7b70;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stats-card {
    background: #fff;
    padding: 30px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.stats-card i {
    font-size: 1.8rem;
    color: #c99368;
    margin-bottom: 5px;
}

.stats-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e130c;
}

.stats-card .stat-label {
    font-size: 0.9rem;
    color: #8d7b70;
    font-weight: 600;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.content-box {
    background: #fff;
    border-radius: 32px;
    padding: 35px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}

.content-box h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: #1e130c;
    border-bottom: 1px solid #f0e9e4;
    padding-bottom: 15px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #5d4037;
    font-size: 0.9rem;
}

.profile-form input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0dcd9;
    border-radius: 12px;
    font-size: 1rem;
    background: #fdfcfb;
    outline: none;
    transition: 0.3s;
}

.profile-form input:focus {
    border-color: #c99368;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 147, 104, 0.1);
}

.btn-save {
    background: #c99368;
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-save:hover {
    background: #b07e56;
    transform: translateY(-2px);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    text-align: left;
    padding: 15px;
    font-size: 0.85rem;
    color: #8d7b70;
    border-bottom: 1px solid #f0e9e4;
    font-weight: 800;
}

.history-table td {
    padding: 18px 15px;
    font-size: 0.95rem;
    color: #1e130c;
    border-bottom: 1px solid #fbf9f7;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.completed {
    background: #e3f2fd;
    color: #1976d2;
}

