/* ======================
   INVENTORY MANAGEMENT
   Comprehensive Spacing System
   ====================== */

/* Main Content Wrapper - Add padding to prevent edge touching */
.main-content {
    padding: 32px 40px;
    overflow-y: auto !important;
    max-height: 100vh;
    height: 100%;
}

/* Header Spacing */
.main-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-shop {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.btn-shop i {
    font-size: 16px;
}


/* Action Bar */
.inventory-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.search-wrapper {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    z-index: 1;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-wrapper input:focus {
    outline: none;
    border-color: rgba(184, 150, 12, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.action-buttons {
    display: flex;
    gap: 12px;
    position: relative;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(184, 150, 12, 0.3);
    transform: translateY(-2px);
}

.btn-action i {
    font-size: 16px;
}

.btn-filter {
    position: relative;
}

.dropdown-icon {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.btn-filter.active .dropdown-icon {
    transform: rotate(180deg);
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 12px;
    padding: 8px;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.filter-dropdown.show {
    display: block;
    animation: fadeSlideDown 0.3s ease;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.filter-option.active {
    background: rgba(184, 150, 12, 0.15);
    color: var(--gold);
    font-weight: 600;
}

.filter-option i {
    font-size: 14px;
    width: 20px;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: linear-gradient(135deg, #b8960c 0%, #d4af37 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 150, 12, 0.4);
}

/* ======================
   TAB NAVIGATION
   ====================== */

.tab-navigation {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -2px;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(184, 150, 12, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================
   LOW STOCK ALERTS
   ====================== */

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.stock-badge.low {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.stock-badge.critical {
    background: rgba(184, 150, 12, 0.15);
    color: #b8960c;
    border: 1px solid rgba(184, 150, 12, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-badge:hover {
    background: rgba(34, 197, 94, 0.25);
    transform: scale(1.1);
}

.shop-badge.inactive {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ======================
   UNIFIED ADD MODAL
   ====================== */

.add-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 8px 0;
}

@media (min-width: 768px) {
    .add-type-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.add-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.add-type-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(184, 150, 12, 0.5);
    transform: translateY(-4px);
}

.add-type-card i {
    font-size: 42px;
    color: var(--gold);
}

.add-type-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.add-type-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ======================
   TAB INFO BANNER
   ====================== */

.tab-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
}

.tab-info-banner i {
    color: #3b82f6;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tab-info-banner span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.tab-info-banner strong {
    color: #60a5fa;
    font-weight: 600;
}



/* Table Container */
.table-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 400px);
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.inventory-table thead {
    background: #1a1a1a;
    /* Solid dark background */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.inventory-table th {
    padding: 18px 24px;
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Column widths for proper spacing */
.inventory-table th:nth-child(1) {
    width: 25%;
    /* Item Name */
}

.inventory-table th:nth-child(2) {
    width: 20%;
    /* Category */
}

.inventory-table th:nth-child(3) {
    width: 15%;
    /* Quantity */
}

.inventory-table th:nth-child(4) {
    width: 15%;
    /* Price */
}

.inventory-table th:nth-child(5) {
    width: 18%;
    /* Total Value */
}

.inventory-table th.actions-col {
    width: 7%;
    text-align: center;
    min-width: 80px;
}

.inventory-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    position: relative;
}

.inventory-table tbody tr:hover {
    background: rgba(184, 150, 12, 0.05);
}

.inventory-table td {
    padding: 22px 24px;
    color: #fff;
    font-size: 14px;
    vertical-align: middle;
    word-wrap: break-word;
}

.inventory-table td:first-child {
    font-weight: 600;
}

.inventory-table .category-badge {
    display: inline-block;
    padding: 7px 14px;
    background: rgba(184, 150, 12, 0.15);
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 20px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.inventory-table .quantity {
    color: rgba(255, 255, 255, 0.8);
}

.inventory-table .price,
.inventory-table .total-value {
    font-family: 'Bebas Neue', monospace;
    font-size: 17px;
    color: var(--gold);
    letter-spacing: 0.5px;
}

/* 3-Dot Menu */
.actions-menu {
    position: relative;
    z-index: 1;
}

.menu-trigger {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 150px;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 8px;
    padding: 6px;
    display: none;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.menu-dropdown.show {
    display: block;
    animation: fadeSlideDown 0.2s ease;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.menu-item.delete:hover {
    background: rgba(184, 150, 12, 0.15);
    color: #ef4444;
}

.menu-item i {
    width: 16px;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state.show {
    display: flex;
}

.empty-state i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content.modal-medium {
    max-width: 480px;
}

.modal-content.modal-small {
    max-width: 420px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(85vh - 150px);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
}

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Modern Select Dropdown Styling */
.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
    padding: 14px;
    font-size: 14px;
}

.form-group select option:hover,
.form-group select option:focus,
.form-group select option:checked {
    background: linear-gradient(135deg, #b8960c 0%, #d4af37 100%);
    color: #000;
    font-weight: 600;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(184, 150, 12, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.custom-select {
    position: relative;
}

.custom-select select {
    appearance: none;
    padding-right: 42px;
}

.select-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* Make number inputs smaller */
.form-row input[type="number"] {
    max-width: 120px;
}

.error-msg {
    display: block;
    margin-top: 8px;
    color: #ef4444;
    font-size: 12px;
}

.total-display {
    background: rgba(184, 150, 12, 0.1);
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-top: 4px;
}

.total-display label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.total-value {
    font-family: 'Bebas Neue', monospace;
    font-size: 32px;
    color: var(--gold);
    margin-top: 4px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-secondary {
    padding: 11px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    padding: 11px 22px;
    background: linear-gradient(135deg, #b8960c 0%, #ef4444 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 150, 12, 0.4);
}

/* Category Settings */
.category-add {
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
}

.category-add input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
}

.category-add input:focus {
    outline: none;
    border-color: rgba(184, 150, 12, 0.5);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.category-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.category-remove {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.category-remove:hover {
    color: #ef4444;
}

/* Delete Warning */
.delete-warning {
    text-align: center;
    padding: 24px 0;
}

.delete-warning i {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 18px;
}

.delete-warning p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.delete-warning .warning-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.delete-warning strong {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        padding: 24px 28px;
    }

    .inventory-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        max-width: none;
    }

    .action-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
        margin-left: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .inventory-table {
        font-size: 13px;
    }

    .inventory-table th,
    .inventory-table td {
        padding: 14px 16px;
    }

    .modal-body {
        padding: 24px;
    }
}

/* ======================
   SHOP POS MODAL
   ====================== */

.shop-modal {
    z-index: 2000;
}

.shop-container {
    width: 95vw;
    height: 95vh;
    max-width: 1600px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(184, 150, 12, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-header-left i {
    font-size: 24px;
    color: #b8960c;
}

.shop-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.shop-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.products-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.products-header .search-wrapper {
    flex: 1;
    max-width: 400px;
}

.products-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(184, 150, 12, 0.1);
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 8px;
    color: #b8960c;
    font-size: 14px;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    overflow-y: auto;
    padding-right: 8px;
}

.products-grid::-webkit-scrollbar {
    width: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(184, 150, 12, 0.5);
    transform: translateY(-2px);
}

.product-card.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(184, 150, 12, 0.2), rgba(153, 27, 27, 0.2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.product-image i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.4);
}

.product-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #b8960c;
    margin-bottom: 8px;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.stock-badge-pos {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.stock-badge-pos.low {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.stock-badge-pos.critical {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.cart-panel {
    width: 420px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-cart {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-clear-cart:hover {
    background: rgba(239, 68, 68, 0.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 12px;
}

.cart-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.cart-item-remove {
    background: none;
    border: none;
    color: rgba(239, 68, 68, 0.8);
    cursor: pointer;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-display {
    min-width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #b8960c;
}

.cart-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.summary-value {
    font-weight: 600;
    color: #fff;
}

.summary-row.total .summary-value {
    color: #b8960c;
    font-size: 22px;
}

.customer-section {
    margin-bottom: 16px;
}

.customer-section label,
.payment-section label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.customer-section input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.payment-section {
    margin-bottom: 20px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.payment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.payment-btn.active {
    background: rgba(184, 150, 12, 0.15);
    border-color: #b8960c;
    color: #b8960c;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #b8960c 0%, #8a6f09 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(184, 150, 12, 0.4);
}

.btn-checkout:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

.receipt-modal .receipt-container {
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
}

.receipt-modal .receipt-header {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(184, 150, 12, 0.2);
}

.receipt-content {
    padding: 24px;
    color: #000;
}

.receipt-paper {
    font-family: 'Courier New', monospace;
    max-width: 300px;
    margin: 0 auto;
}

.receipt-header-content {
    text-align: center;
    border-bottom: 2px dashed #000;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.receipt-header-content h1 {
    margin: 0;
    font-size: 24px;
}

.receipt-number {
    text-align: center;
    font-weight: 700;
    margin-bottom: 16px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.receipt-total-row.grand-total {
    font-weight: 700;
    border-top: 2px solid #000;
    padding-top: 8px;
    margin-top: 8px;
}

.receipt-footer {
    text-align: center;
    border-top: 2px dashed #000;
    padding-top: 16px;
    margin-top: 16px;
}

.receipt-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
}

.receipt-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

@media print {
    body * {
        visibility: hidden;
    }

    .receipt-content,
    .receipt-content * {
        visibility: visible;
    }

    .receipt-actions {
        display: none;
    }
}

/* ======================
   TOAST NOTIFICATIONS
   ====================== */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 400px;
    background: linear-gradient(135deg, #2d1b1b 0%, #1a0f0f 100%);
    border: 1px solid rgba(184, 150, 12, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease-out;
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #b8960c;
}

.toast.success::before {
    background: #22c55e;
}

.toast.warning::before {
    background: #fbbf24;
}

.toast.info::before {
    background: #3b82f6;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.toast.warning .toast-icon {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.toast.error .toast-icon {
    background: rgba(184, 150, 12, 0.2);
    color: #b8960c;
}

.toast.success .toast-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.toast-content {
    flex: 1;
    color: #fff;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast.removing {
    animation: slideOut 0.3s ease-out forwards;
}