/* Customer Display Styles */
.customer-display-container {
    max-width: 1440px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

/* Header */
.customer-display-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    z-index: 10;
}

.display-header-content {
    flex: 1;
}

.display-store-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 25px;
}

.display-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 5px 0 0 0;
    font-weight: 500;
}

.display-logo {
    max-width: 80px;
    max-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Content Area */
.customer-display-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* Important for flex child to allow scrolling */
}

/* Cart Items */
.display-cart-items {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.display-empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-cart-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
}

.display-empty-cart h4 {
    font-size: 1.5rem;
    color: #666;
    margin: 20px 0 10px 0;
}

.display-empty-cart p {
    font-size: 1rem;
    color: #999;
}

.display-cart-list {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.display-cart-table-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* Custom Scrollbar */
.display-cart-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.display-cart-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.display-cart-table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.display-cart-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

.display-cart-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.display-cart-table th {
    padding: 15px;
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
}

.display-cart-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.display-cart-table tbody tr:hover {
    background-color: #f8f9fa;
}

.display-cart-table td {
    padding: 10px;
    color: #333;
    font-size: 1.1rem;
}

.item-name-col {
    width: 50%;
}

.qty-col {
    width: 15%;
    text-align: center;
}

.price-col {
    width: 20%;
    text-align: right;
}

.total-col {
    width: 15%;
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

.display-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.display-item-code {
    font-size: 0.85rem;
    color: #999;
}

.display-item-badge {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    background: #e7f3ff;
    color: #0066cc;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Summary Section */
.display-summary-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
}
.summary-row.summary-total {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.summary-total {
    border-top: 2px solid #e9ecef;
    border-bottom: none;
    padding: 16px;
}

.summary-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.summary-total .summary-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.summary-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.summary-total .summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

/* Footer */
.customer-display-footer {
    background: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e9ecef;
}
/* Responsive Design */
@media (max-width: 768px) {
    .customer-display-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .display-store-name {
        font-size: 1.5rem;
    }

    .customer-display-content {
        padding: 20px;
    }

    .display-cart-items {
        padding: 20px;
    }

    .display-summary-section {
        padding: 15px 20px;
    }

    .customer-display-footer {
        padding: 15px 20px;
    }

    .display-cart-table th,
    .display-cart-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .item-name-col {
        width: 40%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.display-cart-table tbody tr {
    animation: fadeIn 0.3s ease-in;
}
