/* ==========================================================================
   Lenancy Health & Beauty — storefront styles
   Brand: plum #A8518A · green #019547 (from the real logo)
   ========================================================================== */

:root {
    --lhb-plum: #A8518A;
    --lhb-plum-dark: #8A3F6E;
    --lhb-plum-soft: #F7EEF4;
    --lhb-green: #019547;
    --lhb-green-dark: #017A3B;
    --lhb-green-soft: #EAF6EF;
    --lhb-ink: #33232E;
    --lhb-muted: #7A6B75;
    --lhb-bg: #FBF8FA;
    --lhb-card: #FFFFFF;
    --lhb-border: #EDE3EA;
    --lhb-danger: #B3261E;
    --lhb-wa: #25D366;
    --lhb-wa-dark: #128C7E;
    --lhb-radius: 14px;
    --lhb-shadow: 0 1px 2px rgba(51, 35, 46, 0.05), 0 4px 16px rgba(51, 35, 46, 0.06);
    --lhb-shadow-hover: 0 6px 24px rgba(168, 81, 138, 0.16);
}

body {
    background: var(--lhb-bg);
    color: var(--lhb-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 62px; /* room for mobile bottom nav */
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

h1, h2, h3, h4, h5, h6, .lhb-brand-name {
    font-family: "Poppins", -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--lhb-plum-dark); }
a:hover { color: var(--lhb-plum); }

.lhb-main { min-height: 55vh; padding-bottom: 3rem; }

/* ------------------------------------------------ top bar + header */
.lhb-topbar {
    background: var(--lhb-plum);
    color: #fff;
    font-size: 0.78rem;
    padding: 5px 0;
}
.lhb-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.lhb-topbar a:hover { color: #F3DCE9; }

.lhb-header {
    background: var(--lhb-card);
    border-bottom: 1px solid var(--lhb-border);
    padding: 10px 0;
}
.lhb-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.lhb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lhb-logo { border-radius: 10px; }
.lhb-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.lhb-brand-name { color: var(--lhb-plum); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.08em; }
.lhb-brand-sub { color: var(--lhb-green); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; }

.lhb-nav { display: flex; gap: 1.4rem; align-items: center; }
.lhb-nav a, .lhb-nav-link {
    color: var(--lhb-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    background: none;
    border: 0;
    padding: 0;
}
.lhb-nav a:hover, .lhb-nav-link:hover { color: var(--lhb-plum); }
.lhb-nav a.active { color: var(--lhb-plum); }
.lhb-dropdown { border: 1px solid var(--lhb-border); border-radius: 12px; box-shadow: var(--lhb-shadow); }
.lhb-dropdown .dropdown-item { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.lhb-dropdown .dropdown-item:hover { background: var(--lhb-plum-soft); color: var(--lhb-plum-dark); }

.lhb-header-actions { display: flex; align-items: center; gap: 10px; }
.lhb-search { display: flex; background: var(--lhb-bg); border: 1px solid var(--lhb-border); border-radius: 999px; overflow: hidden; }
.lhb-search input {
    border: 0; background: transparent; padding: 8px 16px; min-width: 210px; outline: none; font-size: 0.9rem;
}
.lhb-search button {
    border: 0; background: transparent; padding: 0 14px; color: var(--lhb-plum);
}
.lhb-search-mobile input { min-width: 0; width: 100%; }

.lhb-icon-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 0; border-radius: 999px;
    background: var(--lhb-plum-soft); color: var(--lhb-plum-dark);
    font-size: 1rem; text-decoration: none;
}
.lhb-icon-btn:hover { background: var(--lhb-plum); color: #fff; }

.lhb-cart-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 19px; height: 19px; padding: 0 5px;
    background: var(--lhb-green); color: #fff;
    border-radius: 999px; font-size: 0.68rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* ------------------------------------------------ offcanvas */
.lhb-offcanvas { max-width: 300px; }
.lhb-offcanvas-nav { display: flex; flex-direction: column; gap: 4px; }
.lhb-offcanvas-nav a {
    padding: 12px 8px; border-radius: 10px; color: var(--lhb-ink);
    text-decoration: none; font-weight: 600;
}
.lhb-offcanvas-nav a:hover { background: var(--lhb-plum-soft); color: var(--lhb-plum-dark); }
.lhb-offcanvas-label {
    margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--lhb-muted); padding: 0 8px;
}

/* ------------------------------------------------ mobile bottom nav */
.lhb-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    display: flex; justify-content: space-around; align-items: stretch;
    background: var(--lhb-card);
    border-top: 1px solid var(--lhb-border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
.lhb-bottomnav a {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 58px; padding: 4px 6px;
    color: var(--lhb-muted); text-decoration: none; font-size: 0.66rem; font-weight: 600;
}
.lhb-bottomnav a i { font-size: 1.05rem; }
.lhb-bottomnav a.active { color: var(--lhb-plum); }
.lhb-bottomnav-cart .lhb-cart-badge { top: 0; right: 4px; }

/* ------------------------------------------------ buttons */
.btn-lhb {
    --bs-btn-bg: var(--lhb-plum);
    --bs-btn-border-color: var(--lhb-plum);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--lhb-plum-dark);
    --bs-btn-hover-border-color: var(--lhb-plum-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--lhb-plum-dark);
    --bs-btn-active-border-color: var(--lhb-plum-dark);
    --bs-btn-focus-shadow-rgb: 168, 81, 138;
    border-radius: 999px;
    font-weight: 600;
}
.btn-outline-lhb {
    --bs-btn-color: var(--lhb-plum);
    --bs-btn-border-color: var(--lhb-plum);
    --bs-btn-hover-bg: var(--lhb-plum);
    --bs-btn-hover-border-color: var(--lhb-plum);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--lhb-plum);
    --bs-btn-active-border-color: var(--lhb-plum);
    border-radius: 999px;
    font-weight: 600;
}
.btn-whatsapp {
    --bs-btn-bg: var(--lhb-wa);
    --bs-btn-border-color: var(--lhb-wa);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--lhb-wa-dark);
    --bs-btn-hover-border-color: var(--lhb-wa-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--lhb-wa-dark);
    --bs-btn-active-border-color: var(--lhb-wa-dark);
    border-radius: 999px;
    font-weight: 600;
}

/* ------------------------------------------------ hero (compact) */
.lhb-hero {
    background: linear-gradient(45deg, var(--lhb-plum), var(--lhb-green));
    border: 1px solid var(--lhb-border);
    border-radius: var(--lhb-radius);
    padding: 1.6rem 1.4rem;
    color: #fff;
}
.lhb-hero h1 { font-size: 1.55rem; font-weight: 700; margin-bottom: 0.4rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.lhb-hero p { margin-bottom: 1rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.lhb-hero .lhb-search { max-width: 460px; background: #fff; }
.lhb-hero .lhb-search input { min-width: 0; width: 100%; }

/* ------------------------------------------------ section headers */
.lhb-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 1rem; }
.lhb-section-head h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.lhb-section-head a { font-size: 0.85rem; font-weight: 600; text-decoration: none; }

/* ------------------------------------------------ category chips */
.lhb-cat-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.lhb-cat-chip {
    display: flex; align-items: center; gap: 10px;
    background: var(--lhb-card); border: 1px solid var(--lhb-border);
    border-radius: 999px; padding: 7px 16px 7px 7px;
    color: var(--lhb-ink); text-decoration: none; font-weight: 600; font-size: 0.85rem;
}
.lhb-cat-chip:hover { border-color: var(--lhb-plum); color: var(--lhb-plum-dark); }
.lhb-cat-chip-icon {
    width: 30px; height: 30px; border-radius: 999px; background: var(--lhb-plum-soft);
    display: inline-flex; align-items: center; justify-content: center; color: var(--lhb-plum);
    font-size: 0.8rem;
}

/* ------------------------------------------------ product cards */
.lhb-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--lhb-card);
    border: 1px solid var(--lhb-border);
    border-radius: var(--lhb-radius);
    overflow: hidden;
    box-shadow: var(--lhb-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.lhb-card:hover { box-shadow: var(--lhb-shadow-hover); transform: translateY(-3px); }
.lhb-card-media {
    position: relative; display: block; background: var(--lhb-plum-soft);
    aspect-ratio: 1 / 1; overflow: hidden;
}
.lhb-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.lhb-card:hover .lhb-card-media img { transform: scale(1.04); }
.lhb-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px; flex: 1; }
.lhb-card-name {
    font-size: 0.88rem; font-weight: 600; color: var(--lhb-ink);
    text-decoration: none; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lhb-card-name:hover { color: var(--lhb-plum-dark); }
.lhb-card-cat { font-size: 0.72rem; color: var(--lhb-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lhb-price { font-weight: 700; color: var(--lhb-green-dark); font-size: 0.95rem; }
.lhb-price-old { font-size: 0.78rem; color: var(--lhb-muted); text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.lhb-add-btn {
    margin-top: auto;
    border: 1px solid var(--lhb-plum);
    color: var(--lhb-plum);
    background: transparent;
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 700;
    padding: 7px 10px;
    transition: all 0.15s ease;
}
.lhb-add-btn:hover { background: var(--lhb-plum); color: #fff; }
.lhb-add-btn:disabled { border-color: var(--lhb-border); color: var(--lhb-muted); background: var(--lhb-bg); }

.lhb-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
    padding: 4px 9px; border-radius: 999px; text-transform: uppercase;
}
.lhb-badge-sale { background: var(--lhb-plum); color: #fff; }
.lhb-badge-new { background: var(--lhb-green); color: #fff; }
.lhb-badge-out { background: rgba(51, 35, 46, 0.75); color: #fff; }

/* ------------------------------------------------ breadcrumbs */
.lhb-breadcrumb { font-size: 0.8rem; color: var(--lhb-muted); margin: 1rem 0 0.5rem; }
.lhb-breadcrumb a { color: var(--lhb-muted); text-decoration: none; }
.lhb-breadcrumb a:hover { color: var(--lhb-plum-dark); }

/* ------------------------------------------------ product page */
.lhb-gallery { border-radius: var(--lhb-radius); overflow: hidden; border: 1px solid var(--lhb-border); background: #fff; }
.lhb-gallery-main { position: relative; aspect-ratio: 1 / 1; }
.lhb-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.lhb-gallery-thumbs { display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; }
.lhb-gallery-thumbs button {
    width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden;
    border: 2px solid transparent; background: var(--lhb-plum-soft);
}
.lhb-gallery-thumbs button.active { border-color: var(--lhb-plum); }
.lhb-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.lhb-product-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.lhb-product-sku { font-size: 0.78rem; color: var(--lhb-muted); }
.lhb-product-price { font-size: 1.5rem; font-weight: 700; color: var(--lhb-green-dark); }
.lhb-stock { font-size: 0.82rem; font-weight: 600; }
.lhb-stock-in { color: var(--lhb-green-dark); }
.lhb-stock-low { color: #B26A00; }
.lhb-stock-out { color: var(--lhb-danger); }

.lhb-qty {
    display: inline-flex; align-items: center; border: 1px solid var(--lhb-border);
    border-radius: 999px; overflow: hidden; background: #fff;
}
.lhb-qty button { width: 38px; height: 42px; border: 0; background: transparent; color: var(--lhb-plum); font-weight: 700; }
.lhb-qty input {
    width: 48px; border: 0; text-align: center; font-weight: 700; outline: none; background: transparent;
    -moz-appearance: textfield;
}
.lhb-qty input::-webkit-outer-spin-button, .lhb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.lhb-qty-sm button { width: 30px; height: 34px; }
.lhb-qty-sm input { width: 38px; font-size: 0.85rem; }

.lhb-share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lhb-share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--lhb-border); background: #fff; color: var(--lhb-ink);
    border-radius: 999px; padding: 7px 14px; font-size: 0.82rem; font-weight: 600;
    text-decoration: none;
}
.lhb-share-btn:hover { border-color: var(--lhb-plum); color: var(--lhb-plum-dark); }

.lhb-description { line-height: 1.7; color: #4A3B44; }

/* ------------------------------------------------ cart / checkout */
.lhb-cart-row { background: var(--lhb-card); border: 1px solid var(--lhb-border); border-radius: var(--lhb-radius); padding: 14px; }
.lhb-cart-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--lhb-plum-soft); }
.lhb-summary {
    background: var(--lhb-card); border: 1px solid var(--lhb-border);
    border-radius: var(--lhb-radius); padding: 1.2rem;
    position: sticky; top: 90px;
}
.lhb-summary-line { display: flex; justify-content: space-between; padding: 6px 0; }
.lhb-summary-total { border-top: 1px solid var(--lhb-border); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; }
.lhb-note { background: var(--lhb-green-soft); border: 1px solid #CFEBDC; color: #1C5A3A; border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; }
.lhb-note-warn { background: #FDF3E7; border-color: #F3DFC0; color: #7A5200; }

/* ------------------------------------------------ empty states */
.lhb-empty {
    text-align: center; padding: 3.5rem 1rem;
}
.lhb-empty-icon {
    width: 74px; height: 74px; margin: 0 auto 1rem; border-radius: 999px;
    background: var(--lhb-plum-soft); color: var(--lhb-plum);
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.lhb-empty h3 { font-size: 1.1rem; font-weight: 700; }
.lhb-empty p { color: var(--lhb-muted); max-width: 420px; margin: 0 auto 1.2rem; }

/* ------------------------------------------------ feature strip */
.lhb-why { background: var(--lhb-card); border: 1px solid var(--lhb-border); border-radius: var(--lhb-radius); padding: 1.4rem; }
.lhb-why-item { display: flex; gap: 12px; align-items: flex-start; padding: 0.5rem 0; }
.lhb-why-icon {
    flex: 0 0 40px; height: 40px; border-radius: 12px;
    background: var(--lhb-green-soft); color: var(--lhb-green-dark);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.lhb-why-item h6 { margin: 0 0 2px; font-size: 0.92rem; }
.lhb-why-item p { margin: 0; font-size: 0.8rem; color: var(--lhb-muted); }

/* ------------------------------------------------ footer */
.lhb-footer {
    background: #2C1F28; color: #E9DCE4;
    padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.lhb-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.lhb-footer h6 { color: #F3DCE9; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
.lhb-footer-about { max-width: 320px; }
.lhb-footer-links { list-style: none; margin: 0; padding: 0; }
.lhb-footer-links li { margin-bottom: 0.45rem; font-size: 0.88rem; }
.lhb-footer-links a { color: #E9DCE4; text-decoration: none; }
.lhb-footer-links a:hover { color: #fff; }
.lhb-footer hr { border-color: rgba(255, 255, 255, 0.12); }
.lhb-footer a { color: #E9DCE4; }
.lhb-socials { display: flex; gap: 10px; }
.lhb-socials a {
    width: 36px; height: 36px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.08); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem;
    text-decoration: none;
}
.lhb-socials a:hover { background: var(--lhb-plum); }

/* ------------------------------------------------ whatsapp float */
.lhb-whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 1030;
    width: 56px; height: 56px; border-radius: 999px;
    background: var(--lhb-wa); color: #fff; font-size: 1.6rem;
    align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.lhb-whatsapp-float:hover { background: var(--lhb-wa-dark); color: #fff; }

/* ------------------------------------------------ toasts */
.lhb-toast-wrap {
    position: fixed; top: 70px; right: 14px; z-index: 1080;
    display: flex; flex-direction: column; gap: 10px; max-width: 320px;
}
.lhb-toast {
    background: var(--lhb-ink); color: #fff;
    border-radius: 12px; padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-size: 0.88rem; font-weight: 500;
    display: flex; gap: 10px; align-items: center;
    animation: lhb-toast-in 0.25s ease;
}
.lhb-toast a { color: #F3DCE9; font-weight: 700; }
.lhb-toast-success i { color: #5AE08A; }
.lhb-toast-error i { color: #FF8A80; }
@keyframes lhb-toast-in {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* ------------------------------------------------ misc */
.lhb-pagination .page-link { color: var(--lhb-plum-dark); border-color: var(--lhb-border); }
.lhb-pagination .active .page-link { background: var(--lhb-plum); border-color: var(--lhb-plum); color: #fff; }

.lhb-page-title { font-size: 1.4rem; font-weight: 700; margin: 1rem 0 0.25rem; }

.form-control:focus, .form-select:focus {
    border-color: var(--lhb-plum);
    box-shadow: 0 0 0 0.2rem rgba(168, 81, 138, 0.15);
}

@media (max-width: 575.98px) {
    .lhb-card-body { padding: 10px; }
    .lhb-card-name { font-size: 0.82rem; }
    .lhb-price { font-size: 0.88rem; }
    .lhb-add-btn { font-size: 0.76rem; padding: 6px 8px; }
    .lhb-hero { padding: 1.3rem 1rem; }
    .lhb-hero h1 { font-size: 1.3rem; }
    .lhb-product-title { font-size: 1.2rem; }
}