/* =========================================================
   AISEL GALLERY
   ORDERS PAGE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.orders-page {
    width: min(1100px, 94%);
    margin: 0 auto;
    padding: 50px 0 140px;
}


/* =========================================================
   HERO
========================================================= */

.orders-hero {
    position: relative;

    text-align: center;

    padding: 60px 20px;

    margin-bottom: 40px;

    overflow: hidden;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(232, 137, 169, .13),
            rgba(255, 255, 255, .75),
            rgba(201, 164, 92, .11),
            rgba(190, 190, 190, .08)
        );

    border:
        1px solid rgba(201, 164, 92, .22);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .05);
}

.orders-hero::before {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    top: -120px;
    right: -80px;

    border-radius: 50%;

    background:
        rgba(232, 137, 169, .12);

    filter: blur(8px);
}

.orders-hero::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    bottom: -100px;
    left: -60px;

    border-radius: 50%;

    background:
        rgba(201, 164, 92, .12);

    filter: blur(8px);
}

.orders-hero > * {
    position: relative;
    z-index: 1;
}

.orders-hero span {
    display: block;

    margin-bottom: 10px;

    color: var(--gold);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 4px;
}

.orders-hero h1 {
    margin: 0 0 10px;

    font-size:
        clamp(30px, 5vw, 48px);

    font-weight: 800;
}

.orders-hero p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================================
   SECTION
========================================================= */

.orders-section {
    width: 100%;
}

.orders-section-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.orders-section-header span {
    display: block;

    margin-bottom: 5px;

    color: var(--gold);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 3px;
}

.orders-section-header h2 {
    margin: 0;

    font-size: 24px;
}

.orders-section-header > strong {
    padding: 9px 16px;

    border-radius: 50px;

    background:
        rgba(232, 137, 169, .10);

    color: var(--pink);

    font-size: 11px;
}


/* =========================================================
   ORDERS CONTAINER
========================================================= */

.orders-container {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


/* =========================================================
   ORDER CARD
========================================================= */

.order-card {
    overflow: hidden;

    border-radius: 24px;

    background:
        rgba(255, 255, 255, .90);

    border:
        1px solid rgba(201, 164, 92, .17);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .055);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.order-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(232, 137, 169, .30);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .09);
}


/* =========================================================
   ORDER HEADER
========================================================= */

.order-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 20px 22px;

    border-bottom:
        1px solid rgba(190, 190, 190, .18);
}

.order-card-header > div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.order-card-header > div span {
    color:
        var(--text-secondary);

    font-size: 10px;
}

.order-card-header > div strong {
    color:
        var(--text);

    font-size: 13px;

    direction: ltr;
}


/* =========================================================
   STATUS
========================================================= */

.order-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 32px;

    padding: 0 13px;

    border-radius: 50px;

    background:
        rgba(201, 164, 92, .11);

    border:
        1px solid rgba(201, 164, 92, .20);

    color:
        var(--gold);

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   DATE
========================================================= */

.order-date {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 13px 22px;

    background:
        rgba(190, 190, 190, .035);

    font-size: 10px;
}

.order-date span {
    color:
        var(--text-secondary);
}

.order-date strong {
    color:
        var(--text);

    font-weight: 600;
}


/* =========================================================
   ITEMS
========================================================= */

.order-items {
    display: flex;

    flex-direction: column;

    padding: 5px 22px;
}


/* =========================================================
   ORDER ITEM
========================================================= */

.order-item {
    display: grid;

    grid-template-columns:
        65px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 14px;

    padding: 15px 0;

    border-bottom:
        1px solid rgba(190, 190, 190, .15);
}

.order-item:last-child {
    border-bottom: 0;
}


/* =========================================================
   ITEM IMAGE
========================================================= */

.order-item-image {
    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f9e9ef,
            #f3efe7
        );

    border:
        1px solid rgba(201, 164, 92, .13);
}

.order-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.order-item-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color:
        var(--gold);

    font-size: 24px;
}


/* =========================================================
   ITEM INFO
========================================================= */

.order-item-info {
    min-width: 0;
}

.order-item-info h3 {
    margin: 0 0 5px;

    overflow: hidden;

    color:
        var(--text);

    font-size: 13px;

    line-height: 1.7;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.order-item-info span {
    color:
        var(--text-secondary);

    font-size: 10px;
}

.order-item > strong {
    color:
        var(--gold);

    font-size: 12px;

    white-space: nowrap;
}


/* =========================================================
   ORDER FOOTER
========================================================= */

.order-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 18px 22px;

    background:
        linear-gradient(
            90deg,
            rgba(232, 137, 169, .06),
            rgba(201, 164, 92, .07)
        );

    border-top:
        1px solid rgba(201, 164, 92, .12);
}

.order-card-footer span {
    color:
        var(--text-secondary);

    font-size: 11px;
}

.order-card-footer strong {
    color:
        var(--gold);

    font-size: 17px;
}


/* =========================================================
   EMPTY ORDERS
========================================================= */

.orders-empty {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 360px;

    padding: 40px 25px;

    text-align: center;

    border-radius: 25px;

    background:
        rgba(255, 255, 255, .65);

    border:
        1px dashed rgba(201, 164, 92, .35);
}

.orders-empty-icon {
    width: 75px;
    height: 75px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(232, 137, 169, .11),
            rgba(201, 164, 92, .10)
        );

    color:
        var(--gold);

    font-size: 30px;
}

.orders-empty h2 {
    margin: 0 0 9px;

    font-size: 20px;
}

.orders-empty p {
    max-width: 400px;

    margin: 0 0 22px;

    color:
        var(--text-secondary);

    font-size: 12px;

    line-height: 1.9;
}


/* =========================================================
   SHOPPING BUTTON
========================================================= */

.orders-shopping-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 25px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--pink),
            var(--gold)
        );

    color: #fff;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 9px 24px rgba(232, 137, 169, .18);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.orders-shopping-button:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 13px 30px rgba(232, 137, 169, .25);
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .orders-hero {
    background:
        linear-gradient(
            135deg,
            rgba(232, 137, 169, .09),
            rgba(30, 30, 30, .75),
            rgba(201, 164, 92, .07)
        );
}

body.dark-mode .order-card {
    background:
        rgba(29, 29, 29, .96);

    border-color:
        rgba(201, 164, 92, .14);
}

body.dark-mode .order-date {
    background:
        rgba(255, 255, 255, .015);
}

body.dark-mode .order-item-image {
    background:
        linear-gradient(
            145deg,
            #242424,
            #30252a,
            #292722
        );
}

body.dark-mode .order-card-footer {
    background:
        linear-gradient(
            90deg,
            rgba(232, 137, 169, .055),
            rgba(201, 164, 92, .055)
        );
}

body.dark-mode .orders-empty {
    background:
        rgba(29, 29, 29, .70);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 700px) {

    .orders-page {
        width: 94%;

        padding-top: 30px;
        padding-bottom: 125px;
    }

    .orders-hero {
        padding: 45px 15px;

        border-radius: 22px;
    }

    .orders-hero h1 {
        font-size: 30px;
    }

    .orders-hero p {
        font-size: 12px;
    }

    .orders-section-header h2 {
        font-size: 20px;
    }

    .orders-section-header > strong {
        padding: 7px 11px;

        font-size: 9px;
    }

    .order-card {
        border-radius: 19px;
    }

    .order-card-header {
        padding: 16px;
    }

    .order-date {
        padding: 11px 16px;
    }

    .order-items {
        padding: 3px 16px;
    }

    .order-card-footer {
        padding: 15px 16px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .orders-page {
        width: 95%;
    }

    .orders-section-header {
        align-items: center;
    }

    .orders-section-header h2 {
        font-size: 18px;
    }

    .orders-section-header > strong {
        white-space: nowrap;
    }

    .order-card-header {
        align-items: flex-start;
    }

    .order-card-header > div strong {
        font-size: 11px;
    }

    .order-status {
        min-height: 28px;

        padding: 0 9px;

        font-size: 8px;
    }

    .order-date {
        display: block;

        line-height: 1.9;
    }

    .order-item {
        grid-template-columns:
            55px
            minmax(0, 1fr);

        gap: 10px;
    }

    .order-item-image {
        width: 55px;
        height: 55px;

        border-radius: 11px;
    }

    .order-item-info h3 {
        font-size: 11px;
    }

    .order-item-info span {
        font-size: 9px;
    }

    .order-item > strong {
        grid-column: 2;

        font-size: 10px;

        margin-top: -5px;
    }

    .order-card-footer strong {
        font-size: 14px;
    }

    .orders-empty {
        min-height: 300px;

        padding: 30px 18px;
    }

    .orders-empty h2 {
        font-size: 17px;
    }

}