/* Storefront components: LM's dark green, lime and clear purchasing hierarchy. */
.lm-shop-entry, .lm-tire-vehicle-search, .ti-modern, .lm-dimension-page, .lm-product-page, .lm-search-page {
    --shop-green: #17603e;
    --shop-ink: #15291f;
    --shop-muted: #5b6b62;
    --shop-border: #dce5df;
    --shop-lime: #d4ea77;
}
.lm-shop-entry { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 32px; align-items: start; margin: 16px 0 32px; }
.lm-shop-intro { padding: 24px 0; }
.lm-shop-eyebrow { display: block; margin-bottom: 18px; color: var(--shop-green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lm-shop-intro h1 { max-width: 560px; margin: 0; color: var(--shop-ink); font-size: clamp(32px,4.2vw,58px); font-weight: 850; line-height: 1.08; letter-spacing: -.045em; }
.lm-shop-intro > p { max-width: 440px; margin: 20px 0; color: var(--shop-muted); font-size: 16px; line-height: 1.7; }
.lm-shop-intro-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.lm-shop-intro-links a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--shop-green); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.lm-shop-intro img { display: block; width: 100%; max-height: 240px; margin-top: 20px; border-radius: 16px; object-fit: cover; }
.lm-shop-search { overflow: hidden; border: 1px solid var(--shop-border); border-radius: 20px; background: #fff; box-shadow: 0 12px 35px #173d2510; }
.lm-shop-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--shop-border); background: #f4f7f4; }
.lm-shop-tabs button { min-height: 60px; padding: 14px 10px; border: 0; border-bottom: 3px solid transparent; color: var(--shop-muted); font-size: 14px; font-weight: 800; }
.lm-shop-tabs button[aria-selected="true"] { border-bottom-color: var(--shop-green); background: #fff; color: var(--shop-ink); }
.lm-shop-panel[hidden], [data-shop-switcher] [data-shop-panel][hidden] { display: none !important; }
.lm-shop-panel h2 { font-size: 22px; line-height: 1.3; }
.lm-shop-panel > div { padding: 24px; }
.lm-shop-panel .text-center { text-align: left; }
.lm-shop-panel .mt-6.rounded-3xl { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.lm-shop-panel .bg-black { background: var(--shop-green); }
.lm-shop-panel #home-plate-input { font-size: 21px; letter-spacing: .12em; }
.lm-shop-panel #categoryButtons { gap: 6px; }
.lm-shop-panel #categoryButtons button { padding: 10px 12px; font-size: 12px; border-radius: 10px; }
.lm-shop-panel #categoryButtons button.active { border-color: var(--shop-green); background: var(--shop-green); }
.lm-shop-panel #directSizeSearch { min-width: 0; }
.lm-shop-shortcuts { padding: 20px 24px 24px; border-top: 1px solid #e6ede7; background: #fafcf9; }
.lm-shop-shortcuts > p { margin: 0 0 14px; color: #5b6b62; font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.lm-shop-shortcuts > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.lm-shop-shortcuts a { display: flex; flex-direction: column; gap: 7px; padding: 14px 8px; border: 1px solid #dce5df; border-radius: 10px; background: #fff; color: #17603e; text-align: center; }
.lm-shop-shortcuts a:hover { border-color: #94b99d; background: #edf5e8; }
.lm-shop-shortcuts i { font-size: 19px; }
.lm-shop-shortcuts strong { font-size: 12px; }
.lm-shop-shortcuts span { color: #65766a; font-size: 10px; }
.lm-shop-hint { margin: 8px 0 0; color: #5b6b62; font-size: 12px; font-weight: 500; line-height: 1.6; }
.lm-shop-entry :is(input,select,button):focus-visible,
.lm-tire-vehicle-search :is(input,select,button,summary):focus-visible,
.ti-modern :is(a,button,select,input):focus-visible { outline: 3px solid #92bd37; outline-offset: 3px; }

.lm-tire-vehicle-search { margin-bottom: 20px; padding: 20px 24px; border: 1px solid var(--shop-border); border-radius: 16px; background: #fff; }
.lm-tire-vehicle-main { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.lm-tire-vehicle-copy { min-width: 0; }
.lm-tire-vehicle-copy h2 { margin: 0; color: var(--shop-ink); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.lm-tire-vehicle-copy p { margin: 5px 0 0; color: var(--shop-muted); font-size: 13px; line-height: 1.5; }
.lm-tire-vehicle-form { display: flex; flex: 0 1 480px; gap: 8px; }
.lm-tire-vehicle-form input { min-width: 0; flex: 1; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #afbeb3; border-radius: 10px; color: var(--shop-ink); font-size: 17px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.lm-tire-vehicle-form button, .lm-tire-dimension-form button { min-height: 48px; padding: 10px 20px; border: 0; border-radius: 10px; background: var(--shop-green); color: white; font-size: 14px; font-weight: 800; }
.lm-tire-dimension-search { margin-top: 14px; border-top: 1px solid #edf1ee; padding-top: 12px; }
.lm-tire-dimension-search summary { width: fit-content; min-height: 30px; color: var(--shop-green); font-size: 13px; font-weight: 750; cursor: pointer; }
.lm-tire-dimension-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) minmax(150px,1.4fr) auto; align-items: end; gap: 12px; margin-top: 14px; }
.lm-tire-dimension-form label { display: grid; gap: 6px; color: var(--shop-ink); font-size: 12px; font-weight: 750; }
.lm-tire-dimension-form select { width: 100%; min-height: 46px; padding: 8px 10px; border: 1px solid #cbd8cf; border-radius: 10px; background: #fff; font-size: 14px; }

.ti-modern { background: #f4f6f4; padding: 16px 0 32px; }
.ti-modern .ti-surface { border: 1px solid var(--shop-border); background: #fff; box-shadow: none; border-radius: 16px; }
.ti-modern .ti-pill { border: 1px solid var(--shop-border); background: #f7f9f6; color: var(--shop-ink); }
.ti-modern .ti-apply-bar { position: sticky; bottom: -1px; z-index: 10; }
.ti-modern .lm-catalog-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); align-items: start; gap: 24px; }
.ti-modern #results-section { min-width: 0; margin-top: 0; scroll-margin-top: calc(var(--shop-header-height,160px) + 16px); }
.ti-modern #filter-drawer { top: calc(var(--shop-header-height,160px) + 16px); max-height: calc(100dvh - var(--shop-header-height,160px) - 32px); }
.ti-modern #filter-drawer .drawer-scroll { min-height: 0; }
.ti-modern #close-filter, .ti-modern #toggle-filter { display: none; }
.ti-modern .ti-primary { background: var(--shop-green); color: #fff; }
.ti-modern .lm-season-choices input:checked + label { border-color: var(--shop-green); background: #eaf3e8; color: #17482d; box-shadow: inset 0 0 0 1px var(--shop-green); }
.ti-modern .lm-season-choices input:focus-visible + label { outline: 3px solid #92bd37; outline-offset: 2px; }
.lm-catalog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 18px; }
.ti-modern .tire-result-card { display: flex; flex-direction: column; height: 100%; }
.ti-modern #tire-render article { border-radius: 16px; border-color: var(--shop-border); box-shadow: none; }
.ti-modern #tire-render article:hover { transform: none; border-color: #99b59e; box-shadow: 0 8px 25px #173d250d; }
.ti-modern .tire-result-image { min-height: 170px; height: 180px; padding: 18px; background: #fff; }
.ti-modern .tire-result-image img { max-height: 145px; width: 100%; height: 100%; object-fit: contain; }
.lm-result-content { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; }
.lm-result-meta { display: flex; flex-direction: column; gap: 12px; }
.lm-result-brand { color: #5b6b62; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lm-result-content h3 { margin: 4px 0 0; color: var(--shop-ink); font-size: 19px; font-weight: 850; line-height: 1.3; }
.lm-result-dimension { color: #344d3d; font-size: 14px; font-weight: 700; }
.lm-result-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lm-result-tags span { padding: 4px 8px; border-radius: 6px; background: #f1f5f1; color: #425749; font-size: 11px; font-weight: 650; }
.lm-result-stock { font-size: 12px; font-weight: 700; }
.lm-result-stock[data-stock="yes"] { color: #17603e; }
.lm-result-stock[data-stock="external"] { color: #8a5a13; }
.lm-result-stock[data-stock="no"] { color: #6b7280; }
.lm-result-purchase { margin-top: auto; padding-top: 6px; }
.lm-result-unit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.lm-result-unit strong { color: var(--shop-ink); font-size: 26px; font-weight: 850; letter-spacing: -.03em; }
.lm-result-unit span, .lm-result-vat { color: #66766c; font-size: 12px; }
.lm-result-order { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e7ede8; }
.lm-result-order label { display: flex; align-items: center; gap: 8px; color: #425749; font-size: 12px; font-weight: 650; }
.lm-result-order select { min-height: 40px; width: 65px; border: 1px solid #b6c8bb; border-radius: 8px; padding: 6px 8px; background: #fff; font-size: 14px; }
.lm-result-total { display: grid; color: #596c60; font-size: 11px; }
.lm-result-total strong { color: var(--shop-ink); font-size: 17px; font-weight: 800; }
.ti-modern .tire-result-buy { width: 100%; min-height: 46px; margin-top: 12px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--shop-green); color: #fff; font-size: 14px; font-weight: 800; }
.ti-modern .tire-result-buy:hover { background: #104e31; }
.ti-modern .tire-result-details { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; min-height: 40px; color: var(--shop-green); font-size: 13px; font-weight: 750; }
.lm-filter-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 12px; border: 1px solid #c5d9c9; border-radius: 8px; background: #edf5ea; color: #205735; font-size: 12px; font-weight: 700; }
.lm-filter-chip span { font-size: 17px; }
.lm-catalog-message { grid-column: 1 / -1; padding: 48px 24px; border: 1px solid #dce5df; border-radius: 16px; background: #fff; text-align: center; }
.lm-catalog-message p { margin: 0 auto 20px; max-width: 440px; color: #53675a; line-height: 1.65; }
.lm-catalog-message button { min-height: 44px; border-radius: 10px; background: #17603e; padding: 10px 22px; color: #fff; font-weight: 750; }
.lm-catalog-skeleton { min-height: 480px; padding: 24px; border: 1px solid #e0e8e1; border-radius: 16px; background: white; }
.lm-catalog-skeleton div { height: 170px; margin-bottom: 30px; background: #eef2ee; border-radius: 10px; }
.lm-catalog-skeleton span { display: block; width: 75%; height: 18px; margin: 18px 0; border-radius: 6px; background: #eef2ee; }
.ti-modern .pagination[hidden] { display: none; }
.ti-modern .pagination { margin-block: 18px; }

.lm-dimension-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.lm-dimension-card { display: flex; flex-direction: column; border-radius: 16px; }
.lm-dimension-card > a { min-height: 0; }
.lm-dimension-card .btn-add-to-cart { border-radius: 10px; background: var(--shop-green); box-shadow: none; transform: none; }
.lm-dimension-total { display: grid; gap: 4px; font-size: 11px; color: #5b6b62; }
.lm-dimension-total strong { font-size: 18px; font-weight: 800; color: var(--shop-ink); }
.lm-dimension-page > section { border-radius: 16px; box-shadow: none; }
.lm-product-page .lm-purchase-panel { border-radius: 16px; border-color: #c4d9c5; background: #f6f9f2; box-shadow: none; }
.lm-product-page #mainAddToCartBtn, .lm-product-page #mobileStickyAddToCart { background: var(--shop-green); box-shadow: none; transform: none; }
.lm-quantity-heading { margin: 20px 0 -6px; color: #344d3d; font-size: 12px; font-weight: 750; }
.lm-search-page > header { border-radius: 16px; box-shadow: none; }
.lm-search-page .tire-search-card { border-radius: 16px; box-shadow: none; }
.lm-search-page .tire-search-cta { border-radius: 10px; background: var(--shop-green); }

/* Season category pages share the catalog rather than overriding the page body. */
.ti-modern.lm-category-page { padding-top: 0; }
.lm-category-page > div { padding-top: 8px; }
.lm-category-entry { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: stretch; gap: 18px 24px; margin-bottom: 22px; }
.lm-category-entry > .lm-category-breadcrumb { grid-column: 1 / -1; margin: 0; }
.lm-category-entry > .lm-category-intro, .lm-category-entry > .lm-tire-vehicle-search { margin-bottom: 0; }
.lm-category-finder { overflow: hidden; padding: 0; }
.lm-category-finder .lm-tire-vehicle-main, .lm-category-finder .lm-tire-dimension-search { padding: 24px; }
.lm-category-finder .lm-tire-vehicle-main { flex-direction: column; align-items: stretch; gap: 16px; }
.lm-category-finder .lm-tire-vehicle-form { flex-basis: auto; }
.lm-category-finder .lm-tire-dimension-search { margin-top: 0; border-top: 0; }
.lm-category-finder .lm-tire-dimension-search summary { display: none; }
.lm-category-finder .lm-tire-dimension-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
.lm-category-finder .lm-finder-selected-type { grid-column: span 2; }
.lm-category-page > div > header { padding: 18px 20px; }
.lm-category-page > div > header > section { margin-top: 12px; }
.lm-category-page > div > .pagination { margin-block: 12px; padding: 8px 14px; }
.lm-category-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; color: #64756a; font-size: 12px; }
.lm-category-breadcrumb a { color: #365841; }
.lm-category-breadcrumb a:hover { text-decoration: underline; }
.lm-category-intro { margin-bottom: 22px; padding: 24px 28px; border: 1px solid #dce5df; border-radius: 18px; background: #fff; }
.lm-category-title-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.lm-category-eyebrow { margin: 0 0 8px; color: #17603e; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lm-category-intro h1 { margin: 0; color: #15291f; font-size: clamp(30px,4vw,44px); font-weight: 850; line-height: 1.15; letter-spacing: -.035em; }
.lm-category-description { max-width: 680px; margin: 12px 0 0; color: #5b6b62; font-size: 14px; line-height: 1.7; }
.lm-category-icon { display: grid; place-items: center; flex: 0 0 64px; height: 64px; border-radius: 18px; background: #f0f6e7; color: #17603e; font-size: 28px; }
.lm-category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lm-category-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 18px; border: 1px solid #d7e3d9; border-radius: 10px; background: #fff; color: #45624d; font-size: 13px; font-weight: 750; }
.lm-category-nav a[aria-current="page"] { border-color: #17603e; background: #17603e; color: #fff; }
.lm-category-nav a:hover { border-color: #17603e; }
.lm-category-quick-dimensions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 18px; border-top: 1px solid #e9eee8; padding-top: 16px; }
.lm-category-quick-dimensions > span { margin-right: 4px; color: #64756a; font-size: 11px; font-weight: 650; }
.lm-category-quick-dimensions a { min-height: 34px; border: 1px solid #dce5df; border-radius: 7px; background: #f8faf6; padding: 7px 10px; color: #31573b; font-size: 11px; font-weight: 750; }
.lm-category-quick-dimensions a:hover { border-color: #89af94; background: #eef5e7; }
.lm-category-selected-type { display: grid; gap: 4px; margin-bottom: 18px; border: 1px solid #d2e0cd; border-radius: 10px; background: #f1f7e9; padding: 12px; }
.lm-category-selected-type span, .lm-finder-selected-type span { color: #64756a; font-size: 11px; }
.lm-category-selected-type strong, .lm-finder-selected-type strong { color: #17603e; font-size: 14px; font-weight: 800; }
.lm-finder-selected-type { display: grid; align-content: center; gap: 5px; min-height: 46px; padding: 5px 12px; }
.lm-category-more { display: grid; gap: 18px; margin-top: 32px; }
.lm-category-guidance, .lm-category-brands, .lm-category-discover { padding: 24px; border: 1px solid #dce5df; border-radius: 16px; background: #fff; }
.lm-category-guidance { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lm-category-more h2 { color: #173d25; font-size: 18px; font-weight: 800; }
.lm-category-guidance p { max-width: 700px; margin-top: 10px; color: #64756a; font-size: 13px; line-height: 1.8; }
.lm-category-guidance > a { flex: 0 0 auto; color: #17603e; font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.lm-category-brands > div, .lm-category-dimensions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.lm-category-brands a, .lm-category-dimensions a { display: inline-flex; align-items: center; min-height: 40px; border: 1px solid #dce5df; border-radius: 8px; padding: 8px 14px; color: #31573b; font-size: 12px; font-weight: 650; }
.lm-category-discover summary { cursor: pointer; color: #31573b; font-size: 14px; font-weight: 750; }
.lm-category-discover h3 { margin-top: 22px; color: #64756a; font-size: 12px; font-weight: 750; }
.lm-category-models { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.lm-category-models a { display: grid; gap: 5px; border: 1px solid #e5ece6; border-radius: 8px; padding: 12px; color: #31573b; font-size: 12px; }
.lm-category-models span { color: #64756a; font-size: 11px; }
.lm-category-models a:hover, .lm-category-brands a:hover, .lm-category-dimensions a:hover { background: #f1f7ec; border-color: #a9c6ad; }
.lm-category-page .lm-season-choices[hidden] { display: none; }
@media (max-width: 1023px) {
    .lm-shop-entry { grid-template-columns: 1fr 1.3fr; gap: 24px; }
    .lm-shop-intro { padding-top: 16px; }
    .lm-shop-intro img { max-height: 180px; }
    .lm-tire-vehicle-main { flex-direction: column; align-items: stretch; gap: 14px; }
    .lm-tire-vehicle-form { flex-basis: auto; }
    .lm-tire-dimension-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .lm-tire-dimension-form label:nth-child(4) { grid-column: span 2; }
    .lm-finder-selected-type { grid-column: span 2; }
    .ti-modern .lm-catalog-layout { display: block; }
    .ti-modern #filter-drawer { top: 0; max-height: none; height: 100dvh; }
    .ti-modern #filter-drawer:not(.open) { display: none; }
    .ti-modern #toggle-filter, .ti-modern #close-filter { display: inline-flex; }
    .ti-modern #filter-drawer { z-index: 1200; }
    .ti-modern #filter-overlay { z-index: 1100; }
    .lm-dimension-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lm-category-guidance { align-items: start; flex-direction: column; gap: 16px; }
    .lm-category-models { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lm-category-entry { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .lm-shop-entry { grid-template-columns: 1fr; gap: 20px; margin-top: 0; }
    .lm-shop-intro { padding: 12px 0 0; }
    .lm-shop-intro h1 { font-size: 34px; max-width: 440px; }
    .lm-shop-intro > p { margin: 12px 0; font-size: 14px; }
    .lm-shop-intro img { display: none; }
    .lm-shop-eyebrow { margin-bottom: 12px; font-size: 11px; }
    .lm-shop-panel > div { padding: 20px; }
    .lm-shop-shortcuts { padding: 18px; }
    .lm-shop-shortcuts > div { gap: 6px; }
    .lm-shop-shortcuts strong { font-size: 11px; }
    .lm-shop-tabs button { min-height: 54px; font-size: 13px; }
    .lm-tire-vehicle-search { padding: 18px; }
    .lm-tire-vehicle-copy h2 { font-size: 16px; }
    .lm-tire-vehicle-form { flex-direction: column; }
    .lm-catalog-grid, .lm-dimension-grid { grid-template-columns: 1fr; gap: 16px; }
    .ti-modern .tire-result-image { height: 160px; min-height: 160px; }
    .lm-result-content { padding: 18px; }
    .lm-dimension-card > a > div:first-child { height: 180px; }
    .lm-dimension-card h3 { min-height: 0; font-size: 18px; }
    .lm-dimension-card > a > div:last-child > div { min-height: 0; }
    .lm-category-intro { padding: 20px; }
    .lm-category-icon { flex-basis: 48px; height: 48px; border-radius: 12px; font-size: 22px; }
    .lm-category-title-row { align-items: start; gap: 12px; }
    .lm-category-description { font-size: 13px; }
    .lm-category-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
    .lm-category-nav a { justify-content: center; padding: 8px 5px; font-size: 11px; }
    .lm-category-quick-dimensions > span { width: 100%; }
    .lm-category-guidance, .lm-category-brands, .lm-category-discover { padding: 18px; }
    .lm-category-models { grid-template-columns: 1fr; }
    .lm-category-finder .lm-tire-vehicle-main, .lm-category-finder .lm-tire-dimension-search { padding: 18px; }
    .lm-tire-vehicle-search.lm-category-finder { padding: 0; }
}
