/* Плитка товара plasters.ru (PlastersTile.php): разделы каталога, поиск, избранное, блоки товаров. */
.ptiles { width: 100%; flex: 0 0 100%; grid-column: 1 / -1; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; margin: 0 0 24px; }
.ptile { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #e5e5e5; border-radius: 2px; transition: border-color .15s; font-family: Inter, Arial, Helvetica, sans-serif; color: #1d1a1a; }
.ptile:hover { border-color: #201472; }

.ptile__media { position: relative; aspect-ratio: 1 / 1; background: #f7f7f7; overflow: hidden; }
.ptile__img { position: absolute; inset: 0; display: block; }
.ptile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; transition: transform .35s ease; }
.ptile__img img.is-photo { object-fit: cover; padding: 0; }
.ptile__media.is-zoom .ptile__img img { transform: scale(1.06); }
.ptile__media.is-zoom .ptile__swatch { opacity: 0; }
.ptile__bars { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2; display: flex; gap: 4px; pointer-events: none; }
.ptile__bars i { flex: 1; height: 3px; background: rgba(29, 26, 26, .18); }
.ptile__bars i.is-on { background: #201472; }
.ptile__noimg { position: absolute; inset: 0; }
.ptile__stickers.new-stickers { top: 8px; left: 8px; max-width: calc(100% - 52px); flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.ptile__stickers .sticker { font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 0; }
.new-stickers .sticker.sticker-black { background: #1d1a1a; }
.new-stickers .sticker.sticker-discount { background: #e52929; font-weight: 700; }
.ptile__icons.like_icons { position: absolute; top: 6px; right: 6px; z-index: 3; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ptile__icons .wish_item_button, .ptile__icons .compare_item_button { position: static; margin: 0; float: none; }
.ptile__icons.like_icons span.wish_item, .ptile__icons.like_icons span.compare_item { position: static !important; padding: 2px; margin: 0 !important; background: rgba(255, 255, 255, .92); border-radius: 2px; cursor: pointer; opacity: 1; visibility: visible; }
.ptile__icons.like_icons span.added { opacity: 1; }
.ptile__swatch { position: absolute; left: 8px; bottom: 8px; width: 30%; max-width: 84px; aspect-ratio: 1 / 1; border: 2px solid #fff; box-shadow: 0 0 0 1px #e5e5e5; background: #fff; transition: opacity .2s; }
.ptile__swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptile__fv.fast-view-button { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); opacity: 0; transition: opacity .15s; z-index: 2; }
@media (hover: hover) { .ptile:hover .ptile__fv.fast-view-button { opacity: 1; } }

.ptile__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 12px 14px 14px; }
.ptile__cat { font-size: 11px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: #777; }
.ptile__title { font-size: 15px; line-height: 1.35; font-weight: 600; color: #1d1a1a; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ptile__title:hover { color: #201472; }
.ptile__rate { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #777; }
.ptile__rate i { position: relative; width: 70px; height: 13px; background: linear-gradient(90deg, #f5a623 var(--r), #d5d5d5 var(--r)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 13'%3E%3Cg%3E%3Cpath id='s' d='M6.5 0l1.9 4.1 4.6.5-3.4 3.1 1 4.4-4.1-2.4-4.1 2.4 1-4.4L0 4.6l4.6-.5z'/%3E%3Cuse href='%23s' x='14'/%3E%3Cuse href='%23s' x='28'/%3E%3Cuse href='%23s' x='42'/%3E%3Cuse href='%23s' x='56'/%3E%3C/g%3E%3C/svg%3E") no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 13'%3E%3Cg%3E%3Cpath id='s' d='M6.5 0l1.9 4.1 4.6.5-3.4 3.1 1 4.4-4.1-2.4-4.1 2.4 1-4.4L0 4.6l4.6-.5z'/%3E%3Cuse href='%23s' x='14'/%3E%3Cuse href='%23s' x='28'/%3E%3Cuse href='%23s' x='42'/%3E%3Cuse href='%23s' x='56'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
.ptile__rate b { color: #1d1a1a; font-weight: 600; }
.ptile__shade { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #383838; }
.ptile__shade i { width: 22px; height: 22px; flex: none; background: #eee center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ptile__shades { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ptile__shades a { width: 24px; height: 24px; background: #eee center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ptile__shades a:hover { box-shadow: 0 0 0 2px #201472; }
.ptile__shades span { font-size: 12px; color: #777; margin-left: 4px; }
.ptile__packs, .ptile__pack { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; }
.ptile__packs > span, .ptile__pack > span { color: #777; margin-right: 4px; font-size: 12px; }
.ptile__packs button { min-width: 44px; padding: 4px 8px; font: inherit; font-size: 13px; color: #1d1a1a; background: #fff; border: 1px solid #d5d5d5; border-radius: 2px; cursor: pointer; }
.ptile__packs button:hover { border-color: #201472; }
.ptile__packs button.is-on { border-color: #201472; background: #201472; color: #fff; }
.ptile__specs { margin: 0; display: grid; gap: 3px; font-size: 12px; line-height: 1.35; }
.ptile__specs > div { display: flex; gap: 6px; min-width: 0; }
.ptile__specs dt { flex: none; color: #777; font-weight: 400; }
.ptile__specs dt::after { content: ":"; }
.ptile__specs dd { margin: 0; color: #383838; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ptile__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.ptile__price { display: flex; flex-direction: column; gap: 2px; }
.ptile__old { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #777; }
.ptile__old i { font-style: normal; font-weight: 700; color: #e52929; }
.ptile__now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ptile__now small { width: 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #201472; }
.ptile__now b { font-size: 21px; line-height: 1.15; font-weight: 800; color: #1d1a1a; white-space: nowrap; }
.ptile__unit { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 12px; color: #555; }
.ptile__unit span { white-space: nowrap; }
.ptile__unit i { font-style: normal; color: #bbb; }
.ptile__retail { font-size: 12px; color: #777; }
.ptile__price--none { font-size: 15px; font-weight: 600; color: #383838; }
.ptile__actions { display: flex; flex-direction: column; gap: 6px; }
.ptile__buy { display: flex; gap: 6px; }
.ptile__qty { display: flex; flex: none; border: 1px solid #d5d5d5; border-radius: 2px; }
.ptile__qty button { width: 28px; border: 0; background: #fff; font-size: 16px; color: #383838; cursor: pointer; }
.ptile__qty input { width: 34px; border: 0; text-align: center; font: inherit; font-size: 14px; -moz-appearance: textfield; padding: 0; }
.ptile__qty input::-webkit-outer-spin-button, .ptile__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ptile .ptile__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 0; padding: 0 12px; font: 700 13px/1 Inter, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #201472; border: 1px solid #201472; border-radius: 2px; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.ptile .ptile__btn:hover { background: #2e1fa0; border-color: #2e1fa0; color: #fff; }
.ptile .ptile__btn--ghost { color: #201472; background: #fff; }
.ptile .ptile__btn--ghost:hover { color: #fff; }
.ptile .ptile__btn--done { color: #1f7a45; background: #fff; border-color: #1f7a45; }
.ptile__meta { font-size: 12px; color: #777; }
.ptile__meta span { color: #777; }

@media (max-width: 600px) {
	.ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ptile__body { padding: 10px; gap: 6px; }
	.ptile__title { font-size: 13px; }
	.ptile__now b { font-size: 17px; }
	.ptile__specs-wrap, .ptile__rate span, .ptile__cat { display: none; }
	.ptile__buy { flex-direction: column; }
	.ptile__qty { justify-content: space-between; }
	.ptile__qty input { flex: 1; }
	.ptile .ptile__btn { min-height: 38px; font-size: 12px; padding: 0 6px; }
	.ptile__swatch { width: 34%; }
	.ptile__packs button { min-width: 0; padding: 3px 6px; font-size: 12px; }
	.ptile__packs > span, .ptile__pack > span { display: none; }
}
.ptiles-empty { padding: 24px 0 40px; font-size: 15px; color: #383838; } .ptiles-empty p { margin: 0 0 16px; }
.ptile__status { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #383838; }
.ptile__st::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: #909ba3; vertical-align: 1px; }
.ptile__st--in_stock::before { background: #1f7a45; }
.ptile__st--exposition::before { background: #bbc0c3; }
.ptile__st--not_avail::before { background: #f58a00; }
.ptile__st--not_sale::before { background: #e52929; }
.ptile__shade b { font-weight: 600; }

/* лента плиток: карусели в карточке, на главной, у брендов */
.ptiles-li { list-style: none; width: 100%; margin: 0; padding: 0; float: none !important; }
.ptiles-li::before { display: none !important; }
.ptiles-row { position: relative; margin: 0 0 24px; }
.ptiles.ptiles--row { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 48px) / 4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin: 0; padding: 1px; }
.ptiles.ptiles--row::-webkit-scrollbar { display: none; }
.ptiles--row > .ptile { scroll-snap-align: start; }
.ptiles-row__nav { position: absolute; top: 34%; z-index: 4; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid #d5d5d5; border-radius: 2px; background: #fff; cursor: pointer; }
.ptiles-row__nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: solid #1d1a1a; border-width: 0 0 2px 2px; transform: translate(-30%, -50%) rotate(45deg); }
.ptiles-row__nav--prev { left: -20px; }
.ptiles-row__nav--next { right: -20px; }
.ptiles-row__nav--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.ptiles-row__nav:hover { border-color: #201472; }
.ptiles-row__nav[hidden] { display: none; }
@media (max-width: 1100px) { .ptiles.ptiles--row { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (max-width: 600px) {
	.ptiles.ptiles--row { grid-auto-columns: 46%; }
	.ptiles-row__nav { display: none; }
}
.tabs_slider > .ptiles-li, .slides > .ptiles-li, .ptiles-li { opacity: 1 !important; visibility: visible !important; height: auto !important; }
.tabs_content > li.cur .ptiles-row, .ptiles-block .ptiles-row { margin-top: 12px; }
/* вкладки с лентами: старые правила flexslider (абсолютные вкладки, нулевая высота) не нужны */
.tabs_content:has(.ptiles-row) { height: auto !important; margin-left: 0 !important; padding: 0 !important; }
.tabs_content:has(.ptiles-row) > li.tab { position: static !important; display: none; height: auto !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; opacity: 1 !important; }
.tabs_content:has(.ptiles-row) > li.tab.cur { display: block; }
.tabs_slider:has(> .ptiles-li) { margin: 0 !important; padding: 0 !important; height: auto !important; }
.ptiles-li { margin: 0 !important; }
.ptile__cname { color: #777; margin-left: -8px; }
.ptile__cname::before { content: ", "; }
.ptile__color i { background-color: #fff; }

/* «Купить в 1 клик» — текстовая ссылка под кнопкой, без второй кнопки */
.ptile .ptile__oneclick { align-self: center; margin: 2px 0 0; padding: 2px 0; font-size: 13px; line-height: 1.3; color: #201472; text-decoration: none; border-bottom: 1px dashed rgba(32, 20, 114, .45); cursor: pointer; }
.ptile .ptile__oneclick:hover { color: #2e1fa0; border-bottom-color: #2e1fa0; }
@media (max-width: 600px) { .ptile .ptile__oneclick { font-size: 12px; } }

/* «N оттенков» — открывает подбор цвета с примеркой на стене */
.ptile .ptile__allshades { margin-left: 4px; padding: 0; font: inherit; font-size: 12px; color: #201472; background: none; border: 0; border-bottom: 1px dashed rgba(32, 20, 114, .45); cursor: pointer; }
.ptile .ptile__allshades:hover { color: #2e1fa0; border-bottom-color: #2e1fa0; }
