.order-variant-page {
    padding: 48px 0 120px;
}

.variant-header h1 {
    font-size: 28px;
    font-weight: 700;
}
.variant-header p {
    color: #6b7280;
    margin-top: 6px;
}

.variant-summary {
    display: flex;
    gap: 24px;
    margin: 24px 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.summary-item .label {
    font-size: 12px;
    color: #6b7280;
}
.color-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.color-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}
.card h3 {
    margin-bottom: 16px;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
}
.size-table th,
.size-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
.qty-input {
    width: 70px;
    padding: 6px;
}

.checkbox,
.radio {
    display: block;
    margin-bottom: 12px;
}
.checkbox small,
.radio small {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 6px;
}

.total-bar {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 16px;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}
.grand-total {
    font-size: 16px;
}
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .size-card {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 12px;
        background: #fff;
    }

    .size-card .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .size-card .row.bottom {
        margin-top: 8px;
    }

    .size-card input.qty-input {
        width: 80px;
        padding: 6px;
        font-size: 14px;
    }

    .total-bar {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        padding: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 10;
    }
}

/* ===============================
   MOBILE UX FINAL POLISH
================================ */

@media (max-width: 768px) {

    body {
        background: #f9fafb;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* HEADER */
    .variant-header h1 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .variant-header p {
        font-size: 14px;
        color: #6b7280;
    }

    /* CARD BASE */
    .mobile-card,
    .card {
        background: #ffffff;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 14px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }

    /* SUMMARY */
    .variant-summary {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .summary-item {
        flex: 1;
        font-size: 13px;
    }

    .summary-item .label {
        color: #6b7280;
        display: block;
        margin-bottom: 2px;
    }

    .summary-item strong {
        font-size: 14px;
    }

    .color-info {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .color-info img {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 1px solid #e5e7eb;
    }

    /* SIZE CARD */
    .size-card {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px;
        background: #fff;
    }

    .size-card .row.top {
        font-size: 14px;
        font-weight: 600;
    }

    .size-card .extra {
        font-size: 13px;
        color: #6b7280;
    }

    .size-card .row.bottom {
        margin-top: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .size-card input.qty-input {
        width: 72px;
        padding: 6px;
        font-size: 14px;
        text-align: center;
    }

    .size-card .subtotal {
        font-weight: 600;
        font-size: 14px;
    }

    /* CHECKBOX & RADIO */
    label.checkbox,
    label.radio {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* INFO ROW */
    .info-row {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        margin-top: 6px;
    }

    /* TOTAL BAR */
    .total-bar {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        padding: 12px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 20;
    }

    .total-bar small {
        font-size: 12px;
        color: #6b7280;
    }

    .grand-total {
        font-size: 14px;
        font-weight: 600;
    }

    .grand-total strong {
        font-size: 16px;
    }

    .total-bar .btn-primary {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 10px;
        white-space: nowrap;
    }
}
.size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.size-row {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.size-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.size-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-control input {
    width: 70px;
    padding: 6px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .size-grid {
        grid-template-columns: 1fr;
    }

    .total-bar {
        flex-direction: column;
        gap: 12px;
    }

    .total-bar button {
        width: 100%;
    }
}
