/* SweetieBox - giao diện khách hàng (Bootstrap 5 + tuỳ biến). Nạp bởi layouts/app.blade.php */

/* ===== 1. Layout chung: biến màu, navbar, nút, form, bảng ===== */
:root {
    --pink: #d94f83;
    --pink-dark: #b93669;
    --pink-light: #fce7ef;
    --pink-pale: #fff2f7;
    --cream: #fffaf7;
    --text: #493640;
    --muted: #8d7c85;
    --border: #f2e3e9;
    --white: #ffffff;
    --shadow: 0 8px 28px rgba(185, 54, 105, .07);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
}

a {
    transition: color .2s ease;
}

.announcement-bar {
    background: var(--pink);
    color: white;
    text-align: center;
    padding: 7px 12px;
    font-size: .84rem;
    font-weight: 700;
}

.main-navbar {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 15px rgba(80, 35, 55, .035);
}

.navbar-brand {
    color: var(--pink-dark) !important;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.5px;
}

.brand-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    background: var(--pink-light);
    border-radius: 12px;
}

.navbar .nav-link {
    color: var(--text);
    font-weight: 700;
    padding: 10px 13px !important;
    border-radius: 12px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--pink-dark);
    background: var(--pink-pale);
}

.navbar-toggler {
    border-color: var(--border);
    box-shadow: none !important;
}

.search-form .form-control {
    min-width: 180px;
    border-radius: 999px 0 0 999px;
    border-color: var(--border);
    background: var(--cream);
    padding-left: 15px;
}

.search-form .form-control:focus {
    border-color: #e99ab8;
    box-shadow: 0 0 0 .2rem rgba(217, 79, 131, .1);
}

.search-form .btn {
    border-radius: 0 999px 999px 0;
}

.btn-gb {
    background: var(--pink);
    color: white;
    border: 1px solid var(--pink);
    border-radius: 999px;
    font-weight: 800;
    padding: 10px 19px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-gb:hover,
.btn-gb:focus {
    background: var(--pink-dark);
    border-color: var(--pink-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(185, 54, 105, .18);
}

.btn-outline-pink {
    color: var(--pink-dark);
    border: 1px solid #e9a7c0;
    background: white;
    border-radius: 999px;
    font-weight: 700;
}

.btn-outline-pink:hover {
    color: white;
    background: var(--pink);
    border-color: var(--pink);
}

.form-control,
.form-select {
    border-color: var(--border);
    border-radius: 12px;
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    border-color: #e99ab8;
    box-shadow: 0 0 0 .2rem rgba(217, 79, 131, .12);
}

.text-gb {
    color: var(--pink-dark) !important;
}

.box-card {
    overflow: hidden;
    border: 1px solid var(--border) !important;
    border-radius: 18px;
    background: white;
    box-shadow: 0 4px 16px rgba(80, 35, 55, .035);
    transition: transform .22s ease, box-shadow .22s ease;
}

.box-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(185, 54, 105, .12);
}

.box-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--pink-pale);
}

.box-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #fce7ef, #fff6ed);
    color: var(--pink);
    font-size: 3rem;
}

.badge.bg-light {
    background: var(--pink-pale) !important;
    color: var(--pink-dark) !important;
    border-color: var(--border) !important;
}

.alert {
    border: 0;
    border-radius: 14px;
}

.card {
    border-radius: 18px;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
}

.table thead th {
    color: #795e6b;
    font-size: .9rem;
    font-weight: 800;
    white-space: nowrap;
}

footer {
    margin-top: 48px;
    background: white;
    border-top: 1px solid var(--border);
}

/* Chân trang: 4 cột (thương hiệu | Khám phá | Hỗ trợ | Kết nối), xếp dọc trên điện thoại */
.site-footer {
    padding: 48px 0 0;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(185, 54, 105, .12);
}

.footer-brand {
    color: var(--pink-dark);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.footer-tagline {
    margin: 14px 0 12px;
    color: var(--muted);
    font-size: .92rem;
}

.footer-contact,
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: .92rem;
}

.footer-contact i {
    color: var(--pink);
    margin-top: 3px;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--pink-dark);
}

.footer-heading {
    margin: 0 0 16px;
    color: var(--pink-dark);
    font-size: 1rem;
    font-weight: 800;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text);
    font-size: .92rem;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--pink-dark);
    padding-left: 4px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--pink-pale);
    border: 1px solid #f5d9e4;
    color: var(--pink-dark);
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.footer-social:hover,
.footer-social:focus-visible {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #f4a6c0 0%, #d94f83 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(217, 79, 131, .25);
}

.footer-bottom {
    margin-top: 36px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .footer-links a,
    .footer-social {
        transition: none;
    }

    .footer-social:hover,
    .footer-social:focus-visible {
        transform: none;
    }
}

/* Trang Hỗ trợ (hướng dẫn đặt hàng, chính sách) */
.support-page {
    max-width: 780px;
    padding: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.support-title {
    margin-bottom: 20px;
    color: var(--pink-dark);
    font-size: 1.6rem;
    font-weight: 800;
}

.support-section h2 {
    margin: 22px 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
}

.support-steps {
    padding-left: 1.2rem;
}

.support-steps li {
    margin-bottom: 8px;
}

.support-contact {
    margin: 26px 0 0;
    padding-top: 16px;
    border-top: 1px dashed #efcfd9;
    color: var(--muted);
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 12px 0 6px;
    }

    .search-form {
        margin: 10px 0;
    }

    .search-form .form-control {
        min-width: 0;
    }

    .navbar .nav-link {
        padding: 10px 12px !important;
    }
}

@media (max-width: 575.98px) {
    .announcement-bar {
        font-size: .75rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    main.container {
        padding-top: 22px !important;
    }

    .btn-gb {
        padding: 9px 15px;
    }
}

/* ===== 2. Thẻ box (partials/box-card) ===== */
.box-card .position-relative {
    display: block;
    overflow: hidden;
    background: #fff2f7;
}

.box-card .box-thumb {
    transition: transform .35s ease;
}

.box-card:hover .box-thumb {
    transform: scale(1.045);
}

.product-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #d94f83;
    color: white;
    font-size: .72rem;
    font-weight: 800;
}

.product-ribbon-muted {
    background: #796873;
}

.product-name {
    min-height: 44px;
    margin-bottom: 8px;
    line-height: 1.45;
}

.product-name a {
    color: #493640;
}

.product-name a:hover,
.product-detail-link:hover {
    color: #d94f83;
}

.product-price {
    color: #c13c70;
    font-size: 1.12rem;
    font-weight: 800;
}

.product-stock {
    color: #548466;
    font-size: .8rem;
    font-weight: 700;
}

.product-detail-link {
    color: #8d6879;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .product-price {
        font-size: 1rem;
    }

    .box-card .card-body {
        padding: 12px !important;
    }

    .box-card .btn-gb {
        padding: 8px 5px;
        font-size: .83rem;
    }
}

/* ===== 3. Trang chủ (home) ===== */
.home-hero {
    overflow: hidden;
    padding: clamp(25px, 5vw, 60px);
    border: 1px solid #f5dce6;
    border-radius: 28px;
    background: linear-gradient(120deg, #fff0f6 0%, #fff9f5 65%, #fde6ef 100%);
}

.hero-label,
.section-eyebrow {
    color: #bb3d70;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-label {
    display: inline-block;
    padding: 8px 13px;
    border: 1px solid #f2c9da;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
}

.hero-title {
    color: #493640;
    font-size: clamp(2.2rem, 4.2vw, 3.7rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -1.5px;
}

.hero-title span {
    color: #d94f83;
}

.hero-description {
    max-width: 510px;
    color: #806b76;
    font-size: 1.05rem;
}

.hero-note {
    color: #a94b73;
    font-size: .9rem;
    font-weight: 700;
}

.hero-art {
    position: relative;
    display: flex;
    min-height: 330px;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    position: absolute;
    width: min(290px, 80%);
    aspect-ratio: 1;
    border: 1px solid rgba(217, 79, 131, .18);
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #fbd9e7 68%, #f8c5d9 100%);
    box-shadow: 0 18px 45px rgba(185, 54, 105, .1);
}

.hero-gift {
    position: relative;
    display: flex;
    width: 180px;
    height: 165px;
    align-items: center;
    justify-content: center;
    border: 8px solid rgba(255, 255, 255, .8);
    border-radius: 25px;
    background: linear-gradient(140deg, #e96d9b, #c33b70);
    color: white;
    font-size: 6rem;
    transform: rotate(-7deg);
    box-shadow: 0 20px 30px rgba(150, 45, 90, .2);
}

.hero-gift::before {
    position: absolute;
    top: -17px;
    left: 50%;
    width: 32px;
    height: 100%;
    background: rgba(255, 235, 243, .85);
    content: "";
    transform: translateX(-50%);
}

.floating-heart,
.floating-star {
    position: absolute;
    z-index: 1;
    color: #d94f83;
}

.heart-one {
    top: 16%;
    left: 15%;
    font-size: 2.2rem;
    transform: rotate(-15deg);
}

.heart-two {
    right: 12%;
    bottom: 26%;
    font-size: 1.8rem;
}

.star-one {
    top: 18%;
    right: 16%;
    font-size: 2.5rem;
}

.star-two {
    bottom: 17%;
    left: 18%;
    font-size: 2.7rem;
}

.hero-art-caption {
    position: absolute;
    right: 0;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #f4dce5;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 24px rgba(100, 50, 70, .08);
}

.caption-icon {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fce7ef;
    color: #c53f75;
    font-size: 1.3rem;
}

.hero-art-caption strong,
.hero-art-caption small {
    display: block;
}

.hero-art-caption strong {
    font-size: .9rem;
}

.hero-art-caption small {
    color: #8d7c85;
    font-size: .75rem;
}

.benefit-strip {
    padding: 20px 12px;
    border: 1px solid #f2e2e8;
    border-radius: 20px;
    background: white;
}

.benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #785866;
    font-size: .92rem;
    font-weight: 800;
    text-align: center;
}

.benefit-item i {
    color: #d94f83;
    font-size: 1.35rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.section-title {
    margin: 5px 0;
    color: #493640;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
}

.section-title span {
    color: #d94f83;
}

.section-description {
    margin-bottom: 0;
    color: #8d7c85;
}

.section-link {
    flex-shrink: 0;
    color: #b93669;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.section-link:hover {
    color: #d94f83;
}

.category-card {
    position: relative;
    display: flex;
    min-height: 185px;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #f2dfe7;
    border-radius: 20px;
    background: white;
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(185, 54, 105, .1);
}

.category-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 15px;
    background: #fce7ef;
    color: #c53f75;
    font-size: 1.5rem;
}

.category-card h3 {
    margin: 0 0 4px;
    color: #493640;
    font-size: 1rem;
    font-weight: 800;
}

.category-card p {
    margin: 0;
    color: #9b8790;
    font-size: .85rem;
}

.category-arrow {
    position: absolute;
    top: 20px;
    right: 18px;
    color: #d94f83;
}

.empty-state {
    padding: 35px 20px;
    border: 1px dashed #edcbd9;
    border-radius: 18px;
    background: white;
    color: #8d7c85;
    text-align: center;
}

.empty-state i {
    display: block;
    margin-bottom: 10px;
    color: #d94f83;
    font-size: 2rem;
}

.empty-state p {
    margin: 0;
}

.closing-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    border: 1px solid #f1d8e3;
    border-radius: 22px;
    background: linear-gradient(110deg, #fce7ef, #fff8f5);
}

.closing-banner h2 {
    margin: 8px 0;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 800;
}

.closing-banner p {
    margin: 0;
    color: #806b76;
}

@media (max-width: 767.98px) {
    .hero-art {
        min-height: 270px;
    }

    .hero-gift {
        width: 145px;
        height: 135px;
        font-size: 4.8rem;
    }

    .hero-art-caption {
        right: 0;
        bottom: 0;
    }

    .benefit-item {
        flex-direction: column;
        gap: 5px;
        font-size: .75rem;
    }

    .category-card {
        min-height: 165px;
        padding: 16px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-link {
        margin-top: 10px;
    }

    .closing-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px;
    }
}

/* ===== 4. Danh sách box (boxes/index) ===== */
.catalog-header {
    padding: 30px;
    border: 1px solid #f2dce5;
    border-radius: 22px;
    background: linear-gradient(110deg, #fce7ef, #fffaf6);
}

.catalog-eyebrow {
    color: #b93669;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.catalog-title {
    color: #493640;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
}

.catalog-title span {
    color: #d94f83;
}

.catalog-description {
    color: #806b76;
}

.filter-panel {
    padding: 22px;
    border: 1px solid #f2e3e9;
    border-radius: 18px;
    background: white;
    box-shadow: 0 5px 18px rgba(80, 35, 55, .035);
}

.search-addon {
    border-color: #f2e3e9;
    border-radius: 12px 0 0 12px;
    background: #fff2f7;
    color: #c13c70;
}

.search-field {
    border-radius: 0 12px 12px 0;
}

.catalog-section-title {
    color: #493640;
    font-size: 1.3rem;
    font-weight: 800;
}

.catalog-decor {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fce7ef;
    color: #d94f83;
}

.catalog-empty {
    padding: 45px 20px;
    border: 1px dashed #edcbd9;
    border-radius: 20px;
    background: white;
    text-align: center;
}

.empty-icon {
    margin-bottom: 12px;
    color: #d94f83;
    font-size: 2.5rem;
}

.catalog-empty h5 {
    font-weight: 800;
}

.catalog-empty p {
    color: #8d7c85;
}

.catalog-pagination nav {
    display: flex;
    justify-content: center;
}

.pagination {
    gap: 5px;
}

.pagination .page-link {
    border-color: #f2dce5;
    border-radius: 10px !important;
    color: #b93669;
}

.pagination .active .page-link {
    border-color: #d94f83;
    background: #d94f83;
    color: white;
}

@media (max-width: 575.98px) {
    .catalog-header {
        padding: 22px;
    }

    .filter-panel {
        padding: 16px;
    }
}

/* ===== 5. Chi tiết box (boxes/show) ===== */
.product-breadcrumb {
    font-size: .9rem;
}

.product-breadcrumb a {
    color: #b93669;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #d94f83;
}

.product-breadcrumb .active {
    color: #8d7c85;
}

.product-gallery {
    overflow: hidden;
    border: 1px solid #f2dce5;
    border-radius: 24px;
    background: white;
    box-shadow: 0 8px 24px rgba(80, 35, 55, .04);
}

.main-product-image .box-thumb,
.main-product-image .box-placeholder {
    width: 100%;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
}

.main-product-image .box-placeholder {
    font-size: 5rem;
}

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnail-button {
    width: 74px;
    height: 74px;
    overflow: hidden;
    padding: 3px;
    border: 1px solid #f0dce5;
    border-radius: 13px;
    background: white;
    cursor: pointer;
}

.thumbnail-button img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: cover;
}

.thumbnail-button.active {
    border: 2px solid #d94f83;
    box-shadow: 0 0 0 3px #fce7ef;
}

.product-information {
    padding: 8px 0;
}

.product-category-label {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #f1d5e1;
    border-radius: 999px;
    background: #fff0f6;
    color: #b93669;
    font-size: .82rem;
    font-weight: 800;
}

.product-detail-title {
    color: #493640;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
}

.product-detail-price {
    color: #c13c70;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
}

.product-divider {
    height: 1px;
    margin: 22px 0;
    background: #f2e3e9;
}

.product-description-heading {
    color: #493640;
    font-weight: 800;
}

.product-description-heading i {
    color: #d94f83;
}

.product-description {
    color: #806b76;
    line-height: 1.85;
    white-space: pre-line;
}

.product-stock-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #dceee2;
    border-radius: 15px;
    background: #f6fcf7;
    color: #4c8a61;
}

.product-stock-panel > i {
    font-size: 1.4rem;
}

.product-stock-panel strong,
.product-stock-panel span {
    display: block;
}

.product-stock-panel strong {
    font-size: .95rem;
}

.product-stock-panel span {
    margin-top: 2px;
    color: #7b8e80;
    font-size: .85rem;
}

.quantity-input {
    width: 100px;
    min-height: 48px;
    text-align: center;
}

.product-add-form .btn-gb {
    min-height: 48px;
}

.product-promises {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-promises > div {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #fff0f6;
    color: #9f456b;
    font-size: .82rem;
    font-weight: 700;
}

.product-promises i {
    color: #d94f83;
}

.related-products .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.related-products .section-eyebrow {
    color: #b93669;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.related-products .section-title {
    margin: 5px 0;
    color: #493640;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
}

.related-products .section-title span {
    color: #d94f83;
}

.related-products .section-description {
    margin: 0;
    color: #8d7c85;
}

.related-products .section-link {
    flex-shrink: 0;
    color: #b93669;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .thumbnail-button {
        width: 62px;
        height: 62px;
    }

    .product-promises > div {
        font-size: .76rem;
    }

    .related-products .section-heading {
        align-items: flex-start;
    }
}

/* ===== 6. Đánh giá sản phẩm (partials/product-reviews, home: testimonial) ===== */
.review-summary,
.review-form-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.review-summary {
    padding: 22px;
    text-align: center;
}

.review-average {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--pink-dark);
}

.review-average small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
}

.review-count {
    margin-top: 6px;
    color: var(--muted);
    font-size: .92rem;
}

.review-form-card {
    padding: 20px;
}

.review-note {
    color: var(--muted);
    font-size: .92rem;
}

/* Chọn sao: radio đảo thứ tự để tô sáng các sao từ trái sang phải */
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-input label {
    font-size: 1.7rem;
    color: #e6d3db;
    cursor: pointer;
    transition: color .15s ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: #ffc107;
}

.star-input input:focus-visible + label {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
    border-radius: 6px;
}

.review-item {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.review-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fcefeb;
    background-size: 200% 200%;
    color: #a66f7b;
    font-weight: 800;
    transition:
        background-position 0.3s ease,
        color 0.25s ease;
}

.review-body {
    min-width: 0;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.review-comment {
    margin: 6px 0 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
}

.testimonial-text {
    flex-grow: 1;
    margin: 12px 0 16px;
    overflow-wrap: anywhere;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author strong,
.testimonial-box {
    display: block;
    line-height: 1.3;
}

.testimonial-box {
    color: var(--muted);
    font-size: .85rem;
    text-decoration: none;
}

.testimonial-box:hover {
    color: var(--pink-dark);
}

/* ----- Thẻ đánh giá dùng chung (.review-card): trang chi tiết (.review-item) và trang chủ (.testimonial-card) -----
   Hover: nâng nhẹ 3px, bóng hồng phấn rất nhạt, viền hồng pastel, nền kem → hồng phấn cực nhạt.
   Nền chuyển mượt bằng lớp ::before đổi opacity (gradient không transition trực tiếp được). */


/* Thẻ đánh giá */
/* Thẻ đánh giá */
.review-card {
    --rc-border: #f0e8e8;
    --rc-border-hover: #f0e8e8;
    --rc-shadow: 0 4px 14px rgba(190, 155, 165, 0.05);
    --rc-shadow-hover: 0 10px 24px rgba(190, 155, 165, 0.12);

    background-color: #fffdfc;
    border-color: var(--rc-border);
    box-shadow: var(--rc-shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

/* Lớp nền kem phía sau thẻ */
.review-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-color: #fff4f7;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

/* Avatar: hồng nude pha màu đào */
/* Khung ảnh */
.review-photo {
    border-color: #eee5dd;
    background: #fffefa;
    box-shadow: 0 2px 7px rgba(75, 60, 48, 0.04);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Hover thẻ và ảnh */
@media (hover: hover) and (pointer: fine) {
    .review-card:hover {
        transform: translateY(-4px);
        border-color: var(--rc-border);
        box-shadow: var(--rc-shadow-hover);
    }

    .review-card:hover::before {
        opacity: 1;
    }

    .review-card:hover .review-avatar {
        background-color: #f8e6e9;
    }

    .review-photo:hover {
        transform: translateY(-2px);
        border-color: #eee3da;
        box-shadow: 0 5px 12px rgba(180, 160, 145, 0.10);
    }

    .review-photo:hover img {
        transform: scale(1.05);
    }
}

/* ----- Sửa đánh giá ----- */
.review-own-badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: #fdf0f3;
    color: #a93f62;
    font-size: .75rem;
    font-weight: 700;
}

.review-edit-link {
    margin-left: auto;
    color: var(--muted);
    font-size: .85rem;
    text-decoration: none;
    transition: color .2s ease;
}

.review-edit-link:hover {
    color: var(--pink-dark);
}

.review-edit-card {
    max-width: 640px;
    padding: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.review-photo-remove {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* ===== 7. Mã giảm giá ở trang thanh toán ===== */
.coupon-box {
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
    border: 1px dashed #efcfd9;
    border-radius: 14px;
}

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--pink-dark);
}

/* ===== 8. Chatbot: nút chat nổi (partials/chatbot, public/js/chatbot.js) ===== */
.sb-chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    font-family: inherit;
}

.sb-chat-toggle {
    position: relative;
    display: block;
    width: 58px;
    height: 58px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4a6c0 0%, #d94f83 100%);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 22px rgba(217, 79, 131, .32);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sb-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(217, 79, 131, .38);
}

.sb-chat-toggle:focus-visible,
.sb-chat-close:focus-visible,
.sb-chat-send:focus-visible,
.sb-chip:focus-visible,
.sb-item:focus-visible {
    outline: 2px solid var(--pink-dark);
    outline-offset: 2px;
}

.sb-chat-toggle .sb-icon-close,
.sb-chatbot.is-open .sb-chat-toggle .sb-icon-open {
    display: none;
}

.sb-chatbot.is-open .sb-chat-toggle .sb-icon-close {
    display: inline;
    font-size: 1.2rem;
}

.sb-chat-panel {
    display: flex;
    flex-direction: column;
    width: 370px;
    max-width: calc(100vw - 24px);
    height: min(560px, calc(100vh - 110px));
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(185, 54, 105, .18);
    overflow: hidden;
    animation: sb-pop .22s ease;
}

.sb-chat-panel[hidden] {
    display: none;
}

@keyframes sb-pop {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.sb-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff2f7 0%, #fce7ef 100%);
    border-bottom: 1px solid var(--border);
}

.sb-chat-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--pink);
    box-shadow: 0 2px 8px rgba(185, 54, 105, .12);
}

.sb-chat-title {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
    color: var(--pink-dark);
}

.sb-chat-title strong,
.sb-chat-title small {
    display: block;
}

.sb-chat-title small {
    color: var(--muted);
}

.sb-chat-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 8px;
}

.sb-chat-close:hover {
    color: var(--pink-dark);
    background: rgba(255, 255, 255, .7);
}

.sb-chat-messages {
    flex: 1 1 auto;
    padding: 16px;
    overflow-y: auto;
    background: linear-gradient(180deg, #fffdfb 0%, #fff8f5 100%);
    overscroll-behavior: contain;
}

.sb-msg {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.sb-msg-user {
    align-items: flex-end;
}

.sb-msg-bot {
    align-items: flex-start;
}

.sb-bubble {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.sb-msg-bot .sb-bubble {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-top-left-radius: 6px;
}

.sb-msg-user .sb-bubble {
    background: linear-gradient(135deg, #d8527f 0%, #c2406f 100%);
    color: #fff;
    border-top-right-radius: 6px;
}

.sb-typing .sb-bubble {
    display: inline-flex;
    gap: 5px;
    padding: 13px 16px;
}

.sb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e5b4c5;
    animation: sb-blink 1.1s infinite ease-in-out;
}

.sb-dot:nth-child(2) { animation-delay: .15s; }
.sb-dot:nth-child(3) { animation-delay: .3s; }

@keyframes sb-blink {
    0%, 80%, 100% { opacity: .35; transform: scale(.85); }
    40% { opacity: 1; transform: scale(1); }
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 92%;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.sb-item:hover {
    transform: translateY(-2px);
    border-color: #efcfd9;
    box-shadow: 0 8px 18px rgba(214, 132, 156, .16);
    color: var(--text);
}

.sb-item-img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #fffaf7 0%, #fde8ee 100%);
}

.sb-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sb-item-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.sb-item-body strong {
    overflow-wrap: anywhere;
}

.sb-item-body small {
    color: var(--pink-dark);
    font-weight: 700;
}

.sb-coupon {
    width: 92%;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fffaf7 0%, #fdf0f3 100%);
    border: 1px dashed #efcfd9;
    border-radius: 14px;
}

.sb-coupon-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sb-coupon-code {
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--pink-dark);
}

.sb-coupon-copy {
    padding: 3px 10px;
    border: 1px solid #efcfd9;
    border-radius: 999px;
    background: #fff;
    color: var(--pink-dark);
    font-size: .78rem;
    cursor: pointer;
}

.sb-coupon-copy:hover {
    background: var(--pink-pale);
}

.sb-coupon-name {
    margin-top: 2px;
    font-weight: 700;
}

.sb-coupon-text {
    margin-top: 2px;
    color: var(--muted);
    font-size: .9rem;
}

.sb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sb-chip {
    padding: 6px 12px;
    border: 1px solid #efcfd9;
    border-radius: 999px;
    background: #fff;
    color: var(--pink-dark);
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.sb-chip:hover {
    background: var(--pink-pale);
    border-color: var(--pink);
}

.sb-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.sb-chat-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fffdfb;
    color: var(--text);
}

.sb-chat-input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(217, 79, 131, .12);
}

.sb-chat-send {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4a6c0 0%, #d94f83 100%);
    color: #fff;
    cursor: pointer;
}

.sb-chat-send:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 575.98px) {
    .sb-chatbot {
        right: 12px;
        bottom: 12px;
    }

    .sb-chat-panel {
        position: fixed;
        right: 12px;
        left: 12px;
        bottom: 82px;
        width: auto;
        max-width: none;
        height: min(70vh, 560px);
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-chat-panel,
    .sb-dot {
        animation: none;
    }

    .sb-chat-toggle,
    .sb-item,
    .sb-chip {
        transition: none;
    }

    .sb-chat-toggle:hover,
    .sb-item:hover {
        transform: none;
    }
}
/* ===== 9. Đăng nhập / Đăng ký / Quên mật khẩu (pastel hồng – kem vanilla) ===== */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 24px 0 8px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 34px 30px 28px;
    background: linear-gradient(160deg, #fffdf6 0%, #fff6f1 55%, #fdeef3 100%);
    border: 1px solid #f3e1e6;
    border-radius: 26px;
    box-shadow: 0 18px 46px rgba(185, 54, 105, .10);
}

.auth-card-wide {
    max-width: 640px;
}

.auth-head {
    margin-bottom: 24px;
    text-align: center;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(185, 54, 105, .14);
}

.auth-head h1 {
    margin: 0 0 6px;
    color: var(--pink-dark);
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-head p {
    margin: 0;
    color: var(--muted);
    font-size: .93rem;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: .9rem;
    font-weight: 700;
}

.auth-optional {
    color: var(--muted);
    font-weight: 400;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #f0dce4;
    border-radius: 14px;
    background: #fffefb;
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-field input::placeholder {
    color: #bfaab3;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--pink);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(217, 79, 131, .12);
}

.auth-field input.has-error,
.password-input.has-error input {
    border-color: #e58aa6;
    background: #fff8fa;
}

.auth-error {
    margin-top: 6px;
    color: #c2406f;
    font-size: .85rem;
}

.auth-hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: .82rem;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
    color: var(--pink-dark);
    background: var(--pink-pale);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--pink-dark);
    outline-offset: 1px;
}

.password-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 4px 12px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .82rem;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s ease;
}

.password-rules li.is-ok {
    color: #2f8f5f;
    font-weight: 700;
}

.auth-grid {
    display: grid;
    gap: 0 16px;
}

@media (min-width: 576px) {
    .auth-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0 20px;
    font-size: .9rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text);
    cursor: pointer;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--pink);
}

.auth-link,
.auth-switch a {
    color: var(--pink-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover,
.auth-switch a:hover {
    color: #8f2750;
    text-decoration: underline;
}

.btn-auth {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 13px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #de5f8b 0%, #c2406f 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 10px 22px rgba(194, 64, 111, .28);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(194, 64, 111, .34);
    filter: brightness(1.03);
}

.btn-auth:focus-visible {
    outline: 3px solid rgba(217, 79, 131, .4);
    outline-offset: 2px;
}

.btn-auth:active {
    transform: translateY(0);
}

.auth-switch {
    margin: 20px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: .92rem;
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 26px 20px 22px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-auth,
    .password-toggle,
    .auth-field input {
        transition: none;
    }

    .btn-auth:hover {
        transform: none;
    }
}
/* ===== 10. Menu người dùng và trang Hồ sơ của tôi ===== */
.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    font-size: 1.05rem;
}

.user-menu-toggle .bi-person-circle {
    font-size: 1.55rem;
    line-height: 1;
}

.user-menu {
    min-width: 230px;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
}

.user-menu-head {
    padding: 8px 12px 4px;
    line-height: 1.35;
}

.user-menu-head strong,
.user-menu-head small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-head strong {
    color: var(--pink-dark);
}

.user-menu-head small {
    color: var(--muted);
}

.profile-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 22px 26px;
    background: linear-gradient(135deg, #fffdf6 0%, #fff2f7 60%, #fce7ef 100%);
    border: 1px solid #f3e1e6;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8cfdc 0%, #f4a6c0 100%);
    color: #8f2750;
    font-size: 1.7rem;
    font-weight: 800;
}

.profile-hero-text {
    flex: 1 1 220px;
    min-width: 0;
}

.profile-hero-text h1 {
    margin: 0;
    color: var(--pink-dark);
    font-size: 1.5rem;
    font-weight: 800;
}

.profile-hero-text p {
    margin: 2px 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.profile-hero-count {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #f3e1e6;
    color: var(--pink-dark);
    font-weight: 700;
}

.profile-nav {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.profile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.profile-nav a span,
.profile-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--pink-light);
    color: var(--pink-dark);
    font-size: .75rem;
    font-weight: 800;
}

.profile-nav a:hover {
    background: var(--pink-pale);
    color: var(--pink-dark);
}

@media (max-width: 991.98px) {
    .profile-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.profile-card {
    margin-bottom: 24px;
    padding: 26px;
    scroll-margin-top: 90px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.profile-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-card-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.profile-info {
    display: grid;
    gap: 16px 24px;
    margin: 0;
}

@media (min-width: 576px) {
    .profile-info {
        grid-template-columns: 1fr 1fr;
    }

    .profile-info-wide {
        grid-column: 1 / -1;
    }
}

.profile-info dt {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.profile-info dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.btn-auth-inline {
    display: inline-block;
    width: auto;
    margin-top: 0;
    padding-right: 28px;
    padding-left: 28px;
}

.btn-profile {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-profile-soft {
    border: 1px solid #efcfd9;
    background: #fff;
    color: var(--pink-dark);
}

.btn-profile-soft:hover {
    background: var(--pink-pale);
    border-color: var(--pink);
    color: var(--pink-dark);
}

.profile-password-form {
    max-width: 460px;
}

.profile-order {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.profile-order:hover {
    border-color: #efcfd9;
    box-shadow: 0 8px 20px rgba(214, 132, 156, .12);
}

.profile-order-main {
    flex: 1 1 260px;
    min-width: 0;
}

.profile-order-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

.profile-order-items {
    margin: 8px 0 0;
    padding-left: 1.1rem;
    font-size: .92rem;
}

.profile-order-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.profile-order-total {
    color: var(--pink-dark);
    font-size: 1.1rem;
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    .profile-nav a,
    .btn-profile,
    .profile-order {
        transition: none;
    }
}
/* ===== 11. Blog ===== */
.blog-hero {
    margin-bottom: 22px;
    padding: 34px 24px 28px;
    background: linear-gradient(135deg, #fffdf6 0%, #fff2f7 60%, #fce7ef 100%);
    border: 1px solid #f3e1e6;
    border-radius: 26px;
    box-shadow: var(--shadow);
    text-align: center;
}

.blog-hero h1 {
    margin: 4px 0 6px;
    color: var(--pink-dark);
    font-size: 2rem;
    font-weight: 800;
}

.blog-hero p {
    margin: 0 auto 20px;
    max-width: 520px;
    color: var(--muted);
}

.blog-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
    padding: 6px 6px 6px 18px;
    background: #fff;
    border: 1px solid #f0dce4;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(185, 54, 105, .08);
}

.blog-search i {
    color: var(--muted);
}

.blog-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
}

.blog-search input:focus {
    outline: none;
}

.blog-search button {
    padding: 8px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #de5f8b 0%, #c2406f 100%);
    color: #fff;
    font-weight: 700;
}

.blog-search:focus-within {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(217, 79, 131, .12);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #f0dce4;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.blog-chip span {
    padding: 0 7px;
    border-radius: 999px;
    background: var(--pink-light);
    color: var(--pink-dark);
    font-size: .75rem;
    font-weight: 800;
}

.blog-chip:hover {
    border-color: var(--pink);
    color: var(--pink-dark);
}

.blog-chip.active {
    border-color: transparent;
    background: linear-gradient(135deg, #de5f8b 0%, #c2406f 100%);
    color: #fff;
}

.blog-chip.active span {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.blog-filter-note {
    margin-bottom: 18px;
    color: var(--muted);
    text-align: center;
}

.blog-filter-note a {
    color: var(--pink-dark);
    font-weight: 700;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fffaf7 0%, #fde8ee 100%);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
}

.blog-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: .82rem;
}

.blog-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--pink-light);
    color: var(--pink-dark);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

a.blog-badge:hover {
    background: #f8d5e3;
    color: var(--pink-dark);
}

.blog-card h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
}

.blog-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--pink-dark);
}

.blog-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .92rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-readmore {
    margin-top: auto;
    color: var(--pink-dark);
    font-weight: 700;
    text-decoration: none;
}

.blog-readmore:hover {
    color: #8f2750;
}

@media (hover: hover) and (pointer: fine) {
    .blog-card:hover {
        transform: translateY(-4px);
        border-color: #efcfd9;
        box-shadow: 0 14px 30px rgba(214, 132, 156, .16);
    }

    .blog-card:hover .blog-card-image img {
        transform: scale(1.05);
    }
}

.blog-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 34px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.blog-article-head h1 {
    margin: 14px 0 10px;
    color: var(--text);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: .9rem;
}

.blog-article-cover {
    margin: 0 0 24px;
}

.blog-article-cover img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 20px;
}

.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin: 1.6em 0 .6em;
    color: var(--pink-dark);
    font-weight: 800;
    line-height: 1.35;
}

.blog-content p {
    margin-bottom: 1em;
}

.blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.2em auto;
    border-radius: 16px;
}

.blog-content a {
    color: var(--pink-dark);
    text-decoration: underline;
}

.blog-content blockquote {
    margin: 1.2em 0;
    padding: 12px 18px;
    border-left: 4px solid #f4a6c0;
    border-radius: 0 12px 12px 0;
    background: var(--pink-pale);
    color: var(--text);
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1em;
}

.blog-content .ql-align-center { text-align: center; }
.blog-content .ql-align-right { text-align: right; }
.blog-content .ql-align-justify { text-align: justify; }

.blog-article-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #efcfd9;
}

@media (max-width: 575.98px) {
    .blog-article {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .blog-article-head h1,
    .blog-hero h1 {
        font-size: 1.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-image img,
    .blog-chip {
        transition: none;
    }

    .blog-card:hover,
    .blog-card:hover .blog-card-image img {
        transform: none;
    }
}
/* ===== 12. Banner trượt ngang ở trang chủ ===== */
.home-banner {
    overflow: hidden;
    background: linear-gradient(135deg, #fffaf7 0%, #fde8ee 100%);
    border: 1px solid #f3e1e6;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.home-banner-slide {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-banner-img {
    display: block;
    width: 100%;
    aspect-ratio: 8 / 3;
    object-fit: cover;
}

.home-banner-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 46px 28px 22px;
    background: linear-gradient(0deg, rgba(73, 38, 56, .55) 0%, rgba(73, 38, 56, 0) 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.home-banner .carousel-control-prev,
.home-banner .carousel-control-next {
    width: 72px;
    opacity: 1;
}

.home-banner-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: var(--pink-dark);
    box-shadow: 0 4px 14px rgba(185, 54, 105, .18);
    transition: background .2s ease, transform .2s ease;
}

.home-banner .carousel-control-prev:hover .home-banner-arrow,
.home-banner .carousel-control-next:hover .home-banner-arrow,
.home-banner .carousel-control-prev:focus-visible .home-banner-arrow,
.home-banner .carousel-control-next:focus-visible .home-banner-arrow {
    background: #fff;
    transform: scale(1.08);
}

.home-banner .carousel-indicators {
    margin-bottom: 14px;
}

.home-banner .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border: 0;
    border-radius: 50%;
    background-color: #fff;
    opacity: .6;
    transition: width .25s ease, opacity .25s ease;
}

.home-banner .carousel-indicators .active {
    width: 28px;
    border-radius: 999px;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .home-banner {
        border-radius: 20px;
    }

    .home-banner-img {
        aspect-ratio: 16 / 9;
    }

    .home-banner-caption {
        padding: 30px 16px 18px;
        font-size: 1.05rem;
    }

    .home-banner .carousel-control-prev,
    .home-banner .carousel-control-next {
        width: 52px;
    }

    .home-banner-arrow {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-banner-arrow,
    .home-banner .carousel-indicators [data-bs-target] {
        transition: none;
    }
}
/* ===== 13. Mua sắm: giỏ hàng, thanh toán, đặt hàng thành công, đơn hàng ===== */
.shop-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 24px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #fffdf6 0%, #fff2f7 60%, #fce7ef 100%);
    border: 1px solid #f3e1e6;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.shop-head h1 {
    margin: 4px 0 2px;
    color: var(--pink-dark);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
}

.shop-head p {
    margin: 0;
    color: var(--muted);
}

.shop-head-count {
    padding: 8px 16px;
    border: 1px solid #f3e1e6;
    border-radius: 999px;
    background: #fff;
    color: var(--pink-dark);
    font-weight: 700;
}

/* các bước mua hàng */
.shop-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-steps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 6px;
    border: 1px solid #f3e1e6;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.shop-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pink-light);
    color: var(--pink-dark);
    font-size: .78rem;
}

.shop-steps li.current {
    border-color: var(--pink);
    color: var(--pink-dark);
}

.shop-steps li.current span,
.shop-steps li.done span {
    background: var(--pink);
    color: #fff;
}

.shop-steps li.done {
    color: var(--pink-dark);
}

/* card, tóm tắt, ảnh */
.shop-card,
.shop-summary {
    padding: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.shop-card-title,
.shop-summary h2 {
    margin: 0 0 16px;
    color: var(--pink-dark);
    font-size: 1.1rem;
    font-weight: 800;
}

.shop-summary {
    position: sticky;
    top: 92px;
}

.shop-summary-row,
.shop-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.shop-summary-row {
    margin-bottom: 8px;
    color: var(--muted);
}

.shop-summary-row span:last-child {
    color: var(--text);
}

.shop-summary-row.shop-summary-discount,
.shop-summary-row.shop-summary-discount span:last-child {
    color: #2f8f5f;
}

.shop-summary-total {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed #efcfd9;
    font-size: 1.15rem;
    font-weight: 800;
}

.shop-summary-total span:last-child {
    color: var(--pink-dark);
}

.shop-summary-note {
    margin: 12px 0 16px;
    color: var(--muted);
    font-size: .88rem;
}

.shop-thumb {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffaf7 0%, var(--pink-light) 100%);
    font-size: 2rem;
    text-decoration: none;
}

.shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-thumb-sm {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 1.3rem;
}

/* giỏ hàng */
.cart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cart-row:hover {
    border-color: #efcfd9;
    box-shadow: 0 10px 24px rgba(140, 89, 104, .1);
}

.cart-row-info {
    flex: 1 1 auto;
    min-width: 0;
}

.cart-row-name {
    display: block;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.cart-row-name:hover {
    color: var(--pink-dark);
}

.cart-row-price {
    color: var(--muted);
    font-size: .9rem;
}

.cart-row-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 14px;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-qty input {
    width: 70px;
}

.cart-row-subtotal {
    min-width: 108px;
    color: var(--pink-dark);
    font-weight: 800;
    text-align: right;
}

@media (max-width: 575.98px) {
    .cart-row {
        flex-wrap: wrap;
    }

    .cart-row-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* thanh toán */
.shop-payment {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px 16px;
    border: 1px dashed #efcfd9;
    border-radius: 14px;
    background: var(--pink-pale);
    font-size: .92rem;
}

.shop-payment i {
    color: var(--pink);
    font-size: 1.3rem;
}

.shop-lines {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.shop-lines li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.shop-line-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.shop-line-price {
    font-weight: 800;
    white-space: nowrap;
}

/* đặt hàng thành công */
.shop-success {
    max-width: 640px;
    margin: 0 auto;
    padding: 34px 30px;
    background: linear-gradient(160deg, #fffdf6 0%, #fff6f1 55%, #fdeef3 100%);
    border: 1px solid #f3e1e6;
    border-radius: 26px;
    box-shadow: 0 18px 46px rgba(185, 54, 105, .1);
    text-align: center;
}

.shop-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--pink-light);
    color: var(--pink-dark);
    font-size: 2.1rem;
    box-shadow: 0 6px 16px rgba(185, 54, 105, .14);
}

.shop-success h1 {
    margin: 4px 0 8px;
    color: var(--pink-dark);
    font-size: 1.6rem;
    font-weight: 800;
}

.shop-success-meta {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    text-align: left;
}

.shop-success-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-success-meta dt {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.shop-success-meta dd {
    margin: 0;
    font-weight: 800;
}

.shop-success-total {
    padding-top: 12px;
    border-top: 1px dashed #efcfd9;
    font-size: 1.1rem;
}

.shop-success-total dd {
    color: var(--pink-dark);
}

.shop-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* chi tiết đơn hàng */
.order-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-track li {
    position: relative;
    flex: 1 1 0;
    text-align: center;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.order-track li::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 50%;
    left: -50%;
    height: 3px;
    background: var(--border);
}

.order-track li:first-child::before {
    display: none;
}

.order-track-dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
}

.order-track-label {
    display: block;
}

.order-track li.done,
.order-track li.current {
    color: var(--pink-dark);
}

.order-track li.done::before,
.order-track li.current::before {
    background: var(--pink);
}

.order-track li.done .order-track-dot {
    border-color: var(--pink);
    background: var(--pink);
    color: #fff;
}

.order-track li.current .order-track-dot {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(217, 79, 131, .16);
    color: var(--pink-dark);
}

.order-cancelled {
    padding: 12px 16px;
    border-radius: 14px;
    background: #f1ecee;
    color: #6a5a61;
    font-weight: 700;
}

.order-info {
    display: grid;
    gap: 14px;
    margin: 0;
}

.order-info dt {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.order-info dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.order-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-lines li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.order-line-main {
    flex: 1 1 auto;
    min-width: 0;
}

.order-line-name {
    font-weight: 800;
    overflow-wrap: anywhere;
}

.order-line-total {
    color: var(--pink-dark);
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .shop-head,
    .shop-card,
    .shop-summary {
        padding: 20px 18px;
    }

    .shop-success {
        padding: 26px 18px;
    }

    .order-track li {
        font-size: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-row {
        transition: none;
    }
}