
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 1rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    height: 50px;
}

.slogan {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 5px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-right: 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
}

.user-actions a {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
}

.login-btn {
    background-color: #e50914;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.hero {
    background-image: url('https://images.unsplash.com/photo-1587620962725-abab7fe55159?q=80&w=2231&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
}

.about {
    padding: 2rem;
    background-color: #fff;
}

.content-wrapper {
    display: flex;
    padding: 2rem;
}

.categories {
    width: 20%;
    margin-right: 2rem;
}

.best-selling {
    width: 80%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .categories,
    .best-selling {
        width: 100%;
    }
}
/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
    flex-grow: 1;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e50914;
    margin: 0.5rem 0;
}

.add-to-cart-btn {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background-color: #d40813;
}

.add-to-cart-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
}

.cart-icon {
    background-color: #e50914;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #fff;
    color: #e50914;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid #e50914;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.cart-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f8f8;
}

.cart-header h3 {
    margin: 0;
    color: #333;
}

.close-cart {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.close-cart:hover {
    color: #e50914;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 400px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #333;
}

.cart-item-price {
    color: #e50914;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
}

.remove-item {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-item:hover {
    background-color: #d40813;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background-color: #f8f8f8;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

.checkout-btn {
    width: 100%;
    background-color: #e50914;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #d40813;
}

.checkout-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 90vh;
    }
    
    .floating-cart {
        bottom: 15px;
        right: 15px;
    }
    
    .cart-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}
/* Authentication Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu span {
    color: #fff;
    font-size: 0.9rem;
}

.user-menu a {
    color: #fff;
    text-decoration: none;
    background-color: #e50914;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.user-menu a:hover {
    background-color: #d40813;
}

/* Authentication Modals */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.auth-modal-content {
    background-color: #fff;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideIn 0.3s ease-out;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: none;
    background-color: transparent;
    border-radius: 12px 12px 0 0;
}

.auth-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.close-auth {
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-auth:hover {
    background-color: #f5f5f5;
    color: #e50914;
    transform: rotate(90deg);
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.auth-form {
    padding: 1rem 2rem 2rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
    background-color: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: #e50914;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-group input:invalid {
    border-color: #ff6b6b;
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #e50914 0%, #d40813 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #d40813 0%, #c20712 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.4);
}

.auth-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-links {
    text-align: center;
}

.auth-links a {
    color: #e50914;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 6px;
}

.auth-links a:hover {
    color: #d40813;
    background-color: rgba(229, 9, 20, 0.05);
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #f44336;
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    animation: slideInRight 0.3s ease-out;
    font-weight: 500;
    border-left: 4px solid #2e7d32;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Authentication */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        max-width: 350px;
    }
    
    .auth-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .auth-form {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
}

@media (max-width: 480px) {
    .auth-modal-content {
        width: 90%;
        max-width: 320px;
    }
    
    .auth-header {
        padding: 1rem;
    }
    
    .auth-header h3 {
        font-size: 1.2rem;
    }
    
    .auth-form {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input {
        padding: 0.875rem;
    }
}

/* Stock Information Styles */
.stock-info {
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.85rem;
}

.total-stock {
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.location-stock {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-location {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.out-of-stock {
    color: #dc3545;
    font-weight: bold;
    background: #f8d7da;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.out-of-stock-card {
    opacity: 0.7;
    position: relative;
}

.out-of-stock-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    pointer-events: none;
}

.add-to-cart-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.add-to-cart-btn.disabled:hover {
    background: #6c757d;
    transform: none;
}

/* Stock status indicators */
.stock-info .total-stock::before {
    content: '📦 ';
}

.out-of-stock::before {
    content: '⚠️ ';
}

/* Responsive stock display */
@media (max-width: 768px) {
    .location-stock {
        justify-content: center;
    }
    
    .stock-location {
        font-size: 0.7rem;
        padding: 1px 4px;
    }
}
/* Checkout Page Styles */
.checkout-main {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.checkout-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.checkout-header h1 {
    margin: 0 0 20px 0;
    color: #333;
}

.checkout-steps {
    display: flex;
    gap: 20px;
}

.step {
    padding: 10px 20px;
    background: #e9ecef;
    border-radius: 20px;
    font-weight: 500;
    color: #6c757d;
}

.step.active {
    background: #007bff;
    color: white;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

/* Order Summary */
.order-summary {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.order-summary h2 {
    margin: 0 0 20px 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.checkout-items {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.checkout-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.item-sku {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.item-price {
    font-size: 0.9rem;
    color: #007bff;
}

.item-total {
    font-weight: bold;
    color: #333;
}

.order-totals {
    border-top: 2px solid #eee;
    padding-top: 15px;
}

.order-totals > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-totals .total {
    font-weight: bold;
    font-size: 1.2rem;
    color: #007bff;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* Shipping Details Form */
.shipping-details {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shipping-details h2 {
    margin: 0 0 30px 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 1.1rem;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group input:required:invalid {
    border-color: #dc3545;
}

.form-group input:required:valid {
    border-color: #28a745;
}

/* Delivery Options */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.delivery-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.delivery-option input[type="radio"] {
    margin-right: 10px;
}

.delivery-option input[type="radio"]:checked + label {
    color: #007bff;
}

.delivery-option label {
    cursor: pointer;
    display: block;
    margin: 0;
}

.delivery-option label strong {
    display: block;
    margin-bottom: 5px;
}

.delivery-description {
    font-size: 0.9rem;
    color: #666;
}

/* Action Buttons */
.checkout-actions {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Order Confirmation Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.order-confirmation .confirmation-header {
    background: #28a745;
    color: white;
    padding: 20px 30px;
    border-radius: 10px 10px 0 0;
}

.order-confirmation .confirmation-header h2 {
    margin: 0;
}

.confirmation-body {
    padding: 30px;
}

.order-number {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.confirmation-message {
    margin-bottom: 20px;
}

.confirmation-message ul {
    margin: 10px 0;
    padding-left: 20px;
}

.confirmation-message li {
    margin-bottom: 5px;
}

.order-summary-confirmation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.confirmation-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #007bff;
    font-size: 1.2rem;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        order: 2;
    }
    
    .shipping-details {
        order: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
}
/* Orders Page Styles */
.orders-main {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

.orders-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.orders-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.orders-header h1 {
    margin: 0 0 10px 0;
    color: #333;
}

.orders-header p {
    margin: 0;
    color: #666;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.order-number {
    font-size: 1.2rem;
    color: #007bff;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.order-status.processing {
    background: #fff3cd;
    color: #856404;
}

.order-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.order-status.preparing {
    background: #cce5ff;
    color: #004085;
}

.order-status.shipped {
    background: #e2e3e5;
    color: #383d41;
}

.order-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.order-info > div {
    color: #666;
    font-size: 0.95rem;
}

.order-preview {
    margin-bottom: 20px;
}

.preview-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
}

.preview-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
}

.preview-item span:nth-child(2) {
    flex: 1;
    font-size: 0.9rem;
}

.preview-item span:nth-child(3) {
    font-weight: 500;
    color: #007bff;
}

.more-items {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 10px;
}

.order-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.no-orders {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.no-orders-content {
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-orders-content h3 {
    margin: 0 0 15px 0;
    color: #666;
}

.no-orders-content p {
    margin: 0 0 25px 0;
    color: #888;
}

/* Order Details Modal */
.order-details .order-details-header {
    background: #007bff;
    color: white;
    padding: 20px 30px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-details .order-details-header h2 {
    margin: 0;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
}

.close-modal:hover {
    opacity: 1;
}

.order-details-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.order-summary-section,
.customer-info-section,
.shipping-info-section,
.items-section,
.order-totals-section,
.notes-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.order-summary-section:last-child,
.notes-section:last-child {
    border-bottom: none;
}

.order-details-body h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
}

.info-item label {
    font-weight: 500;
    color: #666;
}

.info-item .status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.customer-details p,
.shipping-address p {
    margin: 5px 0;
}

.special-instructions {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-detail {
    display: grid;
    grid-template-columns: 60px 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.order-item-detail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.item-sku {
    font-size: 0.85rem;
    color: #666;
}

.item-quantity,
.item-price,
.item-total {
    text-align: right;
    font-weight: 500;
}

.item-total {
    color: #007bff;
}

.totals-breakdown {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.final-total {
    font-weight: bold;
    font-size: 1.1rem;
    color: #007bff;
    border-top: 2px solid #007bff;
    padding-top: 10px;
    margin-top: 10px;
}

/* Responsive Design for Orders */
@media (max-width: 768px) {
    .order-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .order-item-detail {
        grid-template-columns: 50px 1fr;
        gap: 10px;
    }
    
    .item-quantity,
    .item-price,
    .item-total {
        grid-column: 2;
        text-align: left;
        font-size: 0.9rem;
    }
}