/* Order History Specific Styles */
.order-history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1.5rem;
}

.page-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.order-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.peso-symbol {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--primary);
}

.amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-section {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.orders-header {
    background: linear-gradient(90deg, #222 20%, #e63946 80%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.orders-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, #fff 0%, #ffe082 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.filter-select option {
    background: #222;
    color: white;
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 224, 130, 0.5);
    box-shadow: 0 0 10px rgba(255, 224, 130, 0.3);
}

.orders-content {
    padding: 0;
}

.order-card {
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.order-card:last-child {
    border-bottom: none;
}

.order-card:hover {
    background: rgba(230, 57, 70, 0.02);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.order-info h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.order-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.order-status.confirmed {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.order-status.delivered {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.order-details {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.order-items {
    background: rgba(248, 249, 250, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.order-items h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.items-list {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.order-payment, .order-shipping {
    background: rgba(248, 249, 250, 0.3);
    padding: 1rem;
    border-radius: 8px;
}

.order-payment h4, .order-shipping h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.payment-confirmed {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.payment-pending {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.order-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* .order-actions and .btn-corporate styles moved to inline CSS in order-history.html to avoid conflicts */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* .back-to-profile styles moved to inline CSS (.back-split .back-main) in order-history.html to avoid conflicts */

.shop-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 48px;
    box-sizing: border-box;
}

.shop-button:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* Styles for elements that had inline style attributes */
.user-dropdown-hidden {
    display: none;
}

.cart-dropdown-hidden {
    display: none;
}

/* Return and Cancel Modal Styles - moved to inline CSS in order-history.html to avoid conflicts */
.return-items-list {
    max-height: 300px;
    overflow-y: auto;
}

.return-item-checkbox {
    margin-bottom: 0.75rem;
}

.return-item-info {
    flex: 1;
}

.return-item-info strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.return-item-info small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.return-image-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: var(--input-bg);
    transition: all 0.3s ease;
}

.return-image-upload:hover {
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.05);
}

.return-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.return-image-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.return-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.return-image-item .remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.return-image-item .remove-image:hover {
    background: #c82333;
}

.cancellation-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cancellation-notice h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.cancellation-notice ul {
    margin: 0;
    padding-left: 1.5rem;
}

.cancellation-notice li {
    margin-bottom: 0.25rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .order-history-container {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .order-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .orders-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filter-controls {
        justify-content: center;
    }

    .order-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .order-card {
        padding: 1.5rem;
    }

    /* .order-actions, .return-type-options, .return-option responsive styles moved to inline CSS in order-history.html */

    .return-image-upload {
        padding: 1.5rem;
    }
}
