/* Milodea DS extensions (loaded after milodea-ds.css).
   1) Home hero reverted to a contained, rounded, height-capped banner.
   2) In-app <select> listbox styling for public/assets/front-end/js/milodea-select.js. */

/* ---- 1. Home hero banner (was full-bleed / full-height) ---- */
.mld-hero-wrap { margin-top: 16px; }
.mld-hero-img {
    display: block; width: 100%;
    aspect-ratio: 1120 / 360; max-height: 420px;
    object-fit: cover; border-radius: var(--mld-r-xl);
}
.mld-hero-slider .owl-stage, .mld-hero-slider .owl-item { height: auto; }
.mld-hero-slider .owl-item img { width: 100%; }
.mld-hero-slider .owl-nav button.owl-prev, .mld-hero-slider .owl-nav button.owl-next { color: #fff; }
@media (max-width: 640px) { .mld-hero-img { aspect-ratio: 16 / 9; max-height: 220px; } }

/* ---- 2. In-app select (listbox) ---- */
.mld-ms { position: relative; display: inline-block; width: 100%; }
.mld-ms-native {   /* native <select> kept for submit/handlers, hidden visually */
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mld-ms-btn {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: space-between;
    gap: 8px; width: 100%; min-height: 40px; padding: 0 12px;
    font: inherit; font-size: 13.5px; line-height: 1.2; text-align: start; color: var(--mld-ink);
    background: var(--mld-surface); border: 1px solid var(--mld-line); border-radius: var(--mld-r-m); cursor: pointer;
}
.mld-ms-btn:hover { border-color: var(--mld-line-strong); }
.mld-ms-btn:focus-visible { outline: 2px solid var(--mld-focus); outline-offset: 2px; }
.mld-ms[data-open="true"] .mld-ms-btn { border-color: var(--mld-brand); box-shadow: 0 0 0 3px var(--mld-brand-soft); }
.mld-ms-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mld-ms-chev { width: 16px; height: 16px; flex: none; color: var(--mld-ink-3); transition: transform .15s ease; }
.mld-ms[data-open="true"] .mld-ms-chev { transform: rotate(180deg); }

.mld-ms-pop {   /* portaled to <body>, positioned by JS (fixed) so it is never clipped */
    position: fixed; z-index: 1080; left: 0; top: 0;
    min-width: 200px; max-width: min(92vw, 360px); max-height: 320px; overflow-y: auto;
    padding: 6px; background: var(--mld-surface); border: 1px solid var(--mld-line);
    border-radius: var(--mld-r-m); box-shadow: var(--mld-shadow-3);
}
.mld-ms-pop[hidden] { display: none; }
.mld-ms-pop:focus { outline: none; }
.mld-ms-grp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mld-ink-3); padding: 8px 10px 4px; }
.mld-ms-opt {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    font-size: 13.5px; color: var(--mld-ink); border-radius: var(--mld-r-s); cursor: pointer;
}
.mld-ms-opt:hover, .mld-ms-opt.mld-ms-active { background: var(--mld-brand-soft); color: var(--mld-brand-text); }
.mld-ms-opt[aria-selected="true"] { font-weight: 600; color: var(--mld-brand-text); }
.mld-ms-opt[aria-selected="true"]::after { content: ""; margin-inline-start: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--mld-brand); flex: none; }
.mld-ms-opt.mld-ms-disabled { opacity: .5; cursor: not-allowed; }

/* header search scope: blend the trigger into the search bar (no border/bg) */
.mld-search-scope .mld-ms { min-width: 110px; }
.mld-search-scope .mld-ms-btn { border: none; background: transparent; min-height: 0; padding-inline: 0; font-size: 13px; color: var(--mld-ink-2); }
.mld-search-scope .mld-ms-btn:hover { border: none; color: var(--mld-ink); }
.mld-search-scope .mld-ms[data-open="true"] .mld-ms-btn { box-shadow: none; }

/* compact variant inherits width where the old select had a fixed max-width */
.mld-input.mld-select-sm + .mld-ms, .mld-input.mld-input-sm + .mld-ms { max-width: 220px; }
@media (max-width: 640px) { .mld-input.mld-select-sm + .mld-ms, .mld-input.mld-input-sm + .mld-ms { max-width: none; } }

/* ---- 3. Logo lockup: tagline tint + compact fit (orange-bag identity) ---- */
.mld-logo-tag { color: #5E8FB0; }
.mld-logo:not(.mld-logo-full) .mld-logo-tag { font-size: 8.5px; letter-spacing: .12em; }
.mld-logo.mld-on-dark .mld-logo-tag { color: var(--mld-on-deep-muted); }

/* ---- 4. Full-width (wide-marketplace) layout ---- */
/* widen the centered column so content runs closer to the viewport edges */
:root { --mld-max: 1680px; }
/* the home/browse sections use Bootstrap .container — lift them to match .mld-wrap */
.mld-scope .container, .mld-page .container { max-width: var(--mld-max); }
/* denser product grid so cards keep their aspect ratio instead of stretching */
@media (min-width: 1280px) { .mld-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .mld-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* let the hero breathe a little taller when the page is wide */
@media (min-width: 1280px) { .mld-hero-img { max-height: 460px; } }
/* a wider search bar to fill the roomier header (marketplace style) */
@media (min-width: 1200px) { .mld-hdr .mld-search-form { max-width: 1040px; } }

/* ---- 5. Shareable storefront: about blurb + follow / share actions ---- */
.mld-shop-about {
    margin: 10px 0 0;
    max-width: 62ch;
    color: var(--mld-ink-2, #5a6472);
    font-size: 14px;
    line-height: 1.55;
}
.mld-shop-follow-btn, .mld-shop-share-btn { display: inline-flex; align-items: center; gap: 6px; }
.mld-shop-follow-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 18px; padding: 0 6px;
    border-radius: 999px; font-size: 11px; font-weight: 600;
    background: var(--mld-line, rgba(0,0,0,.08)); color: var(--mld-ink-2, #5a6472);
}
.mld-shop-follow-btn.is-following {
    background: var(--mld-brand-soft, #e7f3ec);
    border-color: var(--mld-brand, #2F8F67);
    color: var(--mld-brand, #2F8F67);
}
.mld-shop-follow-btn.is-following .mld-shop-follow-count {
    background: var(--mld-brand, #2F8F67); color: #fff;
}

/* ---- 6. Auto-merchandised store sections (horizontal rails) ---- */
.mld-store-sections { margin: 20px 0 10px; display: flex; flex-direction: column; gap: 22px; }
.mld-store-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mld-store-section-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--mld-ink, #1b2430); text-transform: capitalize; }
.mld-store-section-all { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--mld-brand, #2F8F67); }
.mld-store-section-all .mld-ic { width: 14px; height: 14px; }
.mld-store-rail { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: thin; }
.mld-store-rail > * { flex: 0 0 158px; scroll-snap-align: start; min-width: 0; }
@media (min-width: 768px) { .mld-store-rail > * { flex-basis: 185px; } }
@media (min-width: 1200px) { .mld-store-rail > * { flex-basis: 205px; } }
