﻿/* =========================
   ORDER PAGE
========================= */

#products {
    background: var(--mist);
    padding: 90px 0;
}

/* Main layout */
.order-layout-wrap {
    max-width: 1300px;
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Right summary */
.order-side-box {
    background: white;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid rgba(0,201,215,0.12);
    box-shadow: 0 8px 32px rgba(0,148,168,0.08);
    position: sticky;
    top: 100px;
}

/* Summary rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

    .summary-row.total {
        font-size: 1.1rem;
        font-weight: 700;
    }

/* Product qty */
.qty-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--aqua-light);
    color: var(--deep);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

    .qty-btn:hover {
        background: var(--aqua);
        color: white;
    }

.qty-num {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    #products {
        padding: 60px 0;
    }

    .order-layout-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 14px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 18px;
        margin-top: 28px;
    }

    .product-card {
        padding: 22px 14px 18px;
        border-radius: 22px;
    }

    .bottle-drop {
        transform: scale(.88);
    }

    .p-size {
        font-size: 1rem;
    }

    .p-name {
        font-size: .9rem;
    }

    .p-price {
        font-size: .95rem;
    }

    .qty-row {
        gap: 10px;
        margin-top: 14px;
    }

    .qty-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .qty-num {
        min-width: 24px;
        font-size: .95rem;
    }

    .order-side-box {
        position: static;
        top: auto;
        margin-top: 8px;
        padding: 22px;
        border-radius: 22px;
    }

    .summary-row {
        font-size: .95rem;
    }

        .summary-row.total {
            font-size: 1rem;
        }

    .order-side-box .form-submit {
        width: 100%;
        margin-top: 18px;
    }
}


/* Order History */

.order-history-wrap {
    max-width: 1100px;
    margin: 48px auto;
    display: grid;
    gap: 20px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 20px;
}

.history-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-header p {
    margin: 0;
    color: #666;
}


.order-history-filter {
    max-width: 520px;
    margin: 24px auto 40px;
}

.history-search-input {
    width: 100%;
    border: 1px solid rgba(0,201,215,.18);
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 1rem;
    outline: none;
    background: white;
}

    .history-search-input:focus {
        border-color: var(--aqua);
    }

.order-history-filter-row {
    max-width: 1100px;
    margin: 28px auto 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

    .order-history-filter-row label {
        font-size: .95rem;
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
    }

    .order-history-filter-row input {
        width: 100%;
    }

@media (max-width:768px) {

    .order-history-filter-row {
        grid-template-columns: 1fr;
    }
}