/* ==========================================================================
   MLX-79 — catalog family landing pages (/anvelope, /uleiuri, /baterii-auto,
   /chimie-auto + RU). View: resources/views/site/landing/show.blade.php.

   Same visual language as the homepage (home.css, MLX-203/207): asphalt ink,
   concrete fields, the red of the logo, Fira Sans Extra Condensed (self-hosted,
   fonts.css) for display type. Tokens are redeclared under .lp so this page does
   not load the 1 300 lines of home.css.

   The one loud element is the decoded code plate (.lp-code): the marking a buyer
   actually reads on the product — 225/45 R17 94W, 5W-30, 74 Ah — taken apart.
   Everything else stays quiet.

   style.css forces uppercase and fixed sizes on h1–h4 with !important, hence the
   !important on the .lp headings.
   ========================================================================== */

.lp {
    --lp-asphalt: #2a2e33;
    --lp-concrete: #eceef0;
    --lp-concrete-deep: #e3e6e9;
    --lp-line: #d5d9dd;
    --lp-steel: #5f676e;
    --lp-red: #fc3232;
    --lp-red-ink: #d4232a;
    --lp-display: "Fira Sans Extra Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;

    color: var(--lp-asphalt);
    padding-bottom: 0;
}

.lp a:focus-visible,
.lp summary:focus-visible {
    outline: 2px solid var(--lp-red-ink);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.lp .lp-h1,
.lp .lp-h2,
.lp .lp-h3 {
    font-family: var(--lp-display);
    text-transform: none;
    letter-spacing: 0;
    color: var(--lp-asphalt);
    margin: 0;
}

.lp .lp-h1 {
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.05;
}

.lp .lp-h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.1;
    margin-bottom: 20px;
}

.lp .lp-h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.lp p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 68ch;
}

/* --------------------------------------------------------------------------
   Hero: concrete field, text left, code plate right; the search form below.
   -------------------------------------------------------------------------- */

.lp-hero {
    background: var(--lp-concrete);
    padding-bottom: 28px;
}

.lp-hero .breadcrumb {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
}

.lp-hero__grid {
    display: grid;
    gap: 24px;
    padding-top: 8px;
}

.lp-lead {
    margin: 14px 0 0;
    font-size: 17px !important;
}

.lp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 22px;
}

.lp-hero__stock {
    color: var(--lp-steel);
    font-size: 15px;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.lp .lp-btn--primary {
    background: var(--lp-red-ink);
    color: #fff;
}

.lp .lp-btn--primary:hover {
    background: #b81d23;
    color: #fff;
    text-decoration: none;
}

.lp .lp-btn--light {
    background: #fff;
    color: var(--lp-asphalt);
}

.lp .lp-btn--light:hover {
    background: var(--lp-concrete);
    color: var(--lp-asphalt);
    text-decoration: none;
}

.lp .lp-btn--ghost {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.lp .lp-btn--ghost:hover {
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* The code plate — a product marking taken apart. Value on top in display type,
   a red underline marks each part, what it means underneath. */

.lp-code {
    margin: 0;
    align-self: center;
}

.lp-code__caption {
    font-size: 14px;
    color: var(--lp-steel);
    margin-bottom: 10px;
}

.lp-code__plate {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 10px;
}

.lp-code__seg {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.lp-code__value {
    font-family: var(--lp-display);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    padding-bottom: 6px;
    border-bottom: 3px solid var(--lp-red);
    white-space: nowrap;
}

.lp-code__label {
    margin: 0;
    max-width: 16ch;
    font-size: 13px;
    line-height: 1.3;
    color: var(--lp-steel);
}

.lp-search {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.lp-section {
    padding-top: 44px;
}

.lp-section:last-of-type {
    padding-bottom: 8px;
}

/* Subcategories: product shot on a concrete tile, name and stock under it. */

.lp-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 22px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp .lp-cat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--lp-asphalt);
    text-decoration: none;
}

.lp-cat__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 14%;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--lp-concrete);
    margin-bottom: 4px;
    transition: border-color .15s ease, background-color .15s ease;
}

.lp-cat__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Product shots come on white: multiply melts the white into the tile. */
    mix-blend-mode: multiply;
}

.lp-cat__media.is-placeholder img {
    mix-blend-mode: normal;
    opacity: .6;
}

.lp .lp-cat:hover .lp-cat__media {
    border-color: var(--lp-line);
    background: var(--lp-concrete-deep);
}

.lp-cat__name {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}

.lp .lp-cat:hover .lp-cat__name {
    color: var(--lp-red-ink);
}

.lp-cat__count {
    font-size: 13px;
    color: var(--lp-steel);
}

/* Guide: the criteria are parallel, not a sequence — no numbers, a rule above each. */

.lp-guide {
    display: grid;
    gap: 22px 40px;
}

.lp-guide__item {
    padding-top: 14px;
    border-top: 2px solid var(--lp-asphalt);
}

.lp-guide__item p {
    margin: 8px 0 0;
}

.lp-table-wrap {
    margin-top: 32px;
    max-width: 560px;
}

.lp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.lp-table caption {
    caption-side: top;
    padding: 0 0 10px;
    color: var(--lp-asphalt);
    font-family: var(--lp-display);
    font-size: 20px;
    font-weight: 700;
}

.lp-table th,
.lp-table td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--lp-line);
    text-align: left;
    vertical-align: top;
}

.lp-table thead th {
    color: var(--lp-steel);
    font-size: 14px;
    font-weight: 500;
}

.lp-table tbody th {
    font-weight: 400;
}

.lp-table td {
    font-weight: 500;
    white-space: nowrap;
}

.lp-note {
    margin: 10px 0 0;
    font-size: 14px !important;
    color: var(--lp-steel);
}

/* Brands */

.lp-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp .lp-brand {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    color: var(--lp-asphalt);
    font-size: 15px;
    text-decoration: none;
}

.lp .lp-brand:hover {
    border-color: var(--lp-asphalt);
    color: var(--lp-asphalt);
    text-decoration: none;
}

/* FAQ: native <details>; the plus turns into a cross when an answer opens. */

.lp-faq {
    max-width: 820px;
    border-top: 1px solid var(--lp-line);
}

.lp-faq__item {
    border-bottom: 1px solid var(--lp-line);
}

.lp-faq__item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
}

.lp-faq__item summary::-webkit-details-marker {
    display: none;
}

.lp-faq__item summary::after {
    content: "+";
    flex: 0 0 auto;
    font-family: var(--lp-display);
    font-size: 28px;
    font-weight: 700;
    line-height: .8;
    color: var(--lp-red-ink);
    transition: transform .2s ease;
}

.lp-faq__item[open] summary::after {
    transform: rotate(45deg);
}

.lp-faq__item summary .lp-h3 {
    font-size: 19px !important;
}

.lp-faq__item p {
    margin: 0 0 18px;
}

/* Stores: the asphalt band that closes the page. */

.lp-stores {
    margin-top: 56px;
    padding: 36px 0;
    background: var(--lp-asphalt);
    color: #fff;
}

.lp-stores .lp-h2 {
    color: #fff;
    margin-bottom: 10px;
}

.lp-stores p {
    margin: 0;
    color: #dfe2e5;
}

.lp-stores__inner {
    display: grid;
    gap: 22px;
}

.lp-stores__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Embedded in a product listing (mode `listing`, /baterii-auto-31): intro and
   code plate under the listing H1, guide/FAQ/stores after the product grid.
   -------------------------------------------------------------------------- */

.lp-intro {
    display: grid;
    gap: 20px;
    margin: -8px 0 32px;
}

.lp-intro .lp-lead {
    margin: 0;
}

.lp--embedded .lp-section:first-child {
    padding-top: 32px;
}

/* --------------------------------------------------------------------------
   Wider screens
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
    .lp .lp-h1 {
        font-size: 46px !important;
    }

    .lp .lp-h2 {
        font-size: 34px !important;
    }

    .lp-cats {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }

    .lp-guide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-code__value {
        font-size: 48px;
    }
}

@media (min-width: 992px) {
    .lp-hero__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        align-items: center;
        gap: 48px;
    }

    .lp-stores__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .lp-intro {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        align-items: center;
        gap: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp *,
    .lp *::after {
        transition: none !important;
    }
}
