/* ==========================================================================
   ORDERS PAGE STYLES (Women Accessories)
   File: public/assets/css/orders.css
   ========================================================================== */

/* Breadcrumb Bar (#f8f8f8) */
.orders-breadcrumb-bar {
    width: 100%;
    background-color: #f8f8f8;
    padding-top: clamp(1.4rem, 1.6vw, 2.0rem);
    padding-bottom: clamp(1.4rem, 1.6vw, 2.0rem);
    border-bottom: 1px solid #f0f0f0;
}

.orders-breadcrumb-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(2.4rem, 4.8vw, 7.8rem);
    padding-right: clamp(2.4rem, 4.8vw, 7.8rem);
}

.orders-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.95vw, 1.35rem);
    color: #595959;
    line-height: 1;
    margin: 0;
}

.orders-breadcrumb-link {
    color: #595959;
    text-decoration: none;
    transition: color 0.2s ease;
}

.orders-breadcrumb-link:hover {
    color: #111111;
    text-decoration: none;
}

.orders-breadcrumb-sep {
    color: #777777;
    margin: 0 0.2rem;
}

.orders-breadcrumb-badge {
    background-color: #ff97aa;
    color: #111111;
    font-weight: 500;
    font-size: clamp(1.15rem, 0.9vw, 1.25rem);
    padding: 0.45rem 1.4rem;
    border-radius: 5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.2rem 0.6rem rgba(255, 151, 170, 0.25);
}

/* ==========================================================================
   MAIN ORDERS SECTION
   ========================================================================== */

.orders-main-section {
    background-color: #ffffff;
    padding-top: clamp(3.6rem, 4.8vw, 6.4rem);
    padding-bottom: clamp(6.4rem, 8.8vw, 12.0rem);
    width: 100%;
    min-height: 60vh;
}

.orders-main-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(2.4rem, 4.8vw, 7.8rem);
    padding-right: clamp(2.4rem, 4.8vw, 7.8rem);
}

/* Orders Title */
.orders-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(3.2rem, 3.8vw, 4.8rem);
    font-weight: 500;
    color: #111111;
    margin: 0 0 clamp(2.8rem, 3.4vw, 4.4rem) 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   ORDER CARDS & GRID
   ========================================================================== */

.orders-grid {
    width: 100%;
}

.order-grid-col {
    display: flex;
}

.order-card {
    background-color: #f8f8f8;
    border-radius: 2.4rem;
    padding: clamp(2.4rem, 2.6vw, 3.6rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.06);
}

/* Header: Order ID, Date & Status */
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.6rem;
    margin-bottom: clamp(2.0rem, 2.4vw, 2.8rem);
}

.order-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.order-id {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.4rem, 1.1vw, 1.6rem);
    font-weight: 700;
    color: #111111;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.order-date {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.95vw, 1.35rem);
    color: #6b7280;
    font-weight: 400;
    line-height: 1.2;
}

/* Status Badges */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.25rem, 0.95vw, 1.4rem);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.order-status-badge .status-sparkle {
    font-size: 1.1em;
    line-height: 1;
}

.order-status-badge.status-delivered {
    color: #10b981;
}

.order-status-badge.status-shipped {
    color: #f59e0b;
}

.order-status-badge.status-processing {
    color: #3b82f6;
}

/* Body: Thumbnails & Meta Price */
.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.6rem;
    margin-bottom: clamp(2.4rem, 2.8vw, 3.6rem);
    padding-top: 0.4rem;
}

.order-thumbnails {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.order-thumb-wrap {
    width: clamp(5.0rem, 4.4vw, 5.8rem);
    height: clamp(5.0rem, 4.4vw, 5.8rem);
    border-radius: 1.2rem;
    background-color: #ffffff;
    border: 1px solid #ebebeb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    flex-shrink: 0;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.order-thumb-wrap:hover {
    transform: scale(1.05);
}

.order-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.order-meta-info {
    display: flex;
    align-items: flex-end;
    gap: clamp(1.8rem, 2.2vw, 3.2rem);
    margin-left: auto;
    flex-shrink: 0;
}

.order-meta-col {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.order-meta-label {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.15rem, 0.9vw, 1.25rem);
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.35rem;
    line-height: 1.1;
}

.order-meta-value {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.3rem, 1.0vw, 1.45rem);
    color: #111111;
    font-weight: 600;
    line-height: 1.1;
}

.order-meta-price {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.2rem, 1.9vw, 2.8rem);
    color: #111111;
    font-weight: 700;
    line-height: 1;
}

/* Footer: Delivery status note & VIEW DETAILS button */
.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.6rem;
    margin-top: auto;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.order-delivery-status {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.95vw, 1.35rem);
    color: #222222;
    font-weight: 400;
    line-height: 1.4;
    max-width: 65%;
}

.btn-order-view-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: #ff97aa;
    color: #000000;
    border: none;
    border-radius: 5rem;
    padding: 0.85rem 2.2rem;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.92vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 0.2rem 0.6rem rgba(255, 151, 170, 0.25);
}

.btn-order-view-details .btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 1.1em;
    line-height: 1;
}

.btn-order-view-details:hover {
    background-color: #ff8298;
    color: #000000;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 0.4rem 1.4rem rgba(255, 151, 170, 0.4);
}

.btn-order-view-details:hover .btn-arrow {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   ORDER DETAILS MODAL
   ========================================================================== */

.order-details-modal .modal-content {
    border-radius: 2.4rem;
    border: none;
    padding: clamp(2.4rem, 3.0vw, 3.6rem);
    background-color: #ffffff;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.15);
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.4rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid #eeeeee;
}

.order-modal-title {
    font-size: clamp(2.2rem, 2.2vw, 2.8rem);
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.order-modal-close {
    background: transparent;
    border: none;
    font-size: 2.4rem;
    line-height: 1;
    color: #71717a;
    cursor: pointer;
    transition: color 0.2s ease;
}

.order-modal-close:hover {
    color: #111111;
}

.order-modal-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.order-modal-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 2.4rem;
}

.order-modal-item-row {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.2rem;
    background-color: #f8f8f8;
    border-radius: 1.4rem;
}

.order-modal-item-img {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 1rem;
    background-color: #ffffff;
    padding: 0.4rem;
    object-fit: contain;
    flex-shrink: 0;
}

.order-modal-item-details {
    flex-grow: 1;
}

.order-modal-item-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 0.3rem;
}

.order-modal-item-meta {
    font-size: 1.25rem;
    color: #6b7280;
}

.order-modal-item-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111111;
}

.order-modal-summary-box {
    background-color: #f8f8f8;
    border-radius: 1.6rem;
    padding: 1.8rem;
    margin-bottom: 2.4rem;
}

.order-modal-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.35rem;
    color: #4b5563;
    margin-bottom: 0.8rem;
}

.order-modal-summary-row.total-row {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111111;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 991px) {
    .order-card-body {
        gap: 1.4rem;
    }

    .order-meta-info {
        gap: 1.6rem;
    }
}

@media (max-width: 767px) {
    .order-card-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .order-card-body {
        flex-direction: row;
        justify-content: space-between;
    }

    .order-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.6rem;
    }

    .order-delivery-status {
        max-width: 100%;
    }

    .btn-order-view-details {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .orders-main-container,
    .orders-breadcrumb-container {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }

    .order-card {
        padding: 2.0rem;
    }

    .order-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.6rem;
    }

    .order-meta-info {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .order-meta-col {
        text-align: left;
    }

    .order-meta-col:last-child {
        text-align: right;
    }
}

@media (max-width: 420px) {
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.0rem;
    }

    .order-meta-info {
        flex-direction: column;
        gap: 1.2rem;
    }

    .order-meta-col:last-child {
        text-align: left;
    }
}
/* In-transit orders: black, using the page's existing text colour (#111111) - same on Orders + Dashboard. */
.order-status-badge.status-intransit {
    color: #111111;
}
