/* ═══════════════════════════════════════════════════════════
   LAUXURIA ADVANCED BUILDER — front-end element styles
   ───────────────────────────────────────────────────────────
   Styles for elements placed through the Advanced Builder. This
   is the *visitor* stylesheet — the editor's own chrome lives in
   assets/element-builder.css and never loads for a normal page
   view.

   Enqueued from functions.php only when at least one element is
   placed (or edit mode is active), so a site not using the
   builder ships none of this.

   Everything is scoped under .lx-zone / .lx-el. The theme's
   legacy `nav a:after` underline and `nav { margin: 0 auto }`
   rules are broad enough to reach into elements, so the few
   resets that neutralise them are deliberate, not redundant.
═══════════════════════════════════════════════════════════ */

/* ═══ ZONE ══════════════════════════════════════════════════ */

.lx-zone {
    display: flex;
    align-items: center;
    /* flex:0 0 auto keeps a zone from stealing width from the logo or
       the icon row; min-width:0 lets its own contents shrink instead
       of forcing the header row to overflow. */
    flex: 0 0 auto;
    min-width: 0;
    gap: 12px;
}

.lx-zone--stack {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
}

.lx-zone--drawer_top,
.lx-zone--drawer_bottom {
    padding: 14px 22px;
}

.lx-zone--ann_end {
    gap: 10px;
}

/* ═══ ELEMENT WRAPPER ═══════════════════════════════════════ */

.lx-el {
    display: flex;
    align-items: center;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 12px;
    color: inherit;
    line-height: 1.4;
}

.lx-zone--stack > .lx-el {
    width: 100%;
}

/* The device rule for header zones is CSS, not server-side: the
   header row is a single DOM shared by every breakpoint, so an
   element cannot simply be omitted for one of them. 900px is the
   theme's own nav breakpoint. */
@media (max-width: 900px) {
    .lx-el--desktop-only { display: none !important; }
}

@media (min-width: 901px) {
    .lx-el--mobile-only { display: none !important; }
}

.lx-el--shadow-soft   { box-shadow: 0 2px 10px rgba(14, 12, 11, .06); }
.lx-el--shadow-medium { box-shadow: 0 6px 22px rgba(14, 12, 11, .10); }
.lx-el--shadow-strong { box-shadow: 0 12px 40px rgba(14, 12, 11, .18); }

/* ═══ TEXT / HEADING ════════════════════════════════════════ */

.lx-el--text,
.lx-el--html,
.lx-el--shortcode {
    display: block;
}

.lx-el--text p:last-child,
.lx-el--html p:last-child {
    margin-bottom: 0;
}

.lx-el-heading {
    font-family: var(--font-display);
    font-size: inherit;
    font-weight: 600;
    letter-spacing: .04em;
    color: inherit;
}

/* ═══ BUTTON ════════════════════════════════════════════════ */

.lx-el-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background var(--tr), color var(--tr), border-color var(--tr);
}

.lx-el-btn--sm { padding: 8px 16px; font-size: 11px; }
.lx-el-btn--md { padding: 11px 22px; font-size: 12px; }
.lx-el-btn--lg { padding: 14px 30px; font-size: 13px; }

.lx-el-btn--gold {
    background: var(--gold);
    color: var(--cream);
}
.lx-el-btn--gold:hover { background: var(--gold2); }

.lx-el-btn--solid {
    background: var(--ink);
    color: var(--cream);
}
.lx-el-btn--solid:hover { background: var(--gold); }

.lx-el-btn--outline {
    border-color: var(--gold);
    color: var(--gold);
}
.lx-el-btn--outline:hover {
    background: var(--gold);
    color: var(--cream);
}

.lx-el-btn--ghost {
    color: var(--muted);
    padding-left: 0;
    padding-right: 0;
}
.lx-el-btn--ghost:hover { color: var(--ink); }

/* ═══ IMAGE / ICON ══════════════════════════════════════════ */

.lx-el-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.lx-el-img.is-rounded { border-radius: 999px; }

.lx-el-icon {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

.lx-el-icon svg { display: block; }

/* ═══ DIVIDER / SPACER ══════════════════════════════════════ */

.lx-el-divider {
    display: block;
    opacity: .5;
}

.lx-el-divider--vertical  { width: 0; }
.lx-el-divider--horizontal { height: 0; }

.lx-el-spacer {
    display: block;
    width: 100%;
}

/* ═══ ICON BUTTONS (search / account) ═══════════════════════ */

.lx-el-iconbtn {
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--muted);
    transition: color var(--tr);
}

.lx-el-iconbtn:hover { color: var(--ink); }

.lx-el-searchfield {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 18px;
    min-width: 220px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
    transition: border-color var(--tr);
}

.lx-el-searchfield:hover { border-color: var(--gold); }

/* ═══ LANGUAGE SWITCHER ═════════════════════════════════════ */

.lx-el-lang {
    display: inline-flex;
    align-items: center;
}

/* GTranslate ships its own widget markup; these only stop it from
   stretching the header row, and never restyle its internals. */
.lx-el-lang.is-compact .gtranslate_wrapper,
.lx-el-lang.is-compact .switcher {
    max-width: 150px;
}

.lx-el-lang select {
    font-family: var(--font-body);
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--ink);
}

.lx-el-warn {
    font-size: 11px;
    color: var(--red);
    letter-spacing: .04em;
}

/* ═══ SOCIALS ═══════════════════════════════════════════════ */

.lx-el-socials {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lx-el-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: background var(--tr), color var(--tr), border-color var(--tr);
}

.lx-el-social:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}

.lx-el-socials--circle .lx-el-social { border-radius: 999px; }
.lx-el-socials--square .lx-el-social { border-radius: 3px; }
.lx-el-socials--bare .lx-el-social {
    border: none;
    width: auto !important;
    height: auto !important;
}

/* ═══ CART / CONTACT ════════════════════════════════════════ */

.lx-el-cart {
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color var(--tr);
}

.lx-el-cart:hover { color: var(--ink); }

/* Its own class, not the header badge's `.cbadge` — that one is the
   target of a WooCommerce fragment whose replacement markup carries
   id="cart-count", and fragments replace every matching node. */
.lx-el-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--cream);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
}

.lx-el-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lx-el-contact-icon {
    display: inline-flex;
    color: var(--gold);
}

.lx-el-contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.lx-el-contact-text b {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
}

.lx-el-contact-text i {
    font-style: normal;
    font-size: 11px;
    color: var(--muted);
}

/* ═══ MENU LIST ═════════════════════════════════════════════ */

/* Deliberately not built from the navbar's own markup — see
   lauxuria_eb_render_menu() for why (the live navbar editor finds the
   real navbar with a bare `.lx-nav-list` selector, so a second one
   above it in the DOM would capture it). These are its own styles. */
.lx-el-menu {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin: 0;
}

.lx-el-menu--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.lx-el-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
    transition: color var(--tr);
}

.lx-el-menu-link:hover { color: var(--ink); }

/* ═══ PLACEHOLDER ═══════════════════════════════════════════ */

.lx-el-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border);
    border-radius: 3px;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--muted);
    background: rgba(184, 150, 62, .04);
}

/* ═══ MOBILE ════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .lx-zone--nav_before,
    .lx-zone--nav_after {
        gap: 8px;
    }

    .lx-el-searchfield {
        min-width: 0;
    }
}
