/* LUXURY THEME ORDERS PAGES */

.orders-container {
    margin-top: 40px;
    min-height: 80vh;
}



.section-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.section-title-sm {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Order Summary Card (Custom Request) */
.orders-container .order-summary-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: static;
    top: auto;
}

.orders-container .order-summary-card .summary-header {
    background: #fdfdfd;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: static;
    top: auto;
}

.order-summary-card .summary-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.order-summary-card .summary-body {
    padding: 25px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media(max-width: 991px) {
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 500px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-item .label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

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

.summary-item .value.order-no {
    color: var(--primary);
}

.summary-item .value.status-text {
    font-weight: 700;
}

.summary-item .value.time-muted {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 400;
}

/* Back Button Custom */
.btn-back-custom {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    color: #555;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.btn-back-custom:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    transform: translateX(-3px);
}

/* Stepper (Horizontal Timeline) */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
}

.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
}

.step-counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 1rem;
    transition: 0.3s;
}

.step-name {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

/* Active/Completed States */
.stepper-item.completed .step-counter {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}

.stepper-item.completed .step-name {
    color: #27ae60;
    font-weight: 600;
}

.stepper-item.active .step-counter {
    border-color: var(--accent);
    background: #fff;
    color: var(--accent);
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
}

.stepper-item.active .step-name {
    color: #333;
    font-weight: 700;
}

/* Products Modern */
.product-item-modern {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}

.product-item-modern:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.img-box {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

.info-box {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.p-name a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.2s;
}

.p-name a:hover {
    color: var(--accent);
}

.meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.meta-separator {
    margin: 0 5px;
    color: #ddd;
}

.price-box {
    text-align: right;
}

.current-price {
    font-weight: 700;
    color: #333;
    font-size: 1.05rem;
}

.unit-price {
    font-size: 0.75rem;
    color: #999;
}

.action-box .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
}

.action-box .btn-icon:hover {
    background: #333;
    color: #fff;
}

/* Refined Summary */
.refined-summary .summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #666;
    font-size: 0.95rem;
}

.refined-summary .val {
    font-weight: 500;
    color: #333;
}

.refined-summary .val.success {
    color: #27ae60;
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    color: #111;
}

.payment-method-badge {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    border: 1px solid #eee;
}

/* Address Modern */
.address-box-modern {
    display: flex;
    gap: 15px;
}

.address-box-modern .icon-side {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff8e1;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.address-box-modern .text-side {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

.address-box-modern .text-side strong {
    display: block;
    color: #333;
    margin-bottom: 4px;
}

/* Helpers */
.bg-danger-subtle-light {
    background: #fff5f5;
}

body .hover-underline:hover {
    text-decoration: underline;
}

@media(max-width: 768px) {
    .stepper-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding-left: 20px;
    }

    .stepper-wrapper::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 39px;
    }

    .stepper-item {
        flex-direction: row;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .step-counter {
        margin-bottom: 0;
    }

    .info-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .price-box {
        text-align: left;
        margin-top: 5px;
    }

    .product-item-modern {
        align-items: flex-start;
    }
}

/* Invoice Button */
.btn-invoice {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.btn-invoice:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Return Button */
.btn-return {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff8e1;
    border: 1px solid #f9a825;
    border-radius: 6px;
    color: #f57c00;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.btn-return:hover {
    background: #f9a825;
    color: #fff;
    border-color: #f9a825;
    box-shadow: 0 4px 10px rgba(249, 168, 37, 0.25);
}

/* Tracking Premium Box */
.tracking-premium-box {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.tracking-premium-box:hover {
    border-color: #e0e0e0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.tracking-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tracking-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.tracking-company {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.tracking-code {
    font-family: 'Courier New', Courier, monospace;
    background: #fdfdfd;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #eee;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Help Box Hover */
.orders-container .help-box:hover {
    background: #fdfdfd;
    border-color: #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.orders-container .help-box:hover .arrow {
    color: var(--primary);
    transform: translateX(3px);
}

.help-box .arrow {
    transition: 0.2s;
}

/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Responsive Grid */
@media (max-width: 991px) {
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
}