/* ===== Orders Pages Styles ===== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
    padding: 30px 0;
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb span {
    color: #D4AF37;
    font-size: 13px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: #D4AF37;
}

.page-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.confirmed {
    background: #e8f5e9;
    color: #27ae60;
}

.status-badge.processing {
    background: #fff3e0;
    color: #f39c12;
}

.status-badge.shipped {
    background: #e3f2fd;
    color: #2196f3;
}

.status-badge.delivered {
    background: #e8f5e9;
    color: #27ae60;
}

.status-badge.cancelled {
    background: #ffebee;
    color: #e74c3c;
}

/* Orders Main */
.orders-main {
    padding: 0 0 60px;
    min-height: 60vh;
}

/* Filters */
.orders-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: #e42b26;
    color: #e42b26;
}

.filter-tab.active {
    background: linear-gradient(135deg, #e42b26 0%, #ff6b35 100%);
    border-color: transparent;
    color: white;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
}

.filter-search i {
    color: #999;
}

.filter-search input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 200px;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
}

.order-id-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.order-id h3 {
    font-size: 16px;
    color: #2c1810;
    margin-bottom: 3px;
}

.order-id p {
    font-size: 13px;
    color: #888;
}

.order-status-price {
    text-align: right;
}

.order-price {
    font-size: 20px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 5px;
}

.order-body {
    padding: 20px 25px;
}

.order-items-preview {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.item-preview {
    flex-shrink: 0;
    width: 60px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-count {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.order-date {
    font-size: 13px;
    color: #888;
}

.order-date i {
    margin-right: 5px;
    color: #e42b26;
}

.btn-view-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e42b26 0%, #ff6b35 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-order:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(228, 43, 38, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.empty-icon i {
    font-size: 50px;
    color: #ddd;
}

.empty-state h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2c1810;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
    margin-bottom: 25px;
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #e42b26 0%, #ff6b35 100%);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(228, 43, 38, 0.3);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.loading-state i {
    font-size: 40px;
    color: #e42b26;
    margin-bottom: 15px;
}

/* ===== Order Detail Page ===== */

.order-detail-main {
    padding: 0 0 60px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.order-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.order-card h3 {
    font-size: 1.1rem;
    color: #2c1810;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.order-card h3 i {
    color: #e42b26;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-step {
    position: relative;
    padding-bottom: 25px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -25px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot i {
    font-size: 10px;
    color: white;
    display: none;
}

.timeline-step.completed .timeline-dot {
    background: #27ae60;
}

.timeline-step.completed .timeline-dot i {
    display: block;
}

.timeline-step.current .timeline-dot {
    background: #2196f3;
    box-shadow: 0 0 0 5px rgba(33, 150, 243, 0.2);
}

.timeline-content h4 {
    font-size: 14px;
    color: #2c1810;
    margin-bottom: 3px;
}

.timeline-content p {
    font-size: 12px;
    color: #888;
}

/* Order Items List */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-row {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.order-item-row img {
    width: 70px;
    height: 95px;
    object-fit: cover;
    border-radius: 8px;
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 14px;
    color: #2c1810;
    margin-bottom: 5px;
}

.order-item-info .author {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.order-item-info .qty-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item-info .qty {
    font-size: 12px;
    color: #666;
}

.order-item-info .price {
    font-weight: 700;
    color: #27ae60;
}

/* Summary */
.order-summary-section {
    position: sticky;
    top: 100px;
}

.address-info p {
    color: #555;
    line-height: 1.7;
}

.address-info .name {
    font-weight: 600;
    color: #2c1810;
    margin-bottom: 5px;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #666;
}

.payment-details h4 {
    font-size: 14px;
    color: #2c1810;
    margin-bottom: 3px;
}

.payment-details p {
    font-size: 12px;
    color: #888;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.summary-row.discount span:last-child {
    color: #27ae60;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #2c1810;
}

.summary-row.total span:last-child {
    color: #27ae60;
}

.summary-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 10px 0;
}

/* Order Actions */
.order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #e42b26;
    color: #e42b26;
}

.btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.btn-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.btn-help:hover {
    background: #f0f0f0;
}

/* Responsive */
@media (max-width: 992px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .order-summary-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .orders-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        justify-content: center;
    }

    .order-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .order-status-price {
        text-align: center;
    }

    .order-footer {
        flex-direction: column;
        gap: 15px;
    }
}