/* Shop screens keep the existing Prata/Onest brand and make room for app chrome. */
body[data-shop-page] .header { position: sticky !important; top: 0; background: #171410 !important; }
.shop-intro { display: grid; align-items: center; min-height: calc(100svh - var(--pm-shop-header, 76px) - var(--pm-shop-dock, 0px)); padding: clamp(24px,4vh,50px) 0; color: #30291f; background: #f6f1e9; }
.shop-intro__grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(30px,6vw,90px); }
.shop-intro__copy { max-width: 580px; }
.shop-intro__label { display: block; color: #8a5c26; font-size: 14px; margin-bottom: 18px; }
.shop-intro h1 { margin: 0 0 22px; font: 400 clamp(36px,4.2vw,64px)/1.15 Prata,Georgia,serif; text-wrap: balance; }
.shop-intro__copy > p { max-width: 47ch; margin: 0 0 28px; color: #675d51; font-size: 17px; line-height: 1.65; }
.shop-intro__copy > small { display: block; margin-top: 18px; color: #786f63; font-size: 12px; }
.shop-intro__photo { position: relative; margin: 0; width: 100%; }
.shop-intro__photo img { display: block; width: 100%; aspect-ratio: 1.12; max-height: min(60svh,550px); border-radius: 22px; object-fit: cover; }
.shop-intro__photo figcaption { position: absolute; right: 14px; bottom: 14px; padding: 9px 13px; border-radius: 8px; background: #fffaf5ed; color: #483a29; font-size: 12px; }
body[data-shop-page=sets] [data-product-grid] { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
body[data-shop-page=sets] [data-product-grid] > .product-card { display: flex; flex-direction: column; min-width: 0; background: #fffaf5; }
body[data-shop-page=sets] [data-product-grid] .product-card__image { height: auto; aspect-ratio: 1.5; flex-shrink: 0; }
body[data-shop-page=sets] [data-product-grid] .product-card__image img { width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; }
body[data-shop-page=sets] [data-product-grid] .product-card__body { padding: 20px; }
body[data-shop-page=sets] [data-product-grid] h3 { font-size: clamp(22px,1.6vw,27px); line-height: 1.25; }
body[data-shop-page=sets] [data-product-grid] .product-card__desc { display: block !important; overflow: visible; -webkit-line-clamp: unset; max-height: none; margin: 14px 0; font-size: 15px; line-height: 1.6; }
body[data-shop-page=sets] .product-card__footer { margin-top: auto; padding-top: 16px; }
@media(min-width:1600px){body[data-shop-page=sets] [data-product-grid]{grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
@media(min-width:601px) and (max-width:980px){body[data-shop-page=sets] [data-product-grid]{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
.pm-card-quantity { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e1d8cc; }
.pm-card-quantity[hidden],.pm-card-edit[hidden],.pm-card-other[hidden] { display: none; }
.pm-card-quantity__label { font-size: 12px; line-height: 1.4; color: #6b5c4d; }
.pm-card-stepper { display: flex; align-items: center; border: 1px solid #d7c7af; border-radius: 10px; overflow: hidden; background: #f5ecdf; }
.pm-card-stepper button { width: 44px; height: 44px; border: 0; padding: 0; background: transparent; color: #772c35; font: 500 24px/1 Onest,Arial,sans-serif; cursor: pointer; }
.pm-card-stepper button:disabled { opacity: .4; cursor: default; }
.pm-card-stepper output { min-width: 32px; text-align: center; font-size: 16px; font-weight: 700; }
.pm-card-edit,.pm-card-other { grid-column: 1/-1; justify-self: start; padding: 4px 0; color: #772c35; background: transparent; border: 0; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.product-card [data-add].has-card-quantity { background: transparent; color: #772c35; border: 1px solid #c9a9a1; }
.pm-nav-art { display: block; width: 32px; height: 32px; flex: 0 0 32px; background: url('/assets/images/app-refine-20261106/navigation.webp') no-repeat; background-size: 200% 200%; }
.pm-nav-art--home { background-position: 0 0; }
.pm-nav-art--sets { background-position: 0 100%; }
.pm-nav-art--menu,.pm-nav-art--cart { background-image: url('/assets/images/app-refine-20261106/telegram-navigation.webp'); }
.pm-nav-art--menu { background-position: 0 0; }
.pm-nav-art--cart { background-position: 0 100%; }
html.pm-product-locked { overflow: hidden; overscroll-behavior: none; }
#product-modal { z-index: 100; }
#product-modal .modal__card,#product-modal .salad-modal-layout { overscroll-behavior: contain; }
#product-modal.is-set-editor { padding: 12px; }
#product-modal.is-set-editor .modal__card { display: flex; flex-direction: column; width: min(820px,100%); max-height: calc(100dvh - 24px); overflow: hidden; border-radius: 16px; background: #fffaf5; }
#product-modal.is-set-editor .salad-modal-toolbar { position: relative; flex: 0 0 52px; min-height: 52px; background: #fffaf5; border-bottom: 1px solid #e3d9ca; }
.pm-set-toolbar-title { align-self: center; margin-left: 20px; font: 600 14px/1.4 Onest,Arial,sans-serif; color: #6e5840; }
#product-modal:not(.is-set-editor) .pm-set-toolbar-title { display: none; }
#product-modal.is-set-editor .pm-set-price-note,#product-modal.is-set-editor [data-modal-photo-note] { display: none; }
#product-modal.is-set-editor .salad-modal-layout { display: block; min-height: 0; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#product-modal.is-set-editor [data-modal-image],#product-modal.is-set-editor [data-salad-details],#product-modal.is-set-editor .modal__body > .eyebrow { display: none !important; }
#product-modal.is-set-editor .modal__body { padding: 24px; }
#product-modal.is-set-editor [data-modal-title] { margin: 0 0 12px; font-size: clamp(25px,4vw,34px); line-height: 1.25; }
#product-modal.is-set-editor [data-modal-description] { margin: 0 0 12px; line-height: 1.6; font-size: 15px; }
#product-modal.is-set-editor [data-modal-weight] { color: #786b59; font-size: 13px; }
.pm-set-progress { margin: 20px 0 14px; font-size: 13px; color: #772c35; }
.pm-set-choice { margin: 0 0 18px; padding: 0; }
.pm-set-choice > h3 { margin: 0 0 9px; font: 600 16px/1.4 Onest,Arial,sans-serif; }
.pm-set-pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 9px 12px; border: 1px solid #d9cbb8; border-radius: 12px; background: #fff; color: #30291f; text-align: left; font: 400 15px/1.4 Onest,Arial,sans-serif; cursor: pointer; }
.pm-set-pick > span:nth-last-child(2) { flex: 1; min-width: 0; }
#product-modal .pm-set-pick img,#product-modal .pm-set-options img { flex: 0 0 60px; width: 60px; height: 60px; min-height: 0; border-radius: 8px; object-fit: cover; }
.pm-set-pick strong,.pm-set-options strong { display: block; font-size: 14px; font-weight: 600; }
.pm-set-pick small,.pm-set-options small { display: block; color: #81715e; font-size: 12px; margin-top: 4px; }
.pm-set-empty-icon { flex: 0 0 52px; height: 52px; display: grid; place-items: center; background: #f5ecdf; border-radius: 9px; color: #a57941; font-size: 24px; }
.pm-set-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0 2px; }
.pm-set-options[hidden] { display: none; }
.pm-set-options > button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; text-align: left; border: 1px solid #e0d4c3; border-radius: 10px; background: #fff; color: #30291f; cursor: pointer; }
.pm-set-options > button > span:nth-child(2) { flex: 1; }
.pm-set-options > button[aria-checked=true] { border-color: #772c35; background: #f8efe7; }
.pm-set-option-check { color: #772c35; opacity: 0; }
[aria-checked=true] > .pm-set-option-check { opacity: 1; }
.pm-set-meat { display: grid; gap: 8px; margin: -6px 0 20px 14px; padding-left: 14px; border-left: 2px solid #d7b77f; font-size: 14px; }
.pm-set-meat[hidden] { display: none !important; }
.pm-set-meat select { min-height: 46px; width: 100%; padding: 10px; border: 1px solid #d9cbb8; border-radius: 9px; background: white; color: #30291f; font: inherit; }
.pm-set-editor-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px max(14px,env(safe-area-inset-bottom)); background: #fffaf5; border-top: 1px solid #dfd2bf; }
.pm-set-editor-footer .summary-total { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; border: 0; white-space: nowrap; }
.pm-set-editor-footer small { font-size: 11px; font-weight: 400; color: #786b59; }
.pm-set-editor-footer [data-modal-price] { font-size: 23px; font-weight: 700; }
.pm-set-editor-footer [data-modal-add] { min-height: 48px; padding: 12px 20px; }
.pm-set-manager-note { font-size: 12px; color: #786b59; line-height: 1.6; margin: 18px 0 0; }
.pm-set-choice :focus-visible,.pm-card-quantity :focus-visible { outline: 2px solid #772c35; outline-offset: 2px; }
@media(max-width:980px){
  .shop-intro__grid { gap: 24px; }
  .shop-intro h1 { font-size: 40px; }
  .shop-intro__copy > p { font-size: 15px; }
}
@media(max-width:600px){
  body[data-shop-page=sets] [data-product-grid] { grid-template-columns: 1fr !important; }
  .shop-intro { padding: 22px 0; }
  .shop-intro__grid { grid-template-columns: 1fr; gap: 20px; }
  .shop-intro__copy { text-align: left; }
  .shop-intro__label { margin-bottom: 10px; font-size: 12px; }
  .shop-intro h1 { font-size: clamp(29px,8.8vw,39px); margin-bottom: 14px; }
  .shop-intro__copy > p { margin-bottom: 18px; line-height: 1.55; }
  .shop-intro__copy > small { font-size: 11px; margin-top: 12px; }
  .shop-intro__photo img { max-height: min(30svh,240px); aspect-ratio: 1.6; border-radius: 14px; }
  .shop-intro__photo figcaption { right: 10px; bottom: 10px; font-size: 10px; }
  body[data-shop-page=sets] [data-product-grid] > .product-card { display: block; }
  body[data-shop-page=sets] [data-product-grid] .product-card__image { height: auto; aspect-ratio: 1.5; }
  body[data-shop-page=sets] [data-product-grid] .product-card__image img { min-height: 0; height: 100%; aspect-ratio: auto; max-height: none; }
  body[data-shop-page=sets] [data-product-grid] .product-card__body { padding: 20px; }
  body[data-shop-page=sets] [data-product-grid] h3 { min-height: 0; font-size: 25px; }
  body[data-shop-page=sets] [data-product-grid] .product-card__footer { display: flex; gap: 12px; }
  body[data-shop-page=sets] [data-product-grid] .product-card__footer [data-add] { width: auto; flex: 1; }
  .pm-set-options { grid-template-columns: 1fr; }
  #product-modal.is-set-editor { padding: 8px; }
  #product-modal.is-set-editor .modal__card { max-height: calc(100dvh - 16px); border-radius: 12px; }
  #product-modal.is-set-editor .modal__body { padding: 18px 16px; }
  .pm-set-editor-footer { padding: 12px 16px max(12px,env(safe-area-inset-bottom)); gap: 10px; }
  .pm-set-editor-footer [data-modal-add] { font-size: 12px; padding: 10px 12px; }
  .pm-set-editor-footer [data-modal-price] { font-size: 20px; }
  .pm-card-stepper button { width: 46px; }
}
@media(max-height:650px) and (min-width:601px){
  .shop-intro { padding: 20px 0; }
  .shop-intro h1 { font-size: 34px; }
  .shop-intro__photo img { max-height: 55svh; }
}
@media(max-height:650px) and (max-width:600px){
  .shop-intro__grid { grid-template-columns: 1.3fr .7fr; gap: 14px; }
  .shop-intro h1 { font-size: 27px; }
  .shop-intro__photo img { aspect-ratio: .8; max-height: 42svh; }
  .shop-intro__photo figcaption { display: none; }
  .shop-intro__copy > p { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce){.pm-set-options,.pm-card-quantity { animation: none !important; transition: none !important; }}
@media(max-width:980px){.header a[href$="cart.html"]{display:none!important;}}
.pm-card-quantity__label { display: none; }
.pm-card-quantity { grid-template-columns: auto 1fr; }
@view-transition { navigation: auto; }
@media(prefers-reduced-motion:no-preference){
  .header { view-transition-name: pirog-header; }
  .pm-app-dock { view-transition-name: pirog-navigation; }
  ::view-transition-old(root) { animation: pirog-page-out 80ms ease-out both; }
  ::view-transition-new(root) { animation: pirog-page-in 100ms ease-out both; }
  ::view-transition-group(pirog-header),::view-transition-group(pirog-navigation){animation-duration:0s;}
}
@keyframes pirog-page-out { to { opacity: 0; } }
@keyframes pirog-page-in { from { opacity: 0; } }
body[data-catalog-pending] .product-card__price { visibility: hidden; }
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important;}}
