/* ==========================================================================
   Leather Mine HOME — header + hero refresh (2026-11)
   Visual-only overrides loaded after theme.css. No markup, URL or text
   changes, so SEO signals (titles, headings, links, meta) stay identical.
   ========================================================================== */

:root {
    --lm-gold: #c9a227;          /* brand gold, fills and rules */
    --lm-gold-light: #dcbc5a;    /* hover on dark */
    --lm-gold-ink: #8a6a12;      /* gold as text on white (4.6:1) */
    --lm-white: #ffffff;
    --lm-ivory: #fbf9f4;
    --lm-ink: #1f1b16;           /* primary text on white */
    --lm-ink-2: #5b5349;         /* secondary text */
    --lm-line: rgba(31, 27, 22, 0.08);
    --lm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --lm-font: 'Prompt', 'Helvetica Neue', Arial, sans-serif; /* site font (theme.css forces it with !important) */
}

/* ---------- Header: shared ---------- */

nav.navbar-fixed {
    font-family: var(--lm-font);
    -webkit-transition: background-color 0.3s var(--lm-ease), box-shadow 0.3s var(--lm-ease);
    transition: background-color 0.3s var(--lm-ease), box-shadow 0.3s var(--lm-ease);
}

/* Logo sits on a white tag so the brown mark never blends into photos.
   The dashed inner line is a stitch, the one signature detail. */
nav .navigation .logo {
    background: var(--lm-white);
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    line-height: 0;
}
nav .navigation .logo img,
nav.navbar-sticked .navigation .logo img {
    display: block;
    width: auto;
    max-width: none;
    /* undo the 2026-08 white-logo filter: the bar is white now */
    -webkit-filter: none;
    filter: none;
}
nav .navigation .logo:after {
    content: "";
    position: absolute;
    left: 6px; right: 6px; bottom: 6px; top: 0;
    border: 1px dashed rgba(201, 162, 39, 0.55);
    border-top: 0;
    border-radius: 0;
    pointer-events: none;
}

nav .navigation-main .floating-menu > ul > li > a {
    font-family: var(--lm-font);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* ---------- Header: desktop ---------- */

@media (min-width: 992px) {
    /* Soft neutral scrim so white links read on any slide */
    nav.navbar-fixed {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    }

    nav .navigation-top > ul {
        border-bottom: 0;
        height: 36px;
    }
    nav .navigation-top > ul > li > a {
        color: rgba(255, 255, 255, 0.8);
        padding: 8px 12px;
        font-size: 14px;
    }
    nav .navigation-top > ul > li > a:hover { color: var(--lm-gold-light); }

    nav .navigation .logo {
        position: absolute;
        top: 0;
        left: 15px;
        padding: 16px 20px 20px;
        -webkit-transition: padding 0.3s var(--lm-ease), box-shadow 0.3s var(--lm-ease);
        transition: padding 0.3s var(--lm-ease), box-shadow 0.3s var(--lm-ease);
    }
    nav .navigation .logo img {
        height: 84px;
        -webkit-transition: height 0.3s var(--lm-ease);
        transition: height 0.3s var(--lm-ease);
    }
    /* the tag hangs from the very top edge, above the social strip */
    nav .navigation-main { position: static; }
    nav.navbar-fixed > .container { position: relative; }

    nav .navigation-main .floating-menu > ul > li > a {
        font-size: 16px;
        color: var(--lm-white);
        padding: 20px 16px 22px;
    }
    nav .navigation-main .floating-menu > ul > li:last-child > a { padding-right: 0; }
    nav .navigation-main .floating-menu > ul > li > a:after,
    nav .navigation-main .floating-menu > ul > li > a.current:after {
        height: 2px;
        left: 16px;
        right: 16px;
        bottom: 12px;
        width: auto;
        background-color: var(--lm-gold);
    }
    nav .navigation-main .floating-menu > ul > li:last-child > a:after { right: 0; }
    nav .navigation-main .floating-menu > ul > li > a:hover { color: var(--lm-gold-light); }

    /* Sticky state: white bar, dark links, smaller tag */
    nav.navbar-sticked {
        background: var(--lm-white);
        box-shadow: 0 1px 0 var(--lm-line), 0 8px 24px rgba(31, 27, 22, 0.06);
    }
    nav.navbar-sticked .navigation .logo {
        top: 0;
        padding: 8px 14px 12px;
        box-shadow: none;
    }
    nav.navbar-sticked .navigation .logo img { height: 52px; }
    nav.navbar-sticked .navigation-main .floating-menu > ul > li > a {
        color: var(--lm-ink);
        padding-top: 24px;
        padding-bottom: 26px;
    }
    nav.navbar-sticked .navigation-main .floating-menu > ul > li > a:hover { color: var(--lm-gold-ink); }
    nav.navbar-sticked .navigation-main .floating-menu > ul > li > a:after { bottom: 16px; }
}

/* ---------- Header: tablet + mobile ---------- */

@media (max-width: 991px) {
    nav.navbar-fixed,
    nav.navbar-fixed.navbar-sticked {
        position: fixed;
        top: 0;
        background: var(--lm-white);
        box-shadow: 0 1px 0 var(--lm-line);
    }
    nav .navigation.navigation-top { display: none; }

    nav .navigation-main {
        height: 64px;
    }
    nav .navigation .logo {
        width: auto;
        height: 64px;
        padding: 8px 16px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        display: inline-block;
    }
    nav .navigation .logo:after { display: none; }
    nav .navigation .logo img,
    nav.navbar-sticked .navigation .logo img { height: 48px; }
    nav.navbar-sticked .navigation .logo { padding: 8px 16px; }

    /* 48px touch target, no divider */
    nav .navigation-main .open-menu {
        width: 64px;
        height: 64px;
        border-left: 0;
        color: var(--lm-ink);
        line-height: 64px;
    }
    nav .navigation-main .open-menu .icon {
        font-size: 22px;
        line-height: 64px;
    }

    /* Full-screen white menu */
    nav .navigation-main .floating-menu {
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 100vh;
        height: 100dvh;
        padding: 0 24px 32px;
        background: var(--lm-white);
        overflow-y: auto;
        -webkit-transition: transform 0.3s var(--lm-ease);
        transition: transform 0.3s var(--lm-ease);
    }
    nav .navigation-main .close-menu-wrapper {
        height: 64px;
        border-bottom: 1px solid var(--lm-line);
        margin: 0 -24px 8px;
        padding: 0 8px;
    }
    nav .navigation-main .close-menu {
        width: 56px;
        height: 64px;
        color: var(--lm-ink);
        text-align: center;
    }
    nav .navigation-main .close-menu .icon {
        font-size: 24px;
        line-height: 64px;
        padding: 0;
    }
    nav .navigation-main .floating-menu > ul > li > a {
        color: var(--lm-ink);
        font-size: 20px;
        padding: 16px 0;
        border-bottom: 1px solid var(--lm-line);
    }
    nav .navigation-main .floating-menu > ul > li > a:hover,
    nav .navigation-main .floating-menu > ul > li > a:focus { color: var(--lm-gold-ink); }
    nav .navigation-main .floating-menu .navbar-dropdown {
        background: var(--lm-ivory);
        border-radius: 0;
    }

    /* content starts below the fixed bar */
    .wrapper { padding-top: 64px; }
}

/* ---------- Hero slider ---------- */

.header-content .item {
    height: 100vh;
    min-height: 560px;
    max-height: 820px;
}
/* neutral scrim on the text side instead of text-shadow */
.header-content .item:before {
    content: "";
    position: absolute;
    inset: 0;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(14, 12, 10, 0.72) 0%, rgba(14, 12, 10, 0.45) 38%, rgba(14, 12, 10, 0) 70%);
    pointer-events: none;
}
.header-content .item .box {
    padding-top: 72px; /* clear the transparent header */
}
.header-content .item .box .container > * {
    max-width: 640px;
}
.header-content .item .box .container > .title {
    max-width: 760px;
}
.header-content .item .title {
    font-family: var(--lm-font);
    font-weight: 600;
    font-size: 54px;
    line-height: 1.2;
    letter-spacing: 0;
    margin: 0 0 20px;
    text-shadow: none;
}
/* stitch rule above the headline, same detail as the logo tag */
.header-content .item .title:before {
    content: "";
    display: block;
    width: 56px;
    height: 0;
    border-top: 2px dashed var(--lm-gold);
    margin-bottom: 24px;
}
.header-content .item .box .container > div {
    font-family: var(--lm-font);
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}
.header-content .item .btn,
.header-content .item .btn.btn-main {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 14px 28px;
    border: 0;
    border-radius: 0;
    background-color: var(--lm-gold);
    color: var(--lm-ink);
    font-family: var(--lm-font);
    font-size: 16px;
    font-weight: 600;
    text-shadow: none;
    white-space: normal;
    -webkit-transition: background-color 0.2s var(--lm-ease), transform 0.1s var(--lm-ease);
    transition: background-color 0.2s var(--lm-ease), transform 0.1s var(--lm-ease);
}
.header-content .item .btn:hover,
.header-content .item .btn:focus { background-color: var(--lm-gold-light); color: var(--lm-ink); }
.header-content .item .btn:active { transform: scale(0.98); }
.header-content .item .btn:focus-visible { outline: 2px solid var(--lm-white); outline-offset: 3px; }

/* pagination: short gold bars bottom-left, aligned with the text */
.header-content .owl-theme .owl-controls {
    position: absolute;
    left: 0; right: 0; bottom: 32px;
    margin: 0;
}
.header-content .owl-theme .owl-controls .owl-pagination {
    text-align: left;
    margin: 0;
    padding: 0 0 0 15px;
}
/* line the bars up with the Bootstrap container the text sits in */
@media (min-width: 768px)  { .header-content .owl-theme .owl-controls .owl-pagination { padding-left: calc((100% - 750px) / 2 + 15px); } }
@media (min-width: 992px)  { .header-content .owl-theme .owl-controls .owl-pagination { padding-left: calc((100% - 970px) / 2 + 15px); } }
@media (min-width: 1200px) { .header-content .owl-theme .owl-controls .owl-pagination { padding-left: calc((100% - 1170px) / 2 + 15px); } }
.header-content .owl-theme .owl-controls .owl-page span,
.header-content .owl-theme .owl-controls .owl-page.active span {
    width: 28px;
    height: 3px;
    margin: 0 8px 0 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}
.header-content .owl-theme .owl-controls .owl-page.active span { background: var(--lm-gold); }
.header-content .owl-theme .owl-controls .owl-buttons div span { color: rgba(255, 255, 255, 0.8); }

@media (min-width: 768px) and (max-width: 1199px) {
    .header-content .item .title { font-size: 44px; }
}

@media (max-width: 991px) {
    .header-content .item .box { padding-top: 0; }
}

@media (max-width: 767px) {
    .header-content .item {
        height: 78vh;
        height: 78svh;
        min-height: 480px;
        max-height: 680px;
    }
    /* scrim from the bottom where the text sits on phones */
    .header-content .item:before {
        background: linear-gradient(0deg, rgba(14, 12, 10, 0.85) 0%, rgba(14, 12, 10, 0.55) 45%, rgba(14, 12, 10, 0.1) 75%);
    }
    .header-content .item .box {
        top: auto;
        bottom: 56px;
        -webkit-transform: none;
        transform: none;
    }
    .header-content .item .box .container { padding: 0 20px; }
    .header-content .item .title {
        font-size: 30px;
        margin-bottom: 12px;
    }
    .header-content .item .title:before { margin-bottom: 16px; width: 40px; }
    .header-content .item .box .container > div { font-size: 15px; line-height: 1.55; }
    .header-content .item .btn,
    .header-content .item .btn.btn-main {
        margin-top: 20px;
        min-height: 48px;
        padding: 12px 20px;
        font-size: 15px;
    }
    .header-content .owl-theme .owl-controls { bottom: 24px; }
    .header-content .owl-theme .owl-controls .owl-pagination { padding-left: 20px; }
    .header-content .owl-theme .owl-controls .owl-buttons { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    nav.navbar-fixed, nav .navigation .logo, nav .navigation .logo img { transition: none; }
}

/* ==========================================================================
   Homepage product blocks (Island Cabinet + leather walls) — 2026-11
   Scoped to the two homepage module ids so category pages are untouched.
   ========================================================================== */

section#ela-features-products-0 {
    background: #f6f3ed;            /* warm hide-cream instead of flat grey */
    padding: 96px 0;
}
section#ela-features-products-1 {
    background: var(--lm-white);
    padding: 96px 0;
}

/* section heading: same stitch rule as the hero */
section#ela-features-products-0 > .container > header,
section#ela-features-products-1 > .container > header {
    margin-bottom: 40px;
    padding: 0;
}
section#ela-features-products-0 > .container > header .col-md-8,
section#ela-features-products-1 > .container > header .title {
    font-family: var(--lm-font);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--lm-ink);
    margin: 0;
}
section#ela-features-products-0 > .container > header .col-md-8:before,
section#ela-features-products-1 > .container > header .col-md-8:before {
    content: "";
    display: block;
    width: 56px;
    margin: 0 auto 16px;
    border-top: 2px dashed var(--lm-gold);
}
section#ela-features-products-1 > .container > header .text p {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lm-ink-2);
}

/* grid: bootstrap floats -> CSS grid */
section#ela-features-products-0 > .container > .row,
section#ela-features-products-1 > .container > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}
section#ela-features-products-0 > .container > .row:before,
section#ela-features-products-0 > .container > .row:after,
section#ela-features-products-1 > .container > .row:before,
section#ela-features-products-1 > .container > .row:after { content: none; display: none; }
section#ela-features-products-0 > .container > .row > [class*="col-"],
section#ela-features-products-1 > .container > .row > [class*="col-"] {
    float: none;
    width: auto;
    max-width: none;
    -webkit-flex: none;
    flex: none;
    padding: 0;
    min-width: 0;
}
/* lead product: full width on phones, a 2x2 feature tile on desktop */
section#ela-features-products-0 > .container > .row > [class*="col-"]:first-child { grid-column: span 2; }

@media (min-width: 992px) {
    section#ela-features-products-0 > .container > .row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px;
    }
    section#ela-features-products-0 > .container > .row > [class*="col-"]:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
    section#ela-features-products-1 > .container > .row { gap: 24px; }
}

/* card */
section#ela-features-products-0 article,
section#ela-features-products-1 article {
    height: 100%;
    margin: 0;
    border-radius: 0;
    background: var(--lm-white);
    box-shadow: 0 0 0 1px var(--lm-line);
    overflow: hidden;
    -webkit-transition: box-shadow 0.2s var(--lm-ease);
    transition: box-shadow 0.2s var(--lm-ease);
}
section#ela-features-products-1 article { background: #f6f3ed; }
section#ela-features-products-0 article:hover,
section#ela-features-products-1 article:hover {
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.55), 0 8px 24px rgba(31, 27, 22, 0.08);
}
section#ela-features-products-0 article .info,
section#ela-features-products-1 article .info,
section#ela-features-products-0 article .btn-add,
section#ela-features-products-1 article .btn-add { display: none !important; }

section#ela-features-products-0 .figure-grid,
section#ela-features-products-1 .figure-grid {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    height: 100%;
}
section#ela-features-products-0 article .image,
section#ela-features-products-1 article .image {
    aspect-ratio: 4 / 3;
    background: var(--lm-white);
}
section#ela-features-products-0 > .container > .row > :first-child article .image {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 240px;
}
section#ela-features-products-0 article .image a,
section#ela-features-products-1 article .image a { height: 100%; }
section#ela-features-products-0 article .image img,
section#ela-features-products-1 article .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
section#ela-features-products-1 article .image img { object-fit: cover; }

/* name under the photo, two lines max, whole card clickable */
section#ela-features-products-0 article .figure-grid .text,
section#ela-features-products-1 article .figure-grid .text {
    position: static;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--lm-line);
}
section#ela-features-products-0 article .text .title,
section#ela-features-products-1 article .text .title {
    margin: 0;
    font-family: var(--lm-font) !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}
section#ela-features-products-0 article .text .title a,
section#ela-features-products-1 article .text .title a {
    color: var(--lm-ink);
    -webkit-transition: color 0.2s var(--lm-ease);
    transition: color 0.2s var(--lm-ease);
}
section#ela-features-products-0 article .text .title a:after,
section#ela-features-products-1 article .text .title a:after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2;
}
section#ela-features-products-0 article:hover .text .title a,
section#ela-features-products-1 article:hover .text .title a { color: var(--lm-gold-ink); }
section#ela-features-products-0 article .text .title a:focus-visible,
section#ela-features-products-1 article .text .title a:focus-visible { outline: none; }
section#ela-features-products-0 article:focus-within,
section#ela-features-products-1 article:focus-within { box-shadow: 0 0 0 2px var(--lm-gold); }

@media (min-width: 992px) {
    section#ela-features-products-0 > .container > .row > :first-child article .text { padding: 16px 20px 20px; }
    section#ela-features-products-0 > .container > .row > :first-child article .text .title { font-size: 20px; min-height: 0; }
    section#ela-features-products-1 article .figure-grid .text { padding: 16px 20px 20px; }
    section#ela-features-products-1 article .text .title { font-size: 17px; min-height: 0; }
}

/* "New" as a quiet tag, not a red pill */
section#ela-features-products-0 article .label,
section#ela-features-products-1 article .label {
    position: absolute;
    top: 12px;
    bottom: auto;
    left: 12px;
    z-index: 3;
    padding: 4px 8px;
    border-radius: 0;
    background: var(--lm-white);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.5);
    color: var(--lm-gold-ink);
    font-family: var(--lm-font);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: none;
}

/* "see more" button matches the hero button */
section#ela-features-products-0 .wrapper-more,
section#ela-features-products-1 .wrapper-more { margin-top: 40px; }
section#ela-features-products-0 .wrapper-more .btn,
section#ela-features-products-1 .wrapper-more .btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 28px;
    border: 0;
    border-radius: 0;
    background: var(--lm-gold);
    color: var(--lm-ink);
    font-family: var(--lm-font);
    font-size: 16px;
    font-weight: 600;
    text-shadow: none;
    -webkit-transition: background-color 0.2s var(--lm-ease);
    transition: background-color 0.2s var(--lm-ease);
}
section#ela-features-products-0 .wrapper-more .btn:hover,
section#ela-features-products-1 .wrapper-more .btn:hover { background: var(--lm-gold-light); color: var(--lm-ink); }

@media (max-width: 767px) {
    section#ela-features-products-0,
    section#ela-features-products-1 { padding: 56px 0; }
    section#ela-features-products-0 > .container,
    section#ela-features-products-1 > .container { padding: 0 16px; }
    section#ela-features-products-0 > .container > header,
    section#ela-features-products-1 > .container > header { margin-bottom: 24px; }
    section#ela-features-products-0 > .container > header .col-md-8,
    section#ela-features-products-1 > .container > header .title { font-size: 24px; }
    section#ela-features-products-1 > .container > header .text p { font-size: 15px; }
    section#ela-features-products-0 article .figure-grid .text,
    section#ela-features-products-1 article .figure-grid .text { padding: 8px 12px 12px; }
    section#ela-features-products-0 article .text .title,
    section#ela-features-products-1 article .text .title { font-size: 14px; }
    section#ela-features-products-0 > .container > .row > :first-child article .text .title { font-size: 16px; min-height: 0; }
    section#ela-features-products-0 > .container > .row > :first-child article .image { aspect-ratio: 4 / 3; min-height: 0; }
    section#ela-features-products-0 .wrapper-more .btn,
    section#ela-features-products-1 .wrapper-more .btn { width: 100%; justify-content: center; }
}

/* Overrides for the inline <style> an HTML module injects above these
   sections (12px titles, 3:4 frames, 4 columns, all !important). */
section#ela-features-products-0 article .figure-grid .image > a,
section#ela-features-products-1 article .figure-grid .image > a {
    aspect-ratio: auto !important;
    height: 100%;
}
section#ela-features-products-0 article .text h2.title,
section#ela-features-products-0 article .text h2.title a,
section#ela-features-products-1 article .text h2.title,
section#ela-features-products-1 article .text h2.title a {
    font-size: 15px !important;
    line-height: 1.5 !important;
}
section#ela-features-products-0 > .container > .row > .col-md-3 { width: auto !important; }
@media (min-width: 992px) {
    section#ela-features-products-0 > .container > .row > :first-child article .text h2.title,
    section#ela-features-products-0 > .container > .row > :first-child article .text h2.title a { font-size: 20px !important; }
    section#ela-features-products-1 article .text h2.title,
    section#ela-features-products-1 article .text h2.title a { font-size: 17px !important; }
}
@media (max-width: 767px) {
    section#ela-features-products-0 article .text h2.title,
    section#ela-features-products-0 article .text h2.title a,
    section#ela-features-products-1 article .text h2.title,
    section#ela-features-products-1 article .text h2.title a { font-size: 14px !important; }
    section#ela-features-products-0 > .container > .row > :first-child article .text h2.title,
    section#ela-features-products-0 > .container > .row > :first-child article .text h2.title a { font-size: 16px !important; }
}

/* heading spans the row and centres (margin:0 above cancelled the offset) */
section#ela-features-products-0 > .container > header .col-md-8,
section#ela-features-products-1 > .container > header .col-md-8 {
    float: none;
    width: auto;
    max-width: 720px;
    margin: 0 auto;
}
/* leather-wall photos are padded with white bars to 4:3; a square
   cover-crop trims the bars and keeps the whole photo */
section#ela-features-products-1 article .figure-grid .image { aspect-ratio: 1 / 1; }
section#ela-features-products-1 article .figure-grid .image img { object-fit: cover !important; }
/* theme adds 40px/30px padding to product images on phones */
section#ela-features-products-0 article .figure-grid .image img,
section#ela-features-products-1 article .figure-grid .image img { padding: 0 !important; }
