/* Orders Page - Compact & Interactive Design */

.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Header */
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f0523;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: #4caf50;
}

.btn-checkout {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    color: white;
    text-decoration: none;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f0523;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: #4caf50;
}

.total-badge {
    background: #4caf50;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Item Cards */
.item-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #4caf50;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #4caf50;
}

.item-card:hover::before {
    transform: scaleY(1);
}

.cart-item {
    border-left: 4px solid #ffc107;
}

.order-item {
    border-left: 4px solid #4caf50;
}

/* Item Header */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.item-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f0523;
    margin: 0;
    line-height: 1.3;
}

.item-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.item-badge-subscription {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.item-badge-kit {
    background: rgba(31, 5, 35, 0.1);
    color: #1f0523;
}

.order-number {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.btn-remove {
    background: #ff4444;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-remove:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Item Info */
.item-info {
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
}

.info-label {
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.info-label i {
    width: 16px;
    color: #4caf50;
}

.info-value {
    color: #1f0523;
    font-weight: 600;
    text-align: right;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-confirmed,
.status-otp-verified {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.status-pending,
.status-otp-sent {
    background: rgba(255, 193, 7, 0.15);
    color: #f57c00;
}

.status-processing {
    background: rgba(33, 150, 243, 0.15);
    color: #1976d2;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.15);
    color: #d32f2f;
}

/* Item Footer */
.item-footer {
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4caf50;
}

/* Cart Summary */
.cart-summary {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    border: 2px solid #4caf50;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1rem;
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid #4caf50;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f0523;
}

.btn-checkout-full {
    width: 100%;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-checkout-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    color: white;
    text-decoration: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #1f0523;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 25px;
}

.btn-shop {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .item-card {
        padding: 14px;
    }
    
    .item-price {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 10px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card {
    animation: slideIn 0.3s ease;
}

.item-card:nth-child(1) { animation-delay: 0.05s; }
.item-card:nth-child(2) { animation-delay: 0.1s; }
.item-card:nth-child(3) { animation-delay: 0.15s; }
.item-card:nth-child(4) { animation-delay: 0.2s; }
