/* Home page layout for Charm Store Child */

:root {
    --lc-bg: #f8f4f0; 
    --lc-surface: #fefbf8;
    --lc-muted-surface: #f3e7de;
    --lc-card-surface: #efe3da;
    --lc-text: #3b0a0a;
    --lc-muted: #6b3b3b;
    --lc-muted-light: #8c6c6c;
    --lc-brand: #3b0a0a;
    --lc-accent: #7e2a2a;
    --lc-line: rgba(59, 10, 10, 0.18);
    --lc-radius-xl: 26px;
    --lc-radius-lg: 20px;
    --lc-radius-md: 16px;
    --lc-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
    --lc-shell: min(1440px, calc(100% - 48px));
}

/* ─── Pull .lc-landing up to remove any WP container gap above it ─── */
/* Any container between body and .lc-landing must have zero height */
body.home #content,
body.home .site-content {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

    /* ═══════════════════════════════════════════════════════════════
       HERO — Full-bleed (US-01)
    ═════════════════════════════════════════════════════════════════ */
body.home .lc-landing {
    /* Capture any residual top space from parent containers */
    margin-top: -1px;
    /* Micro-adjust: modern browsers sometimes add 1px ghost*/
}

body.home,
body.home .site,
body.home .site-content {
    background: var(--lc-bg) !important;
    color: var(--lc-text);
}

/* Xóa bỏ mọi padding/gap giữa lc-header và hero section trên front-page */
body.home #main,
body.home .site-main,
body.home .content-area,
body.home #primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Loại bỏ khoảng trắng WooCommerce breadcrumb/notice trên front-page */
body.home .woocommerce-breadcrumb,
body.home .woocommerce-message,
body.home .woocommerce-info {
    display: none !important;
}

body.home {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body.home h1,
body.home h2,
body.home h3,
body.home .site-title {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: 0.01em;
}

.lc-home {
    min-height: 900px;
    padding: 0 0 52px;
}

.lc-home-shell {
    width: var(--lc-shell);
    margin: 0 auto;
}

.lc-home section {
    padding: 34px 0;
}

.lc-home h2 {
    margin: 0 0 24px;
    line-height: 1.1;
    text-align: center;
    color: var(--lc-text);
}

.lc-center {
    text-align: center;
    margin-top: 24px;
}

.lc-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 146px;
    height: 56px;
    border-radius: 28px;
    padding: 0 42px;
    font-size: 15px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.lc-home-btn:hover {
    transform: translateY(-2px);
}

.lc-home-btn-solid {
    background: var(--lc-accent);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.4);
}

.lc-home-btn-solid:hover {
    background: #f5a8b6;
    color: #ffffff;
}

.lc-home-btn-outline {
    border: 2px solid var(--lc-brand);
    color: var(--lc-brand);
    background: #ffffff;
    border-radius: 24px;
    padding: 0 36px;
    height: 50px;
    font-size: 14px;
}

.lc-home-btn-outline:hover {
    background: var(--lc-brand);
    color: #fff;
}

/* Header override only on homepage */
body.home .site-header,
body.home .site-header .col-full,
body.home .site-header .header-widget-region {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: transparent !important;
    min-height: 80px;
}

body.home .site-header *,
body.home .site-header a,
body.home .main-navigation a,
body.home .site-header-cart .cart-contents {
    color: var(--lc-text) !important;
}

body.home .site-title,
body.home .site-title a {
    color: var(--lc-brand) !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    font-family: "Playfair Display", Georgia, serif !important;
}

body.home .main-navigation ul,
body.home .main-navigation ul.menu,
body.home .main-navigation ul.nav-menu {
    gap: 48px;
}

body.home .main-navigation a,
body.home .main-navigation ul.menu li a,
body.home .main-navigation ul.nav-menu li a {
    font-size: 16px !important;
    font-weight: 500 !important;
}

body.home .site-header a:hover,
body.home .main-navigation a:hover {
    color: var(--lc-brand) !important;
}

body.home .site-header .search-field {
    background: #fff !important;
    border: 1px solid var(--lc-line) !important;
}

body.home .site-search .widget_product_search form:before,
body.home .site-header-cart .cart-contents:after {
    color: var(--lc-text) !important;
}

body.home .site-header-cart .count,
body.home .site-header-cart .cart-contents .count {
    background: var(--lc-accent) !important;
    color: #ffffff !important;
}

/* Hero */
.lc-home-hero {
    min-height: 500px;
}

.lc-hero-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.9) 0%, var(--lc-muted-surface) 64%);
    border-radius: var(--lc-radius-xl);
    overflow: hidden;
    box-shadow: var(--lc-shadow-soft);
    min-height: 500px;
}

.lc-hero-media {
    position: relative;
}

.lc-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.3) 100%);
    pointer-events: none;
}

.lc-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.lc-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.lc-overline {
    margin: 0;
    color: var(--lc-muted-light);
    font-size: 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lc-hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 4.4vw, 48px);
    color: var(--lc-brand);
    text-align: center;
}

/* Products */
.lc-home-products {
    background: var(--lc-muted-surface);
    min-height: 520px;
    padding: 80px 0 !important;
}

.lc-home-products h2,
.lc-home-feedbacks h2,
.lc-home-faq h2 {
    font-size: clamp(30px, 3.4vw, 36px);
    margin-bottom: 60px;
}

.lc-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 240px);
    gap: 28px;
    justify-content: center;
}

.lc-product-tile {
    background: var(--lc-card-surface);
    border-radius: var(--lc-radius-md);
    overflow: hidden;
    border: 1px solid #dfd4ca;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 240px;
    height: 240px;
    display: flex;
}

.lc-product-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-product-tile:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Collections */
.lc-home-collections {
    background: #ffffff;
    min-height: 580px;
}

.lc-home-collections h2 {
    font-size: clamp(28px, 3vw, 32px);
    margin-bottom: 50px;
}

.lc-collection-grid {
    display: grid;
    grid-template-columns: 480px 640px;
    gap: 32px;
    justify-content: center;
}

.lc-collection-card {
    border-radius: var(--lc-radius-lg);
    overflow: hidden;
    display: block;
    border: 1px solid #e5e5e5;
}

.lc-collection-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lc-collection-card:hover img {
    transform: scale(1.03);
}

/* Feedback */
.lc-home-feedbacks {
    background: #ffffff;
    min-height: 720px;
}

.lc-feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.lc-feedback-card {
    background: var(--lc-muted-surface);
    border: 1px solid var(--lc-line);
    border-radius: var(--lc-radius-lg);
    padding: 32px;
}

.lc-feedback-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lc-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dca0a8, #b85c6a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    border: 3px solid #ffffff;
}

.lc-feedback-head h3 {
    margin: 0;
    font-size: 18px;
    color: var(--lc-text);
}

.lc-stars {
    margin: 2px 0 0;
    color: #ffd700;
    letter-spacing: 0.12em;
    font-size: 18px;
}

.lc-feedback-card p {
    margin: 0;
    color: var(--lc-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* FAQ */
.lc-home-faq {
    background: var(--lc-muted-surface);
    min-height: 650px;
}

.lc-faq-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 48px;
    align-items: flex-start;
}

.lc-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.lc-policy-card {
    background: #ffffff;
    border: 1px solid var(--lc-line);
    border-radius: var(--lc-radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.lc-policy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(59, 10, 10, 0.08);
    border-color: #2e2319;
}

.lc-policy-icon {
    width: 64px;
    height: 64px;
    background: var(--lc-muted-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lc-brand);
    margin-bottom: 24px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.lc-policy-card:hover .lc-policy-icon {
    background: var(--lc-brand);
    color: #ffffff;
    transform: scale(1.1);
}

.lc-policy-title {
    font-size: 20px;
    color: var(--lc-text);
    margin: 0 0 12px;
    font-weight: 600;
}

.lc-policy-desc {
    font-size: 15px;
    color: var(--lc-muted);
    line-height: 1.6;
    margin: 0 0 24px;
    flex-grow: 1;
}

.lc-policy-action {
    color: var(--lc-accent);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.lc-policy-card:hover .lc-policy-action {
    color: var(--lc-brand);
}

/* Footer visual direction */
body.home .site-footer,
body.home .site-footer .col-full,
body.home .site-info {
    background: #3b0a0a !important;
    color: #f8f4f0 !important;
    min-height: 320px;
}

body.home .site-footer *,
body.home .site-info *,
body.home .site-footer a,
body.home .site-info a {
    color: #ffffff !important;
}

/* Mobile */
@media (max-width: 1180px) {
    :root {
        --lc-shell: calc(100% - 32px);
    }

    .lc-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .lc-product-tile {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .lc-collection-grid {
        grid-template-columns: 1fr;
        max-width: 780px;
        margin: 0 auto;
    }

    .lc-collection-card img {
        height: 420px;
    }
}

@media (max-width: 980px) {

    .lc-hero-grid,
    .lc-faq-grid,
    .lc-feedback-grid {
        grid-template-columns: 1fr;
    }

    .lc-hero-grid,
    .lc-home-hero,
    .lc-hero-media img {
        min-height: 0;
    }

    .lc-hero-media img {
        min-height: 340px;
    }

    .lc-faq-media {
        min-height: 0;
        padding-bottom: 24px;
    }

    .lc-faq-media .faq-photo-secondary {
        right: 12px;
        top: 208px;
        transform: translateX(0);
    }
}

@media (max-width: 680px) {
    :root {
        --lc-shell: calc(100% - 22px);
    }

    .lc-home section {
        padding: 24px 0;
    }

    .lc-home-btn {
        height: 52px;
        padding: 0 28px;
        font-size: 14px;
    }

    .lc-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lc-policy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HERO — Full-bleed (US-01)
════════════════════════════════════════════════════════════════ */
.lc-landing {
    --lc-front-header-height: 80px;
}

body.home .lc-header {
    min-height: var(--lc-front-header-height);
}

body.home .lc-header-row {
    height: var(--lc-front-header-height);
}

.lc-hero--fullbleed {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: #faf7f3;
    overflow: hidden;
}

/* ── Desktop Hero: 2-column layout (ảnh trái 60%, CTA phải 40%) ─── */
@media (min-width: 900px) {
    .lc-hero--fullbleed {
        grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
        align-items: stretch;
        min-height: calc(100svh - var(--lc-front-header-height));
    }

    .lc-hero-img-wrap {
        height: calc(100svh - var(--lc-front-header-height));
        min-height: 620px;
        padding: clamp(18px, 2vw, 30px);
        background: #f1e8e0;
    }

    .lc-hero-content {
        min-height: calc(100svh - var(--lc-front-header-height));
        text-align: left;
        align-items: flex-start;
        justify-content: center;
        padding: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 64px);
    }

    .lc-hero--fullbleed .lc-overline,
    .lc-hero--fullbleed .lc-hero-desc {
        color: var(--lc-muted-light) !important;
    }

    .lc-hero--fullbleed .lc-hero-title {
        color: var(--lc-text) !important;
        font-size: clamp(48px, 4.8vw, 76px) !important;
    }

    .lc-hero-img {
        object-fit: contain;
        object-position: center center;
    }

    .lc-hero-desc,
    .lc-hero--fullbleed .lc-hero-desc {
        max-width: 420px;
        font-size: 16px;
    }

    .lc-hero-actions {
        justify-content: flex-start;
    }
}

.lc-hero-img-wrap {
    position: relative;
    width: 100%;
    height: calc(100svh - var(--lc-front-header-height));
    min-height: 360px;
    background: #f1e8e0;
    overflow: hidden;
}

.lc-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.lc-hero-overlay {
    display: none;
}

.lc-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 24px 40px;
    color: var(--lc-text);
    text-align: center;
    background: #faf7f3;
}

.lc-hero--fullbleed .lc-overline {
    color: var(--lc-muted-light) !important;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
}

.lc-hero-title,
.lc-hero--fullbleed .lc-hero-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(42px, 11vw, 72px) !important;
    font-weight: 700;
    color: var(--lc-text) !important;
    line-height: 1.08;
    margin: 0 !important;
}

.lc-hero-desc,
.lc-hero--fullbleed .lc-hero-desc {
    font-size: 15px;
    color: var(--lc-muted) !important;
    margin: 0 0 8px !important;
    max-width: 320px;
    line-height: 1.6;
}

.lc-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.lc-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.lc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   SNAP CAROUSEL — Dùng chung cho 3 sections (US-02, 03, 04)
   Scroll-snap CSS native, không cần JS thêm
════════════════════════════════════════════════════════════════ */
[data-lc-snap-carousel] {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox: ẩn scrollbar */
    padding-bottom: 8px;
    padding-left: 2px;
    padding-right: 2px;
    cursor: grab;
    overscroll-behavior-x: contain;
}

/* Ẩn scrollbar trên mọi trình duyệt để không cản trở thao tác vuốt touch trên mobile */
[data-lc-snap-carousel]::-webkit-scrollbar {
    display: none;
}

[data-lc-snap-carousel]>* {
    scroll-snap-align: center;
    /* Luôn snap vào giữa */
    flex-shrink: 0;
}

[data-lc-snap-carousel].is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED CATEGORIES — Slide danh mục con (US-02)
════════════════════════════════════════════════════════════════ */
.lc-featured-cats {
    background: var(--lc-muted-surface);
}

.lc-cat-carousel {
    gap: 14px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
}

.lc-cat-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    width: 180px;
    /* hẹp lại để nhiều card hiển thị cùng lúc */
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform 0.25s ease;
}

.lc-cat-card:hover {
    transform: translateY(-4px);
}

.lc-cat-card-img-wrap {
    width: 180px;
    height: 235px;
    /* tỷ lệ ~4:5 */
    border-radius: var(--lc-radius-lg);
    overflow: hidden;
    background: var(--lc-card-surface);
}

.lc-cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.lc-cat-card:hover .lc-cat-card-img {
    transform: scale(1.05);
}

.lc-cat-card-parent {
    margin: 10px 0 2px;
    font-size: 11px;
    color: var(--lc-muted-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lc-cat-card-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--lc-text);
    font-family: "Playfair Display", Georgia, serif;
}

/* ═══════════════════════════════════════════════════════════════
   LOOKBOOK GALLERY — Collection mix mẫu sẵn (US-03)
════════════════════════════════════════════════════════════════ */
.lc-lookbook {
    background: #fff;
}

.lc-lookbook-carousel {
    gap: 16px;
}

/* Style chung — Mobile: gần full màn hình, Desktop: ~1/3 màn */
.lc-lookbook-card,
.lc-feedback-photo-card {
    /* Chừa 24px mỗi bên (48px tổng), không hé ảnh kế tiếp */
    width: calc(100vw - 48px);
    max-width: 380px;
    aspect-ratio: 4 / 5;
    height: auto;
    border-radius: var(--lc-radius-xl);
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: center;
    box-shadow: var(--lc-shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lc-lookbook-card {
    background: var(--lc-muted-surface);
}

.lc-lookbook-card:hover,
.lc-feedback-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.lc-lookbook-img,
.lc-feedback-photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════
   FEEDBACK PHOTO SLIDE — Ảnh screenshot IG (US-04)
════════════════════════════════════════════════════════════════ */
.lc-feedbacks {
    background: var(--lc-muted-surface);
}

.lc-feedback-photo-carousel {
    gap: 16px;
}

.lc-feedback-photo-card {
    background: var(--lc-card-surface);
    border: 1px solid rgba(59, 10, 10, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile adjustments cho 3 sections mới
════════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
    .lc-landing {
        --lc-front-header-height: 72px;
    }

    body.home .lc-header {
        min-height: var(--lc-front-header-height);
    }

    body.home .lc-header-row {
        height: var(--lc-front-header-height);
    }

    /* Hero */
    .lc-hero-img-wrap {
        min-height: 320px;
    }

    .lc-hero-content {
        padding: 24px 20px 40px;
    }

    .lc-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .lc-btn-primary,
    .lc-btn-ghost {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Category cards — nhỏ lại chút trên mobile nhỏ */
    .lc-cat-card {
        width: 160px;
    }

    .lc-cat-card-img-wrap {
        width: 160px;
        height: 208px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CONFLICT OVERRIDES — Reset landing-template.css defaults
   cho các class mới trên front-page
════════════════════════════════════════════════════════════════ */

/* Fix: .lc-hero cũ có background gradient và min-height */
.lc-hero.lc-hero--fullbleed {
    background: #faf7f3 !important;
    min-height: 0 !important;
}

/* Fix: .lc-feedbacks cũ (landing-template.css) khác bg và min-height */
.lc-feedbacks {
    min-height: 0 !important;
    background: var(--lc-muted-surface) !important;
}

/* Fix: .lc-hero-row cũ có min-height 650px và padding-top làm hero bị đẩy */
.lc-hero--fullbleed .lc-hero-row {
    min-height: 0 !important;
    padding: 0 !important;
}

/* Fix: home hero dùng palette sáng thay vì overlay text trắng */
.lc-hero--fullbleed .lc-hero-title {
    color: var(--lc-text) !important;
}

.lc-hero--fullbleed .lc-hero-desc {
    color: var(--lc-muted) !important;
}

.lc-hero--fullbleed .lc-overline {
    color: var(--lc-muted-light) !important;
}

/* ═══════════════════════════════════════════════════════════════
   BODY.HOME — Ẩn Storefront native header (front-page dùng lc-header riêng)
════════════════════════════════════════════════════════════════ */
body.home .site-header,
body.home .storefront-handheld-footer-bar,
body.home #secondary {
    display: none !important;
}

body.home #content,
body.home #primary,
body.home #main,
body.home .site-main,
body.home .content-area,
body.home .site-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home #page,
body.home .site {
    overflow-x: visible !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   FIX: Carousel flex direction & overflow
════════════════════════════════════════════════════════════════ */
.lc-cat-carousel,
.lc-lookbook-carousel,
.lc-feedback-photo-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* Desktop (>=900px): Hiện thanh cuộn mảnh để dùng chuột kéo */
@media (min-width: 900px) {
    [data-lc-snap-carousel] {
        scrollbar-width: thin;
        scrollbar-color: rgba(59, 10, 10, 0.25) transparent;
        padding-bottom: 14px;
    }

    [data-lc-snap-carousel]::-webkit-scrollbar {
        display: block;
        height: 5px;
    }

    [data-lc-snap-carousel]::-webkit-scrollbar-track {
        background: transparent;
    }

    [data-lc-snap-carousel]::-webkit-scrollbar-thumb {
        background-color: rgba(59, 10, 10, 0.25);
        border-radius: 4px;
    }

    [data-lc-snap-carousel]::-webkit-scrollbar-thumb:hover {
        background-color: rgba(59, 10, 10, 0.45);
    }
}

/* ==========================================================
   FIX UI/UX: Ngăn chặn lỗi bóng mờ và cải thiện cảm ứng cuộn
   ========================================================== */

/* 1. Ngừng hành động kéo ảnh / link mặc định của thẻ a, img gây bóng mờ trên trang chủ */
.lc-landing img,
.lc-landing a,
.lc-landing .lc-home-btn,
.lc-landing .lc-policy-card,
.lc-faq-grid * {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* 2. Fix lỗi kẹt cuộn trang dọc ở Slider và Slider Sản phẩm nổi bật */
.lc-cat-carousel,
.lc-cat-card,
.lc-lookbook-carousel,
.lc-lookbook-card,
.lc-feedback-photo-carousel,
.lc-feedback-photo-card {
    /* Đảm bảo trình duyệt xử lý cả cuộn dọc (pan-y) và ngang (pan-x) trên touch */
    touch-action: pan-y pan-x pinch-zoom !important;
}

/* 3. Ngăn người dùng vô tình quét chọn text (text selection) khi đang vuốt các card trên mobile */
.lc-cat-card,
.lc-lookbook-card,
.lc-feedback-photo-card,
.lc-policy-card {
    -webkit-user-select: none;
    user-select: none;
}
