.merch-page {position:relative;isolation:isolate}
.collection {width:min(calc(100% - var(--gutter) * 2),1360px);margin:auto}
.shop-hero,.discount {max-width:1120px;margin-inline:auto;position:relative}
.shop-hero {height:302px;padding-top:32px}
.shop-hero p,.eyebrow {font-size:17px;letter-spacing:.15em;text-transform:uppercase}
.shop-hero h1 {color:var(--accent);font-size:134px;line-height:.77;letter-spacing:-.012em;margin-top:19px}
.shop-hero h1 span {display:block}.shop-hero h1 span+span {padding-left:70px}
.discount {min-height:80px;padding:11px 24px;background:var(--raised);display:flex;align-items:center;gap:30px}
.discount b {font-size:53px;line-height:1;color:var(--accent)}
.discount span {font-size:27px;letter-spacing:.035em}
.merch-sculpture {position:absolute;width:min(40%,416px);right:4%;bottom:47%;pointer-events:none}
.merch-portrait {display:block;width:100%;height:auto}
.merch-chip {position:absolute;display:block;pointer-events:none}
.merch-chip img {width:100%;height:auto}
.chip-left {width:var(--rock-medium);right:98%;top:30%}
.chip-right {width:var(--rock-small);left:93%;top:13%}
.delivery-note {margin:24px 0 0;color:var(--subtle);font-size:16px;line-height:1.35;letter-spacing:.035em}
#cart-summary .delivery-note {margin:18px 0 14px}
.shop-atmosphere {position:relative;z-index:-1;height:0;pointer-events:none}
.shop-fog {position:absolute;inset:0 0 auto}
.product-list {display:flex;justify-content:center;flex-wrap:wrap;gap:112px 28px;padding:40px 0 96px}
.product-card {flex:0 0 calc((100% - 56px) / 3);min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center}
.product-image {width:100%;height:456px;display:flex;align-items:flex-end;justify-content:center;padding:0 4px}
.product-image img {width:auto;height:auto;max-width:100%;object-fit:contain;transition:transform .25s}
.product-image:hover img {transform:translateY(-3px)}
[data-product=tshirt] .product-image img {max-height:368px}
[data-product=bluza] .product-image {padding-bottom:18px}
[data-product=bluza] .product-image img {max-height:424px}
[data-product=czapka] .product-image {align-items:center}
[data-product=czapka] .product-image img {max-height:297px}
[data-product=bletki] .product-image,[data-product=wlepki] .product-image {align-items:center;height:290px}
[data-product=bletki] .product-image img {width:min(100%,356px)}
[data-product=wlepki] .product-image img {width:min(100%,387px)}
.product-copy {margin:4px 0 16px;max-width:32ch;color:var(--muted);font-size:18px;line-height:1.4}
.product-label {width:100%;font:inherit}
.product-heading {width:100%;display:grid;justify-items:center;gap:2px;padding:8px 0}
.product-title {font-size:46px;line-height:49px;letter-spacing:.008em}
.product-price,#modal-price {color:var(--accent);font-size:26px;line-height:29px;letter-spacing:.022em}
.product-card .add {margin-top:auto;width:min(100%,312px)}
.product-card .size-field {width:min(100%,312px);margin-bottom:9px;container-type:inline-size}
.add {min-height:44px;width:100%;padding:8px 12px;background:var(--accent);color:var(--dark-ink);font-size:19px;font-weight:500}
.add:hover:enabled {background:var(--hot)}
.add:disabled {background:var(--line);color:var(--muted)}
.size-buttons {display:flex;justify-content:center;gap:2px;flex-wrap:wrap}
.size-buttons button {
  display:grid;place-items:center;flex:none;width:44px;height:44px;
  border:1px solid var(--control);color:var(--muted);font-size:15px;line-height:1;white-space:nowrap;
}
.size-buttons button[aria-pressed=true],.size-buttons button:enabled:hover {color:var(--accent);border-color:var(--accent)}
@container (max-width:273.99px) {
  .product-card .size-buttons {display:grid;grid-template-columns:repeat(3,44px)}
}
.size-buttons button:disabled {opacity:.4}
#shop-status:not(:empty),#shop-retry {margin:20px auto;text-align:center}
#shop-policies {background:var(--foot);display:flex;justify-content:center;gap:20px;flex-wrap:wrap}
#shop-policies:not(:empty) {padding:0 22px 60px}
#cart-toggle {position:fixed;z-index:4;right:32px;bottom:32px;background:var(--ink);color:var(--dark-ink);border-radius:30px;height:50px;min-width:136px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:19px;box-shadow:0 3px 16px #0004}
#cart-toggle img {width:19px;height:20px}
#cart-count,.count {display:grid;place-items:center;border-radius:50%;min-width:20px;height:20px;padding-inline:3px;background:#ba3f29;color:white;font-size:15px}
dialog {color:var(--ink)}
dialog::backdrop {background:rgb(0 0 0 / 78%)}
#product-dialog {position:fixed;inset:0;border:0;padding:0;margin:auto;background:transparent;width:min(94vw,1460px);max-width:none;height:min(820px,calc(100dvh - clamp(24px,6dvh,64px)));max-height:100dvh;overflow:hidden}
#product-dialog::backdrop {background:rgba(6,6,6,.95)}
.modal-layout {height:100%;display:grid;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,840fr) minmax(330px,620fr);align-items:center}
.modal-gallery {height:100%;min-height:0;min-width:0;position:relative;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);place-items:center}
#gallery-main {touch-action:pan-y;width:88%;height:94%;min-width:0;min-height:0;object-fit:contain}
.modal-gallery button {position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;font:300 26px/1 var(--body);color:var(--muted)}
.modal-gallery button:hover {color:var(--accent)}
[data-gallery=previous] {left:6px}[data-gallery=next] {right:6px}
.modal-info {display:flex;flex-direction:column;position:relative;min-height:0;max-height:100%;background:var(--panel);padding-top:clamp(48px,7dvh,76px)}
.modal-info-content {min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--control) transparent;padding:0 clamp(26px,2.5vw,48px) clamp(24px,6dvh,68px)}
.modal-close {position:absolute;z-index:1;right:10px;top:4px;color:var(--ink)}
.eyebrow {display:block;font-size:16px;color:var(--muted);letter-spacing:.1em}
#modal-title {font-size:clamp(44px,4vw,72px);line-height:1;letter-spacing:-.015em;margin:8px 0 12px}
#modal-price {font-size:35px;line-height:1.1}
#product-dialog[data-product=bluza] #modal-price::after {content:"−10% z T-shirtem";font:500 18px var(--body);margin-left:16px;color:var(--muted)}
#modal-size-field {margin-top:30px}
#modal-size-field .size-buttons {justify-content:flex-start;gap:6px;margin:8px 0}
.modal-purchase {display:flex;gap:12px;margin-top:12px}
.stepper,.cart-line-controls {display:flex;align-items:center}
.stepper {border:1px solid var(--control);min-width:118px;justify-content:center}
.stepper button,.stepper input,.cart-line-controls input,.cart-line-controls button {min-width:32px;text-align:center;background:transparent;border:0;padding:0;font-size:18px}
.stepper input,.cart-line-controls input {width:32px;padding:0;appearance:textfield}
input::-webkit-inner-spin-button {appearance:none}
.stepper button {min-height:44px}.modal-purchase .add {min-height:52px}
#modal-description {border-top:1px solid var(--line);margin-top:26px;padding-top:24px;font-weight:400;font-size:22px;line-height:1.45;letter-spacing:.045em;color:var(--muted)}
#modal-description strong {display:block;margin-top:8px;font-weight:500;font-size:.9em}
#cart-dialog {position:fixed;inset:0 0 0 auto;width:min(100%,520px);max-width:100%;height:100dvh;max-height:none;margin:0;padding:0 32px 26px;background:var(--card);border:0;overflow:auto}
#cart-dialog[open] {display:flex;flex-direction:column}
.cart-header {display:flex;align-items:center;gap:12px;min-height:112px;margin-inline:-32px;padding:0 32px;border-bottom:1px solid var(--line);flex-shrink:0}
#cart-title {font-size:58px;letter-spacing:-.015em;line-height:1}.count {background:var(--line);color:var(--accent)}
#cart-close {margin-left:auto}
#cart-message {font-size:16px;color:var(--muted)}#cart-message[data-error=true]:not(:empty) {padding:10px 0}
#cart-items {margin:8px 0}
#cart-dialog[data-empty=true] #cart-items {flex:1;display:grid;place-items:center}
.cart-empty {text-align:center}.cart-empty:before {content:"";display:block;background:var(--muted);mask:url("grafiki/torba.svg") center / contain no-repeat;width:42px;height:50px;margin:0 auto 20px}
.cart-empty p {font-size:30px;margin-bottom:16px}
.cart-empty button {border:1px solid var(--control);min-height:48px;padding:0 34px;font-size:19px}
.cart-empty button:hover {border-color:var(--accent);color:var(--accent)}
.refresh {align-self:center;color:var(--muted);text-decoration:underline;margin-top:14px;font-size:16px}
#cart-dialog[data-empty=true] #cart-message:empty ~ .refresh {display:none}
.cart-line {display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--line);padding:18px 0}
.cart-line img {width:88px;height:100px;object-fit:contain}.cart-line-info {flex:1;min-width:0}
.cart-line h3 {font-family:var(--display);font-weight:100;font-size:30px;text-transform:uppercase}
.cart-line p {font-size:17px;color:var(--muted)}.cart-line .cart-line-price {color:var(--accent);font-size:21px}
.cart-line-controls {margin-top:5px}.cart-line-controls button {height:38px}.cart-line-controls .cart-remove {margin-left:auto;font-size:16px;color:var(--muted);text-decoration:underline}
#cart-summary {margin-top:auto;padding-top:22px}
#cart-summary label,#cart-preview-note {color:var(--muted);font-size:16px}
#cart-note {display:block;width:100%;margin:8px 0 16px;resize:vertical;border:1px solid var(--control);background:var(--panel);padding:8px}
#cart-subtotal-row,#cart-discounts li,.total {display:flex;justify-content:space-between;gap:10px}
#cart-discounts {color:var(--accent)}.total {margin:14px 0}.total strong {font-weight:500}
#cart-preview-note {margin:12px 0}
@media(min-width:651px) and (max-width:1000px) {
 .product-list {column-gap:16px}.product-card {flex-basis:calc((100% - 32px)/3)}
 .product-card {--photo-height:clamp(240px,32vw,400px)}
 .product-image {height:var(--photo-height)}
 [data-product=tshirt] .product-image img {max-height:calc(var(--photo-height)*.81)}
 [data-product=bluza] .product-image img,[data-product=czapka] .product-image img {max-height:100%}
 .shop-hero h1 {font-size:108px}.shop-hero {height:260px}
}
@media(max-width:650px) {
 .shop-hero {height:229px;text-align:center;padding-top:15px}
 .shop-hero p {font-size:14px}
 .shop-hero h1 {font-size:clamp(40px,13vw,56px);line-height:1.1;margin-top:6px}
 .shop-hero h1 span {display:inline-block}.shop-hero h1 span+span {padding:0}
 .discount {padding:22px 14px 11px 16px;gap:14px;min-height:73px}
 .discount b {font-size:41px}.discount span {font-size:19px}
 .merch-sculpture {width:202px;max-width:73%;left:53%;right:auto;bottom:70%;transform:translateX(-50%)}
 .chip-left {right:100%;top:34%}
 .chip-right {left:90%;top:16%}
 .product-list {display:grid;grid-template-columns:1fr;padding:29px 0 48px;gap:38px}
 .product-image {height:316px}
 [data-product=tshirt] .product-image img {max-height:252px}
 [data-product=bluza] .product-image {padding-bottom:12px}
 [data-product=bluza] .product-image img {max-height:300px}
 [data-product=czapka] .product-image {height:222px}
 [data-product=czapka] .product-image img {max-height:212px}
 [data-product=bletki] .product-image,[data-product=wlepki] .product-image {height:185px}
 [data-product=bletki] .product-image img {width:250px}
 [data-product=wlepki] .product-image img {width:280px}
 .product-title {font-size:40px;line-height:42px}.product-price {font-size:23px}
 #cart-toggle {bottom:max(20px,env(safe-area-inset-bottom));right:20px;height:48px;min-width:114px}
 #product-dialog {width:100%;height:100dvh}
 .modal-layout {display:flex;flex-direction:column;align-items:stretch;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .modal-gallery {height:auto;flex:1 1 0}
 .modal-info {position:static;max-height:64%;padding-top:0}
 .modal-info-content {padding:18px clamp(14px,5.4vw,23px) 22px}
 .modal-close {top:max(8px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
 #modal-title {font-size:46px}
 #modal-price {font-size:29px}
 #modal-size-field {margin-top:20px}
 #modal-size-field .size-buttons {gap:clamp(2px,1.2vw,6px)}
 .modal-purchase {gap:8px}.stepper {min-width:95px}
 .modal-purchase .add {min-height:46px}
 #modal-description {font-size:19px;padding-top:18px;margin-top:18px}
 #cart-dialog {padding:0 20px 24px}.cart-header {margin-inline:-20px;padding:0 20px;min-height:90px}
 #cart-title {font-size:48px}
}

@media(max-height:700px) {
 #modal-title {font-size:clamp(36px,4vw,52px);margin:4px 0 8px}
 #modal-size-field {margin-top:12px}
 #modal-description {margin-top:14px;padding-top:12px;font-size:18px}
 .modal-purchase {margin-top:8px}
}
#cart-dialog {scrollbar-width:thin;scrollbar-color:var(--control) transparent}
.modal-gallery button {font-size:0}
.modal-gallery button:before {content:"";display:block;width:9px;height:9px;border:solid currentColor;border-width:0 1px 1px 0;margin:auto;transform:rotate(135deg)}
.modal-gallery [data-gallery=next]:before {transform:rotate(-45deg)}
