/* -------------------------------------------------------
   LUXE THEME.CSS
   UI / Components Styling (trên nền base.css)
-------------------------------------------------------- */

/* -------------------------------------------------------
   GLOBAL BRANDING
-------------------------------------------------------- */

:root {
    --lx-black: #000;
    --lx-gray: #777;
    --lx-light-gray: #f4f4f4;
    --lx-border: #e5e5e5;
    --lx-radius: 6px;
}

body.luxe-body {
    background: #ffffff;
    color: var(--lx-black);
}

/* -------------------------------------------------------
   SECTION TITLES
-------------------------------------------------------- */

.lx-section-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.lx-section-subtitle {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* -------------------------------------------------------
   PRODUCT GRID
-------------------------------------------------------- */

.lx-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 12px;
}

.lx-product-card {
    border-radius: var(--lx-radius);
    overflow: hidden;
    background: #fff;
    text-decoration: none;
}

.lx-product-card img {
    width: 100%;
    border-radius: var(--lx-radius);
}

.lx-product-info {
    padding: 8px 0;
}

.lx-product-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.lx-product-price {
    font-size: 14px;
    margin-top: 4px;
    font-weight: 700;
    color: #000;
}

.lx-product-price.old {
    text-decoration: line-through;
    font-size: 12px;
    color: #999;
    margin-left: 6px;
}

/* -------------------------------------------------------
   SLIDESHOW (mobile-first)
-------------------------------------------------------- */

.lx-slideshow {
    position: relative;
    width: 100%;
}

.lx-slideshow img {
    width: 100%;
    border-radius: var(--lx-radius);
}

.lx-slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.lx-slideshow-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
    opacity: 0.5;
}

.lx-slideshow-dots span.active {
    opacity: 1;
}

/* -------------------------------------------------------
   TWO-BANNERS ENHANCED
-------------------------------------------------------- */

.lx-two-banners .banner-item {
    position: relative;
    overflow: hidden;
}

.lx-two-banners .banner-item img {
    width: 100%;
    height: 100%;
    border-radius: var(--lx-radius);
    object-fit: cover;
}

/* -------------------------------------------------------
   CATEGORY CHIPS
-------------------------------------------------------- */

.lx-category-chips {
    display: flex;
    overflow-x: auto;
    padding: 12px;
    gap: 8px;
    scrollbar-width: none;
}

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

.lx-chip {
    border: 1px solid var(--lx-border);
    padding: 6px 14px;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    white-space: nowrap;
}

/* Active chip */
.lx-chip.active {
    background: black;
    color: white;
    border-color: black;
}

/* -------------------------------------------------------
   FEATURED PRODUCT FULL-WIDTH BANNER
-------------------------------------------------------- */

.lx-featured-big {
    margin: 20px 12px;
    position: relative;
}

.lx-featured-big img {
    width: 100%;
    border-radius: var(--lx-radius);
}

.lx-featured-big-text {
    position: absolute;
    bottom: 14%;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
}

.lx-featured-big-text h2 {
    font-size: 24px;
    font-weight: 700;
}

.lx-featured-big-text a {
    margin-top: 12px;
    display: inline-block;
    padding: 10px 22px;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    color: black;
}

/* -------------------------------------------------------
   WHITELIST / HEART ICON ACTIVE STATE
-------------------------------------------------------- */

.lx-heart-btn.active img {
    filter: invert(17%) sepia(96%) saturate(7480%) hue-rotate(350deg) brightness(90%) contrast(120%);
}

/* -------------------------------------------------------
   BOTTOM NAV (improve touch target)
-------------------------------------------------------- */

.lx-bottom-nav {
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
}

.lx-bottom-nav a img {
    width: 22px;
}

/* -------------------------------------------------------
   SEARCH BAR (Popup)
-------------------------------------------------------- */

.lx-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20%;
    z-index: 9999;
}

.lx-search-box {
    background: white;
    width: 90%;
    padding: 14px 16px;
    border-radius: 8px;
}

.lx-search-box input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* -------------------------------------------------------
   ACCOUNT / LOGIN PLACEHOLDER
-------------------------------------------------------- */

.lx-account-placeholder {
    padding: 24px;
    text-align: center;
}

.lx-account-placeholder p {
    font-size: 14px;
    color: #666;
}

.lx-btn-black {
    background: black;
    color: white;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 14px;
    display: inline-block;
}

/* -------------------------------------------------------
   DESKTOP OVERRIDES
-------------------------------------------------------- */

@media (min-width: 768px) {
    body.luxe-body {
        max-width: 480px;
        margin: auto;
        border: 1px solid #ddd;
        background: white;
    }

    .luxe-main {
        background: white;
    }
}


