/* CURADLE CSS TOPIC AUDIT — 2026-09-19
 * Status: MODIFIED
 * File upload name: product.css
 * Backup: 00_BACKUP_ALL_81_ORIGINAL_CSS/product.css
 */
/*
=====================================================
CURADLE PRODUCT.CSS

Chứa:
- Product section
- Product card
- Product listing/detail nếu có
=====================================================
*/


/* Product and accessory imagery uses a clean white canvas. */
[data-product-card],
[data-product-card]>.relative,
[data-product-card]>.relative>.relative,
.curadle-featured-media,
.curadle-product-html-match .curadle-pd-image,
.curadle-product-html-match .curadle-related-image {
    background: #fff !important;
    background-image: none !important;
}

/* Featured products - new safe namespace */

.curadle-featured-products {
    background: #fff;
    padding: 56px 0 70px;
    overflow: hidden;
}

.curadle-product-category-shell {
    position: relative;
    z-index: 2;
    background: #fff;
    border: 0 !important;
    box-shadow: none !important;
}

/* Product listing: remove every full-width separator around the filter area. */
body:has(.curadle-product-index) .curadle-global-header,
body:has(.curadle-product-index) .curadle-product-category-shell,
body:has(.curadle-product-index) .curadle-product-category-shell > .container-page,
body:has(.curadle-product-index) .curadle-product-category-nav,
body:has(.curadle-product-index) .curadle-product-toolbar {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body:has(.curadle-product-index) .curadle-product-category-shell::before,
body:has(.curadle-product-index) .curadle-product-category-shell::after,
body:has(.curadle-product-index) .curadle-product-category-shell > .container-page::before,
body:has(.curadle-product-index) .curadle-product-category-shell > .container-page::after,
body:has(.curadle-product-index) .curadle-product-category-nav::before,
body:has(.curadle-product-index) .curadle-product-category-nav::after,
body:has(.curadle-product-index) .curadle-product-toolbar::before,
body:has(.curadle-product-index) .curadle-product-toolbar::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.curadle-product-category-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 24px 0 16px;
}

.curadle-product-category-link {
    min-height: 40px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2e3d98;
    border-radius: 999px;
    background: #fff;
    color: #292524;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.curadle-product-category-link:hover,
.curadle-product-category-link:focus-visible {
    border-color: #2e3d98;
    color: #2e3d98;
}

.curadle-product-category-link.is-active {
    border-color: #2e3d98;
    background: #2e3d98;
    color: #fff;
}

.curadle-product-toolbar {
    padding: 16px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body:has(.curadle-product-index) .curadle-global-header {
    border-bottom-color: transparent !important;
}

.curadle-product-search {
    width: 280px;
    max-width: 100%;
    height: 44px;
}

.curadle-product-sort {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
}

.curadle-product-sort-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: max-content;
    min-width: 130px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid #2e3d98;
    border-radius: 999px;
    background: #fff;
    color: #2e3d98;
    font-size: 12px;
    font-weight: 600;
    box-sizing: border-box;
}

.curadle-product-sort-label {
    white-space: nowrap;
}

.curadle-product-sort-arrow {
    position: static;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #2e3d98;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.curadle-product-search {
    position: relative;
    display: block;
}

.curadle-product-search input {
    width: 100%;
    height: 100%;
    padding: 0 46px 0 18px;
    border: 1px solid #2e3d98;
    border-radius: 999px;
    outline: 0;
    background: #fff;
    color: #292524;
    font: inherit;
    font-size: 12px;
    box-shadow: 0 4px 14px rgba(41, 37, 36, .04);
}

.curadle-product-search input::placeholder {
    color: #2e3d98;
}

.curadle-product-search svg {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #2e3d98;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-50%);
    cursor: pointer;
}

.curadle-product-sort:focus,
.curadle-product-search input:focus {
    border-color: #2e3d98;
    box-shadow: 0 0 0 3px rgba(45, 60, 152, .1);
}

[data-curadle-source="dynamic-product-category"] [data-product-list],
[data-curadle-source="product-index-db"] [data-product-list],
[data-curadle-source="accessory-index"] [data-product-list] {
    align-items: stretch;
}

.curadle-catalog-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: #fff;
}

.curadle-catalog-card-media {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    background: #f5f5f5;
}

.curadle-catalog-card-media img {
    object-fit: contain !important;
    object-position: center !important;
    padding: 10px;
    box-sizing: border-box;
}

.curadle-catalog-card-body {
    min-height: 82px;
    padding: 12px 18px 20px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    text-align: center;
    background: #fff;
}

.curadle-catalog-card-body h3 {
    margin: 0;
    line-height: 1.1;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #111827;
}

.curadle-catalog-card-price {
    margin: 0 !important;
    color: #2e3d98 !important;
    font-size: 12px !important;
    line-height: 1.1;
    font-weight: 400 !important;
}

/* Khung sản phẩm kiểu Hàn Quốc: chỉ tạo bóng mờ bên ngoài, ảnh và chữ vẫn rõ. */
.curadle-catalog-card {
    border: 1px solid rgba(148, 163, 184, .18) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055), 0 0 0 3px rgba(148, 163, 184, .025) !important;
}

.curadle-catalog-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, .085), 0 0 0 3px rgba(45, 60, 152, .035) !important;
}

.curadle-catalog-card-media {
    margin: 8px 8px 0;
    border: 1px solid rgba(148, 163, 184, .34);
    background: #fff !important;
}

.curadle-catalog-cart-hint {
    position: absolute;
    right: 18px;
    bottom: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, .96);
    background: rgba(100, 116, 139, .20);
    border: 1px solid rgba(255, 255, 255, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color .18s ease, transform .18s ease;
}

.curadle-catalog-cart-hint svg {
    width: 21px;
    height: 21px;
}

.curadle-catalog-card:hover .curadle-catalog-cart-hint {
    background: rgba(100, 116, 139, .32);
    transform: scale(1.05);
}

.curadle-catalog-cart-hint:focus-visible {
    outline: 2px solid #2e3d98;
    outline-offset: 2px;
}

.curadle-catalog-cart-hint.is-added {
    color: #fff;
    background: rgba(34, 197, 94, .82);
    transform: scale(1.08);
}

@media (max-width: 640px) {
    .curadle-catalog-card {
        border: 1px solid rgba(148, 163, 184, .18) !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .055), 0 0 0 3px rgba(148, 163, 184, .025) !important;
    }

    .curadle-catalog-card-media {
        margin: 8px 8px 0;
        border: 1px solid rgba(148, 163, 184, .34) !important;
    }

    .curadle-catalog-cart-hint {
        right: 12px;
        bottom: 8px;
        width: 18px;
        height: 18px;
        color: rgba(255, 255, 255, .96);
        background: rgba(100, 116, 139, .20);
        border: 1px solid rgba(255, 255, 255, .55);
    }

    .curadle-catalog-cart-hint svg {
        width: 12px;
        height: 12px;
    }
}

.curadle-accessory-card {
    display: flex;
    flex-direction: column;
}

/* Phụ kiện dùng cùng khung, tỷ lệ và khoảng cách với thẻ sản phẩm. */
.curadle-accessory-card .curadle-catalog-card-media {
    margin: 8px 8px 0 !important;
    border: 1px solid rgba(148, 163, 184, .34) !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: #f5f5f5 !important;
}

.curadle-accessory-card .curadle-catalog-card-media img {
    padding: 0;
}

.curadle-accessory-card> :first-child {
    min-height: 0;
}

.curadle-accessory-card>.p-4 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}

[data-product-card]>.p-4 {
    text-align: center;
}

[data-product-card] h3 {
    margin-inline: auto;
    line-height: 1.35;
}

.curadle-accessory-card h3,
.curadle-accessory-card p {
    margin-top: 0 !important;
}

@media (max-width: 640px) {
    .curadle-product-category-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 18px 0 14px;
    }

    .curadle-product-category-link {
        width: 100%;
        min-height: 44px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 11px;
    }

    .curadle-product-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 14px 0 18px;
    }

    .curadle-product-sort-field,
    .curadle-product-search {
        width: 100% !important;
        max-width: 100%;
        height: 42px;
    }

    .curadle-product-sort-field {
        min-width: 0;
        flex-basis: auto;
    }

    .curadle-product-sort,
    .curadle-product-search input {
        font-size: 11px;
    }
}

.curadle-catalog-download-top,
.curadle-product-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid #2e3d98;
    border-radius: 10px;
    color: #2e3d98 !important;
    background: #fff;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 14px 34px rgba(45, 60, 152, .12);
}

.curadle-product-detail-page {
    background: #fff;
}

.curadle-product-hero {
    padding-top: clamp(36px, 5vw, 72px);
    padding-bottom: clamp(28px, 5vw, 64px);
}

.curadle-product-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    color: #2e3d98;
    font-size: 13px;
}

.curadle-product-breadcrumb a {
    color: #2e3d98;
    text-decoration: none;
}

.curadle-product-hero__grid,
.curadle-product-info {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.curadle-product-hero__media {
    margin: 0;
    display: grid;
    place-items: center;
    min-height: 430px;
    border: 1px solid #2e3d98;
    border-radius: 22px;
    background: linear-gradient(135deg, #F1F4FF, #fff 70%);
    overflow: hidden;
    box-shadow: 0 22px 54px rgba(39, 25, 18, .08);
}

.curadle-product-hero__media img {
    display: block;
    width: min(680px, 100%);
    height: auto;
    object-fit: contain;
}

.curadle-product-hero__content h1 {
    margin: 10px 0 18px;
    color: #171717;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 600;
}

.curadle-product-hero__desc {
    max-width: 620px;
    color: #2e3d98;
    font-size: 18px;
    line-height: 1.75;
}

.curadle-product-price {
    display: inline-grid;
    gap: 6px;
    margin: 28px 0;
    padding: 16px 22px;
    border-radius: 16px;
    background: #F4F6FF;
    border: 1px solid #F4F6FF;
}

.curadle-product-price span {
    color: #2e3d98;
    font-size: 13px;
    font-weight: 700;
}

.curadle-product-price strong {
    color: #2e3d98;
    font-size: 30px;
    line-height: 1;
    font-weight: 600;
}

.curadle-product-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.curadle-product-info {
    padding-top: 0;
    padding-bottom: clamp(50px, 7vw, 96px);
    align-items: stretch;
}

.curadle-product-spec-card,
.curadle-product-feature-card {
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid #2e3d98;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(39, 25, 18, .07);
}

.curadle-product-spec-card h2,
.curadle-product-feature-card h2 {
    margin: 0 0 22px;
    color: #171717;
    font-size: 28px;
    font-weight: 600;
}

.curadle-product-spec-card dl {
    margin: 0;
    display: grid;
    gap: 0;
}

.curadle-product-spec-card dl div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #2e3d98;
}

.curadle-product-spec-card dt {
    color: #2e3d98;
    font-weight: 700;
}

.curadle-product-spec-card dd {
    margin: 0;
    color: #171717;
    font-weight: 700;
}

.curadle-product-feature-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.curadle-product-feature-card li {
    color: #36302c;
    font-size: 16px;
    line-height: 1.65;
}

.curadle-product-feature-card li::before {
    content: "✓";
    margin-right: 10px;
    color: #2e3d98;
    font-weight: 600;
}

/* =====================================================
   PRODUCT DETAIL — ĐIỂM NỔI BẬT 1 / 2
   Khôi phục đúng bố cục mẫu:
   - Tiêu đề desktop nằm trên một hàng.
   - Chữ nhỏ hơn bản lỗi.
   - Ảnh giữ kích thước lớn và chạm đáy section.
   - Chỉ áp dụng cho trang chi tiết sản phẩm.
===================================================== */

/* Khu vực: Trang chi tiết sản phẩm. Thành phần: toàn bộ section Điểm nổi bật. Mục đích: hiển thị toàn chiều rộng, không tạo khoảng trống ngoài ý muốn. */
.curadle-product-html-match .curadle-rank-points {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Khu vực: Trang chi tiết sản phẩm. Thành phần: từng hàng Điểm nổi bật. Mục đích: giữ nền sáng và chiều cao gọn như giao diện mẫu. */
.curadle-product-html-match .curadle-rank-point {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8f7f3 !important;
}

/* Khu vực: Trang chi tiết sản phẩm. Thành phần: Điểm nổi bật 2. Mục đích: tạo nền xám nhạt phân biệt với hàng đầu tiên. */
.curadle-product-html-match .curadle-rank-point--second {
    background: #e9e7e1 !important;
}

/* Khu vực: Trang chi tiết sản phẩm. Thành phần: khung nội dung bên trong từng Điểm nổi bật. Mục đích: mở rộng vùng chữ để tiêu đề desktop nằm một hàng, ảnh đặt bên phải. */
.curadle-product-html-match .curadle-rank-point-inner.container-page {
    width: min(100% - 24px, 1200px) !important;
    max-width: 1200px !important;
    min-height: 208px !important;
    margin: 0 auto !important;
    padding-top: 18px !important;
    padding-bottom: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    align-items: stretch !important;
    gap: 36px !important;
}

/* Khu vực: Trang chi tiết sản phẩm. Thành phần: cột nội dung bên trái. Mục đích: căn giữa nội dung theo chiều dọc và không giới hạn sai chiều rộng. */
.curadle-product-html-match .curadle-rank-point-copy {
    min-width: 0 !important;
    max-width: none !important;
    align-self: center !important;
    padding-bottom: 18px !important;
}

/* Khu vực: Trang chi tiết sản phẩm. Thành phần: nhãn Điểm nổi bật 1 / 2. Mục đích: giảm kích thước chữ và giữ màu thương hiệu. */
.curadle-product-html-match .curadle-rank-point-label {
    margin: 0 0 12px !important;
    color: #2e3d98 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

/* Khu vực: Trang chi tiết sản phẩm. Thành phần: tiêu đề Điểm nổi bật. Mục đích: giảm cỡ chữ và giữ tiêu đề trên một hàng ở desktop. */
.curadle-product-html-match .curadle-rank-point-title {
    margin: 0 !important;
    color: #111 !important;
    font-size: clamp(27px, 1.85vw, 35px) !important;
    font-weight: 700 !important;
    line-height: 1.14 !important;
    letter-spacing: -.025em !important;
    white-space: nowrap !important;
}

/* Khu vực: Trang chi tiết sản phẩm. Thành phần: mô tả Điểm nổi bật. Mục đích: giảm cỡ chữ và giữ chiều rộng tự nhiên như ảnh mẫu. */
.curadle-product-html-match .curadle-rank-point-description {
    max-width: 1180px !important;
    margin: 12px 0 0 !important;
    color: #171717 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.48 !important;
}

/* Khu vực: Trang chi tiết sản phẩm. Thành phần: vùng chứa hình minh họa. Mục đích: đặt ảnh sát đáy section, không thu nhỏ ảnh. */
.curadle-product-html-match .curadle-rank-point-media {
    min-width: 0 !important;
    overflow: visible !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    align-self: stretch !important;
    padding: 0 !important;
}

/* Khu vực: Trang chi tiết sản phẩm. Thành phần: ảnh minh họa Điểm nổi bật. Mục đích: giữ ảnh lớn, đúng tỷ lệ và chạm đáy section. */
.curadle-product-html-match .curadle-rank-point-media img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 350px !important;
    max-height: 208px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: right bottom !important;
    transform: none !important;
}

/* Điểm nổi bật 2 dùng ảnh quả địa cầu lớn hơn và vẫn chạm đáy. */
.curadle-product-html-match .curadle-rank-point--second .curadle-rank-point-media img {
    max-width: 360px !important;
    max-height: 208px !important;
}

/* Máy tính bảng: cho phép tiêu đề xuống dòng khi không còn đủ chiều rộng. */
@media (max-width: 1200px) {
    .curadle-product-html-match .curadle-rank-point-inner.container-page {
        width: min(calc(100% - 40px), 1120px) !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        gap: 36px !important;
    }

    .curadle-product-html-match .curadle-rank-point-title {
        font-size: 34px !important;
        white-space: normal !important;
    }

    .curadle-product-html-match .curadle-rank-point-description {
        font-size: 17px !important;
    }

    .curadle-product-html-match .curadle-rank-point-media img,
    .curadle-product-html-match .curadle-rank-point--second .curadle-rank-point-media img {
        max-width: 300px !important;
        max-height: 225px !important;
    }
}

/* Điện thoại: chuyển thành một cột, ảnh đặt dưới nội dung. */
@media (max-width: 760px) {
    .curadle-product-html-match .curadle-rank-point-inner.container-page {
        width: min(calc(100% - 28px), 720px) !important;
        min-height: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding-top: 30px !important;
    }

    .curadle-product-html-match .curadle-rank-point-copy {
        padding-bottom: 0 !important;
    }

    .curadle-product-html-match .curadle-rank-point-label {
        font-size: 14px !important;
    }

    .curadle-product-html-match .curadle-rank-point-title {
        font-size: 26px !important;
        white-space: normal !important;
    }

    .curadle-product-html-match .curadle-rank-point-description {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .curadle-product-html-match .curadle-rank-point-media {
        justify-content: center !important;
    }

    .curadle-product-html-match .curadle-rank-point-media img,
    .curadle-product-html-match .curadle-rank-point--second .curadle-rank-point-media img {
        max-width: min(100%, 300px) !important;
        max-height: 220px !important;
    }
}

/* ==========================================================================
   PRODUCT DETAIL — MOBILE FINAL OVERRIDE
   File product.css được enqueue sau style.css nên các rule dưới đây
   sẽ ghi đè rule mobile tổng quát của theme.
   ========================================================================== */
@media (max-width: 760px) {

    /* ----------------------------------------------------------
       NÚT: giữ màu giống desktop
       ---------------------------------------------------------- */
    .curadle-product-html-match .curadle-pd-btn.buy,
    .curadle-product-html-match button.curadle-pd-btn.buy {
        background: #2e3d98 !important;
        border-color: #2e3d98 !important;
        color: #fff !important;
    }

    .curadle-product-html-match .curadle-pd-btn.cart,
    .curadle-product-html-match button.curadle-pd-btn.cart {
        background: #2e3d98 !important;
        border-color: #2e3d98 !important;
        color: #fff !important;
    }

    .curadle-product-html-match .curadle-pd-btn.consult,
    .curadle-product-html-match button.curadle-pd-btn.consult {
        background: #f1f4ff !important;
        border-color: #f1f4ff !important;
        color: #2e3d98 !important;
    }

    .curadle-product-html-match .curadle-pd-form button,
    .curadle-product-html-match .curadle-pd-form button[type="submit"] {
        background: #2e3d98 !important;
        border-color: #2e3d98 !important;
        color: #ffffff !important;
    }

    .curadle-product-html-match .curadle-pd-btn svg {
        color: currentColor !important;
        stroke: currentColor !important;
    }

    /* ----------------------------------------------------------
       ĐIỂM NỔI BẬT 1 / 2
       Mobile: chữ trái + ảnh phải, cùng một hàng.
       ---------------------------------------------------------- */
    .curadle-product-html-match .curadle-rank-point-inner.container-page {
        width: calc(100% - 24px) !important;
        max-width: none !important;
        min-height: 156px !important;
        margin: 0 auto !important;
        padding: 16px 0 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 124px !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .curadle-product-html-match .curadle-rank-point-copy {
        min-width: 0 !important;
        max-width: none !important;
        align-self: center !important;
        padding: 0 0 16px !important;
    }

    .curadle-product-html-match .curadle-rank-point-label {
        margin: 0 0 6px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        color: #2e3d98 !important;
    }

    .curadle-product-html-match .curadle-rank-point-title {
        margin: 0 !important;
        font-size: 17px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        white-space: normal !important;
    }

    .curadle-product-html-match .curadle-rank-point-description {
        max-width: none !important;
        margin: 7px 0 0 !important;
        font-size: 11px !important;
        line-height: 1.42 !important;
    }

    .curadle-product-html-match .curadle-rank-point-media {
        min-width: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
        align-self: stretch !important;
        padding: 0 !important;
    }

    .curadle-product-html-match .curadle-rank-point-media img,
    .curadle-product-html-match .curadle-rank-point--second .curadle-rank-point-media img {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: 124px !important;
        max-height: 150px !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: right bottom !important;
        transform: none !important;
    }

    /* ----------------------------------------------------------
       FEATURE CARDS
       Thu gọn card cao/trống trên điện thoại.
       ---------------------------------------------------------- */
    .curadle-product-html-match .curadle-feature-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .curadle-product-html-match .curadle-feature-card {
        position: relative !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 18px 18px 18px 72px !important;
        border-radius: 12px !important;
    }

    .curadle-product-html-match .curadle-feature-card > svg,
    .curadle-product-html-match .curadle-feature-card > .curadle-custom-icon {
        position: absolute !important;
        left: 20px !important;
        top: 50% !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
        color: #2e3d98 !important;
    }

    .curadle-product-html-match .curadle-feature-card h3 {
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .curadle-product-html-match .curadle-feature-card p {
        margin: 6px 0 0 !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
    }
}

@media (max-width: 390px) {
    .curadle-product-html-match .curadle-rank-point-inner.container-page {
        width: calc(100% - 20px) !important;
        grid-template-columns: minmax(0, 1fr) 106px !important;
        gap: 8px !important;
    }

    .curadle-product-html-match .curadle-rank-point-title {
        font-size: 15.5px !important;
    }

    .curadle-product-html-match .curadle-rank-point-description {
        font-size: 10.5px !important;
    }

    .curadle-product-html-match .curadle-rank-point-media img,
    .curadle-product-html-match .curadle-rank-point--second .curadle-rank-point-media img {
        max-width: 106px !important;
        max-height: 138px !important;
    }
}

/* ======================================================================
 * PRODUCT CONTROLS — AUTHORITATIVE COLOR + TOUCH CONTRACT — 2026-09-21
 * Same colors on desktop/tablet/mobile. Media queries may change only layout.
 * ====================================================================== */
.curadle-product-category-link,
button.curadle-product-category-link,
[data-product-filter].curadle-product-category-link {
  position: relative;
  z-index: 3;
  background: #fff !important;
  border-color: var(--curadle-ui-primary, #2e3d98) !important;
  color: #292524 !important;
  cursor: pointer;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.curadle-product-category-link:is(.is-active,[aria-pressed="true"]),
button.curadle-product-category-link:is(.is-active,[aria-pressed="true"]),
[data-product-filter].curadle-product-category-link:is(.is-active,[aria-pressed="true"]) {
  background: var(--curadle-ui-primary, #2e3d98) !important;
  border-color: var(--curadle-ui-primary, #2e3d98) !important;
  color: #fff !important;
}

@media (hover: hover) {
  .curadle-product-category-link:not(.is-active):not([aria-pressed="true"]):hover {
    background: var(--curadle-ui-primary-soft, #f1f4ff) !important;
    border-color: var(--curadle-ui-primary, #2e3d98) !important;
    color: var(--curadle-ui-primary, #2e3d98) !important;
  }
}

.curadle-product-sort-field,
.curadle-product-search,
.curadle-product-search input {
  background: #fff !important;
}

.curadle-product-sort-field,
.curadle-product-search input {
  border-color: var(--curadle-ui-primary, #2e3d98) !important;
  color: #292524 !important;
}

.curadle-product-sort-label,
.curadle-product-sort-arrow,
.curadle-product-search input::placeholder,
.curadle-product-search svg {
  color: var(--curadle-ui-primary, #2e3d98) !important;
  stroke: var(--curadle-ui-primary, #2e3d98) !important;
}

/* The native select is the real tap target over the visual sort field. */
.curadle-product-sort {
  z-index: 5 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
}

/* Magnifier is decorative; let taps reach/focus the input underneath. */
.curadle-product-search svg {
  pointer-events: none !important;
}

/* Keep the toolbar above decorative/pseudo layers on narrow screens. */
.curadle-product-category-nav,
.curadle-product-toolbar {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .curadle-product-category-link,
  button.curadle-product-category-link,
  [data-product-filter].curadle-product-category-link {
    background: #fff !important;
    border-color: var(--curadle-ui-primary, #2e3d98) !important;
    color: #292524 !important;
  }

  .curadle-product-category-link:is(.is-active,[aria-pressed="true"]),
  button.curadle-product-category-link:is(.is-active,[aria-pressed="true"]),
  [data-product-filter].curadle-product-category-link:is(.is-active,[aria-pressed="true"]) {
    background: var(--curadle-ui-primary, #2e3d98) !important;
    border-color: var(--curadle-ui-primary, #2e3d98) !important;
    color: #fff !important;
  }
}
