/* Selected variant 1Б: shared storefront cards. No business or payment hooks changed. */
.product-cards-shadow{--pd-ink:#21282b;--pd-muted:#535d61;--pd-yellow:#fdc300;--pd-shadow:0 8px 28px rgba(33,40,43,.07)}
.product-cards-shadow .pcard,.product-cards-shadow .pcard *{box-sizing:border-box}
.product-cards-shadow .pcard{min-width:0;padding:14px;border:1px solid #e3e6e7;border-radius:12px;background:#fff;color:var(--pd-ink);display:flex;flex-direction:column;box-shadow:none;transition:border-color .18s ease,box-shadow .18s ease}
.product-cards-shadow .pcard__badge{left:14px;top:14px;min-height:26px;font-size:10px;border-radius:5px;padding:0 8px;line-height:1.3}
.product-cards-shadow .pcard__wish{right:6px;top:5px;width:44px;height:44px;border-radius:50%;color:#566166;z-index:7;touch-action:manipulation}
.product-cards-shadow .pcard__media{order:0;position:relative;width:100%;height:auto;aspect-ratio:1;margin:40px 0 14px;background:#f4f4f0;border-radius:7px;overflow:hidden;flex:none}
.product-cards-shadow .pcard__media img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.product-cards-shadow .pcard__brand{order:1;margin:0 0 6px;font-size:10px;line-height:1.5;letter-spacing:.075em;font-weight:700;color:var(--pd-muted);background:none;align-self:flex-start}
.product-cards-shadow .pcard__title{order:2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:59px;margin:0 0 8px;color:var(--pd-ink);background:transparent;font-size:14px;line-height:1.4;font-weight:700;letter-spacing:-.015em}
.product-cards-shadow .pcard__color{order:3;min-height:18px;margin:0 0 5px;background:none;font-size:11px;line-height:1.45;color:var(--pd-muted)}
.product-cards-shadow .pcard__color i{width:10px;height:10px}
.product-cards-shadow .pcard__color--empty{min-height:0;margin:0}
.product-cards-shadow .pcard__bevel,.product-cards-shadow .pcard__variants{order:3;font-size:11px;line-height:1.4}
.product-cards-shadow .pcard__rating{order:4;min-height:26px;margin:0 0 5px;line-height:1.4}
.product-cards-shadow .pcard__rating a{display:inline-flex;align-items:center;min-height:26px;font-size:11px;color:var(--pd-muted)}
.product-cards-shadow .pcard__stock{order:5;margin:0 0 12px;gap:6px;align-items:flex-start;font-size:11px;line-height:1.5;color:#28603b}
.product-cards-shadow .pcard__stock svg{width:14px;height:16px;flex:0 0 auto;margin-top:1px;color:#28603b}
.product-cards-shadow .pcard__stock b{display:inline;margin:0;font-size:inherit;line-height:inherit;font-weight:700;color:inherit;letter-spacing:0}
.product-cards-shadow .pcard__stock.is-empty{color:var(--pd-muted)}
.product-cards-shadow .pcard__delivery{order:6;font-size:11px;line-height:1.45}
.product-cards-shadow .pcard__price-row{order:8;margin-top:auto;min-width:0;align-items:center;flex-wrap:wrap;gap:8px}
.product-cards-shadow .pcard__price{font-size:26px;font-weight:700;line-height:1.15;letter-spacing:-.035em;color:var(--pd-ink)}
.product-cards-shadow .pcard__price small{font-size:12px;color:var(--pd-muted);font-weight:400;letter-spacing:0;white-space:nowrap}
.product-cards-shadow .pcard__pack-price{font-size:12px;line-height:1.4;font-weight:400;color:var(--pd-muted);margin-top:3px}
.product-cards-shadow .pcard__pack-price small{font-size:11px;color:inherit;font-weight:400}
.product-cards-shadow .pcard__old-wrap del{color:var(--pd-muted);font-size:12px}
.product-cards-shadow .pcard__price-announce{order:9;font-size:11px;line-height:1.45}
.product-cards-shadow .pcard>.ypay-badges:not(.ypay-badges--cashback-float){order:10;min-height:23px;margin-top:5px}
.product-cards-shadow .ypay-badges--cashback-float{top:62px;right:20px;filter:none}
.product-cards-shadow .pcard__actions{order:11;display:grid;grid-template-columns:minmax(0,1fr);margin-top:0;gap:0;padding-top:10px!important}
.product-cards-shadow .pcard__actions>.pcard__icon[data-favourite]{display:none}
.product-cards-shadow .pcard__cart{display:flex;align-self:stretch;margin:0;min-height:44px;font-size:12px;font-weight:700;line-height:1.35;letter-spacing:0;border-radius:7px;background:var(--pd-ink);color:#fff;touch-action:manipulation}
.product-cards-shadow .pcard__wish[aria-pressed=true]{color:#b82440;background:#fff0f3}
.product-cards-shadow .pcard__wish[aria-pressed=true] svg{fill:#ffe0e7}
.product-cards-shadow .pcard a:focus-visible,.product-cards-shadow .pcard button:focus-visible,.product-cards-shadow .pcard input:focus-visible{outline:3px solid #176a99!important;outline-offset:3px}
.product-cards-shadow .pcard .bo-qty{grid-template-columns:44px minmax(0,1fr) 44px;min-height:44px;border-radius:7px}
.product-cards-shadow .pcard .bo-qty__field{padding:0;gap:2px}
.product-cards-shadow .pcard .bo-qty__input{font-size:14px}
.product-cards-shadow .pcard .bo-qty__unit{font-size:11px;color:var(--pd-muted)}
@media(hover:hover){.product-cards-shadow .pcard:hover{border-color:#b9c0c2;box-shadow:0 7px 22px #21282b0c}.product-cards-shadow .pcard__cart:hover{background:#111719}.product-cards-shadow .pcard__wish:hover{background:#f5f4ef;color:#b82440}}

@media(max-width:600px){
  .product-cards-shadow .pcard{padding:10px;border-radius:9px}
  .product-cards-shadow .pcard__badge{left:8px;top:12px;font-size:9px;min-height:22px;padding:0 6px}
  .product-cards-shadow .pcard__wish{right:0;top:1px}
  .product-cards-shadow .pcard__wish svg{width:19px;height:19px}
  .product-cards-shadow .pcard__media{margin:34px 0 12px;border-radius:5px}
  .product-cards-shadow .pcard__brand{font-size:9px;margin-bottom:4px}
  .product-cards-shadow .pcard__title{font-size:12px;line-height:1.45;min-height:53px;margin-bottom:7px;-webkit-line-clamp:3}
  .product-cards-shadow .pcard__color{font-size:10px;gap:5px;min-height:16px}
  .product-cards-shadow .pcard__color i{width:8px;height:8px}
  .product-cards-shadow .pcard__rating{margin-bottom:6px}
  .product-cards-shadow .pcard__rating a{font-size:10px;min-height:26px}
  .product-cards-shadow .pcard__stock{font-size:10px;gap:4px;line-height:1.45;margin-bottom:10px}
  .product-cards-shadow .pcard__stock svg{width:12px;height:14px}
  .product-cards-shadow .pcard__price{font-size:22px}
  .product-cards-shadow .pcard__price small{font-size:10px}
  .product-cards-shadow .pcard__pack-price{font-size:11px}
  .product-cards-shadow .pcard__pack-price small{font-size:10px}
  .product-cards-shadow .pcard__cart{font-size:11px;gap:5px;min-height:44px}
  .product-cards-shadow .pcard__cart svg{width:16px;height:16px}
  .product-cards-shadow .ypay-badges--cashback-float{top:51px;right:13px}
  .product-cards-shadow .pcard .bo-qty__unit{font-size:9px}
  .product-cards-shadow .pcard .bo-qty__input{font-size:13px;min-width:1.5ch;width:3.2ch}
}

/* Keep the selected soft shadow, including hover: no outline around the card. */
.product-cards-shadow .pcard,.product-cards-shadow .pcard:hover{border-color:transparent;background:#fff;box-shadow:var(--pd-shadow)}
.product-cards-shadow .pcard__media{background:#f4f4f0}
.product-cards-shadow .pcard__rating{flex-wrap:wrap;letter-spacing:0;gap:4px 8px}
.product-cards-shadow .pcard__rating>span{letter-spacing:1px}
.product-cards-shadow .pcard__brand,.product-cards-shadow .pcard__variants,.product-cards-shadow .pcard__bevel{max-width:100%;overflow-wrap:anywhere}
.product-cards-shadow .pcard__delivery{color:#1d4f91}
.product-cards-shadow .pcard__price-row>div{min-width:0;max-width:100%}
.product-cards-shadow .pcard__price{overflow-wrap:anywhere}
.product-cards-shadow .pcard .ypay-badges:empty{display:none}

/* Homepage retains four cards, with the selected two-column mobile layout. */
.product-cards-shadow .modern-home__products{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media(max-width:900px){.product-cards-shadow .modern-home__products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.product-cards-shadow .modern-home__products,.product-cards-shadow .cat-grid{gap:10px}}

/* Related rails keep native horizontal scrolling, with room for the shadow. */
.product-cards-shadow .product-rail{padding:16px 14px 24px;margin:0 -14px;scroll-padding-inline:14px}
.product-cards-shadow .product-rail .pcard{min-width:0}

/* Catalog list mode uses the same skin and data flow, with the photo on the left. */
.product-cards-shadow .cat-grid.is-list{grid-template-columns:minmax(0,1fr)}
.product-cards-shadow .cat-grid.is-list .pcard{display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:310px;height:auto;padding:20px 20px 20px min(244px,calc(32% + 12px));grid-template:none}
.product-cards-shadow .cat-grid.is-list .pcard__badge{position:absolute;left:16px;top:16px}
.product-cards-shadow .cat-grid.is-list .pcard__wish{right:6px;top:5px}
.product-cards-shadow .cat-grid.is-list .pcard__media{position:absolute;left:16px;top:50%;width:calc(32% - 28px);max-width:200px;height:auto;aspect-ratio:1;margin:0;transform:translateY(-50%);grid-area:auto}
.product-cards-shadow .cat-grid.is-list .pcard__brand{margin-top:8px;padding-right:30px}
.product-cards-shadow .cat-grid.is-list .pcard__title{min-height:0;font-size:15px}
.product-cards-shadow .cat-grid.is-list .pcard__actions{grid-area:auto;align-self:stretch;max-width:360px}
.product-cards-shadow .cat-grid.is-list .ypay-badges--cashback-float{top:53px;left:18px!important;right:auto;transform:none}
@media(max-width:600px){
  .product-cards-shadow .cat-grid.is-list .pcard{padding:16px 14px 16px calc(32% + 12px);min-height:310px}
  .product-cards-shadow .cat-grid.is-list .pcard__badge{left:10px;top:12px}
  .product-cards-shadow .cat-grid.is-list .pcard__media{left:10px;width:calc(32% - 16px)}
  .product-cards-shadow .cat-grid.is-list .pcard__title{font-size:13px}
  .product-cards-shadow .cat-grid.is-list .ypay-badges--cashback-float{left:12px!important;top:47px}
}
@media(max-width:380px){
  .product-cards-shadow :is(.modern-home__products,.cat-grid:not(.is-list)) .bo-qty{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:32px 44px}
  .product-cards-shadow :is(.modern-home__products,.cat-grid:not(.is-list)) .bo-qty__field{grid-area:1/1/2/-1;gap:4px;padding:0 8px;border-bottom:1px solid #e3e6e7}
  .product-cards-shadow :is(.modern-home__products,.cat-grid:not(.is-list)) .bo-qty__input{width:6ch;max-width:75%;min-width:0;font-size:13px}
  .product-cards-shadow :is(.modern-home__products,.cat-grid:not(.is-list)) .bo-qty__btn:first-child{grid-area:2/1/3/2;border-right:1px solid #e3e6e7}
  .product-cards-shadow :is(.modern-home__products,.cat-grid:not(.is-list)) .bo-qty__btn:last-child{grid-area:2/2/3/3}
}

/* Main PDP purchase panel: same surface, no rearrangement of its features. */
.product-cards-shadow .product-summary{border-color:transparent;box-shadow:var(--pd-shadow);background:#fff;border-radius:12px}
.product-cards-shadow .product-summary__cart{border-radius:7px;font-weight:700}
.product-cards-shadow .product-summary__tools button{min-height:44px}
.product-cards-shadow .product-summary__lead{min-height:44px}
.product-cards-shadow .product-summary__price{font-weight:700}
.product-cards-shadow .product-summary__price span,.product-cards-shadow .product-summary__pack-price{font-weight:400}
.product-cards-shadow .product-summary__stock b{display:inline;margin:0;color:inherit;font-size:inherit;line-height:inherit}
.product-cards-shadow .product-page .product-set__box{border-color:transparent;border-radius:12px;box-shadow:var(--pd-shadow)}
.product-cards-shadow .product-page .product-set__cart{border-radius:7px;background:var(--pd-ink);min-height:44px}
.product-cards-shadow .product-page .product-set__cart:hover{background:#111719}
.product-cards-shadow .product-summary a:focus-visible,.product-cards-shadow .product-summary button:focus-visible,.product-cards-shadow .product-summary input:focus-visible{outline:3px solid #176a99!important;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.product-cards-shadow .pcard{transition:none}}
