/* LedProm v2 — additions on top of the redesign's style.css (real data, server states) */

/* Catalog: long facet lists and loading state */
.filter-body .is-extra { display: none; }
.filter-body.show-all .is-extra { display: flex; }
.filter-body.show-all .swatch.is-extra { display: inline-flex; }
.filter-more { color: var(--lp-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.filter-more .less, .filter-body.show-all .filter-more .more { display: none; }
.filter-body.show-all .filter-more .less { display: inline; }
.filter-toggle { display: flex; align-items: center; gap: .25rem; }
.swatch.is-disabled { opacity: .45; }
.swatch label small { font-weight: 500; }
.js-catalog.is-loading .js-products { opacity: .45; pointer-events: none; transition: opacity .2s; }
.js-catalog .js-products { transition: opacity .2s; }
.products-grid .product-card { height: 100%; }
.subcat img { flex-shrink: 0; }

/* Product cards: real photos instead of SVG illustrations; product photos have a white background, so no grey plate */
.product-media { background: #fff; }
.product-media img { object-fit: contain; width: 100%; height: 100%; }

/* Mega menu: subcategories as tiles with their picture */
.mega-subcats { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem 1rem; }
@media (max-width: 1199.98px) { .mega-subcats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mega-subcats li { margin: 0; }
.mega-subcats a { display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: 12px; color: var(--lp-ink); transition: background .2s; }
.mega-subcats a:hover { background: var(--lp-soft); color: var(--lp-ink); }
.mega-sub-img { flex: 0 0 64px; height: 52px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--lp-line); border-radius: 10px; overflow: hidden; color: var(--lp-muted); }
.mega-sub-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mega-sub-title { display: block; font-weight: 600; font-size: .875rem; line-height: 1.25; }
.mega-subcats small { color: var(--lp-muted); font-size: .75rem; }
.product-card .rating { color: var(--lp-muted); margin-bottom: .25rem; }
.product-card .rating .bi { color: var(--lp-accent); }
.price small.fw-normal { font-size: .75em; color: var(--lp-muted); }

/* Product page: unavailable variant combinations stay clickable but look off */
.option.is-unavailable label { opacity: .45; text-decoration: line-through; }
.gallery-main .swiper-slide img, .gallery-thumbs .swiper-slide img { object-fit: contain; }
/* product photos are shot on white: no grey backdrop, just a light frame */
.gallery-main { background: #fff; border: 1px solid var(--lp-line); }
.gallery-thumbs .swiper-slide { background: #fff; border: 1px solid var(--lp-line); }
.gallery-thumbs .swiper-slide-thumb-active { border-color: var(--lp-ink); }
/* one photo: no thumbnail column, the main image takes the whole width */
.gallery.is-single { grid-template-columns: 1fr; }
.spec-table td p:last-child, .spec-table th p:last-child { margin-bottom: 0; }
.spec-table td img { max-width: 100%; height: auto; }

/* Rich text coming from the legacy editor */
.prose img { max-width: 100%; height: auto; border-radius: var(--lp-radius-sm); }
.prose table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.prose table td, .prose table th { border: 1px solid var(--lp-line); padding: .5rem .75rem; }
.prose iframe { max-width: 100%; }
.prose h2 { font-size: 1.375rem; margin: 2rem 0 .75rem; }
.prose a { color: var(--lp-ink); text-decoration: underline; text-decoration-color: var(--lp-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--lp-ink); }
.prose { overflow-wrap: anywhere; }

/* Hero slides use uploaded banner images */
.hero-art img { object-fit: contain; max-height: 420px; }

/* Hero slides with a picture: the picture fills the whole card, text stays on the left over a fading veil */
/* all slides as tall as the tallest one, so the picture covers the whole card on every slide */
.hero-card .swiper-slide { height: auto; }
.hero-card .swiper-slide > .hero-slide { height: 100%; }
.hero-slide--cover { position: relative; grid-template-columns: minmax(0, 560px); isolation: isolate; }
.hero-slide--cover > div:first-child { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(246,244,238,.97) 0%, rgba(246,244,238,.9) 28%, rgba(246,244,238,.55) 48%, rgba(246,244,238,0) 70%);
}
.hero-slide--cover h1, .hero-slide--cover h2 { color: var(--lp-ink); }
.hero-slide--cover p { color: #4b5160; }
@media (max-width: 991.98px) {
  .hero-slide--cover { grid-template-columns: 1fr; min-height: 420px; align-content: end; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(246,244,238,.96) 0%, rgba(246,244,238,.9) 45%, rgba(246,244,238,.74) 75%, rgba(246,244,238,.55) 100%); }
}

/* Text pages, news, account */
.page-content { max-width: 860px; }
.account-nav .list-group-item { border: 0; border-radius: var(--lp-radius-sm) !important; font-weight: 600; }
.account-nav .list-group-item.active { background: var(--lp-ink); }
.order-table td, .order-table th { vertical-align: middle; }
.status-badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--lp-soft); }
.status-badge.s-0 { background: #fff3cd; }
.status-badge.s-1 { background: #cfe2ff; }
.status-badge.s-2 { background: #d1e7dd; }
.status-badge.s-3, .status-badge.s-9 { background: #f8d7da; }
.news-card .news-img img { object-fit: cover; width: 100%; height: 100%; }

/* Checkout */
.delivery-fields { display: none; }
.delivery-fields.show { display: block; }
.page-simple { background: #fff; }
