/* Каталог и страница товара: слои остаются привязаны к странице и прокручиваются вместе с ней. */
.catalog-page { position: relative; isolation: isolate; min-height: 70vh; }
.catalog-content { position: relative; z-index: 1; }
.catalog-glow { position: absolute; z-index: 0; pointer-events: none; border-radius: 48% 52% 41% 59% / 56% 42% 58% 44%; filter: blur(38px); opacity: .82; }
.catalog-glow--one { width: min(58vw, 760px); height: 340px; top: 80px; right: -16%; transform: rotate(-26deg); background: radial-gradient(ellipse at 42% 46%, rgba(248,118,190,.38), rgba(255,161,208,.25) 37%, transparent 74%); }
.catalog-glow--two { width: min(44vw, 590px); height: 530px; top: 43%; left: -13%; transform: rotate(31deg); background: radial-gradient(ellipse at 53% 42%, rgba(233,47,145,.28), rgba(255,156,205,.2) 33%, transparent 73%); }
.catalog-glow--three { width: min(46vw, 610px); height: 310px; bottom: 0; right: 3%; transform: rotate(17deg); background: radial-gradient(ellipse at 44% 53%, rgba(250,92,177,.31), rgba(255,179,219,.18) 38%, transparent 76%); }

.catalog-page .toolbar { gap: 10px; margin: var(--page-section-gap) 0 20px; }
.catalog-page .chip { border: 1px solid rgba(232,18,126,.16); background: rgba(255,255,255,.54); -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); border-radius: 999px; padding: 11px 22px; box-shadow: 0 5px 18px rgba(171,41,111,.09), inset 0 1px rgba(255,255,255,.9); transition: transform .3s cubic-bezier(.22,1,.36,1), background .3s ease, box-shadow .3s ease, color .3s ease; }
.catalog-page .chip:hover, .catalog-page .chip:focus-visible { transform: translateY(-2px); background: rgba(255,232,245,.84); box-shadow: 0 8px 23px rgba(232,18,126,.18); }
.catalog-page .chip.is-active { background: #e8127e; color: #fff; box-shadow: 0 7px 19px rgba(232,18,126,.27); }

.catalog-filterbar { position: relative; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: clamp(26px,3vw,42px); padding: 13px 16px; border-radius: 12px; background: linear-gradient(90deg,rgba(243,239,244,.05),rgba(240,236,242,.58) 7%,rgba(240,236,242,.63) 50%,rgba(240,236,242,.58) 93%,rgba(243,239,244,.05)); -webkit-backdrop-filter: blur(28px) saturate(.9); backdrop-filter: blur(28px) saturate(.9); box-shadow: 0 10px 32px rgba(90,57,77,.09), inset 0 1px rgba(255,255,255,.68); }
.catalog-filterbar::before, .catalog-filterbar::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg,transparent,rgba(232,18,126,.3) 7%,rgba(232,18,126,.3) 93%,transparent); }
.catalog-filterbar::before { top: 0; }
.catalog-filterbar::after { bottom: 0; }
.catalog-filterbar__label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: #c50b72; font-weight: 800; font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; }
.catalog-filterbar__label svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.catalog-filterbar__sort { margin-left: auto; }
.catalog-filter { position: relative; }
.catalog-filter__trigger, .catalog-filterbar__reset { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: #3e3039; padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 700; transition: color .25s ease, background .25s ease, transform .3s ease; }
.catalog-filter__trigger:hover, .catalog-filter__trigger:focus-visible, .catalog-filter.is-open .catalog-filter__trigger, .catalog-filterbar__reset:hover { color: #d20d79; background: rgba(255,210,235,.56); }
.catalog-filter__trigger:active, .catalog-filterbar__reset:active { transform: scale(.96); }
.catalog-filter__trigger.is-selected, .catalog-filterbar__reset { color: #d20d79; }
.catalog-filterbar__reset { font-size: 11px; }
.catalog-filter__chevron { width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s ease; }
.catalog-filter.is-open .catalog-filter__chevron { transform: rotate(225deg) translate(-2px,-1px); }
.catalog-filter__menu { position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; width: max-content; min-width: 190px; max-width: min(310px,calc(100vw - 34px)); padding: 8px; box-sizing: border-box; border: 1px solid rgba(232,18,126,.23); border-radius: 16px; background: #fffafd; box-shadow: 0 18px 42px rgba(87,25,60,.2); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-7px) scale(.97); transform-origin: top left; transition: opacity .25s ease, transform .3s cubic-bezier(.22,1,.36,1), visibility .25s; }
.catalog-filterbar__sort .catalog-filter__menu { left: auto; right: 0; transform-origin: top right; }
.catalog-filter.is-open { z-index: 10; }
.catalog-filter.is-open .catalog-filter__menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.catalog-filter__option, .catalog-filter__clear { display: block; width: 100%; border: 0; border-radius: 10px; padding: 10px 12px; background: transparent; color: #30212b; text-align: left; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .22s ease, color .22s ease, transform .22s ease; }
.catalog-filter__option:hover, .catalog-filter__option:focus-visible, .catalog-filter__clear:hover { background: #fff0f7; color: #ce0c76; transform: translateX(2px); }
.catalog-filter__option.is-active { background: #ffe5f2; color: #c30b6d; }
.catalog-filter__menu--price { width: 240px; }
.catalog-filter__menu--price form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 7px; }
.catalog-filter__menu--price label { font-size: 11px; font-weight: 700; color: #765466; }
.catalog-filter__menu--price input { width: 100%; box-sizing: border-box; margin-top: 5px; border: 1px solid #e7bfd4; border-radius: 9px; background: rgba(255,255,255,.85); padding: 9px; outline: none; color: #191519; }
.catalog-filter__menu--price input:focus { border-color: #e8127e; box-shadow: 0 0 0 3px rgba(232,18,126,.12); }
.catalog-filter__apply { grid-column: 1 / -1; border: 0; border-radius: 9px; padding: 10px; background: #e8127e; color: #fff; cursor: pointer; font-weight: 800; transition: background .25s ease, transform .25s ease; }
.catalog-filter__apply:hover { background: #c40c69; transform: translateY(-2px); }

.catalog-page .products-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(16px,2vw,32px); }
.catalog-page .product-card { position: relative; min-width: 0; padding: 0; gap: 0; border: 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 11px 34px rgba(91,34,66,.1), 0 0 0 1px rgba(255,208,231,.18); transition: transform .42s cubic-bezier(.22,1,.36,1), box-shadow .42s ease, filter .42s ease, opacity .34s ease; }
.catalog-page .product-card:hover { transform: translateY(-3px) scale(1.006); box-shadow: 0 15px 38px rgba(119,30,77,.13), 0 0 22px rgba(245,64,160,.2); filter: saturate(1.025); }
.catalog-page .product-card:focus-within:not(:hover) { transform: none; box-shadow: 0 11px 34px rgba(91,34,66,.1), 0 0 0 1px rgba(255,208,231,.18); filter: none; }
.catalog-page .product-card.is-removing { opacity: 0; transform: scale(.95); }
.product-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.product-card__link:focus-visible { outline: 2px solid #e8127e; outline-offset: -3px; }
.product-card__media { position: relative; }
.product-card__body { display: flex; flex: 1; flex-direction: column; gap: 16px; padding: 17px 20px 20px; }
.catalog-page .product-card .fav-button, .catalog-page .product-card .product-button { z-index: 3; }
.catalog-page .product-card .fav-button { position: absolute; }
.catalog-page .product-card .product-button { position: relative; min-width: 112px; }
.catalog-page .product-photo { display: grid; place-items: center; aspect-ratio: 1.06; border: 0; border-radius: 0; background: radial-gradient(ellipse at 40% 26%,#fff 0,#fff3fa 39%,#f9e2ee 100%); }
.product-photo__empty { color: #bc91a8; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; text-align: center; padding: 20px; }
.catalog-page .product-badge { left: 16px; top: 16px; }
.catalog-page .fav-button { right: 14px; top: 14px; width: 42px; height: 42px; background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 12px rgba(72,24,49,.12); transition: transform .28s cubic-bezier(.22,1,.36,1), color .28s ease, background .28s ease, box-shadow .28s ease; }
.catalog-page .fav-button svg { width: 21px; height: 21px; fill: transparent; transition: fill .4s ease, stroke .4s ease, transform .35s ease; }
.catalog-page .fav-button:hover { transform: scale(1.11); color: #e8127e; box-shadow: 0 6px 18px rgba(232,18,126,.23); }
.catalog-page .fav-button:active { transform: scale(.9); }
.catalog-page .fav-button.is-active { color: #e8127e; background: rgba(255,240,248,.94); }
.catalog-page .fav-button.is-active svg { fill: #e8127e; }
.catalog-page .fav-button.is-pop svg { animation: favorite-pop .46s cubic-bezier(.2,1.4,.4,1); }
@keyframes favorite-pop { 0% { transform: scale(.68); } 55% { transform: scale(1.32); } 100% { transform: scale(1); } }
.catalog-page .product-info { padding: 0; gap: 5px; }
.catalog-page .product-name { font-size: clamp(15px,1vw,18px); line-height: 1.35; }
.catalog-page .product-meta { color: #8d697c; }
.catalog-page .product-buy { padding: 0; gap: 8px; }
.catalog-page .product-price { white-space: nowrap; }
.catalog-page .product-button, .cart-added-dialog .product-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: #e8127e; color: #fff; padding: 11px 16px; text-decoration: none; text-align: center; box-shadow: 0 7px 18px rgba(232,18,126,.2); transition: background .3s ease, transform .34s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.catalog-page .product-button:hover, .cart-added-dialog .product-button:hover { background: #c40c69; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232,18,126,.32); }
.catalog-page .product-button:active, .cart-added-dialog .product-button:active { transform: scale(.97); }
.catalog-page .product-button.is-added { background: #e8127e; transform: scale(.96); }

.product-back { display: inline-flex; margin-bottom: clamp(22px,3vw,42px); color: #aa2d71; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .5px; transition: transform .3s ease, color .3s ease; }
.product-back:hover { color: #e8127e; transform: translateX(-4px); }
.product-detail { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); align-items: start; gap: clamp(30px,5vw,90px); }
.product-gallery__stage { position: relative; aspect-ratio: 1.05; display: grid; place-items: center; overflow: hidden; border-radius: 22px; background: radial-gradient(ellipse at 40% 26%,#fff 0,#fff3fa 39%,#f9e2ee 100%); box-shadow: 0 14px 40px rgba(107,30,71,.11); }
.product-gallery__stage > img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__stage .product-photo__empty { font-size: 15px; }
.product-gallery__arrow { position: absolute; z-index: 2; top: 50%; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #d60e7b; font-size: 32px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: background .25s ease, transform .3s ease; }
.product-gallery__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.product-gallery__arrow--prev { left: 14px; }
.product-gallery__arrow--next { right: 14px; }
.product-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product-gallery__thumb { width: 76px; height: 76px; border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; background: #f9e8f1; cursor: pointer; transition: border-color .25s ease, transform .25s ease; }
.product-gallery__thumb:hover { transform: translateY(-2px); }
.product-gallery__thumb.is-active { border-color: #e8127e; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__info { padding: clamp(10px,1.5vw,24px) 0; }
.product-detail__eyebrow { display: inline-block; margin-bottom: 14px; color: #d20d79; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.product-detail__lead { max-width: 480px; margin: 18px 0 34px; color: #57414e; font-size: clamp(16px,1.3vw,20px); font-weight: 600; line-height: 1.55; }
.product-detail__description, .product-detail__specs { border-top: 1px solid rgba(232,18,126,.23); padding: 22px 0; }
.product-detail__description h2, .product-detail__specs h2 { margin: 0 0 12px; font-family: Oswald,Arial,sans-serif; font-size: 22px; font-weight: 600; text-transform: uppercase; }
.product-detail__description p, .product-detail__specs p { margin: 0; color: #695963; font-size: 14px; line-height: 1.6; }
.product-detail__specs dl { margin: 0 0 15px; }
.product-detail__specs dl div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; font-size: 14px; }
.product-detail__specs dt { color: #796773; }
.product-detail__specs dd { margin: 0; font-weight: 750; text-align: right; }
.product-detail__specs p { font-size: 12px; color: #9e778c; }
.product-detail__purchase { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid rgba(232,18,126,.23); padding-top: 26px; }
.product-detail__purchase strong { margin-right: auto; font-size: clamp(26px,2.2vw,36px); }
.product-detail__purchase .product-button { min-width: 160px; }
.product-detail__purchase .fav-button { position: static; flex: none; }

.cart-added-dialog { width: min(440px,calc(100vw - 32px)); box-sizing: border-box; border: 1px solid rgba(255,174,217,.7); border-radius: 22px; padding: 36px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); box-shadow: 0 28px 80px rgba(73,21,51,.22), 0 0 35px rgba(232,18,126,.12); color: #191519; text-align: center; }
.cart-added-dialog::backdrop { background: rgba(35,9,26,.33); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.cart-added-dialog__close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #a27891; font-size: 30px; cursor: pointer; transition: color .2s ease, transform .2s ease; }
.cart-added-dialog__close:hover { color: #e8127e; transform: rotate(90deg); }
.cart-added-dialog__mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%; background: #ffe3f1; color: #e8127e; font-size: 25px; font-weight: 800; }
.cart-added-dialog h2 { margin: 0 0 8px; font-family: Oswald,Arial,sans-serif; font-size: 29px; line-height: 1.2; text-transform: uppercase; }
.cart-added-dialog p { margin: 0 0 26px; color: #785267; font-weight: 700; }
.cart-added-dialog__actions { display: flex; flex-direction: column; gap: 10px; }
.cart-added-dialog__actions .product-button { min-height: 44px; box-sizing: border-box; }
.catalog-secondary-button { min-height: 44px; border: 1px solid rgba(232,18,126,.27); border-radius: 10px; background: rgba(255,238,247,.65); color: #c30b6d; cursor: pointer; font-weight: 800; transition: background .25s ease, transform .25s ease; }
.catalog-secondary-button:hover { background: #ffe2f0; transform: translateY(-2px); }

@media (max-width: 1100px) { .catalog-page .products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 720px) {
  .catalog-page .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .catalog-glow--one { width: 90vw; right: -45%; }
  .catalog-glow--two { width: 75vw; left: -36%; }
  .catalog-glow--three { width: 78vw; right: -30%; }
  .catalog-page .toolbar { gap: 8px; }
  .catalog-page .chip { padding: 10px 15px; font-size: 11px; }
  .catalog-filterbar { gap: 3px 5px; padding: 9px 10px; }
  .catalog-filterbar__label { width: 100%; padding: 6px 10px; }
  .catalog-filterbar__sort { margin-left: 0; }
  .catalog-filter__trigger { padding: 8px 10px; font-size: 12px; }
  .catalog-page .product-card { border-radius: 14px; padding: 0; gap: 0; }
  .product-card__body { padding: 12px; gap: 12px; }
  .catalog-page .product-buy { align-items: flex-start; }
  .catalog-page .product-name { font-size: 13px; }
  .catalog-page .product-price { font-size: 16px; }
  .catalog-page .product-button { width: 100%; }
  .catalog-page .product-badge { top: 9px; left: 9px; }
  .catalog-page .fav-button { top: 8px; right: 8px; width: 37px; height: 37px; }
  .product-photo__empty { font-size: 10px; letter-spacing: 1px; padding: 8px; }
  .product-detail { grid-template-columns: 1fr; gap: 22px; }
  .product-detail__info { padding-top: 0; }
}
@media (max-width: 420px) {
  .catalog-filterbar__sort { margin-left: 0; }
  .catalog-page .product-buy { flex-direction: column; width: 100%; }
  .catalog-page .product-card .product-button { min-width: 0; }
  .catalog-page .product-meta { font-size: 9px; letter-spacing: .5px; }
  .cart-added-dialog { padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-page .product-card, .catalog-page .fav-button, .catalog-page .chip, .catalog-filter__menu, .catalog-filter__trigger, .catalog-page .product-button, .cart-added-dialog .product-button { transition-duration: .01ms; }
  .catalog-page .fav-button.is-pop svg { animation: none; }
}
