/* PO.LEGNO shop styles (catalog grid, cart drawer, favorites, search) */
#t-page-preview-back, .js-store-grid-cont-preloader, .js-store-parts-select-container { display: none !important; }

.pl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 40px;
  padding: 0 20px;
  font-family: 'Oswald', Arial, sans-serif;
}
.pl-grid_small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0; }
@media (max-width: 960px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; } }

.pl-card { position: relative; text-align: center; display: flex; flex-direction: column; }
.pl-card__img { position: relative; display: block; padding-bottom: 75%; overflow: hidden; background: #f6f5f3; }
.pl-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s, transform .4s; }
.pl-card__img .pl-card__img2 { opacity: 0; }
@media (hover: hover) {
  .pl-card__img:hover .pl-card__img2 { opacity: 1; }
  .pl-card__img:hover img:first-child:not(:only-child) { opacity: 0; }
  .pl-card__img:hover img:only-child { transform: scale(1.04); }
}
.pl-card__title { display: block; margin-top: 16px; font-weight: 400; color: #000; text-decoration: none; font-size: 18px; line-height: 1.3; }
.pl-card__price { padding: 6px 0 12px; font-size: 16px; margin: 0 !important; }
.pl-price-old { margin-left: 8px; color: #999; text-decoration: line-through; }
.pl-card .pl-btn { margin-top: auto; align-self: center; }

.pl-btn {
  font-family: 'Oswald', Arial, sans-serif; font-weight: 300; text-transform: uppercase; font-size: 14px;
  color: #fff; background: #6b6b6b; border: 1px solid #6b6b6b; padding: 10px 22px; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.pl-btn:hover { background: #313439; border-color: #313439; }
.pl-btn:disabled { opacity: .6; cursor: default; }
.pl-btn_done { background: #3b6b45; border-color: #3b6b45; }
.pl-btn_wide { box-sizing: border-box; width: 100%; padding: 14px; font-size: 16px; }

.pl-fav { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.85); border: 0; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pl-fav svg { fill: none; stroke: #6b6b6b; stroke-width: 1.6; }
.pl-fav_on svg { fill: #b5483b; stroke: #b5483b; }
.pl-fav_inline { position: static; margin-top: 12px; background: none; border: 1px solid #c7c7c7; border-radius: 0; width: 44px; height: 44px; }

.pl-empty { text-align: center; padding: 60px 20px; color: #777; }

.pl-badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #6b6b6b; color: #fff; font: 500 11px/18px Arial, sans-serif; text-align: center; pointer-events: none; }

.pl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 9990; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: #333; box-shadow: 0 4px 18px rgba(0,0,0,.18); display: none; align-items: center; justify-content: center; text-decoration: none; }
.pl-fab_visible { display: flex; }
.pl-fab__count { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: #6b6b6b; color: #fff; font: 500 12px/22px Arial, sans-serif; text-align: center; }

.pl-noscroll, .pl-noscroll body { overflow: hidden; }
.pl-layer { position: fixed; inset: 0; z-index: 100000; font-family: 'Oswald', Arial, sans-serif; }
.pl-layer__bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.pl-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; overflow-y: auto; box-sizing: border-box; padding: 40px 32px; animation: pl-in .25s ease-out; }
@keyframes pl-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.pl-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 34px; line-height: 1; cursor: pointer; color: #333; }
.pl-h { margin-bottom: 24px; font-weight: 400; }
.pl-drawer a { color: #000; }

.pl-lines { border-top: 1px solid #e5e5e5; }
.pl-line { display: grid; grid-template-columns: 72px 1fr auto 24px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #e5e5e5; }
.pl-line img { width: 72px; height: 72px; object-fit: contain; background: #f6f5f3; display: block; }
.pl-line__info a { text-decoration: none; font-weight: 400; font-size: 16px; padding: 0; }
.pl-qty { display: flex; align-items: center; gap: 10px; }
.pl-qty button { width: 28px; height: 28px; border: 1px solid #c7c7c7; background: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.pl-del { border: 0; background: none; font-size: 22px; color: #999; cursor: pointer; }
.pl-total { text-align: right; font-size: 20px; font-weight: 400; margin: 20px 0; }

.pl-form { display: flex; flex-direction: column; gap: 12px; }
.pl-form .t-input, .pl-search { width: 100%; box-sizing: border-box; border: 1px solid #c7c7c7; padding: 12px 14px; font: 300 16px 'Oswald', Arial, sans-serif; height: auto; }
.pl-search { margin-bottom: 24px; }
.pl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pl-consent { display: flex; gap: 8px; align-items: flex-start; padding: 0 !important; }
.pl-err { color: #b5483b; min-height: 1em; padding: 0 !important; }
.pl-invalid { border-color: #b5483b !important; }

@media (max-width: 640px) {
  .pl-drawer { padding: 36px 18px; }
  .pl-line { grid-template-columns: 56px 1fr auto 20px; gap: 10px; }
  .pl-line img { width: 56px; height: 56px; }
  .pl-fab { right: 16px; bottom: 16px; }
}
