/* ============================================================
   Bharat Hosiery — Landing page
   Scoped to .lp-* so nothing here can reach the existing pages.
   Mobile-first: base rules are the phone layout, media queries widen it.
   ============================================================ */

:root {
    /* Design tokens live on :root, not on .lp, because base_public.html
       renders the shared header on EVERY public page while only the home
       page carries body.lp. Scoped to .lp these were undefined elsewhere,
       which made the header lose its background/border and rendered the
       cart badge invisible (white text on an unset background). */
    --lp-ink: #14202c;
    --lp-soft: #64748b;
    --lp-line: #e8ecf2;
    --lp-surface: #ffffff;
    --lp-ground: #f4f6fa;
    --lp-blue: #2f6bd8;
    --lp-violet: #8b3fd4;
    --lp-radius: 16px;
    /* One ratio for every tile in every section, so cards match. */
    --lp-ratio: 3 / 4;
    --lp-gap: 12px;
    --lp-pad: 14px;
}

/* Page-level paint stays exclusive to the landing page so the other
   storefront pages keep their existing background. */
.lp {
    background: var(--lp-ground);
    color: var(--lp-ink);
    overflow-x: hidden;
}

.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }

.lp img { max-width: 100%; display: block; }

.lp-wrap {
    width: 100%;
    max-width: 1485px;
    margin: 0 auto;
    padding: 0 var(--lp-pad);
}

/* ---------------------------------------------------- Header */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--lp-surface);
    border-bottom: 1px solid var(--lp-line);
    padding: 5px;
}

.lp-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--lp-pad);
}

.lp-iconbtn {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    border-radius: 10px;
    color: var(--lp-ink);
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
}
.lp-iconbtn:hover { background: var(--lp-ground); color: var(--lp-ink); }
.lp-iconbtn:active { transform: scale(.94); }

.lp-logo {
    /* Left aligned; the actions block is pushed right by margin-left:auto. */
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}
.lp-logo img { height: 60px; width: auto; max-width: 190px; object-fit: contain; }

.lp-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    margin-left: auto;
}

.lp-cart { position: relative; }
.lp-cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--lp-blue);
    color: #fff;
    /* White ring separates the chip from the cart glyph underneath. */
    border: 2px solid #fff;
    box-sizing: border-box;
    font-size: .62rem;
    line-height: 1;
    font-weight: 700;
    display: grid;
    place-items: center;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------- Sections */
.lp-section { padding: 20px 0 4px; }
.lp-section--tight { padding-top: 8px; }

.lp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.lp-section-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lp-ink);
}
.lp-section-title span { font-weight: 400; color: var(--lp-soft); }

.lp-viewall {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--lp-blue);
    text-decoration: none;
    white-space: nowrap;
    /* Comfortable tap target without visually enlarging the link. */
    padding: 6px 0 6px 8px;
}
.lp-viewall:hover { color: var(--lp-violet); }

/* ---------------------------------------------------- Top categories */
.lp-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--lp-gap);
    padding: 4px 0 8px;   /* matches .lp-rail so both start level */
}

.lp-cat-card {
    position: relative;
    display: block;
    border-radius: var(--lp-radius);
    overflow: hidden;
    background: #dde3ec;
    text-decoration: none;
    /* Reserving the box up front stops images shifting the page as they load. */
    aspect-ratio: var(--lp-ratio);
    box-shadow: 0 2px 10px rgba(20, 32, 44, .07);
}

.lp-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}
.lp-cat-card:hover img { transform: scale(1.05); }

.lp-cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.68) 100%);
    pointer-events: none;
}

.lp-cat-label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 11px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lp-cat-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.45);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-cat-arrow {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #14202c;
    font-size: .78rem;
}

/* ---------------------------------------------------- Carousel rail */
.lp-rail {
    display: flex;
    gap: var(--lp-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* No negative-margin bleed: every section starts on the same left edge
       as .lp-wrap, so grid and rail cards line up exactly. */
    margin: 0;
    padding: 4px 0 8px;
}
.lp-rail::-webkit-scrollbar { display: none; }

.lp-rail > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

/* Two cards visible on a phone, with the third peeking. */
.lp-rail-item { width: calc(50% - var(--lp-gap) / 2); }

.lp-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 4px;
}
.lp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #cbd5e1;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}
.lp-dot.is-active { width: 18px; border-radius: 3px; background: var(--lp-blue); }

/* ---------------------------------------------------- Product card */
.lp-product {
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.lp-product:hover { color: inherit; border-color: #cfd9e6; }

.lp-product-media {
    display: block;            /* it is a <span> inside the card link */
    position: relative;
    aspect-ratio: var(--lp-ratio);
    background: #eaeef4;
    overflow: hidden;
}
.lp-product-media img { width: 100%; height: 100%; object-fit: cover; }

.lp-product-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 3px; }

.lp-product-name {
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--lp-ink);
    /* Two lines max keeps every card in a row the same height. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-product-price {
    font-size: .92rem;
    font-weight: 700;
    color: var(--lp-ink);
    font-variant-numeric: tabular-nums;
}

.lp-product-set {
    font-size: .68rem;
    font-weight: 600;
    color: var(--lp-soft);
}

/* ---------------------------------------------------- Brand card */
.lp-brand {
    position: relative;
    display: block;
    border-radius: var(--lp-radius);
    overflow: hidden;
    background: #dde3ec;
    aspect-ratio: var(--lp-ratio);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(20, 32, 44, .07);
}
.lp-brand img { width: 100%; height: 100%; object-fit: cover; }
.lp-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.72) 100%);
}
.lp-brand-name {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    z-index: 2;
    text-align: center;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------- Trending category card */
.lp-tcat {
    position: relative;
    display: block;
    border-radius: var(--lp-radius);
    overflow: hidden;
    background: #dde3ec;
    aspect-ratio: var(--lp-ratio);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(20, 32, 44, .07);
}
.lp-tcat img { width: 100%; height: 100%; object-fit: cover; }
.lp-tcat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.66) 100%);
}
.lp-tcat-name {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------- Promo banner */
.lp-promo {
    position: relative;
    display: block;
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(115deg, #eaf1ff 0%, #f3ecff 52%, #ffeef6 100%);
    min-height: 168px;
}

.lp-promo-inner {
    position: relative;
    z-index: 2;
    padding: 20px 18px;
    max-width: 62%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lp-promo-eyebrow {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--lp-violet);
}

.lp-promo-title {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.16;
    color: var(--lp-ink);
    text-wrap: balance;
}

.lp-promo-sub { font-size: .74rem; color: var(--lp-soft); }

.lp-promo-cta {
    align-self: flex-start;
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--lp-ink);
    color: #fff;
    border-radius: 999px;
    padding: 9px 15px;
    font-size: .76rem;
    font-weight: 600;
}

.lp-promo-art {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 46%;
    z-index: 1;
}
.lp-promo-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Melt the photo into the gradient instead of cutting a hard edge. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

/* ---------------------------------------------------- Skeletons */
.lp-skel {
    background: linear-gradient(90deg, #e7ebf1 25%, #f1f4f8 50%, #e7ebf1 75%);
    background-size: 200% 100%;
    animation: lp-shimmer 1.3s infinite linear;
    border-radius: var(--lp-radius);
}
@keyframes lp-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.lp-skel-cat { aspect-ratio: var(--lp-ratio); }
.lp-skel-card { aspect-ratio: var(--lp-ratio); }

.lp-empty {
    padding: 22px 8px;
    text-align: center;
    color: var(--lp-soft);
    font-size: .84rem;
}

@media (prefers-reduced-motion: reduce) {
    .lp-skel { animation: none; }
    .lp-cat-card img { transition: none; }
    .lp-rail { scroll-behavior: auto; }
}

/* ============================================================
   Wider screens — the phone layout simply gets more columns.
   ============================================================ */

@media (min-width: 576px) {
    :root { --lp-pad: 18px; --lp-gap: 14px; }
    /* Grid columns and rail widths move together, so a card is the same
       size in every section at every breakpoint. */
    .lp-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .lp-rail-item { width: calc(33.333% - var(--lp-gap) * 2 / 3); }
}

@media (min-width: 768px) {
    .lp-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .lp-rail-item { width: calc(25% - var(--lp-gap) * 3 / 4); }
    .lp-promo-inner { max-width: 55%; padding: 26px 24px; }
    .lp-promo-title { font-size: 1.7rem; }
    .lp-section-title { font-size: 1.02rem; }
}

@media (min-width: 992px) {
    :root { --lp-pad: 24px; --lp-gap: 18px; }
    .lp-header { position: static; }
    .lp-section { padding: 30px 0 6px; }
    .lp-rail-item { width: calc(20% - var(--lp-gap) * 4 / 5); }
    .lp-promo { min-height: 230px; }
    .lp-promo-title { font-size: 2rem; }
    .lp-cat-grid { grid-template-columns: repeat(5, 1fr); }
    /* Dots are a touch affordance; a mouse user drags or uses the rail. */
    .lp-dots { display: none; }
}

@media (min-width: 1200px) {
    .lp-rail-item { width: calc(20% - var(--lp-gap) * 4 / 5); }
}

/* Very narrow phones (320px): keep two columns but tighten everything. */
@media (max-width: 359px) {
    :root { --lp-pad: 10px; --lp-gap: 9px; }
    .lp-cat-name { font-size: .84rem; }
    .lp-promo-title { font-size: 1.14rem; }
    .lp-promo-inner { max-width: 68%; padding: 16px 14px; }
}

/* ---------------------------------------------------- Category nav
   Editorial/premium treatment: quiet text links with an underline on
   hover, opening a wide mega panel with ruled columns. */

.lp-nav {
    position: relative;
    border-top: 1px solid var(--lp-line);
    background: var(--lp-surface);
}

.lp-nav-scroll {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--lp-pad);
}
.lp-nav-scroll::-webkit-scrollbar { display: none; }

.lp-nav-item {
    flex: 0 0 auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* 46px tall: an easy thumb target while reading as a plain text link. */
    height: 46px;
    padding: 0 14px;
    border: 0;
    background: none;
    color: var(--lp-ink);
    font-size: .93rem;
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

/* The underline is drawn, not text-decoration, so it can animate and sit
   clear of the descenders. */
.lp-nav-item::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 10px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
.lp-nav-item:hover::after,
.lp-nav-item.is-open::after { transform: scaleX(1); }
.lp-nav-item.is-open { font-weight: 600; }

.lp-nav-item i { font-size: .58rem; opacity: .45; transition: transform .2s ease; }
.lp-nav-item.is-open i { transform: rotate(180deg); opacity: .75; }

/* -------- mega panel -------- */
.lp-nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    background: var(--lp-surface);
    border-top: 1px solid var(--lp-line);
    box-shadow: 0 18px 40px rgba(20, 32, 44, .10);
    border-radius: 30px;
    max-height: 70vh;
    overflow-y: auto;
}
.lp-nav-panel[hidden] { display: none; }

.lp-nav-panel-inner {
    /* Flex, not grid: a category may render one, two or no columns
       depending on whether it has sub categories and brands, and the
       layout has to stay sensible in every case. */
    display: flex;
    flex-wrap: wrap;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px var(--lp-pad) 10px;
}

/* Hairline rules between columns, like a printed directory. */
.lp-nav-col {
    /*flex: 0 1 300px;*/
    min-width: 0;
    padding: 0 22px;
    border-left: 1px solid var(--lp-line);
}
.lp-nav-col:first-child { border-left: 0; padding-left: 0; }

.lp-nav-col-title {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--lp-ink);
    padding-bottom: 14px;
}

.lp-nav-link {
    display: block;
    padding: 7px 0;
    font-size: .9rem;
    font-weight: 400;
    color: var(--lp-soft);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lp-nav-link:hover { color: var(--lp-ink); text-decoration: underline; text-underline-offset: 3px; }

/* "View All X" — the one emphasised link in a column. */
.lp-nav-more {
    display: inline-block;
    margin-top: 14px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--lp-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.lp-nav-more:hover { color: var(--lp-blue); }


.lp-nav-empty {
    flex: 1 1 100%;
    padding: 6px 0 16px;
    color: var(--lp-soft);
    font-size: .88rem;
}

@media (min-width: 768px) {
    .lp-nav-panel-inner { padding-top: 32px; }
    .lp-nav-item { padding: 0 18px; font-size: .95rem; }
    .lp-nav-item::after { left: 18px; right: 18px; }
}

@media (max-width: 767px) {

    .lp-nav-panel-inner {
        padding: 18px 14px 12px;
        display: flex;
        flex-wrap: wrap;
    }

    /* Collections and Brands stay side-by-side on mobile */
    .lp-nav-col {
        flex: 0 0 50%;
        width: 50%;
        min-width: 0;
        padding: 0 12px;
        border-left: 1px solid var(--lp-line);
        border-top: 0;
        margin: 0;
    }

    /* First column has no left separator */
    .lp-nav-col:first-child {
        border-left: 0;
        padding-left: 0;
    }

    /* Keep the last column nicely aligned */
    .lp-nav-col:last-child {
        padding-right: 0;
    }

    .lp-nav-col-title {
        font-size: .95rem;
        padding-bottom: 10px;
    }

    .lp-nav-link {
        padding: 6px 0;
        font-size: .84rem;
    }

    .lp-nav-more {
        margin-top: 10px;
        font-size: .84rem;
    }
}

/* Promo button variant, chosen per banner in the admin. */
.lp-promo-cta--secondary {
    background: transparent;
    color: var(--lp-ink);
    border: 1px solid var(--lp-ink);
}

/* ============================================================
   Offers hero - full-width rotating banner at the top of the page
   ============================================================ */

.lp-hero { background: var(--lp-surface); }
.lp-hero[hidden] { display: none; }

.lp-hero-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.lp-hero-rail::-webkit-scrollbar { display: none; }

.lp-hero-slide {
    /* Full-bleed: one slide fills the viewport width. */
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(100deg, #e8ecfb 0%, #eee8fa 45%, #fbe9f3 100%);
}

.lp-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    /* Copy keeps clear of the artwork on the right. */
    max-width: 62%;
    padding: 22px var(--lp-pad);
}

.lp-hero-eyebrow {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #3550d8;
}

.lp-hero-title {
    /* Scales with the viewport so the headline stays the focal point. */
    font-size: clamp(1.5rem, 7vw, 3.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.015em;
    color: #16205c;
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
}

.lp-hero-sub {
    font-size: clamp(.8rem, 2.6vw, 1.05rem);
    color: #4b5468;
    line-height: 1.35;
}

.lp-hero-cta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.lp-hero-cta--primary { background: #16205c; color: #fff; border: 1px solid #16205c; }
.lp-hero-cta--secondary { background: transparent; color: #16205c; border: 1px solid #16205c; }

.lp-hero-art {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 46%;
    z-index: 1;
}
.lp-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Feather the photo into the gradient instead of a hard cut. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}

.lp-hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
    background: var(--lp-surface);
}

/* Heights: tall enough to read on a phone, cinematic on desktop. */
.lp-hero-slide { min-height: 210px; }

@media (min-width: 576px) {
    .lp-hero-slide { min-height: 240px; }
    .lp-hero-copy { padding: 26px var(--lp-pad); }
}

@media (min-width: 768px) {
    .lp-hero-slide { min-height: 260px; }
    .lp-hero-copy { max-width: 56%; }
}

@media (min-width: 992px) {
    .lp-hero-slide { min-height: 300px; }
    .lp-hero-copy {
        max-width: 1180px;
        width: 100%;
        margin: 0 auto;
        padding: 34px var(--lp-pad);
    }
    /* On wide screens the copy column is capped so it lines up with the
       rest of the page rather than drifting to the far left edge. */
    .lp-hero-copy > * { max-width: 52%; }
    .lp-hero-art { width: 42%; }
}

@media (max-width: 400px) {
    /* Very narrow phones: give the words room, shrink the artwork. */
    .lp-hero-copy { max-width: 68%; }
    .lp-hero-art { width: 38%; }
    .lp-hero-cta { padding: 8px 14px; font-size: .74rem; }
}

/* ============================================================
   DESKTOP REDESIGN — header row, contained hero, richer cards,
   four-column footer. Mobile rules above still apply; these
   refine and, where noted, override them.
   ============================================================ */

/* ---------------------------------------------------- Header row */
.lp-header-inner { gap: 14px; height: 62px; }

.lp-logo img { height: 34px; max-width: 170px; }

.lp-headlink {
    display: none;                      /* icons only on phones */
    align-items: center;
    gap: 7px;
    position: relative;
    padding: 0 10px;
    height: 40px;
    border-radius: 10px;
    color: var(--lp-ink);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
}
.lp-headlink i { font-size: 1.05rem; }
.lp-headlink:hover { background: var(--lp-ground); color: var(--lp-ink); }

/* On phones the header keeps the compact icon buttons. */
.lp-headlink span:not(.lp-cart-badge) { display: none; }

.lp-headlink { display: inline-flex; }

/* ---------------------------------------------------- Search panel */
.lp-searchbar {
    border-top: 1px solid var(--lp-line);
    background: var(--lp-surface);
}
.lp-searchbar[hidden] { display: none; }

.lp-searchbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px var(--lp-pad);
}
.lp-searchbar-inner > i {
    position: absolute;
    left: calc(var(--lp-pad) + 12px);
    color: var(--lp-soft);
    font-size: .9rem;
    pointer-events: none;
}
.lp-searchbar-inner input {
    flex: 1 1 auto;
    height: 44px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--lp-line);
    border-radius: 10px;
    font-size: .92rem;
    outline: none;
    min-width: 0;
}
.lp-searchbar-inner input:focus { border-color: var(--lp-ink); }
.lp-searchbar-inner .btn { height: 44px; border-radius: 10px; padding: 0 18px; }

/* ---------------------------------------------------- Hero (contained) */
.lp-section--first { padding-top: 16px; }

.lp-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--lp-surface);
}

.lp-hero-slide {
    border-radius: 0;
    min-height: 230px;
}

/* Dots float inside the banner, over the artwork-free side. */
.lp-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    background: transparent;
    padding: 0;
    z-index: 3;
}
.lp-hero-dots .lp-dot { background: rgba(20, 32, 44, .22); }
.lp-hero-dots .lp-dot.is-active { background: #16205c; }

/* ---------------------------------------------------- Section heads */
.lp-section-head { align-items: flex-end; }
.lp-section-sub {
    margin: 3px 0 0;
    font-size: .82rem;
    color: var(--lp-soft);
}
.lp-section-title { font-size: 1.05rem; letter-spacing: .02em; }

/* ---------------------------------------------------- Category cards */
.lp-cat-label { align-items: flex-end; }

.lp-cat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.lp-cat-explore {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.lp-cat-explore i { font-size: .6rem; }

.lp-cat-arrow {
    width: 34px;
    height: 34px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

/* ---------------------------------------------------- Brand cards */
.lp-brand-label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.lp-brand-name {
    position: static;
    text-align: left;
    font-size: .84rem;
    letter-spacing: .07em;
}
.lp-brand-tagline {
    font-size: .7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .82);
    text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------- Trending category */
.lp-tcat-name {
    text-align: left;
    left: 12px;
    right: 12px;
    bottom: 11px;
    font-size: .85rem;
    font-weight: 700;
}

/* ---------------------------------------------------- Promo band */
.lp-promo { border-radius: 18px; min-height: 190px; }
.lp-promo-title { font-size: 1.5rem; line-height: 1.15; }

/* ============================================================
   Breakpoints
   ============================================================ */

@media (min-width: 576px) {
}

@media (min-width: 768px) {
    .lp-headlink span:not(.lp-cart-badge) { display: inline; }
    .lp-hero-slide { min-height: 270px; }
    .lp-section-title { font-size: 1.12rem; }
}

@media (min-width: 992px) {
    .lp-header-inner { height: 68px; gap: 20px; }
    .lp-logo img { height: 66px; max-width: 200px; }

    /* Nav sits between the logo and the actions on desktop. */
    .lp-nav {
        flex: 1 1 auto;
        border: 0;
        background: transparent;
        min-width: 0;
    }
    .lp-nav-scroll { padding: 0; justify-content: center; }
    .lp-nav-panel { top: 68px; }

    .lp-hero-slide { min-height: 300px; }
    .lp-hero-dots { bottom: 16px; }

    /* Five cards across in every rail - arrivals, brands and categories
       all line up on the same column rhythm. */
    .lp-rail-item { width: calc(20% - var(--lp-gap) * 4 / 5); }
    .lp-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .lp-cat-card { aspect-ratio: 1 / 1; }

    .lp-promo { min-height: 220px; }
    .lp-promo-title { font-size: 1.9rem; }
}

@media (min-width: 1200px) {
    .lp-hero-slide { min-height: 330px; }
}

/* ==========================================================
   ACCOUNT DROPDOWN
   ========================================================== */

.lp-account-dropdown {
    position: relative;
}

.lp-account-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
}

.lp-account-arrow {
    font-size: 10px;
    transition: transform .2s ease;
}

.lp-account-dropdown.open .lp-account-arrow {
    transform: rotate(180deg);
}

.lp-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
    border: 1px solid #eee;
    padding: 7px;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all .2s ease;
}

.lp-account-dropdown.open .lp-account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lp-account-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #0f2942;
    text-decoration: none;
    font-size: 14px;
}

.lp-account-menu a:hover {
    background: #f5f7fa;
}

.lp-account-menu a i {
    width: 18px;
    font-size: 15px;
}


/* ==========================================================
   MY ORDERS
   ========================================================== */

.lp-orders-link {
    display: flex;
    align-items: center;
    gap: 7px;
}

.lp-orders-link > i {
    font-size: 18px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    /* My Orders: icon only */
    .lp-orders-link span {
        display: none;
    }

    .lp-orders-link {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }

    .lp-orders-link > i {
        font-size: 19px;
        margin: 0;
    }

    /* Account stays as Account + person icon */
    .lp-account-btn {
        padding: 0;
    }

    .lp-account-menu {
        right: 0;
        min-width: 160px;
    }
}
/* ============================================================
   SHARED HEADER — page-level variations and responsiveness
   base_public.html renders one header for every public page;
   the rules below only vary it, never duplicate it.
   ============================================================ */

/* Product details opts out of the header category row by overriding
   {% block header_nav %} - see templates/public/product_detail.html.
   Nothing to hide here, so no CSS rule. */

/* Catalog chip sits after the categories and looks identical to them. */
.lp-nav-catalog { font-weight: 600; }

/* ---------------------------------------------------- Header fit
   The logged-in header carries logo + nav + search + account +
   orders + cart, so each piece has to give way in a sensible order
   rather than wrapping and breaking the bar. */

.lp-header-inner { flex-wrap: nowrap; }

.lp-logo { flex: 0 0 auto; }
.lp-logo img { max-width: 150px; }

.lp-header-actions { flex: 0 0 auto; gap: 2px; }

/* Account dropdown styling already exists above - not duplicated here. */

/* ---------------------------------------------------- Tablet / desktop */
@media (min-width: 992px) {
    .lp-header-inner { gap: 16px; }
    .lp-logo img { max-width: 190px; }
    .lp-headlink span:not(.lp-cart-badge) { display: inline; }
}

/* Between 992 and 1199 the labels are the first thing to go, so the
   nav keeps its room before anything wraps. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .lp-headlink { padding: 0 7px; }
    .lp-orders-link span { display: none; }
}

/* ---------------------------------------------------- Mobile
   The nav drops onto its own scrollable row under the logo; the
   action icons stay on the top row and never wrap. */
@media (max-width: 991.98px) {
    .lp-header-inner {
        flex-wrap: wrap;
        height: auto;
        /*padding-top: 8px;*/
        /*padding-bottom: 0;*/
        row-gap: 0;
    }
    .lp-logo { flex: 1 1 auto; min-width: 0; }
    .lp-logo img { max-width: 132px; height: 45px; }

    .lp-header-actions { margin-left: auto; }
    .lp-headlink { padding: 0 7px; }
    .lp-headlink span:not(.lp-cart-badge) { display: none; }     /* icons only */

    /* Icons-only: widen the cart link so the badge has its own corner
       instead of landing on the glyph. */
    .lp-cart { padding-right: 16px; }

    .lp-nav {
        order: 10;
        flex: 1 1 100%;
        /* Without min-width:0 this flex item keeps its full content width
           (six chips, ~500px), which widened the whole document past the
           phone viewport and left blank space beside the page. The chips
           scroll inside .lp-nav-scroll instead. */
        min-width: 0;
        max-width: 100%;
        border-top: 1px solid var(--lp-line);
        margin-top: 8px;
    }
    .lp-nav-scroll { padding: 6px 0; }

    /* The dropdown must stay inside the viewport on a phone. */
    .lp-nav-panel { max-height: 60vh; }

}

@media (max-width: 400px) {
    .lp-logo img { max-width: 110px; height: 40px; }
    .lp-headlink { padding: 0 5px; }
    .lp-iconbtn { width: 34px; }
    .lp-nav-item { padding: 0 11px; font-size: .86rem; }
}

/* Nothing in the public shell may scroll the page sideways.
   html as well as body: clipping only body still lets the document scroll. */
html, body { max-width: 100%; overflow-x: hidden; }

/* ============================================================
   PUBLIC FOOTER — rendered once by base_public.html
   Three ruled columns on desktop; the two link columns collapse
   into accordions on mobile.
   ============================================================ */

.ft {
    --ft-pink: #e6197d;
    --ft-blue: #1b2a8a;
    --ft-ink: #1e2532;
    --ft-soft: #5b6577;
    --ft-line: #e9edf3;

    background: var(--lp-ground, #f4f6fa);
    padding: 26px 14px 18px;
}

.ft-card {
    max-width: 1485px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--ft-line);
    border-radius: 18px;
    box-shadow: 0 4px 22px rgba(20, 32, 44, .05);
    overflow: hidden;
}

.ft-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px 8px;
}

/* ---------------------------------------------------- Brand */
.ft-logo { display: inline-block; }
.ft-logo img { height: 34px; width: auto; }

.ft-about {
    margin: 14px 0 16px;
    font-size: .88rem;
    line-height: 1.6;
    color: var(--ft-soft);
    max-width: 320px;
}

.ft-socials { display: flex; gap: 10px; }

.ft-social {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--ft-line);
    background: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    color: var(--ft-ink);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ft-social:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20, 32, 44, .12); }

/* Each network keeps its own colour, as in the design. */
.ft-social--facebook  { color: #1877f2; }
.ft-social--instagram { color: #e1306c; }
.ft-social--youtube   { color: #ff0000; }
.ft-social--whatsapp  { color: #25d366; }
.ft-social--facebook:hover  { border-color: #1877f2; }
.ft-social--instagram:hover { border-color: #e1306c; }
.ft-social--youtube:hover   { border-color: #ff0000; }
.ft-social--whatsapp:hover  { border-color: #25d366; }

/* ---------------------------------------------------- Columns */
.ft-col { min-width: 0; }

.ft-col-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}

.ft-col-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ft-ink);
}
.ft-col-icon { color: var(--ft-pink); font-size: 1.05rem; }
.ft-col-caret { color: var(--ft-soft); font-size: .8rem; transition: transform .2s ease; }

.ft-col-body { padding-top: 6px; }

/* ---------------------------------------------------- Quick links */
.ft-link {
    display: flex;
    align-items: center;
    gap: 12px;
    /* 48px row: a comfortable tap target on a phone. */
    padding: 13px 0;
    border-bottom: 1px solid var(--ft-line);
    color: var(--ft-ink);
    text-decoration: none;
    font-size: .9rem;
}
.ft-link:last-child { border-bottom: 0; }
.ft-link > i:first-child { color: var(--ft-pink); font-size: 1.05rem; width: 22px; flex: 0 0 auto; }
.ft-link span { flex: 1 1 auto; min-width: 0; }
.ft-link-go { color: #b9c2d0; font-size: .78rem; transition: transform .16s ease; }
.ft-link:hover { color: var(--ft-pink); }
.ft-link:hover .ft-link-go { transform: translateX(3px); color: var(--ft-pink); }

/* ---------------------------------------------------- Contact */
.ft-contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--ft-soft);
    text-decoration: none;
}
.ft-contact:hover { color: var(--ft-pink); }

.ft-contact-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(230, 25, 125, .08);
    color: var(--ft-pink);
    font-size: .82rem;
    margin-top: 1px;
}

/* ---------------------------------------------------- Bottom bar */
.ft-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--ft-line);
    background: #fcfdff;
}

.ft-copy { font-size: .82rem; color: var(--ft-soft); }
.ft-copy b { color: var(--ft-ink); font-weight: 700; }

.ft-credit {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .8rem;
    color: var(--ft-soft);
}
.ft-credit img { height: 24px; width: auto; }

/* ============================================================
   MOBILE — the two link columns become accordions
   ============================================================ */
@media (max-width: 767.98px) {
    .ft { padding: 18px 12px 14px; }
    .ft-grid { padding: 20px 16px 6px; gap: 14px; }

    /* Card look for each collapsed section, as in the design. */
    .ft-col {
        border: 1px solid var(--ft-line);
        border-radius: 14px;
        overflow: hidden;
    }
    .ft-col-head { padding: 16px 14px; }

    .ft-col-body {
        display: none;                 /* opened by the accordion script */
        padding: 0 14px 8px;
        border-top: 1px solid var(--ft-line);
    }
    .ft-col.is-open .ft-col-body { display: block; }
    .ft-col.is-open .ft-col-caret { transform: rotate(180deg); }

    .ft-about { max-width: none; }
    .ft-social { width: 40px; height: 40px; }
    .ft-bottom { padding: 14px 16px 18px; }
}

/* ============================================================
   DESKTOP — three ruled columns, always expanded
   ============================================================ */
@media (min-width: 768px) {
    .ft-grid {
        grid-template-columns: 1.25fr 1fr 1.1fr;
        gap: 0;
        padding: 30px 28px 18px;
    }

    /* Hairline rules between the columns. */
    .ft-col { padding: 0 30px; border-left: 1px solid var(--ft-line); }
    .ft-col:last-child { padding-right: 0; }
    .ft-brand { padding-right: 30px; }

    /* The heading is a static label here - nothing to toggle. */
    .ft-col-head { cursor: default; pointer-events: none; }
    .ft-col-caret,
    .ft-col-icon { display: none; }

    /* Pink accent rule under each heading. */
    .ft-col-title {
        position: relative;
        padding-bottom: 12px;
        font-size: .86rem;
    }
    .ft-col-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 2px;
        width: 26px;
        height: 3px;
        border-radius: 2px;
        background: var(--ft-pink);
    }

    .ft-col-body { display: block !important; padding-top: 10px; }

    .ft-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px 28px;
    }
    .ft-credit { flex-direction: row; align-items: center; gap: 10px; }
    .ft-credit img { height: 26px; }
}

@media (min-width: 992px) {
    .ft { padding: 30px 24px 22px; }
    .ft-logo img { height: 38px; }
}

.lp-account-name {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 767.98px) {
    .lp-account-btn .lp-account-name {
        display: inline-block !important;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
        font-weight: 600;
    }
}