/* Orders Page Styles */
:root {
    --primary-yellow: #FFD700;
    --secondary-yellow: #FFC107;
    --dark-yellow: #FFA000;
    --light-yellow: #FFF9C4;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
    --gray-border: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.orders-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

/* Orders Header */
.orders-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.orders-header h1 {
    font-size: 32px;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    gap: 15px;
}

.orders-header h1 i {
    color: var(--dark-yellow);
}

.orders-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--light-bg);
    border-radius: 25px;
    font-weight: 500;
    font-size: 15px;
}

.stat-item i {
    color: var(--dark-yellow);
}

.stat-item span:last-child {
    font-weight: 600;
    color: var(--dark-bg);
}

/* Orders Filters */
.orders-filters {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--light-bg);
    border: 2px solid var(--gray-border);
    border-radius: 25px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: var(--primary-yellow);
    background: var(--light-yellow);
}

.filter-btn.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark-bg);
    font-weight: 600;
}

.sort-dropdown {
    margin-left: auto;
}

.sort-dropdown select {
    padding: 10px 15px;
    border: 2px solid var(--gray-border);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    min-width: 150px;
}

.sort-dropdown select:focus {
    border-color: var(--primary-yellow);
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Order Card */
.order-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-border);
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Order Header */
.order-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f2f5 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.order-id {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-bg);
}

.order-date-time {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.order-day {
    color: var(--dark-yellow);
    font-weight: 500;
    font-size: 14px;
}

.order-status {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.pending {
    background: #FFF3CD;
    color: #856404;
}

.order-status.processing {
    background: #D1ECF1;
    color: #0C5460;
}

.order-status.shipped {
    background: #D4EDDA;
    color: #155724;
}

.order-status.delivered {
    background: #27ae60;
    color: white;
}

.order-status.cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.order-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-yellow);
}

/* Order Items Section */
.order-items-section {
    padding: 25px 30px;
    border-top: 1px solid var(--gray-border);
}

.order-items-section h4 {
    font-size: 16px;
    color: var(--dark-bg);
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-items-section h4 i {
    color: var(--dark-yellow);
}

.items-scroll-container {
    overflow-x: auto;
    padding-bottom: 15px;
}

.items-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.items-scroll-container::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}

.items-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 3px;
}

.items-list {
    display: flex;
    gap: 20px;
    min-width: min-content;
}

.item-card {
    flex: 0 0 auto;
    width: 150px;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-border);
}

.item-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    padding: 10px;
}

.item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-bg);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.item-quantity {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.item-price {
    font-weight: 600;
    color: var(--dark-yellow);
}

/* Order Footer */
.order-footer {
    padding: 20px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border-top: 1px solid var(--gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.address-info {
    flex: 1;
    min-width: 300px;
}

.address-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.address-header i {
    color: var(--dark-yellow);
    font-size: 18px;
}

.address-header h4 {
    font-size: 16px;
    color: var(--dark-bg);
    font-weight: 600;
}

.address-details {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.address-details p {
    margin-bottom: 5px;
}

.order-actions {
    display: flex;
    gap: 15px;
}

.btn-view-details, .btn-track-order, .btn-reorder {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-view-details {
    background: var(--primary-yellow);
    color: var(--dark-bg);
}

.btn-track-order {
    background: var(--dark-yellow);
    color: white;
}

.btn-reorder {
    background: #27ae60;
    color: white;
}

.btn-view-details:hover, .btn-track-order:hover, .btn-reorder:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* No Orders State */
.no-orders {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.no-orders i {
    font-size: 80px;
    color: var(--dark-yellow);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-orders h3 {
    font-size: 24px;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.no-orders p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-shop-now {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-shop-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 168, 0, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    color: var(--dark-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--dark-bg);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .orders-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .orders-stats {
        width: 100%;
        justify-content: center;
    }
    
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .orders-container {
        padding: 20px 15px;
    }
    
    .orders-header {
        padding: 20px;
    }
    
    .orders-header h1 {
        font-size: 24px;
    }
    
    .orders-filters {
        padding: 15px 20px;
        justify-content: center;
    }
    
    .sort-dropdown {
        margin-left: 0;
        width: 100%;
    }
    
    .sort-dropdown select {
        width: 100%;
    }
    
    .order-header, .order-footer {
        padding: 20px;
    }
    
    .order-items-section {
        padding: 20px;
    }
    
    .address-info {
        min-width: 100%;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .btn-view-details, .btn-track-order, .btn-reorder {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .orders-stats {
        flex-direction: column;
        width: 100%;
    }
    
    .stat-item {
        width: 100%;
        justify-content: center;
    }
    
    .order-id {
        font-size: 16px;
    }
    
    .order-amount {
        font-size: 20px;
    }
    
    .item-card {
        width: 130px;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .modal-header, .modal-body {
        padding: 15px 20px;
    }
}

/* Orders Page - Mobile Responsive Styles */

/* Main Container */
.orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Order Cards */
.order-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.order-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.order-id {
    font-weight: 600;
    color: #333;
}

.order-date-time {
    display: flex;
    flex-direction: column;
}

.order-date {
    font-size: 14px;
    color: #666;
}

.order-day {
    font-size: 12px;
    color: #999;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
}

.order-status.pending { background: #fff3cd; color: #856404; }
.order-status.processing { background: #cce5ff; color: #004085; }
.order-status.delivered { background: #d4edda; color: #155724; }
.order-status.cancelled { background: #f8d7da; color: #721c24; }

.order-amount {
    font-weight: 700;
    color: #ffa000;
    font-size: 18px;
}

/* Order Items Section */
.order-items-section {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.order-items-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.items-scroll-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.item-info {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.item-name {
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-details {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.item-quantity {
    color: #999;
}

.item-price {
    font-weight: 600;
    color: #ffa000;
}

.item-card.no-items {
    justify-content: center;
    padding: 20px;
}

.no-items-content {
    text-align: center;
    color: #999;
}

.no-items-content i {
    font-size: 24px;
    margin-bottom: 5px;
    color: #ffd700;
}

/* Order Footer */
.order-footer {
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    background: #f8f9fa;
}

.address-info {
    min-width: 0;
}

.address-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.address-header h4 {
    font-size: 14px;
    margin: 0;
}

.address-details {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    word-wrap: break-word;
}

.address-details p {
    margin: 3px 0;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-view-details,
.btn-track-order,
.btn-reorder {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-view-details {
    background: #ffd700;
    color: #333;
}

.btn-track-order {
    background: #e0e0e0;
    color: #333;
}

.btn-reorder {
    background: #4CAF50;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Modal Responsive Grid */
.modal-order-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.modal-info-card {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 600;
    color: #333;
}

.info-value.payment-method {
    text-transform: uppercase;
}

.info-value.payment-status {
    text-transform: capitalize;
}

.info-value.payment-status.paid { color: #27ae60; }
.info-value.payment-status.pending { color: #e74c3c; }

.modal-section-title {
    margin: 20px 0 15px 0;
    font-size: 16px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 8px;
}

.modal-items-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    gap: 15px;
}

.modal-item:last-child {
    border-bottom: none;
}

.modal-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.modal-item-details {
    flex: 1;
    min-width: 0;
}

.modal-item-name {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-item-category {
    font-size: 12px;
    color: #666;
}

.modal-item-price {
    text-align: right;
    flex-shrink: 0;
}

.modal-item-price-detail {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.modal-item-total {
    font-weight: 600;
    color: #ffa000;
}

.modal-totals {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.total-row.grand-total {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #ffd700;
}

.grand-total span:last-child {
    color: #ffa000;
}

.modal-address {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.modal-address h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.modal-status-history {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.modal-status-history h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
}

.status-timeline {
    padding-left: 20px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
}

.timeline-dot {
    color: #ffd700;
    font-size: 8px;
    margin-top: 5px;
}

.timeline-content {
    flex: 1;
}

.timeline-message {
    font-weight: 500;
    margin-bottom: 2px;
}

.timeline-time {
    font-size: 11px;
    color: #666;
}

.no-history,
.no-items-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* No Orders */
.no-orders {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-orders i {
    font-size: 64px;
    color: #ffd700;
    margin-bottom: 20px;
}

.no-orders h3 {
    margin-bottom: 10px;
    color: #333;
}

.no-orders p {
    color: #666;
    margin-bottom: 25px;
}

.btn-shop-now {
    display: inline-block;
    padding: 12px 30px;
    background: #ffd700;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-shop-now:hover {
    background: #ffc800;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 200px;
    max-width: 300px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1002;
}

.toast.success { background: #4CAF50; }
.toast.error { background: #f44336; }
.toast.info { background: #2196F3; }
.toast.warning { background: #FF9800; }

.toast i {
    font-size: 18px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .order-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .order-id {
        font-size: 14px;
    }
    
    .order-date-time {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    .order-status {
        width: fit-content;
    }
    
    .order-amount {
        font-size: 16px;
    }
    
    .order-footer {
        grid-template-columns: 1fr;
    }
    
    .order-actions {
        justify-content: flex-start;
    }
    
    .items-scroll-container {
        max-height: 250px;
    }
    
    .item-card {
        flex-direction: column;
        text-align: center;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .item-details {
        justify-content: center;
    }
    
    .modal-order-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .modal-item {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-item-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .modal-item-price {
        text-align: center;
        width: 100%;
    }
    
    .order-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-view-details,
    .btn-track-order,
    .btn-reorder {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .orders-container {
        padding: 10px;
    }
    
    .order-header {
        padding: 12px;
    }
    
    .order-date-time {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .items-scroll-container {
        max-height: 200px;
    }
    
    .modal-order-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 0;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}
/* Horizontal Scroll for Items */
.items-horizontal-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #f0f0f0;
}

.items-horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.items-horizontal-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.items-horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 3px;
}

.items-horizontal-list {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 5px;
    min-width: min-content;
}

.item-card-horizontal {
    flex: 0 0 auto;
    width: 180px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.item-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.item-image-horizontal {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.item-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info-horizontal {
    padding: 12px;
}

.item-name-horizontal {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-details-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.item-quantity-horizontal {
    color: #666;
    background: #e0e0e0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.item-price-horizontal {
    font-weight: 600;
    color: #ffa000;
}

.item-card-horizontal.no-items-horizontal {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.no-items-content-horizontal {
    text-align: center;
    color: #999;
    padding: 20px;
}

.no-items-content-horizontal i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #ffd700;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .item-card-horizontal {
        width: 150px;
    }
    
    .item-image-horizontal {
        height: 120px;
    }
    
    .item-info-horizontal {
        padding: 10px;
    }
    
    .item-name-horizontal {
        font-size: 13px;
    }
    
    .item-details-horizontal {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .item-card-horizontal {
        width: 130px;
    }
    
    .item-image-horizontal {
        height: 100px;
    }
    
    .item-info-horizontal {
        padding: 8px;
    }
    
    .item-name-horizontal {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .item-quantity-horizontal {
        padding: 2px 6px;
        font-size: 10px;
    }
    
    .item-price-horizontal {
        font-size: 12px;
    }
}

/* Missing-item claims */
.btn-report-claim {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.btn-report-claim small { font-weight: 500; opacity: 0.85; }
.btn-report-claim:hover { background: #ffe0b2; }
.claim-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}
.claim-status-badge.claim-pending { background: #fff8e1; color: #f57f17; }
.claim-status-badge.claim-approved { background: #e8f5e9; color: #2e7d32; }
.claim-status-badge.claim-rejected { background: #ffebee; color: #c62828; }
.claim-modal-content { max-width: 560px; width: 94%; }
.claim-intro { color: #555; line-height: 1.5; margin-bottom: 14px; }
.claim-items-list { display: flex; flex-direction: column; gap: 10px; max-height: 45vh; overflow-y: auto; }
.claim-item-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}
.claim-item-check { display: flex; gap: 10px; align-items: flex-start; flex: 1; cursor: pointer; }
.claim-item-check strong { display: block; font-size: 14px; }
.claim-item-check small { color: #777; }
.claim-qty-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 90px; }
.claim-qty-wrap label { font-size: 11px; color: #666; }
.claim-qty { width: 100%; padding: 6px 8px; border: 1px solid #ddd; border-radius: 6px; }
.claim-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 8px;
    padding: 12px 14px;
    background: #fff8e1;
    border-radius: 8px;
    font-size: 15px;
}
.claim-note { font-size: 13px; color: #666; margin-bottom: 14px; }
.btn-submit-claim {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    background: var(--primary-yellow, #FFD700);
    color: #222;
    font-weight: 700;
    cursor: pointer;
}
.btn-submit-claim:disabled { opacity: 0.6; cursor: not-allowed; }
#claimModal.active { display: flex; }
