/* =====================================================
   COLLECTION – LIN XÉN
   Premium • Minimal • Fashion-forward (CLEAN)
===================================================== */

:root {
    --lx-text: #111;
    --lx-muted: #6b7280;
    --lx-border: #e5e7eb;
    --lx-bg-soft: #f6f6f6;
    --lx-accent: #111;
}

/* =====================================================
   CATEGORY HERO
===================================================== */

.lx-category-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to bottom, #fafafa, #fff);
}

.lx-category-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lx-category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.45),
        rgba(0,0,0,.12),
        transparent
    );
}

.lx-category-hero.no-hero::after {
    display: none;
}

.lx-category-hero-text {
    position: relative;
    z-index: 2;
    padding: 28px 20px;
    max-width: 720px;
    color: #fff;
}

.lx-category-hero.no-hero .lx-category-hero-text {
    color: var(--lx-text);
}

.lx-category-hero-text h1 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.lx-category-desc {
    font-size: 14px;
    line-height: 1.55;
}

.lx-category-desc.muted {
    color: var(--lx-muted);
}

/* =====================================================
   COLLECTION SECTION
===================================================== */

.lx-product-section {
    padding: 48px 16px;
}

/* =====================================================
   PRODUCT GRID (CORE FIX)
===================================================== */

.lx-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* mobile 2 cột */
    gap: 14px;
}

@media (min-width: 768px) {
    .lx-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .lx-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

/* =====================================================
   PRODUCT CARD
===================================================== */

.lx-product-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 8px;               /* 🔥 GIẢM MẠNH PADDING */
    border-radius: 14px;
}

/* =====================================================
   PRODUCT MEDIA
===================================================== */

.lx-product-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--lx-bg-soft);
    overflow: hidden;
    border-radius: 12px;
}

.lx-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.lx-product-card:hover .lx-product-media img {
    transform: scale(1.03);
}


/* =====================================================
   PRODUCT INFO
===================================================== */

.lx-product-head {
    margin-top: 10px;
}

.lx-product-name {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--lx-text);
}

/* TAG */

.lx-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #444;
}

.lx-tag-best {
    background: #111;
    color: #fff;
}

/* =====================================================
   PRICE (EMPHASIS)
===================================================== */

.lx-product-price-wrap {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lx-price-sale {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.lx-price-origin {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* =====================================================
   VARIANTS
===================================================== */

.lx-product-variants {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* COLORS */

.lx-product-colors {
    display: flex;
    gap: 6px;
}

.lx-color-swatch {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.lx-color-swatch.active {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* COLOR DEMO */

.lx-color-swatch.black { background: #000; }
.lx-color-swatch.white { background: #fff; }
.lx-color-swatch.beige { background: #e6d8c3; }
.lx-color-swatch.brown { background: #6b4f3f; }
.lx-color-swatch.red   { background: #b11226; }
.lx-color-swatch.blue  { background: #1f4fd8; }
.lx-color-swatch.navy  { background: #1b2a4e; }
.lx-color-swatch.olive { background: #6b7c4a; }

/* QUICK ORDER */

.lx-quick-order-inline {
    font-size: 18px;
    text-decoration: none;
    color: #111;
}

/* =====================================================
   STATUS
===================================================== */

.lx-product-tags {
    margin-top: 8px;
}

.lx-tag-stock {
    background: #ecfdf5;
    color: #047857;
}

/* =====================================================
   PAGINATION
===================================================== */

.lx-pagination {
    margin-top: 48px;
}

/* =====================================================
   EMPTY STATE
===================================================== */

.lx-empty-state {
    text-align: center;
    padding: 72px 0;
    color: var(--lx-muted);
}

/* =====================================================
   MOBILE ADJUST
===================================================== */

@media (max-width: 480px) {
    .lx-category-hero {
        min-height: 220px;
    }

    .lx-category-hero-text h1 {
        font-size: 24px;
    }
}
/* =====================================================
   PRODUCT GRID – FULL BLEED
===================================================== */

.lx-product-grid {
    padding: 0 !important;   /* ❗ bỏ padding ngoài */
}

/* =====================================================
   PRODUCT CARD – NO PADDING
===================================================== */

.lx-product-card {
    padding: 0 !important;   /* ❗ ảnh chạm sát card */
    background: transparent;
}
/* =====================================================
   SALE BADGE – LUXURY NEUTRAL (RECOMMENDED)
===================================================== */

.lx-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;

    background: rgba(242, 238, 231, 0.95); /* champagne */
    color: #6b5e4b; /* warm taupe */

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;

    padding: 6px 12px;
    border-radius: 999px;

    backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);

    z-index: 3;
}

/* =====================================================
   TAG – BEST SELLER (LUXURY NEUTRAL)
===================================================== */

.lx-tag-best {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    background: linear-gradient(
        135deg,
        rgba(242, 238, 231, 0.95),
        rgba(235, 229, 219, 0.95)
    );

    color: #6b5e4b;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: .35px;

    padding: 4px 12px;
    border-radius: 999px;

    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* =====================================================
   QUICK ORDER – FLOATING BUTTON
===================================================== */

.lx-quick-order-float {
    position: absolute;
    right: 12px;
    bottom: 12px;

    width: 38px;
    height: 38px;

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

    background: rgba(255,255,255,.95);
    color: #111;

    border-radius: 50%;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    backdrop-filter: blur(6px);

    font-size: 18px;

    transition: transform .2s ease, box-shadow .2s ease;
    z-index: 3;
}

.lx-quick-order-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,.25);
}
/* =====================================================
   QUICK ORDER – SMALL & LUXURY
===================================================== */

.lx-quick-order-float {
    position: absolute;
    right: 10px;
    bottom: 10px;

    width: 30px;
    height: 30px;

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

    background: rgba(255,255,255,0.85);
    color: #111;

    border-radius: 50%;
    text-decoration: none;

    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    backdrop-filter: blur(4px);

    opacity: .85;
    transition:
        opacity .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

    z-index: 3;
}

.lx-quick-order-float:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
/* =====================================================
   PRODUCT TAGS – BOTTOM GROUP
===================================================== */

.lx-product-tags {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lx-tag-stock {
    background: rgba(236, 253, 245, 0.9);
    color: #047857;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
}
/* =====================================================
   PRODUCT NAME – EDITORIAL / PROFESSIONAL
===================================================== */

.lx-product-name {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
    color: #1f2933;            /* charcoal – nhẹ hơn đen */
    letter-spacing: 0.2px;
    margin: 0;
}

/* Optional: nếu muốn serif cho BST đi làm / dự tiệc */
/*
.lx-product-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    letter-spacing: 0.3px;
}
*/

/* =====================================================
   PRICE – SALE EMPHASIS (FASHION RED)
===================================================== */

.lx-price-sale {
    font-size: 17px;
    font-weight: 700;
    color: #9b1c1c;            /* burgundy red – sang, không gắt */
    letter-spacing: 0.2px;
}

/* =====================================================
   PRICE – BASE (DE-EMPHASIZED)
===================================================== */

.lx-price-origin {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;            /* neutral gray */
    text-decoration: line-through;
}

/* =====================================================
   PRICE WRAP – ALIGN & SPACING
===================================================== */

.lx-product-price-wrap {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =====================================================
   MOBILE TUNING (READABILITY)
===================================================== */

@media (max-width: 480px) {
    .lx-product-name {
        font-size: 14px;
        line-height: 1.4;
    }

    .lx-price-sale {
        font-size: 16px;
    }
}
/* =====================================================
   PAGINATION – LUXURY / EDITORIAL
===================================================== */

.lx-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin: 56px 0 24px;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* -----------------------------------------------------
   PAGE ITEM – BASE
----------------------------------------------------- */

.lx-page {
    min-width: 34px;
    height: 34px;
    padding: 0 12px;

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

    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;

    color: #1f2933;                 /* charcoal */
    text-decoration: none;

    border-radius: 999px;
    border: 1px solid transparent;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

/* -----------------------------------------------------
   HOVER (DESKTOP)
----------------------------------------------------- */

@media (hover: hover) {
    .lx-page:hover {
        background: rgba(242, 238, 231, 0.9); /* champagne */
        border-color: rgba(0,0,0,.06);
    }
}

/* -----------------------------------------------------
   ACTIVE PAGE
----------------------------------------------------- */

.lx-page.active {
    background: linear-gradient(
        135deg,
        rgba(242, 238, 231, 0.95),
        rgba(235, 229, 219, 0.95)
    );
    color: #6b5e4b;                 /* warm taupe */
    border-color: rgba(0,0,0,.08);

    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* -----------------------------------------------------
   DISABLED / DOTS
----------------------------------------------------- */

.lx-page.disabled,
.lx-page.dots {
    color: #9ca3af;
    pointer-events: none;
    background: transparent;
}

/* -----------------------------------------------------
   PREV / NEXT (‹ ›)
----------------------------------------------------- */

.lx-page[rel="prev"],
.lx-page[rel="next"] {
    font-size: 16px;
    padding: 0 10px;
}

/* -----------------------------------------------------
   MOBILE TUNING
----------------------------------------------------- */

@media (max-width: 480px) {
    .lx-paging {
        gap: 6px;
        margin: 40px 0 20px;
    }

    .lx-page {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 10px;
    }
}
/* =====================================================
COLLECTION HERO
===================================================== */

.lx-category-hero{
    position:relative;
    width:100%;
    overflow:hidden;
    background:#fafafa;
}

.lx-category-hero img{
    width:100%;
    height:auto;
    display:block;
}

.lx-category-hero-text{
    position:absolute;
    bottom:30px;
    left:40px;
    color:#fff;
}

.lx-category-hero-text h1{
    font-size:32px;
    font-weight:600;
    margin-bottom:8px;
}

.lx-category-desc{
    font-size:15px;
    opacity:.9;
}

.lx-category-hero.no-hero{
    padding:50px 20px;
    text-align:center;
}

.lx-category-hero.no-hero h1{
    color:#111;
}
/* =====================================================
SALE BANNER
===================================================== */

.lx-sale-banner{
    background:#111;
    color:#fff;
    text-align:center;
    padding:12px;
    font-weight:600;
    letter-spacing:.5px;
}
/* =====================================================
COLLECTION FILTER
===================================================== */

.lx-collection-filter{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:14px 16px;
    border-bottom:1px solid #eee;
}

.filter-pill{
    white-space:nowrap;
    border:1px solid #ddd;
    padding:7px 14px;
    border-radius:20px;
    font-size:13px;
    color:#333;
    text-decoration:none;
    transition:.25s;
}

.filter-pill:hover{
    background:#111;
    color:#fff;
    border-color:#111;
}
/* =====================================================
PRODUCT GRID
===================================================== */

.lx-product-section{
    padding:30px 16px;
}

.lx-product-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

@media(min-width:768px){

.lx-product-grid{
    grid-template-columns:repeat(3,1fr);
}

}

@media(min-width:1200px){

.lx-product-grid{
    grid-template-columns:repeat(4,1fr);
}

}
/* =====================================================
PRODUCT CARD
===================================================== */

.lx-product-card{
    position:relative;
}

.lx-product-media{
    position:relative;
    overflow:hidden;
    border-radius:10px;
}

.lx-product-media img{
    width:100%;
    height:auto;
    display:block;
    transition:transform .4s ease;
}

.lx-product-card:hover img{
    transform:scale(1.05);
}
/* =====================================================
SALE BADGE
===================================================== */

.lx-sale-badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#ff3b30;
    color:#fff;
    font-size:12px;
    padding:4px 8px;
    border-radius:6px;
    font-weight:600;
}
/* =====================================================
STOCK WARNING
===================================================== */

.lx-stock-warning{
    position:absolute;
    bottom:10px;
    left:10px;
    background:#000;
    color:#fff;
    font-size:11px;
    padding:4px 7px;
    border-radius:5px;
    opacity:.85;
}
/* =====================================================
QUICK ORDER
===================================================== */

.lx-quick-order-float{
    position:absolute;
    bottom:10px;
    right:10px;
    width:34px;
    height:34px;
    background:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 3px 10px rgba(0,0,0,.15);
}
/* =====================================================
PRODUCT INFO
===================================================== */

.lx-product-head{
    margin-top:10px;
}

.lx-product-name{
    font-size:14px;
    color:#222;
    line-height:1.4;
}
/* =====================================================
PRICE
===================================================== */

.lx-product-price-wrap{
    margin-top:6px;
}

.lx-price-sale{
    font-size:16px;
    font-weight:600;
    color:#e53935;
}

.lx-price-origin{
    margin-left:6px;
    font-size:13px;
    text-decoration:line-through;
    color:#888;
}
/* =====================================================
COLORS
===================================================== */

.lx-product-colors{
    display:flex;
    gap:5px;
    margin-top:6px;
}

.lx-color-swatch{
    width:12px;
    height:12px;
    border-radius:50%;
    border:1px solid #ddd;
}

.lx-color-swatch.active{
    border:2px solid #111;
}
/* =====================================================
TAGS
===================================================== */

.lx-product-tags{
    margin-top:6px;
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.lx-tag{
    font-size:11px;
    padding:3px 6px;
    border-radius:4px;
}

.lx-tag-stock{
    background:#e8f5e9;
    color:#2e7d32;
}

.lx-tag-best{
    background:#fff3e0;
    color:#ef6c00;
}

.lx-tag-hot{
    background:#ffebee;
    color:#c62828;
}
/* =====================================================
PAGINATION
===================================================== */

.lx-pagination{
    margin-top:40px;
    text-align:center;
}
/* =====================================================
STICKY CTA
===================================================== */

.lx-sticky-sale{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:#111;
    color:#fff;
    padding:12px 16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    z-index:20;
}

.lx-sticky-sale a{
    background:#fff;
    color:#111;
    padding:6px 14px;
    border-radius:20px;
    text-decoration:none;
    font-weight:600;
}