/* Built-in fallback for local WSL preview before a fresh Vite build. */
.main--category .main__content {min-width:0}
.main .products-list--vhodnye-dveri,.main .products-list--similar,.main .products-list--home {min-width:0}
.product-card {position:relative;display:flex;flex-direction:column;min-width:0;height:100%;padding:1rem;background:#fff;border:1px solid #e4e4e4;border-radius:12px;transition:border-color .2s,box-shadow .2s}
.product-card:hover,.product-card:focus-within {border-color:#999;box-shadow:0 6px 24px rgba(0,0,0,.045)}
.product-card--slide {height:auto}
.product-card__photo-wrap {display:flex;justify-content:center;align-items:center;aspect-ratio:4/5;width:100%;min-width:0;max-height:none;height:auto;margin:0 0 .9rem;overflow:hidden;border-radius:8px;order:0;text-decoration:none}
.product-card__photo {display:block;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center;margin:0;transition:transform .25s}
.product-card:hover .product-card__photo {transform:scale(1.025)}
.product-card__content {display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:.25rem;min-width:0;margin:0 0 1rem;order:1;width:auto}
.product-card__heading {display:block;min-height:2.8em;margin:0;line-height:1.4}
.product-card__name {color:#666;font-size:.875rem;font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;text-decoration:none}
.product-card__name:hover {color:#000}
.product-card__sku-wrapper {display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .5rem;min-width:0;margin:0}
.product-card__sku {font-size:1.15rem;font-weight:700;line-height:1.25;width:auto;margin:0;overflow-wrap:anywhere}
.product-card__badges {display:inline-flex;align-items:center;gap:.2rem;margin:0;font-size:.72rem;font-weight:500;color:#666;white-space:normal}
.product-card__badges-icon {display:inline-block;flex:0 0 18px;width:18px;height:18px;margin:0}
.product-card__bottom {display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:.7rem .4rem;min-width:0;margin-top:auto;width:auto;order:2}
.product-card__pricing {min-width:0}
.product-card__price {font-size:1.2rem;line-height:1.2;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.product-card__old-price-wrap {display:flex;align-items:center;flex-wrap:wrap;gap:.3rem;margin:0 0 .25rem}
.product-card__price-old {position:static;margin:0;color:#888;font-size:.78rem;text-decoration:line-through;white-space:nowrap}
.product-card__price-old:after {content:none}
.product-card__discount {border:1px solid #aaa;border-radius:5px;padding:.1rem .3rem;font-size:.7rem;line-height:1.1;white-space:nowrap}
.product-card__actions {display:flex;flex-wrap:nowrap;gap:.35rem;align-items:center}
.product-card__add-to-cart,.product-card__fast-order,.product-card__about-button {display:inline-flex;align-items:center;justify-content:center;flex:0 0 2.2rem;width:2.2rem;height:2.2rem;min-width:0;min-height:0;padding:0;margin:0}
@media(max-width:767px) {
  .product-card {padding:.8rem}
  .product-card__sku {font-size:1.03rem}
  .product-card__name {font-size:.78rem}
  .product-card__price {font-size:1.05rem}
  .product-card__photo-wrap {margin-bottom:.65rem}
}
@media(max-width:576px) {
  .main .products-list--vhodnye-dveri,.main .products-list--similar,.main .products-list--home {grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
}
@media(max-width:399px) {
  .product-card {padding:.55rem;border-radius:.6rem}
  .product-card__content {margin-bottom:.65rem}
  .product-card__sku {font-size:.97rem}
  .product-card__name {font-size:.73rem}
  .product-card__price {font-size:1rem}
  .product-card__actions {gap:.2rem;width:100%;justify-content:space-between}
  .product-card__add-to-cart,.product-card__fast-order,.product-card__about-button {flex:0 0 2rem;width:2rem;height:2rem}
}
@media(max-width:499px) {
}
.product-single__features.swiper-initialized .product-single__features-list {display:flex;gap:0}
.active-filters .swiper-slide {margin-right:0}
@media(prefers-reduced-motion:reduce) {
  .product-card,.product-card__photo {transition:none}
}

/* One crawlable anchor per card; its pseudo-element covers non-action areas. */
.product-card { position: relative; }
.product-card__primary-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-card__actions { position: relative; z-index: 2; }
.product-card__actions button { position: relative; z-index: 2; }
.product-card__about-button { pointer-events: none; }

/* Local catalog hotfix: keep photos proportional without excessive vertical blank space. */
.product-card__photo-wrap { aspect-ratio: 1 / 1.08; }
.product-card__photo { object-fit: contain; object-position: center top; }
/* The watermark/sku is on the bottom row; put the project link above it. */

/* Styled, keyboard-accessible search results even before rebuilding Sass/Vite. */
.big-search-form{display:flex;max-width:580px;width:100%;position:relative;height:52px;margin:22px 0}
.big-search-form__input{display:block;width:100%;max-width:none;height:52px;border:1px solid #dcdcdc;border-radius:12px;padding:0 60px 0 17px;background:#fff;color:#161616}
.big-search-form__submit{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:9px;background:#111;color:#fff;cursor:pointer}
.big-search-form__submit::before{content:"";display:block;width:16px;height:16px;border:2px solid currentColor;border-radius:50%;transform:translate(-2px,-2px)}
.big-search-form__submit::after{content:"";position:absolute;width:9px;height:2px;background:currentColor;transform:translate(9px,9px) rotate(45deg)}
.search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}
.search-results__item{min-width:0;border:1px solid #e5e5e5;border-radius:12px;background:#fff;padding:20px}
.search-results__item--empty{grid-column:1/-1;background:#fff;border:1px solid #e4e4e4;padding:22px;border-radius:12px}
.search-results__link{font-weight:600;font-size:17px;color:#151515;text-decoration:none;line-height:1.4}
.search-results__link:hover{color:#111;text-decoration:underline;text-underline-offset:3px}
.search-results__type{font-size:12px;color:#777;margin-bottom:7px}
.search-type-nav{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}
.search-type-nav a{border:1px solid #d4d4d4;background:#fff;color:#111;padding:9px 15px;border-radius:8px;font-size:14px;text-decoration:none}
.search-type-nav a[aria-current="page"]{background:#111;color:#fff;border-color:#111}
@media(max-width:767px){.search-results{grid-template-columns:1fr}.search-results__item{padding:16px}}
/* Portfolio project pages: lightweight, responsive, no inline link colors. */
/* Search is a first-class storefront page, not default browser link styling. */
.search-type-nav{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 24px}.search-type-nav .btn{display:inline-flex;align-items:center;justify-content:center;border-radius:24px;padding:9px 17px;text-decoration:none;font-size:13px;min-height:36px}.search-results{max-width:1000px;display:grid;gap:12px;margin:18px 0 32px}.search-results__item{background:#fff;border:1px solid #e2e2e2;padding:18px 22px;border-radius:14px;min-width:0}.search-results__item img{background:#f6f6f6}.search-results__type{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#666;margin-bottom:8px}.search-results__link{color:#151515!important;text-decoration:none;font-size:18px;line-height:1.35;font-weight:650;display:inline-block}.search-results__link:hover{text-decoration:underline}.search-results__item--empty,.search-notice{border:1px solid #e4e4e4;background:#f8f8f8;color:#454545;padding:18px 20px;border-radius:12px;font-size:14px;margin:0}.search-notice{margin-bottom:8px}.search-results p{line-height:1.5}
