/* Trang bảng giá (page-price-list.php) */
.gec-price {
    --bg-primary: #1B5D6E;
    --bg-primary-dark: #123F4B;
    --bg-accent: #B69A67;
    --bg-accent-dark: #9C8253;
    --bg-text: #6D6E71;
    --bg-text-bold: #1D292D;
    --bg-soft: #F5F4F1;
    --bg-border: #E3E1DC;
    --bg-ease: cubic-bezier(.22, .61, .36, 1);
    padding: 40px 0 88px;
    color: var(--bg-text-bold);
}

.gec-price h1,
.gec-price h2 {
    color: var(--bg-text-bold);
}

.gec-price p {
    margin: 0;
}

/* ---------- Nút ---------- */
.bg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 24px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .25s var(--bg-ease), color .25s ease, border-color .25s ease, transform .25s var(--bg-ease);
}

.bg-btn svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.bg-btn:hover,
.bg-btn:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
}

.bg-btn:focus-visible {
    outline: 2px solid var(--bg-accent);
    outline-offset: 2px;
}

.bg-btn--primary {
    background: var(--bg-primary);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(27, 93, 110, .22);
}

.bg-btn--primary:hover,
.bg-btn--primary:focus-visible {
    background: var(--bg-accent);
    color: #FFFFFF;
}

.bg-btn--ghost {
    border-color: var(--bg-border);
    background: #FFFFFF;
    color: var(--bg-text-bold);
}

.bg-btn--ghost:hover,
.bg-btn--ghost:focus-visible {
    border-color: var(--bg-primary);
    color: var(--bg-primary);
}

.bg-btn--light {
    border-color: rgba(255, 255, 255, .35);
    background: transparent;
    color: #FFFFFF;
}

.bg-btn--light:hover,
.bg-btn--light:focus-visible {
    background: rgba(255, 255, 255, .12);
    color: #FFFFFF;
}

.bg-cta .bg-btn--primary {
    background: #FFFFFF;
    color: var(--bg-primary);
    box-shadow: none;
}

.bg-cta .bg-btn--primary:hover,
.bg-cta .bg-btn--primary:focus-visible {
    background: var(--bg-accent);
    color: #FFFFFF;
}

/* ---------- Mở đầu ---------- */
.bg-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding-bottom: 40px;
}

.bg-hero.has-image {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

/* Không có ảnh: giữ khối mở đầu gọn, không kéo giãn hết chiều ngang */
.bg-hero:not(.has-image) .bg-hero__main {
    max-width: 820px;
}

.bg-hero__badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(182, 154, 103, .15);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bg-accent-dark);
}

.bg-hero__title {
    margin: 14px 0 8px;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
}

.gec-price .bg-hero__sub {
    font-size: 17px;
    line-height: 1.6;
    color: var(--bg-text);
}

.bg-hero__note {
    margin-top: 20px;
    padding: 14px 16px;
    border-left: 3px solid var(--bg-primary);
    border-radius: 0 12px 12px 0;
    background: rgba(27, 93, 110, .06);
    font-size: 14px;
    line-height: 1.6;
    color: var(--bg-text-bold);
}

.bg-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 0;
}

.bg-stats div {
    flex: 1 1 110px;
    padding: 12px 14px;
    border: 1px solid var(--bg-border);
    border-radius: 14px;
    background: #FFFFFF;
    text-align: center;
}

.bg-stats dt {
    font-size: 22px;
    font-weight: 700;
    color: var(--bg-primary);
}

.bg-stats dd {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--bg-text);
}

.bg-hero .bg-actions {
    margin-top: 24px;
}

.bg-hero__image img {
    display: block;
    width: 100%;
    max-height: 420px;
    border-radius: 24px;
    object-fit: cover;
}

/* ---------- Thanh xem nhanh + tìm kiếm ---------- */
.bg-toolbar {
    position: sticky;
    top: 68px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 0 -16px 24px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-border);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
}

.bg-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bg-chips__label {
    margin-right: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bg-text);
}

.bg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--bg-border);
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    color: var(--bg-text-bold);
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.bg-chip svg {
    width: 16px;
    height: 16px;
}

.bg-chip:hover,
.bg-chip:focus-visible {
    border-color: var(--bg-primary);
    background: rgba(27, 93, 110, .06);
    color: var(--bg-primary);
    text-decoration: none;
}

.bg-search {
    position: relative;
    flex: 0 1 340px;
}

.bg-search svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--bg-text);
    transform: translateY(-50%);
    pointer-events: none;
}

.bg-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    color: var(--bg-text-bold);
}

.bg-search input:focus {
    outline: none;
    border-color: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(27, 93, 110, .15);
}

.gec-price .bg-empty-search {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px dashed var(--bg-border);
    border-radius: 14px;
    text-align: center;
    color: var(--bg-text);
}

/* ---------- Nhóm dịch vụ ---------- */
.bg-group {
    --bg-group-color: var(--bg-primary);
    --bg-group-soft: rgba(27, 93, 110, .07);
    margin-bottom: 32px;
    padding: 24px;
    border: 1px solid var(--bg-border);
    border-radius: 20px;
    background: #FFFFFF;
    scroll-margin-top: 150px;
}

.bg-group:nth-of-type(even) {
    --bg-group-color: var(--bg-accent-dark);
    --bg-group-soft: rgba(182, 154, 103, .12);
}

.bg-group__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.bg-group__icon {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-group-soft);
    color: var(--bg-group-color);
}

.bg-group__icon svg {
    width: 24px;
    height: 24px;
}

.bg-group__heading {
    flex: 1;
    min-width: 0;
}

.bg-group__heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--bg-group-color);
}

.gec-price .bg-group__heading p {
    margin-top: 2px;
    font-size: 13px;
    color: var(--bg-text);
}

.bg-group__link {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--bg-group-color);
    text-decoration: none;
}

.bg-group__link:hover {
    text-decoration: underline;
}

/* Danh mục (mở/đóng) */
.bg-cat {
    margin-top: 10px;
    border: 1px solid var(--bg-border);
    border-radius: 14px;
    background: #FFFFFF;
    overflow: hidden;
}

.bg-cat summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 48px 14px 18px;
    background: var(--bg-group-soft);
    font-size: 15px;
    font-weight: 600;
    color: var(--bg-text-bold);
    list-style: none;
    cursor: pointer;
}

.bg-cat summary::-webkit-details-marker {
    display: none;
}

.bg-cat summary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231D292D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: translateY(-50%);
    transition: transform .25s var(--bg-ease);
}

.bg-cat[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.bg-cat summary:focus-visible {
    outline: 2px solid var(--bg-primary);
    outline-offset: -2px;
}

.bg-cat__count {
    font-weight: 400;
    color: var(--bg-text);
}

/* Bảng */
.bg-table-wrap {
    overflow-x: auto;
}

.bg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.bg-table th {
    padding: 10px 14px;
    border-bottom: 1px solid var(--bg-border);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
    color: var(--bg-text);
    white-space: nowrap;
}

.bg-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #F0EEEA;
    line-height: 1.45;
    vertical-align: top;
}

.bg-table tbody tr:last-child td {
    border-bottom: 0;
}

.bg-table tbody tr:hover td {
    background: #FAF9F7;
}

.bg-col-no {
    width: 48px;
    color: var(--bg-text);
}

.bg-col-unit {
    width: 90px;
    color: var(--bg-text);
}

.bg-table .bg-col-price {
    width: 30%;
    font-weight: 700;
    text-align: right;
    color: var(--bg-primary);
}

.bg-table td.bg-col-price.is-text {
    font-weight: 500;
    font-style: italic;
    color: var(--bg-accent-dark);
}

.bg-table tr.is-hidden {
    display: none;
}

.bg-table mark {
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(182, 154, 103, .3);
    color: inherit;
}

.bg-group__toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.bg-group__toggle button {
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--bg-soft);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--bg-text-bold);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.bg-group__toggle button:hover,
.bg-group__toggle button:focus-visible {
    background: var(--bg-group-soft);
    color: var(--bg-group-color);
}

.bg-group.is-hidden,
.bg-cat.is-hidden {
    display: none;
}

/* ---------- Đang cập nhật ---------- */
.bg-updating {
    padding: 48px 24px;
    border: 1px dashed var(--bg-border);
    border-radius: 20px;
    background: var(--bg-soft);
    text-align: center;
}

.bg-updating h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.gec-price .bg-updating p {
    color: var(--bg-text);
}

/* ---------- Lưu ý ---------- */
.bg-notes {
    max-width: 760px;
    margin: 48px auto 0;
    padding: 28px;
    border: 1px solid var(--bg-border);
    border-radius: 20px;
    background: var(--bg-soft);
}

.bg-notes h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.bg-notes ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bg-notes li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    line-height: 1.55;
}

.bg-notes li::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%231B5D6E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Liên hệ cuối trang ---------- */
.bg-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin-top: 48px;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-primary-dark) 100%);
}

.bg-cta h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
}

.gec-price .bg-cta p {
    color: rgba(255, 255, 255, .8);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .bg-toolbar {
        top: 64px;
    }
}

@media (max-width: 991px) {
    .bg-hero.has-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .bg-hero__image {
        order: -1;
    }

    .bg-hero__image img {
        max-height: 280px;
    }

    .bg-search {
        flex: 1 1 100%;
    }
}

@media (max-width: 575px) {
    .gec-price {
        padding: 24px 0 64px;
    }

    .bg-hero__title {
        font-size: 28px;
    }

    .gec-price .bg-hero__sub {
        font-size: 15px;
    }

    .bg-actions .bg-btn {
        flex: 1 1 100%;
    }

    .bg-toolbar {
        position: static;
        margin: 0 0 20px;
        padding: 0;
        border: 0;
        background: none;
        backdrop-filter: none;
    }

    .bg-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .bg-chip {
        flex: 0 0 auto;
    }

    .bg-group {
        padding: 16px 12px;
        border-radius: 16px;
    }

    .bg-group__head {
        flex-wrap: wrap;
    }

    .bg-group__heading h2 {
        font-size: 19px;
    }

    .bg-table .bg-col-no {
        display: none;
    }

    .bg-table th,
    .bg-table td {
        padding: 10px 8px;
    }

    .bg-table {
        font-size: 14px;
    }

    .bg-col-unit {
        width: 56px;
    }

    .bg-table .bg-col-price {
        width: 38%;
    }

    .bg-notes,
    .bg-cta {
        padding: 22px 18px;
    }

    .bg-cta h2 {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .gec-price *,
    .gec-price *::after {
        transition: none !important;
    }
}
