/* Itemshop RawCraft — ciemny kamień, złote akcenty i własne barwy dodatków. */
.shop-page .shop-hero {
  --subpage-height: 300px;
  min-height: 300px;
  padding: 24px 0 20px;
}
.shop-hero::before { --panorama-opacity: .24; }
.shop-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 50px; }
.shop-hero-copy { padding: 14px 0; }
.shop-hero .breadcrumbs { margin-bottom: 22px; }
.shop-eyebrow { font-size: 9px; font-weight: 750; letter-spacing: 2px; color: #d5b555; }
.shop-hero h1 { font-size: clamp(34px, 3.7vw, 52px); letter-spacing: -1.4px; margin-top: 9px; }
.shop-hero p { color: #b0bac8; font-size: 13px; max-width: 470px; }
.shop-steps { display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: 24px 0 0; list-style: none; }
.shop-steps li { display: flex; align-items: center; gap: 7px; color: #a4adbb; font-size: 10px; }
.shop-steps span { width: 21px; height: 21px; display: grid; place-items: center; color: #dbc56f; background: #d7b43b0c; border: 1px solid #d7b43b29; border-radius: 5px; font-size: 9px; font-weight: 700; }
.shop-hero-art { height: 270px; position: relative; isolation: isolate; }
.shop-hero-art img { display: block; position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 25px #0008); }
.shop-art-halo { position: absolute; inset: 10% -10%; background: radial-gradient(ellipse, #e6aa1928, transparent 65%); z-index: -1; }
.shop-spark { position: absolute; width: 3px; height: 3px; top: 70%; left: 16%; background: #ffdd73; box-shadow: 0 0 10px #e6b52c; animation: shop-spark-rise 6s linear infinite; }
.shop-spark:nth-last-child(2) { left: 84%; top: 80%; animation-delay: -2s; }
.shop-spark:last-child { left: 63%; top: 42%; animation-delay: -4s; }
.shop-body { padding-top: 18px; }
.shop-page .shop-toolbar { padding: 10px; margin-bottom: 26px; border: 1px solid #ffffff0c; border-radius: 12px; background: #0c131bd9; gap: 16px; scroll-margin-top: 0; }
.shop-page .tabs { gap: 5px; flex-wrap: nowrap; }
.shop-page .tab { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 10px 15px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #a8b3c2; font-size: 11px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.shop-page .tab > .icon { width: 15px; height: 15px; opacity: .8; }
.tab-count { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; color: #8c98a8; background: #ffffff08; font-size: 8px; }
.shop-page .tab:hover { background: #ffffff06; color: #f1e6bf; }
.shop-page .tab[aria-pressed="true"] { background: #f3d348; color: #26200d; border-color: #f3d348; box-shadow: 0 2px 9px #0002; font-weight: 700; }
.shop-page .tab[aria-pressed="true"] .tab-count { color: #54420b; background: #35280012; }
.shop-page .shop-cart-button { min-height: 40px; padding: 9px 15px; gap: 9px; background: #151d26; border-color: #b59c4a40; font-size: 11px; }
.shop-page .shop-cart-button:hover { transform: none; background: #202923; border-color: #c9ab4b8c; }
.shop-page .cart-count { width: 20px; height: 20px; font-size: 9px; }
.shop-page .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.shop-page .product-card {
  --item: #edc74a;
  --item-soft: #e6b72c14;
  --item-edge: #caa33640;
  position: relative;
  padding: 0 24px 24px;
  border: 1px solid #35404d9c;
  border-radius: 14px;
  background: linear-gradient(155deg, #141e28ed, #0b121bee 76%);
  box-shadow: 0 8px 26px #0002;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.shop-page .product-card.purple { --item: #c6a0ef; --item-soft: #a76ce519; --item-edge: #b28bd94d; }
.shop-page .product-card.orange { --item: #edab69; --item-soft: #df8b3519; --item-edge: #d68c454d; }
.shop-page .product-card:hover { transform: translateY(-5px); border-color: var(--item-edge); box-shadow: 0 18px 38px #0005; }
.product-card-top { display: flex; align-items: center; justify-content: space-between; height: 54px; border-bottom: 1px solid #ffffff06; }
.product-category { font-size: 8px; letter-spacing: 1.8px; font-weight: 650; color: #9eaaba; }
.product-corner { color: var(--item); opacity: .5; }
.product-corner .icon { width: 14px; height: 14px; }
.product-visual { position: relative; height: 160px; display: grid; place-items: center; isolation: isolate; }
.product-aura { position: absolute; inset: -15px -24px -5px; z-index: -1; background: radial-gradient(ellipse, var(--item-soft), transparent 66%); transition: opacity .3s; }
.product-relic {
  width: 83px;
  height: 83px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--item);
  border: 1px solid var(--item-edge);
  border-radius: 10px;
  background: linear-gradient(145deg, #27333d, #141d27 65%);
  box-shadow: inset 1px 1px 0 #ffffff0c, 5px 7px 0 #050a10b3, 0 15px 30px #0004;
  transform: perspective(500px) rotateY(-15deg) rotateX(8deg) rotateZ(-7deg) translateY(-4px);
  transition: transform .55s cubic-bezier(.16,1,.3,1), box-shadow .4s;
}
.product-relic::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--item-edge); border-radius: 6px; opacity: .5; }
.product-relic .icon { width: 48px; height: 48px; stroke-width: 1.6; fill: var(--item-soft); }
.product-plinth { position: absolute; left: 50%; bottom: 23px; width: 92px; height: 15px; border-radius: 50%; background: #0006; transform: translateX(-50%); filter: blur(5px); z-index: -1; transition: transform .5s, opacity .5s; }
.product-card:hover .product-relic { transform: perspective(500px) rotateY(5deg) rotateX(0deg) rotateZ(0deg) translateY(-11px); box-shadow: inset 1px 1px 0 #ffffff0c, 3px 5px 0 #050a10b3, 0 19px 32px #0005; }
.product-card:hover .product-plinth { transform: translateX(-50%) scale(.86); opacity: .6; }
.product-copy h2 { color: #edf1f5; margin: 4px 0 8px; font-size: 23px; line-height: 1.2; letter-spacing: -.5px; }
.product-copy p { color: #9daabd; font-size: 11px; line-height: 1.7; min-height: 38px; }
.shop-page .product-features { gap: 9px; margin: 20px 0 24px; font-size: 10px; line-height: 1.5; color: #b2bfce; }
.shop-page .product-features .icon { color: var(--item); width: 12px; height: 12px; margin-top: 1px; flex-shrink: 0; }
.shop-page .product-bottom { padding-top: 18px; border-color: #ffffff0c; align-items: end; gap: 10px; }
.shop-page .product-price { display: flex; flex-direction: column; gap: 3px; }
.shop-page .product-price > small { color: #8190a1; font-size: 9px; font-weight: 400; }
.shop-page .product-price strong { color: #f0f2f4; font-size: 25px; line-height: 1; letter-spacing: -.7px; font-weight: 750; white-space: nowrap; }
.shop-page .product-price strong > span { color: #8c99a9; font-size: 8px; letter-spacing: .2px; }
.shop-page .product-add { min-height: 37px; padding: 10px 13px; gap: 8px; border: 1px solid #e5c74c; border-radius: 7px; background: #f0ce45; color: #28200d; font-size: 10px; box-shadow: none; font-weight: 700; }
.shop-page .product-add:hover { background: #ffe071; box-shadow: 0 4px 15px #ddac1414; transform: translateY(-1px); }
.shop-page .product-add .icon { width: 14px; height: 14px; }
.shop-page .product-add.is-added { background: #c9e2b8; border-color: #a6c492; color: #26351b; }
.shop-page .product-add.is-added .icon { animation: cart-added .35s ease-out; }
.shop-empty { grid-column: 1/-1; color: var(--muted); padding: 50px 20px; text-align: center; }
.shop-support { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid #ffffff0b; padding-top: 26px; }
.shop-support > div { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.shop-support > div > .icon { color: #c9b367; width: 24px; height: 24px; }
.shop-support h2 { font-size: 12px; font-weight: 650; margin-bottom: 3px; }
.shop-support p { color: #8594a7; font-size: 10px; line-height: 1.6; }
.shop-support a, .shop-support button { display: inline-flex; align-items: center; gap: 7px; color: #d4bf6e; font-size: 10px; padding: 8px 0; white-space: nowrap; }
.shop-support a .icon, .shop-support button .icon { width: 13px; height: 13px; transition: translate .2s; }
.shop-support a:hover .icon, .shop-support button:hover .icon { translate: 3px 0; }
@keyframes shop-spark-rise { from { translate: 0 5px; opacity: 0; } 20%, 65% { opacity: .7; } to { translate: 5px -60px; opacity: 0; } }
@keyframes cart-added { from { transform: scale(.5); opacity: .5; } 65% { transform: scale(1.2); } to { transform: scale(1); opacity: 1; } }
@media (min-width: 761px) {
  .shop-page .shop-toolbar { position: sticky; top: 84px; z-index: 20; backdrop-filter: blur(12px); }
}
@media (max-width: 1100px) {
  .shop-hero-inner { grid-template-columns: minmax(0,1fr) 270px; gap: 20px; }
  .shop-hero-art { height: 245px; }
  .shop-steps { gap: 12px; }
  .shop-steps li { font-size: 9px; }
  .shop-page .product-grid { gap: 15px; }
  .shop-page .product-card { padding-left: 18px; padding-right: 18px; }
  .product-copy h2 { font-size: 20px; }
  .shop-page .product-bottom { align-items: stretch; flex-direction: column; gap: 14px; }
  .shop-page .product-add { width: 100%; }
  .shop-support > div { grid-template-columns: 25px 1fr; gap: 10px; }
  .shop-support a, .shop-support button { grid-column: 2; justify-self: start; padding-top: 2px; }
}
@media (max-width: 760px) {
  .shop-page .shop-hero { --subpage-height: 275px; min-height: 275px; padding: 20px 0 14px; }
  .shop-hero-inner { grid-template-columns: minmax(0,1fr) 140px; gap: 0; }
  .shop-hero-copy { z-index: 1; }
  .shop-hero h1 { max-width: none; font-size: 34px; }
  .shop-hero p { max-width: none; font-size: 11px; }
  .shop-hero-art { height: 175px; margin-right: -15px; }
  .shop-hero .breadcrumbs { font-size: 8px; margin-bottom: 18px; }
  .shop-steps { grid-column: 1/-1; gap: 10px; }
  .shop-steps li { font-size: 8px; gap: 5px; }
  .shop-steps span { height: 18px; width: 18px; }
  .shop-page .shop-toolbar { flex-wrap: wrap; gap: 10px; padding: 8px; margin-bottom: 18px; }
  .shop-page .tabs { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .shop-page .tab { flex: 1 0 auto; padding: 9px 10px; gap: 6px; font-size: 10px; min-height: 38px; }
  .shop-page .tab > .icon { display: none; }
  .shop-page .shop-cart-button { margin-left: auto; min-height: 34px; font-size: 10px; padding: 8px 11px; }
  .shop-page .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .shop-page .product-card { padding: 0 15px 18px; border-radius: 11px; }
  .product-card-top { height: 43px; }
  .product-category { font-size: 7px; letter-spacing: 1.1px; }
  .product-visual { height: 140px; }
  .product-relic { width: 70px; height: 70px; }
  .product-relic .icon { width: 40px; height: 40px; }
  .product-copy h2 { font-size: 19px; }
  .product-copy p { font-size: 10px; min-height: 48px; }
  .shop-page .product-features { font-size: 9px; gap: 9px; }
  .shop-page .product-price strong { font-size: 23px; }
  .shop-support { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
}
@media (max-width: 480px) {
  .shop-hero-inner { grid-template-columns: 1fr; }
  .shop-hero-art { position: absolute; width: 170px; right: -25px; top: 52px; opacity: .25; margin: 0; z-index: 0; }
  .shop-hero p { max-width: 270px; }
  .shop-steps { max-width: 260px; }
  .shop-page .product-grid { grid-template-columns: 1fr; }
  .shop-page .product-card { padding-left: 23px; padding-right: 23px; }
  .product-visual { height: 150px; }
  .product-relic { width: 83px; height: 83px; }
  .product-relic .icon { width: 48px; height: 48px; }
  .product-copy p { min-height: 0; }
  .shop-page .product-bottom { flex-direction: row; align-items: end; }
  .shop-page .product-add { width: auto; padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-spark, .shop-page .product-add.is-added .icon { animation: none; }
  .shop-page .product-card, .product-relic, .product-plinth { transition: none; }
  .shop-page .product-card:hover { transform: none; }
  .product-card:hover .product-relic { transform: perspective(500px) rotateY(-15deg) rotateX(8deg) rotateZ(-7deg) translateY(-4px); }
}
