/* =====================================================
   TRY AT HOME – PREMIUM FLOW (CLEAN & COMPACT)
===================================================== */

.lx-try-flow.refined {
    margin-top: 36px;              /* ↓ gọn hơn */
    padding: 28px 18px;            /* ↓ gọn hơn */
    background: #faf7f6;
    border-radius: 20px;
    border: 1px solid #f0e2de;
}

/* TITLE */
.lx-try-title {
    text-align: center;
    font-size: 24px;               /* ↓ nhẹ */
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 22px;           /* ↓ gọn */
}

.lx-try-title span {
    color: #b11226;
}

/* STEPS */
.lx-try-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;                      /* ↓ sát hơn */
    flex-wrap: wrap;
}

/* STEP */
.lx-try-step {
    width: 104px;                  /* ↓ gọn card */
    text-align: center;
}

/* ICON */
.lx-step-icon {
    width: 52px;                   /* ↓ nhỏ lại */
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #ead3cd;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    margin: 0 auto 8px;            /* ↓ gọn */
}

/* TEXT */
.lx-try-step p {
    font-size: 13px;               /* ↓ gọn */
    line-height: 1.35;
    margin: 0;
}

.lx-try-step small {
    display: block;
    font-size: 11.5px;
    color: #666;
    margin-top: 2px;
}

/* ARROW */
.lx-arrow {
    width: 20px;
    height: 2px;
    background: #d7b2ab;
    margin-top: 22px;              /* canh giữa icon */
}

/* HIGHLIGHT STEP */
.lx-try-step.highlight .lx-step-icon {
    background: #b11226;
    color: #fff;
    border-color: #b11226;
}

.lx-try-step.highlight p,
.lx-try-step.highlight small {
    color: #b11226;
    font-weight: 500;
}

/* TRUST STRIP */
.lx-try-trust {
    margin-top: 20px;              /* ↓ gọn */
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #b11226;

    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
}
/* =====================================================
   EDITORIAL IMAGE — LIN XÉN
===================================================== */

.lx-editorial {
    position: relative;
    margin: 28px 14px 12px;
    border-radius: 20px;
    overflow: hidden;
}

.lx-editorial img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* TEXT OVERLAY */
.lx-editorial-text {
    position: absolute;
    left: 16px;
    bottom: 16px;

    color: #f9f7f4;
}

.lx-editorial-text h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .5px;
    margin: 0;
}

.lx-editorial-text p {
    font-size: 13px;
    margin-top: 4px;
    opacity: .9;
}

/* =====================================================
   TRUST VISUAL — IMAGE NORMALIZATION
===================================================== */

.lx-trust-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

/* IMAGE WRAPPER */
.lx-trust-image {
    position: relative;
    width: 150px;              /* 👈 cố định chiều ngang */
    aspect-ratio: 3 / 4;       /* 👈 cùng tỉ lệ cho mọi ảnh */
    border-radius: 14px;
    overflow: hidden;
    background: #f3f3f3;
}

/* IMAGE */
.lx-trust-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* 👈 crop nhưng không méo */
    object-position: center;   /* 👈 focus trung tâm */
    display: block;
}

/* LABEL */
.lx-trust-label {
    position: absolute;
    bottom: 8px;
    left: 8px;

    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 999px;

    background: rgba(255,255,255,.9);
    color: #333;
}

/* REAL LABEL */
.lx-trust-label.real {
    background: rgba(177,18,38,.9);
    color: #fff;
}

/* ARROW */
.lx-trust-arrow {
    font-size: 20px;
    font-weight: 600;
    color: #b11226;
    margin: 0 2px;
}

/* =====================================================
   EXCHANGE POLICY – LIN XÉN (REFINED PALETTE)
===================================================== */

.lx-exchange {
    margin-top: 5px;
    padding: 48px 26px;
    border-radius: 30px;
    background: linear-gradient(180deg, #f9fafb, #eef2f7);
    border: 1.5px solid #d6dde8;
}

/* TITLE */
.lx-exchange-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #1f2937;
}

.lx-exchange-title span {
    color: #243a5e;
}

/* DESC */
.lx-exchange-desc {
    text-align: center;
    font-size: 14.5px;
    color: #374151;
    max-width: 560px;
    margin: 0 auto 34px;
}

.lx-exchange-desc strong {
    color: #243a5e;
    font-weight: 600;
}

/* STEPS */
.lx-exchange-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.lx-ex-step {
    width: 160px;
    text-align: center;
}

/* STEP NUMBER */
.lx-ex-step span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #d6dde8;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #243a5e;
    margin-bottom: 10px;
}

/* STEP TEXT */
.lx-ex-step p {
    font-size: 13.8px;
    line-height: 1.45;
    color: #1f2937;
}

.lx-ex-step small {
    display: block;
    font-size: 12.2px;
    color: #667085;
    margin-top: 3px;
}

/* HIGHLIGHT STEP */
.lx-ex-step.highlight span {
    background: #243a5e;
    color: #ffffff;
    border-color: #243a5e;
}

/* TRUST STRIP */
.lx-exchange-trust {
    margin-top: 22px;
    padding: 18px 22px;
    border-radius: 18px;
    background: #ffffff;
    border: 1.5px solid #243a5e;
    text-align: center;
    font-size: 14.2px;
    color: #1f2937;
}

.lx-exchange-trust strong {
    color: #243a5e;
    font-weight: 600;
}

/* ===== Exchange animation base ===== */

.lx-exchange {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .6s ease, transform .6s ease;
}

.lx-exchange.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lx-ex-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .45s ease, transform .45s ease;
}

.lx-ex-step.is-active {
    opacity: 1;
    transform: translateY(0);
}

.lx-divider-image {
    margin: 56px 0;
    border-radius: 24px;
    overflow: hidden;
}

.lx-divider-image img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

/* ============================================= */
 /* EXCHANGE POSTER */
 /* ============================================= */

.lx-exchange-poster {
    position: relative;
    margin: 32px 14px 12px;
    border-radius: 20px;
    overflow: hidden;
}

.lx-exchange-poster img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* TEXT OVERLAY */
.lx-exchange-poster-text {
    position: absolute;
    left: 16px;
    top: 18px;
    color: #f9f7f4;
}

.lx-exchange-poster-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.lx-exchange-poster-text p {
    font-size: 13px;
    margin-top: 4px;
    opacity: 0.9;
}

.lx-exchange-poster-text span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.85;
}
/* =====================================================
   CATEGORY PILLS – LIN XÉN (REFINED)
===================================================== */

.lx-category-pills.refined {
    margin-top: 28px;
    padding: 0 14px;
}

/* header */
.lx-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.lx-category-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #1f2937;
}

.lx-category-hint {
    font-size: 12px;
    color: #9ca3af;
}

/* scroll container */
.lx-category-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.lx-category-scroll::-webkit-scrollbar {
    display: none;
}

/* pill */
.lx-category-pill {
    min-width: 78px;
    text-align: center;
    text-decoration: none;
    color: #1f2937;
}

/* image wrapper */
.lx-category-thumb {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f4f2f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

/* image */
.lx-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* name */
.lx-category-name {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1px;
}

/* highlight (new / focus) */
.lx-category-pill.highlight .lx-category-thumb {
    box-shadow: 0 0 0 2px #b11226;
}

.lx-category-pill.highlight .lx-category-name {
    color: #b11226;
    font-weight: 600;
}

/* ===================================================== */
/* FLASH SALE – LIN XÉN */
/* ===================================================== */

.lx-flash-sale {
    padding: 16px 0 8px;
    background: linear-gradient(180deg, #fff6f7, #ffffff);
}

/* ===== HEAD ===== */
.lx-flash-sale-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 10px;
}

.lx-flash-sale-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .3px;
}

/* ===== COUNTDOWN ===== */
.lx-flash-sale-countdown {
    display: flex;
    gap: 6px;
}

.lx-countdown-item {
    background: #111;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    min-width: 44px;
    text-align: center;
}

.lx-countdown-item .num {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    display: block;
}

.lx-countdown-item .label {
    font-size: 10px;
    opacity: .75;
}

/* ===== SCROLL WRAPPER ===== */
.lx-flash-sale-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 12px;
    scroll-behavior: smooth;
}

/* Ẩn scrollbar */
.lx-flash-sale-scroll::-webkit-scrollbar {
    display: none;
}
.lx-flash-sale-scroll {
    scrollbar-width: none;
}

/* ===== PRODUCT ROW ===== */
.lx-product-row {
    display: flex;
    gap: 12px;
}

/* ===== PRODUCT CARD SIZE ===== */
.lx-flash-sale .lx-product-card {
    flex: 0 0 auto;
    width: 160px; /* mobile */
}

/* Tablet */
@media (min-width: 768px) {
    .lx-flash-sale .lx-product-card {
        width: 200px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .lx-flash-sale .lx-product-card {
        width: 220px;
    }
}

/* ===== UX TINH TẾ ===== */
/* Gợi ý kéo ngang */
.lx-flash-sale-scroll::after {
    content: '← Vuốt để xem thêm';
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}

/* Fade nhẹ hai bên (tùy chọn, nếu thấy đẹp thì giữ) */
@supports (mask-image: linear-gradient(#000, #000)) {
    .lx-flash-sale-scroll {
        mask-image: linear-gradient(
            to right,
            transparent 0,
            black 24px,
            black calc(100% - 24px),
            transparent 100%
        );
    }
}

/* ===================================================== */
/* PRODUCT TYPE CATEGORIES – IMAGE BASED */
/* ===================================================== */

.lx-product-type-categories {
    padding: 20px 0 8px;
    background: #fff;
}

/* ===== HEAD ===== */
.lx-product-type-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 16px 12px;
}

.lx-product-type-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .2px;
}

.lx-product-type-hint {
    font-size: 12px;
    color: #999;
}

/* ===== SCROLL WRAPPER ===== */
.lx-product-type-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 12px;
    scroll-behavior: smooth;
}

/* Ẩn scrollbar */
.lx-product-type-scroll::-webkit-scrollbar {
    display: none;
}
.lx-product-type-scroll {
    scrollbar-width: none;
}

/* ===== CARD ===== */
.lx-product-type-card {
    flex: 0 0 auto;
    width: 120px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #f7f7f7;
}

/* IMAGE */
.lx-product-type-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* LABEL */
.lx-product-type-card span {
    display: block;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    background: #fff;
}

/* ===== HIGHLIGHT ===== */
.lx-product-type-card.highlight {
    outline: 0px solid #111;
}

/* ===== TABLET ===== */
@media (min-width: 768px) {
    .lx-product-type-card {
        width: 150px;
    }

    .lx-product-type-card img {
        height: 180px;
    }

    .lx-product-type-card span {
        font-size: 14px;
    }
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .lx-product-type-scroll {
        justify-content: center;
    }
}

