/* =========================================================================
   LM BRAND — QUIET LUXURY LAYER (css/brand-theme.css)
   Zara-inspired: ivory + ink, sharp edges, light type, generous space.
   Loaded LAST. Every rule is scoped to body.lm-brand-theme, so removing the
   <link> (or the body class) restores the previous look instantly.
   Presentation only — no ordering, stock, POS or admin logic depends on it.
   ========================================================================= */

body.lm-brand-theme {
    --lm-ivory: #ece5da; /* warm travertine stone, sampled from the hero wall */
    --lm-ivory-deep: #e2dacd;
    --lm-ink: #141413;
    --lm-stone: #7d776d;
    --lm-line: rgba(20, 20, 19, 0.12);
    /* Product frame: a soft warm stone, only a breath lighter than the page, so frames melt into the store */
    --lm-frame: #f1ebe2;
    /* Gallery-light gradient inside product frames: lit centre fading to the page tone at the edges */
    --lm-frame-glow: #f5f0e8;
    --lm-frame-mid: #f0e9df;
    --lm-frame-edge: #ebe3d7;
    --lm-serif: 'Bodoni Moda', 'Cinzel', Georgia, serif;
    --bg-studio: #ece5da;
    background-color: var(--lm-ivory);
    color: var(--lm-ink);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   1. QUIET INTRO
   ========================================================================= */
body.lm-brand-theme .welcome-curtain {
    background: var(--lm-ivory);
    color: var(--lm-ink);
    gap: 0;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

body.lm-brand-theme .curtain-brand-title {
    font-family: var(--lm-serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 6vw, 2.4rem);
    letter-spacing: 0.34em;
    padding-left: 0.34em; /* optically re-centre tracked text */
    color: var(--lm-ink);
    animation: lmFadeRise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body.lm-brand-theme .curtain-rule {
    display: block;
    width: 44px;
    height: 1px;
    margin: 16px auto 14px;
    background: var(--lm-ink);
    transform-origin: center;
    animation: lmRuleGrow 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
}

body.lm-brand-theme .curtain-brand-sub {
    margin: 0;
    font-family: var(--lm-serif);
    font-size: 0.62rem;
    letter-spacing: 0.46em;
    padding-left: 0.46em;
    color: var(--lm-stone);
    animation: lmFadeRise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both;
}

@keyframes lmFadeRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes lmRuleGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* =========================================================================
   2. CINEMATIC HERO
   ========================================================================= */
.lm-hero { display: none; }

body.lm-brand-theme .lm-hero {
    display: block;
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
    background: var(--lm-ivory-deep);
    color: var(--lm-ink);
    isolation: isolate;
}

/* The owner keeps working fast: no hero while the admin panel is unlocked */
body.lm-brand-theme.lm-admin .lm-hero { display: none; }

body.lm-brand-theme .lm-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

body.lm-brand-theme .lm-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.07);
    transition: opacity 1.8s ease, transform 9s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: opacity, transform;
}

body.lm-brand-theme .lm-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Portrait film (phones & portrait tablets) */
body.lm-brand-theme .lm-hero-slide-1 { background-image: url('../media/hero-p1.jpg'); background-position: 50% 35%; }
body.lm-brand-theme .lm-hero-slide-2 { background-image: url('../media/hero-p2.jpg'); background-position: 50% 40%; }
body.lm-brand-theme .lm-hero-slide-3 { background-image: url('../media/hero-p3.jpg'); background-position: 50% 45%; }

/* Landscape film (laptops & wide screens) */
@media (min-aspect-ratio: 1/1) {
    body.lm-brand-theme .lm-hero-slide-1 { background-image: url('../media/hero-l1.jpg'); background-position: 60% 50%; }
    body.lm-brand-theme .lm-hero-slide-2 { background-image: url('../media/hero-l2.jpg'); background-position: 60% 50%; }
    body.lm-brand-theme .lm-hero-slide-3 { display: none; }
}

body.lm-brand-theme .lm-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease;
    pointer-events: none;
}

body.lm-brand-theme .lm-hero.lm-hero--video .lm-hero-video { opacity: 1; }

/* Soft ivory fog top & bottom keeps ink text legible on any image or video */
body.lm-brand-theme .lm-hero-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(236, 229, 218, 0.72) 0%, rgba(236, 229, 218, 0) 20%),
        linear-gradient(0deg, rgba(236, 229, 218, 0.92) 0%, rgba(236, 229, 218, 0.55) 22%, rgba(236, 229, 218, 0) 46%);
}

body.lm-brand-theme .lm-hero-top {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 26px);
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    animation: lmFadeRise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s both;
}

/* Monogram "LM" centred over LAZURDE MANISA */
body.lm-brand-theme .lm-hero-brand-en {
    font-family: var(--lm-serif);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.28em;
    padding-left: 0.28em; /* balances the trailing letter-space so LM sits dead centre */
    color: var(--lm-ink);
}

body.lm-brand-theme .lm-hero-brand-sub {
    font-family: var(--lm-serif);
    font-size: 0.54rem;
    letter-spacing: 0.48em;
    padding-left: 0.48em;
    color: var(--lm-ink);
    opacity: 0.7;
}

body.lm-brand-theme .lm-hero-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
    z-index: 2;
    text-align: center;
    animation: lmFadeRise 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 1.75s both;
}

body.lm-brand-theme .lm-hero-kicker {
    margin: 0 0 10px;
    font-family: var(--lm-serif);
    font-size: 0.62rem;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    color: var(--lm-ink);
    opacity: 0.75;
}

body.lm-brand-theme .lm-hero-title {
    margin: 0 0 26px;
    font-family: var(--font-ar);
    font-size: clamp(1.45rem, 6.2vw, 2.5rem);
    font-weight: 300;
    line-height: 1.35;
    color: var(--lm-ink);
}

body.lm-brand-theme .lm-hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

body.lm-brand-theme .lm-hero-btn {
    flex: 1 1 0;
    max-width: 224px;
    height: 48px;
    padding: 0 14px;
    border-radius: 0;
    font-family: var(--font-ar);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

body.lm-brand-theme .lm-hero-btn-solid {
    background: var(--lm-ink);
    color: var(--lm-ivory);
    border: 1px solid var(--lm-ink);
}

body.lm-brand-theme .lm-hero-btn-line {
    background: rgba(236, 229, 218, 0.4);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--lm-ink);
    border: 1px solid var(--lm-ink);
}

@media (hover: hover) {
    body.lm-brand-theme .lm-hero-btn-solid:hover { background: #2c2a26; }
    body.lm-brand-theme .lm-hero-btn-line:hover { background: var(--lm-ink); color: var(--lm-ivory); }
}

body.lm-brand-theme .lm-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    transform: translateX(-50%);
    z-index: 2;
    width: 44px;
    height: 46px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    animation: lmFadeRise 1s ease 2.4s both;
}

body.lm-brand-theme .lm-hero-scroll-line {
    position: relative;
    display: block;
    width: 1px;
    height: 34px;
    background: rgba(20, 20, 19, 0.22);
    overflow: hidden;
}

body.lm-brand-theme .lm-hero-scroll-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: var(--lm-ink);
    animation: lmScrollCue 2.4s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes lmScrollCue {
    0% { top: -40%; }
    100% { top: 100%; }
}

@media (min-width: 900px) {
    body.lm-brand-theme .lm-hero-content { bottom: 12vh; }
    body.lm-brand-theme .lm-hero-brand-en { font-size: 1.85rem; }
}

@media (max-width: 340px) {
    body.lm-brand-theme .lm-hero-actions { flex-direction: column; align-items: center; }
    body.lm-brand-theme .lm-hero-btn { width: 100%; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
    body.lm-brand-theme .lm-hero-slide { transition: opacity 0.6s ease; transform: none !important; }
    body.lm-brand-theme .lm-hero-scroll-line::after { animation: none; }
}

/* =========================================================================
   2.5 CAMPAIGN FILM (media/lookbook-video.mp4)
   Hidden until the film is actually available; vertical 9:16 editorial frame.
   ========================================================================= */
.lm-film { display: none; }

body.lm-brand-theme .lm-film.is-ready {
    display: block;
    background: var(--lm-ivory);
    color: var(--lm-ink);
    padding: 72px 24px 80px;
    border-bottom: 1px solid var(--lm-line);
}

body.lm-brand-theme.lm-admin .lm-film { display: none; }

body.lm-brand-theme .lm-film-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
}

body.lm-brand-theme .lm-film-frame {
    position: relative;
    margin: 0;
    width: 340px;
    max-width: 100%;
    width: min(100%, 420px, calc((100svh - 150px) * 0.5625));
    min-width: min(100%, 260px);
    aspect-ratio: 9 / 16;
    background: var(--lm-ivory-deep);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.lm-brand-theme .lm-film-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    background: var(--lm-ivory-deep);
}

body.lm-brand-theme .lm-film-video::-webkit-media-controls { display: none !important; }

body.lm-brand-theme .lm-film-sound {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 8px 12px;
    border: 1px solid rgba(236, 229, 218, 0.7);
    border-radius: 0;
    background: rgba(20, 20, 19, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--lm-ivory);
    font-family: var(--lm-serif);
    font-size: 0.56rem;
    letter-spacing: 0.32em;
    padding-left: calc(12px + 0.32em);
    line-height: 1;
    direction: ltr;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

body.lm-brand-theme .lm-film-sound[aria-pressed="true"] {
    background: var(--lm-ivory);
    color: var(--lm-ink);
    border-color: var(--lm-ivory);
}

body.lm-brand-theme .lm-film-copy {
    max-width: 420px;
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.4s ease 0.25s, transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}

body.lm-brand-theme .lm-film.is-visible .lm-film-frame,
body.lm-brand-theme .lm-film.is-visible .lm-film-copy {
    opacity: 1;
    transform: none;
}

body.lm-brand-theme .lm-film-kicker {
    margin: 0 0 14px;
    font-family: var(--lm-serif);
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    color: var(--lm-stone);
    direction: ltr;
}

body.lm-brand-theme .lm-film-title {
    margin: 0 0 14px;
    font-family: var(--font-ar);
    font-size: clamp(1.3rem, 5.4vw, 2rem);
    font-weight: 300;
    line-height: 1.45;
    color: var(--lm-ink);
}

body.lm-brand-theme .lm-film-text {
    margin: 0 auto 26px;
    max-width: 340px;
    font-family: var(--font-ar);
    font-size: 0.86rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--lm-stone);
}

body.lm-brand-theme .lm-film-link {
    padding: 0 0 6px;
    border: none;
    border-bottom: 1px solid var(--lm-ink);
    border-radius: 0;
    background: transparent;
    color: var(--lm-ink);
    font-family: var(--font-ar);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    body.lm-brand-theme .lm-film-link:hover { opacity: 0.6; }
    body.lm-brand-theme .lm-film-sound:hover { background: rgba(20, 20, 19, 0.35); }
    body.lm-brand-theme .lm-film-sound[aria-pressed="true"]:hover { background: var(--lm-ivory); }
}

/* Wide screens: magazine split (film on one side, quiet copy on the other) */
@media (min-width: 900px) {
    body.lm-brand-theme .lm-film.is-ready { padding: 110px 48px; }
    body.lm-brand-theme .lm-film-inner {
        flex-direction: row;
        justify-content: center;
        gap: clamp(56px, 8vw, 120px);
    }
    body.lm-brand-theme .lm-film-copy { text-align: right; flex: 0 1 380px; }
    body.lm-brand-theme .lm-film-text { margin-right: 0; margin-left: 0; }
    body.lm-brand-theme .lm-film-kicker { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
    body.lm-brand-theme .lm-film-frame,
    body.lm-brand-theme .lm-film-copy { transition: opacity 0.6s ease; transform: none; }
}

/* =========================================================================
   2.6 THE LOOKBOOK (media/look-0X.mp4 + lookbook-video.mp4)
   One calm grid of vertical films: two per row on phones, three on larger
   screens. Symmetrical margins, nothing cropped at the sides, no swiping.
   ========================================================================= */
body.lm-brand-theme .lm-looks {
    background: var(--lm-ivory);
    color: var(--lm-ink);
    padding: 60px 16px 66px;
    border-bottom: 1px solid var(--lm-line);
}

body.lm-brand-theme .lm-looks[hidden],
body.lm-brand-theme.lm-admin .lm-looks { display: none; }

body.lm-brand-theme .lm-looks-head {
    max-width: 420px;
    margin: 0 auto 30px;
    text-align: center;
}

body.lm-brand-theme .lm-looks-kicker {
    margin: 0 0 12px;
    font-family: var(--lm-serif);
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    color: var(--lm-stone);
    direction: ltr;
}

body.lm-brand-theme .lm-looks-title {
    margin: 0 0 12px;
    font-family: var(--font-ar);
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    font-weight: 300;
    line-height: 1.45;
    color: var(--lm-ink);
}

body.lm-brand-theme .lm-looks-text {
    margin: 0 auto;
    max-width: 320px;
    font-family: var(--font-ar);
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--lm-stone);
}

body.lm-brand-theme .lm-looks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 10px;
}

body.lm-brand-theme .lm-look { margin: 0; min-width: 0; }
body.lm-brand-theme .lm-look.is-broken { display: none; }

body.lm-brand-theme .lm-look-frame {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: var(--lm-ivory-deep);
}

body.lm-brand-theme .lm-look-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
    background: var(--lm-ivory-deep);
}

body.lm-brand-theme .lm-look-video::-webkit-media-controls { display: none !important; }

body.lm-brand-theme .lm-look-cap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 11px;
    text-align: center;
}

body.lm-brand-theme .lm-look-no {
    font-family: var(--lm-serif);
    font-size: 0.54rem;
    letter-spacing: 0.4em;
    padding-left: 0.4em;
    color: var(--lm-stone);
    direction: ltr;
}

body.lm-brand-theme .lm-look-name {
    font-family: var(--font-ar);
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--lm-ink);
}

body.lm-brand-theme .lm-looks-foot {
    margin-top: 34px;
    text-align: center;
}

/* Gentle entrance */
body.lm-brand-theme .lm-looks-head,
body.lm-brand-theme .lm-looks-grid {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.3s ease, transform 1.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.lm-brand-theme .lm-looks-grid { transition-delay: 0.15s; }

body.lm-brand-theme .lm-looks.is-visible .lm-looks-head,
body.lm-brand-theme .lm-looks.is-visible .lm-looks-grid {
    opacity: 1;
    transform: none;
}

/* Tablets and desktop: three per row, two calm rows */
@media (min-width: 641px) {
    body.lm-brand-theme .lm-looks { padding: 96px 32px 100px; }
    body.lm-brand-theme .lm-looks-head { margin-bottom: 46px; }
    body.lm-brand-theme .lm-looks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 18px;
        max-width: 780px;
        margin: 0 auto;
    }
    body.lm-brand-theme .lm-look-name { font-size: 0.82rem; }
    body.lm-brand-theme .lm-looks-foot { margin-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    body.lm-brand-theme .lm-looks-head,
    body.lm-brand-theme .lm-looks-grid { transition: opacity 0.6s ease; transform: none; }
}

/* =========================================================================
   3. HEADER & CATEGORY TABS
   ========================================================================= */
body.lm-brand-theme .store-header {
    background: var(--lm-ivory);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid var(--lm-line);
}

body.lm-brand-theme .header-main-row { padding: 16px 24px; }

body.lm-brand-theme .brand-badge { display: none; }

body.lm-brand-theme .brand-titles { align-items: flex-start; gap: 3px; }

body.lm-brand-theme .brand-name-en {
    font-family: var(--lm-serif);
    font-weight: 400;
    font-size: 1.08rem;
    letter-spacing: 0.3em;
    color: var(--lm-ink);
}

body.lm-brand-theme .brand-name-sub {
    font-family: var(--lm-serif);
    font-weight: 400;
    font-size: 0.5rem;
    letter-spacing: 0.42em;
    color: var(--lm-stone);
}

body.lm-brand-theme .header-search-input {
    border: none;
    border-bottom: 1px solid var(--lm-line);
    border-radius: 0;
    background: transparent;
    padding: 9px 2px;
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--lm-ink);
}

body.lm-brand-theme .header-search-input::placeholder { color: var(--lm-stone); }

body.lm-brand-theme .header-search-input:focus {
    border-color: var(--lm-ink);
    box-shadow: none;
}

body.lm-brand-theme .header-actions { gap: 4px; }

body.lm-brand-theme .icon-btn.lm-line-icon {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--lm-ink);
    transition: opacity 0.25s ease, color 0.25s ease;
}

body.lm-brand-theme .icon-btn.lm-line-icon:hover { background: transparent; opacity: 0.6; }

body.lm-brand-theme .icon-btn.lm-line-icon.music-active {
    background: transparent;
    color: #9a7a4c;
}

body.lm-brand-theme .lm-search-toggle { display: none; }

body.lm-brand-theme .header-cart-btn {
    gap: 6px;
    padding: 6px 4px;
    border-radius: 0;
    background: transparent;
    color: var(--lm-ink);
    box-shadow: none;
    font-size: 0.82rem;
    font-weight: 400;
}

body.lm-brand-theme .header-cart-btn:hover { background: transparent; opacity: 0.65; }

body.lm-brand-theme .cart-count-pill {
    background: transparent;
    color: var(--lm-ink);
    padding: 0;
    border-radius: 0;
    font-size: 0.74rem;
    font-weight: 500;
}

body.lm-brand-theme .category-nav-wrapper {
    border-top: none;
    background: var(--lm-ivory);
}

body.lm-brand-theme .category-nav-bar {
    gap: 0;
    padding: 0 14px;
}

body.lm-brand-theme .cat-tab-btn {
    position: relative;
    padding: 13px 0 14px;
    margin: 0 11px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--lm-stone);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.25s ease;
}

body.lm-brand-theme .cat-tab-btn:hover { color: var(--lm-ink); border-color: transparent; }

body.lm-brand-theme .cat-tab-btn.active {
    background: transparent;
    color: var(--lm-ink);
    border-color: transparent;
}

body.lm-brand-theme .cat-tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 1px;
    background: var(--lm-ink);
}

@media (max-width: 640px) {
    body.lm-brand-theme .header-main-row {
        flex-wrap: wrap;
        padding: 14px 14px 10px;
        gap: 6px 10px;
    }

    body.lm-brand-theme .brand-name-en { font-size: 0.98rem; letter-spacing: 0.26em; }

    body.lm-brand-theme .lm-search-toggle { display: inline-flex; }

    /* Search folds into the icon; opens as a clean full-width line */
    body.lm-brand-theme .header-search-wrap { display: none; }
    body.lm-brand-theme .store-header.lm-search-open .header-search-wrap {
        display: block;
        animation: lmFadeRise 0.35s ease both;
    }

    body.lm-brand-theme .header-cart-btn { padding: 6px 2px; }

    body.lm-brand-theme .category-nav-bar { padding: 0 6px; }
    body.lm-brand-theme .cat-tab-btn { margin: 0 9px; font-size: 0.78rem; padding: 12px 0 13px; }
    body.lm-brand-theme .cat-tab-btn.active::after { bottom: 7px; }
}

/* =========================================================================
   4. SECTION TITLE
   ========================================================================= */
body.lm-brand-theme .catalog-main-container { padding-top: 26px; }

body.lm-brand-theme .section-top-bar {
    align-items: baseline;
    margin-bottom: 22px;
    gap: 12px;
}

body.lm-brand-theme .section-title-group { gap: 10px; align-items: baseline; }

body.lm-brand-theme .section-title-group h1 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--lm-ink);
}

body.lm-brand-theme .products-count-badge {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--lm-stone);
}

@media (max-width: 640px) {
    body.lm-brand-theme .catalog-main-container { padding: 22px 16px 96px; }
    body.lm-brand-theme .section-top-bar { margin-bottom: 18px; padding: 0 2px; }
    body.lm-brand-theme .section-title-group h1 { font-size: 0.94rem; }
}

/* =========================================================================
   5. CATALOG — CLEAN EDITORIAL CARDS (image, name, price)
   ========================================================================= */
body.lm-brand-theme .catalog-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 40px 14px;
}

body.lm-brand-theme .product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    cursor: pointer;
}

body.lm-brand-theme .product-card:hover {
    transform: none;
    box-shadow: none;
}

body.lm-brand-theme .product-img-box {
    aspect-ratio: 3 / 4;
    border-radius: 0;
    background-color: var(--lm-frame);
    /* Soft gallery spotlight: lighter behind the piece, easing into the stone page at the edges */
    background-image: radial-gradient(
        ellipse 88% 78% at 50% 46%,
        var(--lm-frame-glow) 0%,
        var(--lm-frame-mid) 52%,
        var(--lm-frame-edge) 100%
    );
    isolation: isolate;
}

/* White studio backdrops melt into the travertine frame: one calm tone, no white boxes.
   No brightness filter: on newer iPhones (wide-gamut/HDR Safari) values above 100%
   are not clipped and drew a lighter square inside the frame. */
body.lm-brand-theme .product-img-box img {
    filter: none;
    mix-blend-mode: multiply;
}

body.lm-brand-theme .product-card:hover .product-img-box img { transform: scale(1.025); }

/* Everything that crowded the card now lives inside the product page */
body.lm-brand-theme .product-cat-label,
body.lm-brand-theme .card-size-pills,
body.lm-brand-theme .card-action-btns,
body.lm-brand-theme .stock-urgency-badge,
body.lm-brand-theme .card-zoom-loupe-btn,
body.lm-brand-theme .card-flip-side-btn,
body.lm-brand-theme .card-color-swatches .swatch-color-name {
    display: none !important;
}

body.lm-brand-theme .product-card-body {
    padding: 10px 2px 0;
    gap: 3px;
    flex: none;
}

body.lm-brand-theme .product-card-title {
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--lm-ink);
    -webkit-line-clamp: 1;
    letter-spacing: 0.005em;
}

body.lm-brand-theme .card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 18px;
}

body.lm-brand-theme .product-price-line { gap: 6px; flex-wrap: nowrap; min-width: 0; }

body.lm-brand-theme .price-current {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--lm-ink);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

body.lm-brand-theme .price-old {
    font-size: 0.7rem;
    color: var(--lm-stone);
    white-space: nowrap;
}

body.lm-brand-theme .card-color-swatches {
    gap: 6px;
    margin: 0;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

body.lm-brand-theme .color-swatch-dot {
    width: 9px;
    height: 9px;
    border: none;
    box-shadow: 0 0 0 1px rgba(20, 20, 19, 0.18);
    transform: none;
}

body.lm-brand-theme .color-swatch-dot:hover { transform: none; box-shadow: 0 0 0 1px var(--lm-ink); }

body.lm-brand-theme .color-swatch-dot.active {
    transform: none;
    box-shadow: 0 0 0 2px var(--lm-ivory), 0 0 0 3px var(--lm-ink);
}

body.lm-brand-theme .owner-discount-badge {
    top: 10px;
    right: 10px;
    border-radius: 0;
    background: var(--lm-ink);
    color: var(--lm-ivory);
    box-shadow: none;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 4px 8px;
}

body.lm-brand-theme .empty-catalog-state { color: var(--lm-stone); font-weight: 400; }

body.lm-brand-theme .btn-reset-cat {
    border-radius: 0;
    font-weight: 500;
    background: var(--lm-ink);
}

/* Phones: two pieces per row (the Zara / Massimo Dutti mobile grid), about four pieces per screen */
@media (max-width: 640px) {
    body.lm-brand-theme .catalog-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 10px;
    }

    body.lm-brand-theme .product-card { border-radius: 0; box-shadow: none; }
    body.lm-brand-theme .product-card:hover { box-shadow: none; }

    body.lm-brand-theme .product-img-box { aspect-ratio: 3 / 4; }

    body.lm-brand-theme .product-img-box img {
        box-sizing: border-box;
        padding: 4%;
        object-fit: contain;
        object-position: center;
    }

    body.lm-brand-theme .product-card:hover .product-img-box img { transform: none; }

    body.lm-brand-theme .product-card-body { padding: 10px 0 0; gap: 3px; }
    body.lm-brand-theme .product-card-title { font-size: 0.76rem; }
    body.lm-brand-theme .price-current { font-size: 0.74rem; }
    body.lm-brand-theme .price-old { font-size: 0.66rem; }
    body.lm-brand-theme .card-color-swatches { gap: 5px; }
    body.lm-brand-theme .color-swatch-dot { width: 8px; height: 8px; }
    body.lm-brand-theme .owner-discount-badge { top: 8px; right: 8px; font-size: 0.56rem; padding: 3px 6px; }
}

/* =========================================================================
   6. PRODUCT PAGE (detail modal)
   ========================================================================= */
body.lm-brand-theme #productDetailModal.modal-backdrop {
    background: rgba(20, 20, 19, 0.36);
}

body.lm-brand-theme .product-detail-dialog {
    max-width: 980px;
    padding: 0;
    border-radius: 0;
    background: var(--lm-ivory);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

@media (min-width: 821px) {
    body.lm-brand-theme .detail-split-layout { grid-template-columns: 1.1fr 1fr; }
}

@media (max-width: 820px) {
    body.lm-brand-theme .detail-split-layout { grid-template-columns: 1fr; }
}

/* Items without sizes (e.g. some accessories): no empty "size" block */
body.lm-brand-theme .detail-option-group:has(.detail-sizes-box:empty):has(#detailStockUrgencyNotice.hidden) {
    display: none;
}

body.lm-brand-theme .detail-visual-col {
    position: relative;
    background: var(--lm-ivory);
}

body.lm-brand-theme .detail-main-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 84vh;
    object-fit: cover;
    object-position: center top;
    mix-blend-mode: multiply;
}

body.lm-brand-theme .detail-zoom-btn {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--lm-line);
    border-radius: 0;
    background: rgba(236, 229, 218, 0.86);
    color: var(--lm-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

body.lm-brand-theme .detail-thumbs-row {
    background: var(--lm-ivory);
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--lm-line);
}

body.lm-brand-theme .detail-thumb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-ar);
    font-size: 0.66rem;
    font-weight: 400;
    color: var(--lm-stone);
    cursor: pointer;
}

body.lm-brand-theme .detail-thumb-btn.active { color: var(--lm-ink); }

body.lm-brand-theme .detail-thumb {
    width: 50px;
    height: 66px;
    border-radius: 0;
    border: 1px solid transparent;
    mix-blend-mode: multiply;
}

body.lm-brand-theme .detail-thumb-btn.active .detail-thumb { border-color: var(--lm-ink); }

body.lm-brand-theme .detail-info-col {
    padding: 30px 30px 26px;
    gap: 14px;
}

body.lm-brand-theme .detail-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.lm-brand-theme .detail-cat-badge {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--lm-stone);
}

body.lm-brand-theme #productDetailModal .modal-close-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--lm-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.lm-brand-theme .detail-title {
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--lm-ink);
}

body.lm-brand-theme .detail-fabric {
    font-size: 0.72rem;
    color: var(--lm-stone);
    margin-top: -6px;
}

body.lm-brand-theme .detail-price-box { margin: 0; }

body.lm-brand-theme .detail-price {
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--lm-ink);
    letter-spacing: 0.02em;
}

body.lm-brand-theme .detail-old-price { font-size: 0.82rem; }

body.lm-brand-theme .detail-option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--lm-line);
}

body.lm-brand-theme .detail-option-group.hidden { display: none; }

body.lm-brand-theme .detail-option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--lm-ink);
}

body.lm-brand-theme .detail-option-value {
    font-weight: 400;
    color: var(--lm-stone);
}

body.lm-brand-theme .detail-colors-row { gap: 8px; margin: 0; }

body.lm-brand-theme .detail-color-pill {
    gap: 7px;
    padding: 7px 12px;
    border-radius: 0;
    border: 1px solid var(--lm-line);
    background: transparent;
    font-size: 0.74rem;
    font-weight: 400;
    color: var(--lm-ink);
    box-shadow: none;
}

body.lm-brand-theme .detail-color-pill:hover { transform: none; border-color: var(--lm-ink); }

body.lm-brand-theme .detail-color-pill.active {
    background: transparent;
    color: var(--lm-ink);
    border-color: var(--lm-ink);
    box-shadow: inset 0 0 0 1px var(--lm-ink);
}

body.lm-brand-theme .detail-color-pill .pill-dot { width: 11px; height: 11px; border-radius: 50%; }

body.lm-brand-theme .detail-sizes-box { gap: 6px; }

body.lm-brand-theme .detail-sz-btn {
    min-width: 50px;
    height: 42px;
    padding: 0 12px;
    border-radius: 0;
    border: 1px solid var(--lm-line);
    background: transparent;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--lm-ink);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.lm-brand-theme .detail-sz-btn:hover { border-color: var(--lm-ink); }

body.lm-brand-theme .detail-sz-btn.active {
    background: var(--lm-ink);
    color: var(--lm-ivory);
    border-color: var(--lm-ink);
}

body.lm-brand-theme .detail-stock-notice,
body.lm-brand-theme .detail-stock-notice.warning,
body.lm-brand-theme .detail-stock-notice.danger {
    margin-top: 2px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    animation: none;
    font-size: 0.72rem;
    font-weight: 400;
    color: #8a4b14;
}

body.lm-brand-theme .detail-cta-stack {
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

body.lm-brand-theme #btnDetailOrderNow {
    height: 50px;
    margin: 0;
    padding: 0 16px;
    border-radius: 0;
    background: var(--lm-ink);
    color: var(--lm-ivory);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

body.lm-brand-theme #btnDetailOrderNow:hover { background: #2c2a26; }

body.lm-brand-theme #btnDetailAddBag {
    height: 50px;
    padding: 0 16px;
    border-radius: 0;
    border: 1px solid var(--lm-ink);
    background: transparent;
    color: var(--lm-ink);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

body.lm-brand-theme #btnDetailAddBag:hover { background: var(--lm-ink); color: var(--lm-ivory); }

/* Phones: a full-screen product page, image first, actions always reachable */
@media (max-width: 640px) {
    body.lm-brand-theme #productDetailModal.modal-backdrop {
        padding: 0;
        align-items: stretch;
    }

    body.lm-brand-theme .product-detail-dialog {
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    body.lm-brand-theme .detail-main-img {
        max-height: none;
        aspect-ratio: 3 / 4;
    }

    body.lm-brand-theme .detail-zoom-btn { top: 14px; right: 14px; left: auto; bottom: auto; }

    /* Close button floats over the photo, always visible */
    body.lm-brand-theme #productDetailModal .modal-close-btn {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        left: 12px;
        z-index: 20;
        width: 40px;
        height: 40px;
        background: rgba(236, 229, 218, 0.9);
        border: 1px solid var(--lm-line);
    }

    body.lm-brand-theme .detail-info-col { padding: 20px 18px 0; gap: 12px; }

    body.lm-brand-theme .detail-cta-stack {
        position: sticky;
        bottom: 0;
        z-index: 5;
        flex-direction: row;
        gap: 8px;
        margin: 6px -18px 0;
        padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 12px);
        background: var(--lm-ivory);
        border-top: 1px solid var(--lm-line);
    }

    body.lm-brand-theme #btnDetailOrderNow,
    body.lm-brand-theme #btnDetailAddBag {
        flex: 1 1 0;
        height: 48px;
        font-size: 0.82rem;
        padding: 0 8px;
    }
}

/* Ultra zoom: calmer chrome */
body.lm-brand-theme .ultra-zoom-badge { font-weight: 400; letter-spacing: 0.04em; }

/* =========================================================================
   7. CART BAR & CHECKOUT BUTTONS
   ========================================================================= */
body.lm-brand-theme .mobile-sticky-cart-bar {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    border-radius: 0;
    border: none;
    background: var(--lm-ink);
    box-shadow: none;
    padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 12px);
}

body.lm-brand-theme .sticky-bar-info { font-weight: 400; }

body.lm-brand-theme .sticky-bar-badge {
    background: var(--lm-ivory);
    color: var(--lm-ink);
    border-radius: 0;
    font-weight: 500;
}

body.lm-brand-theme .sticky-bar-btn {
    border-radius: 0;
    background: var(--lm-ivory);
    color: var(--lm-ink);
    font-weight: 500;
}

body.lm-brand-theme .btn-primary-submit {
    border-radius: 0;
    font-weight: 500;
}

body.lm-brand-theme .btn-primary-submit:hover { background: #2c2a26; }

body.lm-brand-theme .cart-order-dialog { border-radius: 0; }


/* =========================================================================
   8. QUICK ADD — a fine line bag icon beside the name and price.
      Pieces with several sizes open a small, calm size sheet.
   ========================================================================= */
body.lm-brand-theme .product-card-body {
    position: relative;
    padding-left: 38px;
}

body.lm-brand-theme .lm-qa-icon {
    position: absolute;
    left: -8px;
    top: 4px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--lm-ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

body.lm-brand-theme .lm-qa-icon svg { display: block; }
body.lm-brand-theme .lm-qa-icon .lm-qa-tick { display: none; }
body.lm-brand-theme .lm-qa-icon.is-added .lm-qa-bag { display: none; }
body.lm-brand-theme .lm-qa-icon.is-added .lm-qa-tick { display: block; animation: lmFadeRise 0.3s ease both; }
body.lm-brand-theme .lm-qa-icon:active { transform: scale(0.92); }

@media (max-width: 640px) {
    body.lm-brand-theme .product-card-body { padding-left: 32px; }
    body.lm-brand-theme .lm-qa-icon { left: -10px; top: 2px; }
}

/* The size sheet: rises from the bottom on phones, a small card on larger screens */
body.lm-brand-theme .lm-sheet {
    position: fixed;
    inset: 0;
    z-index: 800;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(20, 20, 19, 0);
    transition: background-color 0.3s ease;
}

body.lm-brand-theme .lm-sheet[hidden] { display: none; }
body.lm-brand-theme .lm-sheet.is-open { background: rgba(20, 20, 19, 0.34); }

body.lm-brand-theme .lm-sheet-panel {
    width: 100%;
    max-width: 520px;
    background: var(--lm-ivory);
    color: var(--lm-ink);
    padding: 16px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
    transform: translateY(100%);
    transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.12);
}

body.lm-brand-theme .lm-sheet.is-open .lm-sheet-panel { transform: none; }

body.lm-brand-theme .lm-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

body.lm-brand-theme .lm-sheet-title {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

body.lm-brand-theme .lm-sheet-close {
    width: 44px;
    height: 44px;
    margin: -10px 0 -10px -12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--lm-ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.25s ease;
}

body.lm-brand-theme .lm-sheet-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--lm-line);
}

body.lm-brand-theme .lm-sheet-thumb {
    flex: none;
    width: 56px;
    height: 70px;
    background: var(--lm-frame);
}

body.lm-brand-theme .lm-sheet-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 4px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

body.lm-brand-theme .lm-sheet-info { min-width: 0; }

body.lm-brand-theme .lm-sheet-name {
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.lm-brand-theme .lm-sheet-meta {
    margin-top: 2px;
    font-size: 0.74rem;
    color: var(--lm-stone);
}

body.lm-brand-theme .lm-sheet-sizes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

body.lm-brand-theme .lm-sheet-size {
    height: 46px;
    border: 1px solid rgba(20, 20, 19, 0.22);
    border-radius: 0;
    background: transparent;
    color: var(--lm-ink);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.lm-brand-theme .lm-sheet-size:active {
    border-color: var(--lm-ink);
    background: var(--lm-ink);
    color: var(--lm-ivory);
}

@media (hover: hover) {
    body.lm-brand-theme .lm-qa-icon:hover { opacity: 0.6; }
    body.lm-brand-theme .lm-sheet-size:hover { border-color: var(--lm-ink); }
    body.lm-brand-theme .lm-sheet-close:hover { opacity: 0.6; }
}

@media (min-width: 641px) {
    body.lm-brand-theme .lm-sheet { align-items: center; padding: 24px; }
    body.lm-brand-theme .lm-sheet-panel {
        max-width: 420px;
        padding: 18px 24px 26px;
        opacity: 0;
        transform: translateY(14px);
        transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    }
    body.lm-brand-theme .lm-sheet.is-open .lm-sheet-panel { opacity: 1; transform: none; }
}

/* Confirmation note: ink strip, square, wraps on narrow phones */
body.lm-brand-theme .toast-banner {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
    width: max-content;
    max-width: min(92vw, 460px);
    padding: 12px 20px;
    border-radius: 0;
    background: var(--lm-ink);
    color: var(--lm-ivory);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.6;
    text-align: center;
    white-space: normal;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

/* =========================================================================
   9. CART — a calm ivory sheet; the header (with X) never scrolls away
   ========================================================================= */
body.lm-brand-theme #cartOrderModal.modal-backdrop {
    background: rgba(20, 20, 19, 0.38);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

body.lm-brand-theme .cart-order-dialog {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: var(--lm-ivory);
    color: var(--lm-ink);
    max-height: 90vh;
    max-height: 90dvh;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    animation: lmSheetUp 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes lmSheetUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

body.lm-brand-theme .cart-order-dialog > .modal-header {
    flex: none;
    position: relative;
    z-index: 2;
    align-items: center;
    margin: 0;
    padding: 20px 26px 16px;
    border-bottom: 1px solid var(--lm-line);
    background: var(--lm-ivory);
}

body.lm-brand-theme .cart-order-dialog .modal-header h3 {
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--lm-ink);
}

body.lm-brand-theme .cart-order-dialog .modal-header p {
    margin-top: 3px;
    font-size: 0.74rem;
    font-weight: 400;
    color: var(--lm-stone);
}

body.lm-brand-theme #btnCloseCartModal {
    width: 44px;
    height: 44px;
    margin: -8px 0 -8px -12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--lm-ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.25s ease;
}

body.lm-brand-theme #btnCloseCartModal:hover { opacity: 0.6; }

/* Only the body scrolls */
body.lm-brand-theme .cart-order-dialog .cart-order-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    align-items: start;
    gap: 40px;
    padding: 24px 26px 30px;
}

body.lm-brand-theme .cart-order-dialog .cart-col-head {
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lm-line);
}

body.lm-brand-theme .cart-order-dialog .cart-col-head h4 {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--lm-ink);
}

body.lm-brand-theme #btnClearCart {
    padding: 4px 0;
    color: var(--lm-stone);
    font-size: 0.72rem;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: rgba(138, 133, 124, 0.45);
    text-underline-offset: 4px;
    transition: color 0.25s ease;
}

body.lm-brand-theme #btnClearCart:hover { color: var(--lm-ink); }

body.lm-brand-theme .cart-order-dialog .cart-items-container {
    gap: 0;
    max-height: 360px;
    padding: 0;
}

body.lm-brand-theme .cart-order-dialog .cart-item-row {
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid var(--lm-line);
    border-radius: 0;
    background: transparent;
}

body.lm-brand-theme .cart-order-dialog .cart-item-thumb {
    width: 66px;
    height: 82px;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 0;
    object-fit: contain;
    background: var(--lm-frame);
}

body.lm-brand-theme .cart-order-dialog .cart-item-details { min-width: 0; }

body.lm-brand-theme .cart-order-dialog .cart-item-title {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--lm-ink);
    line-height: 1.5;
}

body.lm-brand-theme .cart-order-dialog .cart-item-sub {
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--lm-stone);
    line-height: 1.75;
}

body.lm-brand-theme .cart-order-dialog .cart-item-sub strong {
    font-weight: 500;
    color: var(--lm-ink);
}

body.lm-brand-theme .cart-order-dialog .cart-qty-controls {
    gap: 0;
    margin-top: 10px;
    padding: 0;
    border: 1px solid var(--lm-line);
    border-radius: 0;
    background: transparent;
}

body.lm-brand-theme .cart-order-dialog .qty-btn {
    width: 32px;
    height: 30px;
    padding: 0;
    color: var(--lm-ink);
    font-size: 0.92rem;
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
}

body.lm-brand-theme .cart-order-dialog .qty-num {
    min-width: 22px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
}

body.lm-brand-theme .cart-order-dialog .cart-item-stock-note {
    margin-top: 6px;
    font-size: 0.68rem;
    font-weight: 400;
    color: #8a6a3f;
}

body.lm-brand-theme .cart-order-dialog .cart-item-right { gap: 10px; }

body.lm-brand-theme .cart-order-dialog .cart-item-line-total {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--lm-ink);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

body.lm-brand-theme .cart-order-dialog .cart-item-del {
    width: 32px;
    height: 32px;
    margin-left: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lm-stone);
    transition: color 0.25s ease;
}

body.lm-brand-theme .cart-order-dialog .cart-item-del:hover { color: var(--lm-ink); }

body.lm-brand-theme .cart-order-dialog .empty-cart-box {
    padding: 40px 16px;
    border-radius: 0;
    background: transparent;
    color: var(--lm-stone);
}

body.lm-brand-theme .cart-order-dialog .empty-cart-icon {
    margin-bottom: 10px;
    color: var(--lm-stone);
    line-height: 0;
}

body.lm-brand-theme .cart-order-dialog .empty-cart-box p {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--lm-ink);
}

body.lm-brand-theme .cart-order-dialog .empty-cart-box span { font-size: 0.74rem; }

body.lm-brand-theme .cart-order-dialog .cart-grand-total-bar {
    margin-top: 0;
    padding: 18px 0 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--lm-stone);
}

body.lm-brand-theme .cart-order-dialog .cart-grand-total-bar strong {
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--lm-ink);
    letter-spacing: 0.02em;
}

/* Delivery details: hairline fields, no boxes */
body.lm-brand-theme .cart-order-dialog .customer-order-form {
    gap: 18px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

body.lm-brand-theme .cart-order-dialog .customer-order-form h4 {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lm-line);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--lm-ink);
}

body.lm-brand-theme .cart-order-dialog .form-group {
    gap: 2px;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--lm-stone);
}

body.lm-brand-theme .cart-order-dialog .form-group input {
    padding: 10px 0 9px;
    border: none;
    border-bottom: 1px solid rgba(20, 20, 19, 0.22);
    border-radius: 0;
    background: transparent;
    color: var(--lm-ink);
    font-size: 16px; /* 16px keeps iPhone from zooming into the field */
    box-shadow: none;
    transition: border-color 0.25s ease;
}

body.lm-brand-theme .cart-order-dialog .form-group input::placeholder { color: #b3aea5; }

body.lm-brand-theme .cart-order-dialog .form-group input:focus {
    outline: none;
    border-bottom-color: var(--lm-ink);
}

body.lm-brand-theme .cart-order-dialog .btn-primary-submit {
    height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: 0;
    background: var(--lm-ink);
    color: var(--lm-ivory);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    box-shadow: none;
}

/* Phones: a bottom sheet sized to the *visible* screen, so the X is always in view */
@media (max-width: 640px) {
    body.lm-brand-theme #cartOrderModal.modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    body.lm-brand-theme .cart-order-dialog {
        width: 100%;
        max-width: none;
        max-height: 88vh;
        max-height: calc(100dvh - 24px);
        border-radius: 0;
    }

    body.lm-brand-theme .cart-order-dialog > .modal-header { padding: 16px 18px 13px; }

    body.lm-brand-theme .cart-order-dialog .cart-order-grid {
        gap: 32px;
        padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 28px);
    }

    /* One scroll only — no box scrolling inside the sheet */
    body.lm-brand-theme .cart-order-dialog .cart-items-container {
        max-height: none;
        overflow: visible;
    }
}

/* =========================================================================
   10. SHOP THE LOOK — Lookbook card indicators, fullscreen viewer &
       Admin Looks Manager (Phase 2)
   ========================================================================= */
body.lm-brand-theme.lm-lv-open { overflow: hidden; }

body.lm-brand-theme .lm-look {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.lm-brand-theme .lm-look-frame {
    position: relative;
}

body.lm-brand-theme .lm-look-video {
    transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (hover: hover) {
    body.lm-brand-theme .lm-look:hover .lm-look-video { transform: scale(1.022); }
}

body.lm-brand-theme .lm-look:focus-visible {
    outline: 1px solid var(--lm-ink);
    outline-offset: 4px;
}

/* Quiet shoppable pill on lookbook cards that have linked products */
body.lm-brand-theme .lm-look-shop-pill {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    background: rgba(236, 229, 218, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(20, 20, 19, 0.14);
    color: var(--lm-ink);
    font-family: var(--font-ar);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    pointer-events: none;
}

body.lm-brand-theme .lm-look-shop-pill svg { flex: none; display: block; }

/* Admin-only quick link shortcut on lookbook cards */
body.lm-brand-theme .lm-look-admin-edit {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    background: rgba(20, 20, 19, 0.78);
    color: #fff;
    font-family: var(--font-ar);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.lm-brand-theme.lm-admin .lm-look-admin-edit { display: inline-flex; }
body.lm-brand-theme.lm-admin .lm-look-admin-edit:hover { background: var(--lm-ink); }

/* --- Fullscreen Viewer Overlay (#lmLookViewer) --- */
body.lm-brand-theme .lm-lv {
    position: fixed;
    inset: 0;
    z-index: 480;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141413;
    opacity: 0;
    transition: opacity 0.28s ease;
}

body.lm-brand-theme .lm-lv[hidden] { display: none; }
body.lm-brand-theme .lm-lv.is-open { opacity: 1; }

body.lm-brand-theme .lm-lv-dialog {
    position: relative;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: #141413;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.lm-brand-theme .lm-lv-stage {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    background: #141413;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

body.lm-brand-theme .lm-lv-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #141413;
}

body.lm-brand-theme .lm-lv-video::-webkit-media-controls { display: none !important; }

body.lm-brand-theme .lm-lv-scrim-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(20, 20, 19, 0.62) 0%, rgba(20, 20, 19, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

body.lm-brand-theme .lm-lv-scrim-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top, rgba(20, 20, 19, 0.65) 0%, rgba(20, 20, 19, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Story progress bars at top on mobile (RTL matches LOOK 01 -> 06 reading flow) */
body.lm-brand-theme .lm-lv-dots {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    left: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    gap: 5px;
    direction: rtl;
    pointer-events: none;
}

body.lm-brand-theme .lm-lv-dot {
    flex: 1 1 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.32);
    transition: background-color 0.25s ease;
}

body.lm-brand-theme .lm-lv-dot.is-active {
    background: rgba(255, 255, 255, 0.94);
}

/* Floating top bar over video */
body.lm-brand-theme .lm-lv-topbar {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 18px);
    left: 12px;
    right: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.lm-brand-theme .lm-lv-id-mobile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: #fff;
}

body.lm-brand-theme .lm-lv-no {
    font-family: var(--lm-serif);
    font-size: 0.56rem;
    letter-spacing: 0.38em;
    color: rgba(255, 255, 255, 0.78);
    direction: ltr;
    align-self: flex-start;
}

body.lm-brand-theme .lm-lv-name {
    font-family: var(--font-ar);
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.lm-brand-theme .lm-lv-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

body.lm-brand-theme .lm-lv-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    background: rgba(20, 20, 19, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.lm-brand-theme .lm-lv-icon-btn:hover {
    background: rgba(20, 20, 19, 0.72);
    border-color: rgba(255, 255, 255, 0.48);
}

body.lm-brand-theme .lm-lv-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: var(--lm-ivory);
    color: var(--lm-ink);
    font-family: var(--font-ar);
    font-size: 0.64rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.lm-brand-theme .lm-lv-cart-count.hidden { display: none; }

/* Pause badge */
body.lm-brand-theme .lm-lv-play-badge {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 19, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.lm-brand-theme .lm-lv-play-badge.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Prev / Next arrows */
body.lm-brand-theme .lm-lv-nav {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    z-index: 4;
    width: 38px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: rgba(20, 20, 19, 0.34);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease;
}

body.lm-brand-theme .lm-lv-nav:hover { background: rgba(20, 20, 19, 0.65); }
body.lm-brand-theme .lm-lv-nav.hidden { display: none; }
body.lm-brand-theme .lm-lv-prev { right: 10px; }
body.lm-brand-theme .lm-lv-next { left: 10px; }

/* Bottom Shop-the-Look tray (Mobile default) */
body.lm-brand-theme .lm-lv-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    background: var(--lm-ivory);
    color: var(--lm-ink);
    border-top: 1px solid rgba(20, 20, 19, 0.12);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
    box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.25);
}

body.lm-brand-theme .lm-lv-panel-head-desk { display: none; }

body.lm-brand-theme .lm-lv-tray-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.lm-brand-theme .lm-lv-tray-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

body.lm-brand-theme .lm-lv-tray-kicker {
    font-family: var(--lm-serif);
    font-size: 0.56rem;
    letter-spacing: 0.3em;
    color: var(--lm-stone);
    direction: ltr;
}

body.lm-brand-theme .lm-lv-tray-title {
    font-family: var(--font-ar);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--lm-ink);
}

body.lm-brand-theme .lm-lv-tray-toggle {
    width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--lm-ink);
    cursor: pointer;
    padding: 0;
    transition: transform 0.25s ease;
}

body.lm-brand-theme .lm-lv-panel.is-collapsed .lm-lv-tray-toggle { transform: rotate(180deg); }
body.lm-brand-theme .lm-lv-panel.is-collapsed .lm-lv-items,
body.lm-brand-theme .lm-lv-panel.is-collapsed .lm-lv-panel-foot { display: none; }

/* Horizontal product rail on mobile */
body.lm-brand-theme .lm-lv-items {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 14px 10px;
    scrollbar-width: none;
}

body.lm-brand-theme .lm-lv-items::-webkit-scrollbar { display: none; }

body.lm-brand-theme .lm-lv-card {
    flex: 0 0 252px;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 8px 8px 6px;
    background: var(--lm-frame);
    border: 1px solid rgba(20, 20, 19, 0.08);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

body.lm-brand-theme .lm-lv-card:hover { border-color: rgba(20, 20, 19, 0.28); }
body.lm-brand-theme .lm-lv-card.is-soldout { opacity: 0.65; }

body.lm-brand-theme .lm-lv-card-thumb {
    flex: none;
    width: 54px;
    height: 70px;
    background: var(--lm-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.lm-brand-theme .lm-lv-card-thumb img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 3px;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
}

body.lm-brand-theme .lm-lv-card-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body.lm-brand-theme .lm-lv-card-cat {
    font-size: 0.62rem;
    color: var(--lm-stone);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.lm-brand-theme .lm-lv-card-name {
    margin: 0;
    font-family: var(--font-ar);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--lm-ink);
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.lm-brand-theme .lm-lv-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

body.lm-brand-theme .lm-lv-card-price {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--lm-ink);
    letter-spacing: 0.01em;
}

body.lm-brand-theme .lm-lv-card-old {
    font-size: 0.64rem;
    color: var(--lm-stone);
    text-decoration: line-through;
}

body.lm-brand-theme .lm-lv-card-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

body.lm-brand-theme .lm-lv-card-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(20, 20, 19, 0.18);
}

body.lm-brand-theme .lm-lv-soldout-note {
    font-size: 0.64rem;
    color: #8a4b14;
    font-weight: 500;
}

body.lm-brand-theme .lm-lv-qa {
    flex: none;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 20, 19, 0.2);
    border-radius: 0;
    background: transparent;
    color: var(--lm-ink);
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.lm-brand-theme .lm-lv-qa:hover:not(:disabled) {
    background: var(--lm-ink);
    color: var(--lm-ivory);
    border-color: var(--lm-ink);
}

body.lm-brand-theme .lm-lv-qa:disabled { opacity: 0.32; cursor: not-allowed; }
body.lm-brand-theme .lm-lv-qa .lm-qa-tick { display: none; }
body.lm-brand-theme .lm-lv-qa.is-added {
    background: var(--lm-ink);
    color: var(--lm-ivory);
    border-color: var(--lm-ink);
}
body.lm-brand-theme .lm-lv-qa.is-added .lm-qa-bag { display: none; }
body.lm-brand-theme .lm-lv-qa.is-added .lm-qa-tick { display: block; animation: lmFadeRise 0.25s ease both; }

/* Footer inside tray */
body.lm-brand-theme .lm-lv-panel-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 14px 6px;
}

body.lm-brand-theme .lm-lv-panel:not(.is-empty) .lm-lv-shop-all {
    display: none;
}

body.lm-brand-theme .lm-lv-shop-all {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0;
    background: rgba(20, 20, 19, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-ar);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.lm-brand-theme .lm-lv-shop-all:hover {
    background: var(--lm-ivory);
    color: var(--lm-ink);
    border-color: var(--lm-ivory);
}

body.lm-brand-theme .lm-lv-admin-link-btn {
    width: 100%;
    height: 38px;
    border: 1px dashed rgba(20, 20, 19, 0.35);
    border-radius: 0;
    background: var(--lm-frame);
    color: var(--lm-ink);
    font-family: var(--font-ar);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

body.lm-brand-theme .lm-lv-admin-link-btn.hidden { display: none; }

/* Unlinked look on mobile: sleek minimal floating CTA over bottom scrim */
body.lm-brand-theme .lm-lv-panel.is-empty {
    background: transparent;
    border-top: none;
    box-shadow: none;
    padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
}

body.lm-brand-theme .lm-lv-panel.is-empty .lm-lv-tray-bar,
body.lm-brand-theme .lm-lv-panel.is-empty .lm-lv-items {
    display: none;
}

body.lm-brand-theme .lm-lv-panel.is-empty .lm-lv-panel-foot { padding: 0; }
body.lm-brand-theme .lm-lv-panel.is-empty .lm-lv-admin-link-btn {
    background: rgba(236, 229, 218, 0.94);
    border-color: rgba(20, 20, 19, 0.3);
}

/* --- Desktop Split Editorial Stage (>= 769px) --- */
@media (min-width: 769px) {
    body.lm-brand-theme .lm-lv {
        background: rgba(20, 20, 19, 0.72);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        padding: 28px;
    }

    body.lm-brand-theme .lm-lv-dialog {
        width: min(1000px, 94vw);
        height: min(84vh, 720px);
        display: grid;
        grid-template-columns: minmax(340px, 44%) 1fr;
        background: var(--lm-ivory);
        box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
    }

    body.lm-brand-theme .lm-lv-id-mobile,
    body.lm-brand-theme .lm-lv-close-mob,
    body.lm-brand-theme .lm-lv-tray-toggle { display: none; }

    body.lm-brand-theme .lm-lv-topbar {
        justify-content: flex-end;
        top: 14px;
        left: 14px;
        right: 14px;
    }

    body.lm-brand-theme .lm-lv-dots {
        top: auto;
        bottom: 14px;
        left: 18px;
        right: 18px;
    }

    body.lm-brand-theme .lm-lv-nav { top: 50%; }

    body.lm-brand-theme .lm-lv-panel,
    body.lm-brand-theme .lm-lv-panel.is-empty {
        position: static;
        display: flex;
        flex-direction: column;
        min-height: 0;
        background: var(--lm-ivory);
        border-top: none;
        border-right: 1px solid var(--lm-line);
        box-shadow: none;
        padding: 0;
    }

    body.lm-brand-theme .lm-lv-panel-head-desk {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 24px 26px 18px;
        border-bottom: 1px solid var(--lm-line);
    }

    body.lm-brand-theme .lm-lv-head-titles { min-width: 0; }

    body.lm-brand-theme .lm-lv-no-desk {
        display: block;
        font-family: var(--lm-serif);
        font-size: 0.6rem;
        letter-spacing: 0.42em;
        color: var(--lm-stone);
        direction: ltr;
        text-align: right;
    }

    body.lm-brand-theme .lm-lv-name-desk {
        margin: 6px 0 0;
        font-family: var(--font-ar);
        font-size: 1.24rem;
        font-weight: 400;
        color: var(--lm-ink);
        line-height: 1.4;
    }

    body.lm-brand-theme .lm-lv-close-desk {
        flex: none;
        width: 40px;
        height: 40px;
        margin: -6px 0 0 -10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        color: var(--lm-ink);
        cursor: pointer;
        transition: opacity 0.2s ease;
    }

    body.lm-brand-theme .lm-lv-close-desk:hover { opacity: 0.55; }

    body.lm-brand-theme .lm-lv-tray-bar {
        padding: 14px 26px 10px;
        cursor: default;
    }

    body.lm-brand-theme .lm-lv-panel.is-empty .lm-lv-tray-bar { display: none; }

    body.lm-brand-theme .lm-lv-items,
    body.lm-brand-theme .lm-lv-panel.is-empty .lm-lv-items {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: none;
        gap: 12px;
        padding: 6px 26px 20px;
    }

    body.lm-brand-theme .lm-lv-card {
        flex: none;
        width: 100%;
        padding: 12px 12px 12px 14px;
        gap: 14px;
    }

    body.lm-brand-theme .lm-lv-card-thumb { width: 68px; height: 88px; }
    body.lm-brand-theme .lm-lv-card-name { font-size: 0.86rem; }
    body.lm-brand-theme .lm-lv-card-price { font-size: 0.82rem; }
    body.lm-brand-theme .lm-lv-qa { width: 42px; height: 42px; }

    body.lm-brand-theme .lm-lv-empty-copy {
        margin: auto 0;
        text-align: center;
        padding: 28px 16px;
        color: var(--lm-stone);
    }

    body.lm-brand-theme .lm-lv-empty-copy p {
        margin: 0 0 8px;
        font-size: 0.94rem;
        color: var(--lm-ink);
        font-weight: 400;
    }

    body.lm-brand-theme .lm-lv-empty-copy span {
        font-size: 0.78rem;
        line-height: 1.75;
    }

    body.lm-brand-theme .lm-lv-panel-foot,
    body.lm-brand-theme .lm-lv-panel.is-empty .lm-lv-panel-foot {
        padding: 14px 26px 22px;
        border-top: 1px solid var(--lm-line);
    }

    body.lm-brand-theme .lm-lv-panel:not(.is-empty) .lm-lv-shop-all { display: block; }

    body.lm-brand-theme .lm-lv-shop-all {
        height: 46px;
        border: 1px solid var(--lm-ink);
        background: transparent;
        color: var(--lm-ink);
        backdrop-filter: none;
    }

    body.lm-brand-theme .lm-lv-shop-all:hover {
        background: var(--lm-ink);
        color: var(--lm-ivory);
        border-color: var(--lm-ink);
    }
}

/* =========================================================================
   11. ADMIN LOOKS MANAGER MODAL (#adminLooksModal)
   ========================================================================= */
.admin-looks-dialog {
    width: min(820px, 95vw);
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
    background: #ffffff;
    border-radius: 14px;
}

.admin-looks-dialog > .modal-header {
    flex: none;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    margin: 0;
}

.admin-looks-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-looks-body.hidden { display: none !important; }

.admin-looks-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-look-row {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.admin-look-thumb-col {
    flex: none;
    width: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.admin-look-poster {
    width: 62px;
    height: 82px;
    object-fit: cover;
    border-radius: 6px;
    background: #e2e8f0;
    display: block;
}

.admin-look-no {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.08em;
    direction: ltr;
}

.admin-look-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-look-top-line {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-look-name-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-ar);
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-look-name-input:focus {
    outline: none;
    border-color: #141413;
}

.admin-look-order-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.admin-look-move-btn {
    width: 30px;
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 0.72rem;
    cursor: pointer;
}

.admin-look-move-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.admin-look-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-look-file {
    font-size: 0.72rem;
    color: #64748b;
    font-family: monospace;
}

.admin-look-pick-btn {
    padding: 6px 12px;
    border: 1px solid #141413;
    border-radius: 8px;
    background: #fff;
    color: #141413;
    font-family: var(--font-ar);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.admin-look-pick-btn.has-items {
    background: #141413;
    color: #fff;
}

.admin-look-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.look-prod-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 5px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    max-width: 100%;
}

.look-prod-chip img {
    width: 24px;
    height: 30px;
    object-fit: contain;
    background: #f8f5f0;
    border-radius: 3px;
}

.look-prod-chip-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #1e293b;
    max-width: 165px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.look-prod-chip-del {
    border: none;
    background: #fee2e2;
    color: #991b1b;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.look-prod-empty {
    font-size: 0.74rem;
    color: #64748b;
}

.admin-looks-footer {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 14px);
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.admin-looks-save-btn {
    flex: 1 1 160px;
    width: auto !important;
    margin: 0 !important;
    padding: 11px 16px !important;
}

.admin-looks-publish-btn {
    flex: 1 1 160px;
    padding: 11px 16px;
    border: 1px solid #15803d;
    border-radius: 8px;
    background: #15803d;
    color: #fff;
    font-family: var(--font-ar);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}

.admin-looks-reset-btn {
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-family: var(--font-ar);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

/* Picker Sub-View */
.looks-picker-top {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.looks-picker-look-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.looks-picker-thumb {
    width: 38px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.looks-picker-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.looks-picker-sub {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 2px;
}

.looks-picker-done-btn {
    padding: 9px 16px;
    border: none;
    border-radius: 8px;
    background: #141413;
    color: #fff;
    font-family: var(--font-ar);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.looks-picker-controls {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.looks-picker-search {
    flex: 1 1 200px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-ar);
    font-size: 0.84rem;
}

.looks-picker-select {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-ar);
    font-size: 0.8rem;
    background: #fff;
}

.looks-picker-only-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.looks-picker-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 18px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    align-content: start;
}

.looks-picker-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-align: right;
    cursor: pointer;
    font-family: var(--font-ar);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.looks-picker-item:hover { border-color: #94a3b8; }

.looks-picker-item.is-selected {
    border-color: #15803d;
    background: #f0fdf4;
}

.looks-picker-check {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.looks-picker-item.is-selected .looks-picker-check {
    background: #15803d;
    border-color: #15803d;
}

.looks-picker-img-wrap {
    flex: none;
    width: 48px;
    height: 62px;
    background: #f8f5f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.looks-picker-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
    box-sizing: border-box;
}

.looks-picker-item-info {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.looks-picker-item-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.looks-picker-item-meta {
    font-size: 0.72rem;
    color: #475569;
}

.looks-picker-item-code {
    font-size: 0.66rem;
    color: #94a3b8;
    font-family: monospace;
    align-self: flex-start;
}

.looks-picker-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 16px;
    color: #64748b;
    font-size: 0.86rem;
}

@media (max-width: 640px) {
    .admin-looks-dialog {
        width: 100%;
        max-height: 94dvh;
        border-radius: 14px 14px 0 0;
    }
    .looks-picker-grid { grid-template-columns: 1fr; }
}


/* =========================================================================
   12. CATALOG — MARBLE GALLERY (product frames only)
   Inner frame: a light, warm honed travertine, ~2% deeper than the store
   stone (#ece5da) so frames and page read as one calm family.
   The stone is ONE pre-rendered image (css/img/lm-marble-frame.jpg, 32 KB):
   every phone and browser shows exactly the same pixels (the old SVG noise
   was rendered differently by each device). Its broad light is flattened,
   so neighbouring frames look equally lit wherever the slab is cut.
   Thin editorial gutters (Reformation-style).
   Scope: catalog product cards only. Hero, Lookbook, Shop-the-Look untouched.
   ========================================================================= */
body.lm-brand-theme {
    --lm-marble: #e7e0d5;
}

body.lm-brand-theme .product-img-box {
    --mx: 0px;
    --my: 0px;
    perspective: none;
    background-color: var(--lm-marble);
    background-image:
        radial-gradient(ellipse 90% 80% at 50% 44%, rgba(255, 253, 248, 0.22) 0%, rgba(255, 253, 248, 0) 62%, rgba(150, 128, 104, 0.035) 100%),
        url("img/lm-marble-frame.jpg");
    background-size: 100% 100%, 640px 860px;
    background-repeat: no-repeat, repeat;
    background-position: center, var(--mx) var(--my);
}

body.lm-brand-theme .product-img-box img {
    transform-style: flat;
}

/* Every frame shows a different part of the stone, like real slabs */
body.lm-brand-theme .product-card:nth-child(6n+2) .product-img-box { --mx: -210px; --my: -120px; }
body.lm-brand-theme .product-card:nth-child(6n+3) .product-img-box { --mx: -420px; --my: -300px; }
body.lm-brand-theme .product-card:nth-child(6n+4) .product-img-box { --mx: -90px;  --my: -470px; }
body.lm-brand-theme .product-card:nth-child(6n+5) .product-img-box { --mx: -330px; --my: -610px; }
body.lm-brand-theme .product-card:nth-child(6n)   .product-img-box { --mx: -520px; --my: -40px; }

/* Larger screens: thin gallery gutters */
body.lm-brand-theme .catalog-products-grid { gap: 40px 6px; }

/* Phones: Reformation-style layout — slim side margins, a hairline gutter
   between the two pieces, then the name and price, then a calm row break */
@media (max-width: 640px) {
    body.lm-brand-theme .catalog-main-container { padding: 22px 8px 96px; }
    body.lm-brand-theme .section-top-bar { padding: 0 6px; }

    body.lm-brand-theme .catalog-products-grid { gap: 26px 4px; }

    /* The photo element hugs the photo itself (centred, never cropped or
       stretched) and its outer 4% dissolves softly into the stone (never the
       piece), so a photo whose backdrop isn't pure white shows no inner square */
    body.lm-brand-theme .product-img-box img {
        position: absolute;
        inset: 0;
        margin: auto;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        -webkit-mask-image:
            linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%),
            linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image:
            linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%),
            linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
        mask-composite: intersect;
        -webkit-mask-origin: content-box;
        mask-origin: content-box;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    body.lm-brand-theme .product-card-body { padding: 9px 5px 0 30px; gap: 3px; }
    body.lm-brand-theme .lm-qa-icon { left: -8px; top: 1px; }
}

/* =========================================================================
   13. BACK BUTTON + LOOK STORIES
   - Product page (phones): a clear back arrow at the top-right (RTL start);
     the zoom button moves to the top-left. Larger screens keep the X.
   - Look viewer (phones): back arrow beside the look name.
   - Story progress bars fill with the film's real time.
   - Prev / next arrows: barely-there thin chevrons, no boxes.
   - Press and hold pauses the film and quietly hides the controls.
   ========================================================================= */
body.lm-brand-theme #productDetailModal .modal-close-btn .lm-ico-back { display: none; }

@media (max-width: 640px) {
    body.lm-brand-theme #productDetailModal .modal-close-btn {
        left: auto;
        right: 12px;
    }

    body.lm-brand-theme #productDetailModal .modal-close-btn .lm-ico-x { display: none; }
    body.lm-brand-theme #productDetailModal .modal-close-btn .lm-ico-back { display: block; }

    body.lm-brand-theme .detail-zoom-btn { right: auto; left: 14px; }
}

/* Viewer top bar: [back + look name] ...... [sound + bag] */
body.lm-brand-theme .lm-lv-top-start {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.lm-brand-theme .lm-lv-topbar,
body.lm-brand-theme .lm-lv-nav,
body.lm-brand-theme .lm-lv-scrim-top {
    transition: opacity 0.22s ease;
}

body.lm-brand-theme .lm-lv.is-holding .lm-lv-topbar,
body.lm-brand-theme .lm-lv.is-holding .lm-lv-nav,
body.lm-brand-theme .lm-lv.is-holding .lm-lv-scrim-top {
    opacity: 0;
}

/* No "save video" menu or text selection on long press */
body.lm-brand-theme .lm-lv-stage,
body.lm-brand-theme .lm-lv-video {
    -webkit-touch-callout: none;
}

/* Story progress */
body.lm-brand-theme .lm-lv-dot,
body.lm-brand-theme .lm-lv-dot.is-active {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
}

body.lm-brand-theme .lm-lv-dot-fill {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(255, 255, 255, 0.94);
    transform: scaleX(0);
    transform-origin: right center;
}

body.lm-brand-theme .lm-lv-dot.is-done .lm-lv-dot-fill { transform: scaleX(1); }

/* Light arrows */
body.lm-brand-theme .lm-lv-nav {
    width: 34px;
    height: 60px;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.75;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

body.lm-brand-theme .lm-lv-nav svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.1;
}

body.lm-brand-theme .lm-lv-nav:hover {
    background: transparent;
    color: #fff;
    opacity: 1;
}

body.lm-brand-theme .lm-lv-prev { right: 4px; }
body.lm-brand-theme .lm-lv-next { left: 4px; }
