:root {
    --font-family-prf: "Be Vietnam Pro", sans-serif;
    --background-color: #f5f5f5;
    --prf-surface: #ffffff;
    --prf-text: #0f172a;
    --prf-muted: #64748b;
    --prf-border: rgba(15, 23, 42, 0.10);
    --prf-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
    --prf-radius: 16px;
}

/* Text positions */
.prf-h1,
.prf-h2,
.prf-h3,
.prf-usercard__name,
.prf-ord__id,
.prf-addr__title,
.prf-toast__title {
    font-family: var(--font-family-prf);
}

.prf-muted,
.prf-usercard__sub,
.prf-badge,
.prf-chip,
.prf-tag,
.prf-ord__meta,
.prf-od__k,
.prf-toast__desc {
    font-family: var(--font-family-prf);
}

.prf-btn,
.prf-linkbtn,
.prf-menu__item,
.prf-seg__btn,
.prf-nav__item,
.prf-hub__item,
.prf-iconbtn {
    font-family: var(--font-family-prf);
}

/* Form typography */
.prf-label,
.prf-field,
.prf-input input,
.prf-input__toggle,
.prf-radio__item,
.prf-checkbox {
    font-family: var(--font-family-prf);
}

body {
    color: var(--prf-text);
}

img {
    width: 100%;
    height: auto;
}

.container-prf {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0px 10px;
}

.section-account-management,
.section-checkout {
    padding: 30px 0;
}

.prf-page {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
    align-items: start;
}

.prf-sidebar {
    position: sticky;
    top: 110px;
    background: var(--prf-surface);
    border: 1px solid var(--prf-border);
    border-radius: var(--prf-radius);
    box-shadow: var(--prf-shadow);
    overflow: hidden;
}

.prf-usercard {
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, rgba(41, 87, 156, 0.10), rgba(255, 211, 51, 0.14));
    border-bottom: 1px solid var(--prf-border);
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    align-items: center;
    position: relative;
}

.prf-usercard__avatar {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 22px;
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid rgba(41, 87, 156, 0.22);
}

    .prf-usercard__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.prf-usercard__avatar-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease;
    opacity: 0.4;
}

    .prf-usercard__avatar-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(2, 6, 23, 0.12);
    }

.prf-usercard__name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.prf-usercard__sub {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--prf-border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--prf-muted);
    font-weight: 600;
    font-size: 13px;
}

.prf-badge--brand {
    border-color: rgba(41, 87, 156, 0.25);
    color: var(--primary-color);
}

.prf-nav {
    padding: 10px;
}

.prf-nav__divider {
    height: 1px;
    background: var(--prf-border);
    margin: 10px 6px;
}

.prf-nav__item {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    padding: 12px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--prf-text);
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

    .prf-nav__item:hover {
        background: rgba(41, 87, 156, 0.06);
        transform: translateY(-1px);
    }

    .prf-nav__item.is-active {
        background: rgba(41, 87, 156, 0.10);
        border-color: rgba(41, 87, 156, 0.18);
    }

.prf-nav__item--danger {
    color: #b91c1c;
}

.prf-nav__icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.05);
    color: var(--primary-color);
    flex: 0 0 auto;
}

.prf-nav__item--danger .prf-nav__icon {
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
}

.prf-nav__text {
    font-weight: 600;
    font-family: var(--font-family-prf);
}

.prf-main {
    min-width: 0;
}

.prf-header {
    background: var(--prf-surface);
    border: 1px solid var(--prf-border);
    border-radius: var(--prf-radius);
    box-shadow: var(--prf-shadow);
    padding: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.prf-h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.prf-h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.prf-h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.prf-muted {
    margin-top: 6px;
    color: var(--prf-muted);
    font-weight: 400;
    line-height: 1.5;
}

.prf-header__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.prf-content {
    display: grid;
    gap: 18px;
}

.prf-panel {
    display: none;
}

    .prf-panel.is-active {
        display: block;
    }

.prf-card {
    background: var(--prf-surface);
    border: 1px solid var(--prf-border);
    border-radius: var(--prf-radius);
    box-shadow: var(--prf-shadow);
    padding: 18px;
}

.prf-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--prf-border);
    margin-bottom: 14px;
}

.prf-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid rgba(255, 211, 51, 0.38);
    background: rgba(255, 211, 51, 0.20);
    color: #7a5a00;
    white-space: nowrap;
}

.prf-btn {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.prf-btn--primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(41, 87, 156, 0.22);
}

.prf-btn--secondary {
    background: rgba(41, 87, 156, 0.08);
    color: var(--primary-color);
    border-color: rgba(41, 87, 156, 0.12);
}

.prf-btn--ghost {
    background: rgba(15, 23, 42, 0.04);
    color: var(--prf-text);
    border-color: rgba(15, 23, 42, 0.08);
}

.prf-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(2, 6, 23, 0.10);
}

.prf-form {
    width: 100%;
}

.prf-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.prf-field--span2 {
    grid-column: span 2;
}

.prf-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0b1220;
}

.prf-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    padding: 10px 12px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    position: relative;
}

.prf-input__toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--prf-muted);
    cursor: pointer;
    border-radius: 12px;
}

    .prf-input__toggle:hover {
        background: rgba(41, 87, 156, 0.08);
        color: var(--primary-color);
    }

.prf-input:focus-within {
    border-color: rgba(41, 87, 156, 0.45);
    box-shadow: 0 0 0 4px rgba(41, 87, 156, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.prf-input__icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 87, 156, 0.10);
    color: var(--primary-color);
    flex: 0 0 auto;
}

.prf-input input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-weight: 500;
    color: var(--prf-text);
}

    .prf-input input[type="password"] {
        padding-right: 48px;
    }

    /* khi toggle sang text vẫn giữ padding (nếu input có nút eye) */
    .prf-input input[data-prf-pwd="1"] {
        padding-right: 48px;
    }

.prf-input select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--prf-text);
    font-size: var(--font-size);
    font-weight: 500;
    font-family: var(--font-family-prf);
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0 42px 0 0; /* chừa chỗ mũi tên */
    line-height: 1.2;
    cursor: pointer;
    /* custom arrow */
    background-image: linear-gradient(45deg, transparent 50%, var(--prf-muted) 50%), linear-gradient(135deg, var(--prf-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

    .prf-input select:disabled {
        cursor: not-allowed;
        opacity: 0.7;
    }

    .prf-input select option {
        color: var(--prf-text);
        font-family: var(--font-family-prf);
    }

    .prf-input select,
    .prf-input select:focus,
    .prf-input select:active {
        font-family: var(--font-family-prf) !important;
        font-size: var(--font-size);
        font-weight: 500;
        font: inherit; /* đảm bảo bỏ font mặc định của control */
    }

.prf-radio {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.prf-radio__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.03);
    cursor: pointer;
    font-weight: 800;
    user-select: none;
}

    .prf-radio__item input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.prf-radio__dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(41, 87, 156, 0.55);
    display: inline-block;
    position: relative;
}

.prf-radio__item input:checked + .prf-radio__dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: var(--primary-color);
}

.prf-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.03);
    cursor: pointer;
    font-weight: 800;
    user-select: none;
}

    .prf-checkbox input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.prf-checkbox__box {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid rgba(41, 87, 156, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prf-checkbox input:checked + .prf-checkbox__box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

    .prf-checkbox input:checked + .prf-checkbox__box::after {
        content: "✓";
        color: #fff;
        font-size: 12px;
        font-weight: 900;
    }

.prf-form__actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.prf-seg {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.prf-seg__btn {
    border: 1px solid transparent;
    background: transparent;
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    color: var(--prf-muted);
}

    .prf-seg__btn.is-active {
        background: rgba(41, 87, 156, 0.12);
        color: var(--primary-color);
        border-color: rgba(41, 87, 156, 0.18);
    }

/* Account hub */
.prf-hub {
    display: grid;
    gap: 12px;
}

.prf-hub__item {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.02);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    grid-template-columns: 46px 1fr 26px;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

    .prf-hub__item:hover {
        background: rgba(41, 87, 156, 0.06);
        border-color: rgba(41, 87, 156, 0.16);
    }

.prf-hub__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 87, 156, 0.10);
    color: var(--primary-color);
}

.prf-hub__title {
    display: block;
    font-weight: 800;
    font-family: var(--font-family-prf);
}

.prf-hub__desc {
    display: block;
    margin-top: 4px;
    color: var(--prf-muted);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    font-family: var(--font-family-prf);
}

.prf-hub__chev {
    color: var(--prf-muted);
}

/* Orders cards */
.prf-orders {
    display: grid;
    gap: 12px;
    max-height: 80vh;
    overflow: auto;
}

.prf-ord {
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 12px;
}

.prf-ord__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.prf-ord__id {
    font-weight: 800;
}

.prf-ord__meta {
    margin-bottom: 6px;
}

    .prf-ord__meta,
    .prf-ord__meta span {
        margin-top: 6px;
        color: var(--prf-muted);
        font-weight: 500;
        font-size: 13px;
        font-family: var(--font-family-prf);
    }

.prf-ord__money {
    font-weight: 700;
    text-align: right;
    font-family: var(--font-family-prf);
}

.prf-ord__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.prf-ord__mini {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.prf-ord__bottom .prf-btn {
    font-weight: 600;
    font-size: 14px;
}

/* Extend status */
.prf-status--cancelled {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.10);
    border-color: rgba(220, 38, 38, 0.22);
}

/* Order detail: products */
.prf-od__products {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
}

.prf-od__p {
    display: grid;
    grid-template-columns: 56px 1fr 90px;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.85);
    align-items: center;
}

    .prf-od__p:last-child {
        border-bottom: none;
    }

.prf-od__pimg {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #e2e8f0;
}

    .prf-od__pimg a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .prf-od__pimg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.prf-od__pname a {
    font-weight: 700;
    line-height: 1.25;
    font-family: var(--font-family-prf);
    color: var(--prf-text);
    text-decoration: none;
}

.prf-od__pqty {
    margin-top: 4px;
    color: var(--prf-muted);
    font-weight: 500;
    font-size: 13px;
    font-family: var(--font-family-prf);
}

.prf-od__pprice {
    text-align: right;
    font-weight: 700;
    font-family: var(--font-family-prf);
}

.prf-od__addr {
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.03);
    border-radius: 14px;
    padding: 12px;
    line-height: 1.5;
    font-family: var(--font-family-prf);
}

.prf-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 600;
    font-size: 13px;
    width: fit-content;
    border: 1px solid;
    font-family: var(--font-family-prf);
}

.prf-ord__paystatus .prf-status {
    background: none;
    border: none;
    padding: 0;
}

    .prf-ord__paystatus .prf-status.prf-status--processing {
        color: #eab308;
    }

.prf-status--processing {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.10);
    border-color: rgba(124, 58, 237, 0.22);
    font-family: var(--font-family-prf);
}

.prf-status--shipping {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.10);
    border-color: rgba(14, 165, 233, 0.22);
}

.prf-status--done {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.10);
    border-color: rgba(22, 163, 74, 0.22);
}

.prf-mini-actions {
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
}

.prf-iconbtn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.03);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--prf-text);
    transition: transform .15s ease, background .15s ease;
}

    .prf-iconbtn:hover {
        transform: translateY(-1px);
        background: rgba(41, 87, 156, 0.08);
    }

.prf-addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.prf-addr {
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.prf-addr__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.prf-addr__title {
    font-weight: 700;
}

.prf-addr__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.prf-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--prf-muted);
    font-weight: 500;
    font-size: 14px;
}

.prf-tag--default {
    background: rgba(255, 211, 51, 0.18);
    border-color: rgba(255, 211, 51, 0.32);
    color: #7a5a00;
}

.prf-addr__line {
    color: var(--prf-text);
    line-height: 1.55;
    font-weight: 500;
    font-family: var(--font-family-prf);
}

.prf-addr__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.prf-u-hidden {
    display: none !important;
}

.prf-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999;
}

    .prf-modal.is-open {
        display: block;
    }

.prf-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(6px);
}

.prf-modal__dialog {
    position: relative;
    width: min(720px, calc(100% - 24px));
    margin: 6vh auto;
    background: var(--prf-surface);
    border: 1px solid var(--prf-border);
    border-radius: 18px;
    box-shadow: var(--prf-shadow);
    padding: 16px;
}

.prf-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--prf-border);
    margin-bottom: 12px;
}

.prf-toast {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 40;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.prf-toast__item {
    pointer-events: none;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 14px;
    border-radius: 14px;
    min-width: 240px;
    max-width: 360px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
    display: grid;
    gap: 4px;
}

.prf-toast__title {
    font-weight: 900;
    font-size: 14px;
}

.prf-toast__desc {
    color: rgba(255, 255, 255, 0.80);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.45;
}

/* Settings menu */
.prf-usercard__settings {
    position: absolute;
    top: 12px;
    right: 12px;
}

.prf-iconbtn--setting {
    background: rgba(255, 255, 255, 0.85);
}

.prf-menu {
    position: absolute;
    right: 0;
    top: 46px;
    width: 220px;
    background: var(--prf-surface);
    border: 1px solid var(--prf-border);
    border-radius: 14px;
    box-shadow: var(--prf-shadow);
    padding: 6px;
    display: none;
    z-index: 5;
}

    .prf-menu.is-open {
        display: block;
    }

.prf-menu__item {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    font-weight: 700;
    color: var(--prf-text);
}

    .prf-menu__item:hover {
        background: rgba(41, 87, 156, 0.08);
    }

.prf-menu__item--danger {
    color: #b91c1c;
}

.prf-menu__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.05);
    color: var(--primary-color);
}

.prf-menu__item--danger .prf-menu__icon {
    background: rgba(185, 28, 28, 0.10);
    color: #b91c1c;
}

/* Link button */
.prf-linkbtn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

    .prf-linkbtn:hover {
        text-decoration: underline;
    }

.prf-form__actions--between {
    justify-content: space-between;
    align-items: center;
}

.prf-form__actions--center {
    justify-content: center;
    align-items: center;
}

/* Order detail content */
.prf-od {
    display: grid;
    gap: 12px;
    max-height: 70vh;
    overflow: auto;
}

.prf-od__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.prf-od__item {
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.03);
    border-radius: 14px;
    padding: 12px;
}

.prf-od__k {
    color: var(--prf-muted);
    font-weight: 700;
    font-size: 13px;
}

.prf-od__v {
    margin-top: 6px;
    font-weight: 750;
}

.prf-od__list {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    font-family: var(--font-family-prf);
}

.prf-od__row {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-family-prf);
}

    .prf-od__row:last-child {
        border-bottom: none;
    }

    .prf-od__row strong {
        font-weight: 700;
        font-family: var(--font-family-prf);
    }

.prf-od__money {
    text-align: right;
    font-weight: 700;
    font-family: var(--font-family-prf);
}

.prf-od__panel[hidden] {
    display: none !important;
}

.prf-od__addr-title {
    font-family: var(--font-family-prf);
    font-weight: 700;
    margin-bottom: 6px;
}

.prf-od__addr-name, .prf-od__addr-name strong {
    font-family: var(--font-family-prf);
}

.prf-od__addr-addr-text {
    color: var(--prf-muted);
    font-weight: 500;
    margin-top: 4px;
    font-family: var(--font-family-prf);
}

.google-login-btn {
    height: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.12);
    text-decoration: none;
    color: #555;
    font-family: var(--font-family-prf);
    font-weight: 500;
}

    .google-login-btn img {
        width: 30px;
        padding-right: 10px;
    }

.prf-form__action-button {
    width: 100%;
    text-align: center;
}

    .prf-form__action-button .register,
    .prf-form__action-button .lost-password {
        font-size: 16px;
        font-family: var(--font-family-prf);
        text-decoration: none;
    }

    .prf-form__action-button .register {
        color: var(--primary-color);
        font-weight: 500;
        margin-right: 10px;
    }

    .prf-form__action-button .lost-password {
        color: var(--secondary-color);
        font-weight: 500;
    }

.error-message-summary {
    margin-bottom: 10px;
    color: #dc2626;
    font-family: var(--font-family-prf);
    font-weight: 400;
    font-size: 16px;
}

#message-register-success {
    margin-bottom: 10px;
    color: #16a34a;
    font-family: var(--font-family-prf);
    font-weight: 400;
    font-size: 16px;
}

#message-register-error {
    margin-bottom: 10px;
    color: #dc2626;
    font-family: var(--font-family-prf);
    font-weight: 400;
    font-size: 16px;
}

.invalid-feedback {
    font-family: var(--font-family-prf);
    margin-top: 5px;
    font-size: 14px;
    color: #dc2626;
    font-style: italic;
}

.is-invalid {
    border: 1px solid #dc2626 !important;
}

.is-valid {
    border: 1px solid #16a34a !important;
}

@media (max-width: 1024px) {
    .prf-page {
        grid-template-columns: 320px 1fr;
    }

    .prf-table__row {
        grid-template-columns: 130px 130px 150px 1fr 150px;
    }

    .prf-addresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .prf-page {
        grid-template-columns: 1fr;
    }

    .prf-sidebar {
        position: relative;
        top: auto;
    }

    .prf-header {
        flex-direction: column;
        align-items: stretch;
    }

    .prf-header__actions {
        justify-content: flex-start;
    }

    /* NAV SLIDER (no overflow scroll) */
    .prf-nav {
        padding: 10px 10px;
        border-top: 1px solid var(--prf-border);
        position: relative;
        overflow: hidden;
        /* không lộ scrollbar, không scroll */
        touch-action: pan-y;
        /* cho phép vuốt ngang, vẫn scroll dọc */
        user-select: none;
        --prf-nav-x: 0px;
    }

    .prf-nav__track {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: 10px;
        transform: translateX(var(--prf-nav-x));
        transition: transform .22s ease;
        will-change: transform;
    }

    .prf-nav.is-dragging .prf-nav__track {
        transition: none;
        cursor: grabbing;
    }

    .prf-nav__item {
        width: auto;
        flex: 0 0 auto;
        padding: 10px 12px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.75);
        transform: none;
    }

    .prf-nav__text {
        white-space: nowrap;
    }

    /* track translate */
    .prf-nav {
        --prf-nav-x: 0px;
    }

    .prf-nav__track {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: 10px;
        transform: translateX(var(--prf-nav-x));
        transition: transform .25s ease;
        will-change: transform;
    }
}

@media (max-width: 520px) {

    .prf-usercard {
        grid-template-columns: 72px 1fr;
    }

    .prf-usercard__avatar {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .prf-form__grid {
        grid-template-columns: 1fr;
    }

    .prf-field--span2 {
        grid-column: auto;
    }

    .prf-mini-actions {
        justify-content: flex-start;
    }

    .prf-card__head {
        flex-direction: column;
        align-items: flex-start;
    }


    .prf-table__cell--right {
        text-align: left;
    }

    .prf-od__p {
        grid-template-columns: 56px 1fr;
    }

    .prf-od__pprice {
        grid-column: 1 / -1;
        text-align: left;
        padding-left: 68px;
    }

    .prf-ord__meta span {
        display: none;
    }

    .prf-status {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .prf-seg__btn {
        font-weight: 700;
        font-size: 14px;
    }
}


/* =========================================================
   CHECKOUT (reuse profile tokens, add minimal new classes)
   ========================================================= */

.section-checkout {
    padding: 30px 0;
}

.ck-page {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
    align-items: start;
}

.ck-addr-sum__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ck-pay {
    display: grid;
    gap: 10px;
}

.ck-pay__item {
    display: block;
}

    .ck-pay__item input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.ck-pay__card {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .ck-pay__card:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 28px rgba(2, 6, 23, 0.10);
        border-color: rgba(41, 87, 156, 0.18);
    }

.ck-pay__logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 87, 156, 0.10);
    color: var(--primary-color);
    font-weight: 900;
}

ck-pay__logo img {
    width: 24px;
    height: 24px;
}

.ck-pay__name {
    display: block;
    font-weight: 800;
    font-family: var(--font-family-prf);
}

.ck-pay__desc {
    display: block;
    margin-top: 4px;
    color: var(--prf-muted);
    font-weight: 500;
    font-size: 13px;
    font-family: var(--font-family-prf);
}

.ck-pay__item input:checked + .ck-pay__card {
    background: rgba(41, 87, 156, 0.08);
    border: 2px solid rgba(41, 87, 156, 1);
}

.ck-note {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.03);
    color: var(--prf-muted);
    line-height: 1.5;
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-family-prf);
}

.ck-link {
    border: none;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    font-weight: 850;
    text-decoration: underline;
    font: inherit;
}

.ck-items {
    display: grid;
    gap: 12px;
}

.ck-item {
    display: grid;
    grid-template-columns: 76px 1fr 140px;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 12px;
}

.ck-item__img {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #e2e8f0;
}

    .ck-item__img a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .ck-item__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.ck-item__name {
    font-weight: 700;
    line-height: 1.25;
    font-family: var(--font-family-prf);
}

    .ck-item__name a {
        font-weight: 700;
        line-height: 1.25;
        font-family: var(--font-family-prf);
        text-decoration: none;
        color: var(--prf-text);
    }

        .ck-item__name a:hover {
            color: var(--primary-color);
        }

.ck-item__price {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.ck-item__old {
    color: var(--prf-muted);
    text-decoration: line-through;
    font-weight: 600;
    font-size: 13px;
    font-family: var(--font-family-prf);
}

.ck-item__new {
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-family-prf);
}

.ck-item__qty {
    margin-top: 8px;
    color: var(--prf-muted);
    font-weight: 400;
    font-size: 15px;
    font-family: var(--font-family-prf);
}

    .ck-item__qty span {
        font-weight: 600;
        font-family: var(--font-family-prf);
        color: var(--prf-text);
        padding-left: 10px;
    }

.ck-qty {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.03);
    border-radius: 999px;
    padding: 6px;
}

.ck-qty__btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-weight: 900;
    color: var(--prf-text);
}

.ck-qty__val {
    width: 44px;
    text-align: center;
    border: none;
    outline: none;
    background: transparent;
    font-weight: 900;
    color: var(--prf-text);
}

.ck-item__sum {
    text-align: right;
}

.ck-item__sumk {
    color: var(--prf-muted);
    font-weight: 600;
    font-size: 13px;
    font-family: var(--font-family-prf);
}

.ck-item__sumv {
    margin-top: 6px;
    font-weight: 700;
    font-family: var(--font-family-prf);
}

.ck-total {
    margin-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
    padding-top: 12px;
    font-family: var(--font-family-prf);
}

.ck-total__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.ck-total__k {
    color: var(--prf-muted);
    font-weight: 500;
    font-family: var(--font-family-prf);
}

.ck-total__v {
    font-weight: 600;
    font-family: var(--font-family-prf);
}

.ck-total__row--grand .ck-total__k {
    color: var(--prf-text);
    font-weight: 700;
    font-family: var(--font-family-prf);
}

.ck-total__row--grand .ck-total__v {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    font-family: var(--font-family-prf);
}

/* Address picker list inside modal */
.ck-addr-list {
    display: grid;
    gap: 10px;
}

.ck-addr-opt {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
}

    .ck-addr-opt:hover {
        border-color: rgba(41, 87, 156, 0.18);
        background: rgba(41, 87, 156, 0.06);
    }

.ck-addr-opt__title {
    font-weight: 900;
}

.ck-addr-opt__tags {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ck-addr-opt__line {
    margin-top: 10px;
    color: var(--prf-text);
    font-weight: 650;
    line-height: 1.55;
}

/* Policy */
.ck-policy__box {
    margin-top: 10px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.03);
    border-radius: 14px;
    padding: 12px;
    line-height: 1.6;
}

    .ck-policy__box ol {
        padding-left: 18px;
    }

    .ck-policy__box li {
        margin: 6px 0;
        color: var(--prf-text);
        font-weight: 550;
    }

/* Responsive */
@media (max-width: 1024px) {
    .ck-page {
        grid-template-columns: 1fr;
    }

    .ck-item {
        grid-template-columns: 76px 1fr;
    }

    .ck-item__sum {
        grid-column: 1 / -1;
        text-align: left;
        padding-left: 88px;
    }
}

/* =========================================================
   CHECKOUT - SEPAY (scoped)
   ========================================================= */
.checkout-sepay {
    padding: 18px 0 60px;
}

    .checkout-sepay .checkout-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        align-items: start;
    }

    .checkout-sepay .checkout-form-item {
        min-width: 0;
    }

    .checkout-sepay .checkout-page-style.box-info-bank {
        background: var(--prf-surface);
        border: 1px solid var(--prf-border);
        border-radius: var(--prf-radius);
        box-shadow: var(--prf-shadow);
        padding: 16px;
    }

    .checkout-sepay .title {
        margin: 0 0 12px;
        font-size: 16px;
        font-weight: 900;
        letter-spacing: -0.2px;
        color: var(--prf-text);
    }

    .checkout-sepay .box-img-qr {
        border: 1px solid rgba(15, 23, 42, 0.10);
        background: rgba(15, 23, 42, 0.03);
        border-radius: 16px;
        padding: 14px;
        display: grid;
        place-items: center;
        margin-bottom: 12px;
    }

        .checkout-sepay .box-img-qr img {
            width: min(340px, 100%);
            aspect-ratio: 1/1;
            object-fit: contain;
            display: block;
            border-radius: 14px;
            background: #fff;
            border: 1px solid rgba(15, 23, 42, 0.08);
        }

    .checkout-sepay .text-center {
        text-align: center;
    }

    .checkout-sepay .mb--20 {
        margin-bottom: 20px;
    }

    .checkout-sepay .btn-download-qr {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 14px;
        border: 1px solid rgba(41, 87, 156, 0.12);
        background: rgba(41, 87, 156, 0.08);
        color: var(--primary-color);
        font-weight: 850;
        text-decoration: none;
        transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    }

        .checkout-sepay .btn-download-qr:hover {
            transform: translateY(-1px);
            box-shadow: 0 16px 28px rgba(2, 6, 23, 0.10);
            background: rgba(41, 87, 156, 0.12);
        }

        .checkout-sepay .btn-download-qr svg {
            flex: 0 0 auto;
        }

    .checkout-sepay .form-group {
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid rgba(15, 23, 42, 0.10);
        background: rgba(255, 255, 255, 0.85);
        margin-bottom: 10px;
    }

    .checkout-sepay .name {
        margin: 0;
        color: var(--prf-muted);
        font-weight: 650;
        line-height: 1.45;
    }

    .checkout-sepay .name2 {
        color: var(--prf-text);
        font-weight: 900;
    }

    .checkout-sepay .message-error-payment {
        margin-top: 12px;
        padding: 12px;
        border-radius: 14px;
        border: 1px solid rgba(220, 38, 38, 0.22);
        background: rgba(220, 38, 38, 0.08);
        color: #b91c1c;
        font-weight: 700;
        line-height: 1.5;
    }

    .checkout-sepay .box-loading {
        margin-top: 14px;
        padding: 12px;
        border-radius: 14px;
        border: 1px solid rgba(15, 23, 42, 0.10);
        background: rgba(15, 23, 42, 0.03);
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .checkout-sepay .spinner {
        width: 18px;
        height: 18px;
        border-radius: 999px;
        border: 2px solid rgba(41, 87, 156, 0.22);
        border-top-color: var(--primary-color);
        animation: ck-sp 0.9s linear infinite;
    }

@keyframes ck-sp {
    to {
        transform: rotate(360deg);
    }
}

.checkout-sepay .text-loading {
    font-weight: 850;
    color: var(--prf-text);
}

.checkout-sepay .countdown-pay {
    margin-left: auto;
    font-weight: 900;
    color: var(--primary-color);
}

.checkout-sepay .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .checkout-sepay .checkout-form {
        grid-template-columns: 1fr;
    }

    .checkout-sepay .countdown-pay {
        margin-left: 0;
        width: 100%;
    }
}


/* LOGIN - REGISTER MODAL */
#ckLoginRegisterModal .prf-modal__dialog {
    width: min(400px, calc(100% - 24px));
}

.wp-form-register-or-login {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-family: var(--font-family-prf);
}

    .wp-form-register-or-login .btn-register-home {
        padding: 15px 20px;
        width: 100%;
    }

.wp-tab-register-login {
    display: flex;
    margin-bottom: 20px;
}

.wp-form-register-or-login .tab-show-form {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: #fff;
    width: 50%;
    cursor: pointer;
    padding: 5px;
    font-family: var(--font-family-prf);
}

    .wp-form-register-or-login .tab-show-form.active {
        color: #fff;
        background: var(--primary-color);
    }

    .wp-form-register-or-login .tab-show-form.tab-show-form-login {
        border-radius: 10px 0 0 10px;
    }

    .wp-form-register-or-login .tab-show-form.tab-show-form-register {
        border-radius: 0 10px 10px 0;
    }

.ck-note-login {
    color: var(--prf-text);
    margin-bottom: 10px;
    font-family: var(--font-family-prf);
    font-weight: 500;
}

/* ===================== Đánh giá sản phẩm (Chi tiết đơn hàng) ===================== */
.prf-od__review {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 0;
}

.prf-od__review:empty { display: none; }

.prf-od__review-btn {
    border: 1px solid #f59e0b;
    background: #fffbeb;
    color: #b45309;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.prf-od__review-btn:hover { background: #fef3c7; }

.prf-od__review-btn--edit {
    border-color: var(--prf-border);
    background: transparent;
    color: var(--prf-muted);
}

.prf-od__review-stars { color: #f59e0b; letter-spacing: 1px; font-size: 14px; }

.prf-od__review-status {
    font-size: 11.5px;
    border-radius: 999px;
    padding: 1px 8px;
    background: #f1f5f9;
    color: var(--prf-muted);
}

.prf-od__review-status--2 { background: #ecfdf5; color: #047857; }
.prf-od__review-status--3 { background: #fef2f2; color: #b91c1c; }

.prf-od__review-note { font-size: 12px; color: var(--prf-muted); }

/* Modal chấm sao nằm trên modal chi tiết đơn */
.prf-modal--review { z-index: 1001; }
.prf-review__dialog { width: min(520px, calc(100% - 24px)); }

.prf-review { padding: 16px 20px 4px; }

.prf-review__product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--prf-border);
    border-radius: 12px;
    margin-bottom: 16px;
}

.prf-review__product img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    flex: none;
}

.prf-review__pname { font-weight: 600; color: var(--prf-text); }
.prf-review__order { font-size: 12.5px; color: var(--prf-muted); }

.prf-review__label { font-weight: 600; font-size: 13.5px; margin: 6px 0; color: var(--prf-text); }
.prf-review__req { color: #dc2626; }

.prf-review__stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.prf-review__stars button {
    border: none;
    background: none;
    font-size: 32px;
    line-height: 1;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0 2px;
    transition: transform .1s, color .1s;
}

.prf-review__stars button.is-on,
.prf-review__stars button.is-hover { color: #f59e0b; }
.prf-review__stars button:hover { transform: scale(1.12); }

.prf-review__startext { margin-left: 8px; font-size: 13px; color: var(--prf-muted); }

.prf-review__content {
    width: 100%;
    border: 1px solid var(--prf-border);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
    outline: none;
}

.prf-review__content:focus { border-color: #f59e0b; }

.prf-review__hint { font-size: 12px; color: var(--prf-muted); margin: 8px 0 4px; line-height: 1.5; }

@media (max-width: 576px) {
    .prf-review { padding: 12px 14px 4px; }
    .prf-review__stars button { font-size: 28px; }
}
