.shop-page .hackclub-link { z-index:20; top:0; left:0; }
.shop-page .hackclub-flag { width:min(145px,30vw); }
.shop-header { position:relative; z-index:1; padding:76px 24px 18px; text-align:center; }
.shop-logo-link { display:block; width:min(100%,860px); margin:0 auto 12px; line-height:0; }
.shop-logo { width:100%; height:auto; }
.shop-header h1 { color:var(--yellow); font-size:clamp(44px,8vw,64px); font-weight:800; line-height:1.08; text-shadow:0 3px 0 rgba(0,47,63,.9),0 0 18px rgba(0,47,63,.6); }
.shop-subtitle { margin-top:5px; color:var(--white); font-size:clamp(20px,3.5vw,27px); font-weight:800; line-height:1.3; text-shadow:0 2px 0 rgba(0,47,63,.95),0 0 12px rgba(0,47,63,.8); }
.shop-intro { max-width:620px; margin:10px auto 0; color:var(--muted); }
.shop-categories { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:18px auto 0; }
.shop-categories a { padding:8px 16px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(0,47,63,.82); color:var(--white); font-weight:700; text-decoration:none; }
.shop-categories a:hover { border-color:var(--cyan); color:var(--cyan); }
.shop-categories a:focus-visible { outline:3px solid var(--yellow); outline-offset:3px; }
.shop-content { position:relative; z-index:1; width:min(100% - 48px,1120px); margin:auto; padding:6px 0 52px; }
.shop-category { scroll-margin-top:24px; margin-top:30px; }
.shop-category:first-child { margin-top:0; }
.shop-category h2 { width:fit-content; margin-bottom:18px; padding:6px 12px; border-radius:12px; background:rgba(0,47,63,.9); box-shadow:0 4px 14px rgba(0,35,48,.16); color:var(--yellow); font-size:clamp(28px,5vw,38px); line-height:1.2; }
.product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.product-card { min-width:0; padding:0; overflow:hidden; border:1px solid rgba(255,255,255,.13); border-radius:16px; background:rgba(0,47,63,.86); box-shadow:0 10px 30px rgba(0,35,48,.12); color:var(--white); font:inherit; text-align:left; cursor:pointer; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.product-card:hover { transform:translateY(-4px); border-color:rgba(0,213,222,.7); box-shadow:0 14px 34px rgba(0,35,48,.24); }
.product-card:focus-visible { outline:3px solid var(--yellow); outline-offset:3px; }
.product-visual { display:grid; height:174px; margin-bottom:10px; padding:14px; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); place-items:center; background:linear-gradient(145deg,rgba(0,213,222,.13),rgba(0,47,63,.24)); }
.product-art { display:block; min-width:0; min-height:0; width:76%; height:76%; object-fit:contain; object-position:center; }
.product-art.product-icon { width:64%; height:64%; }
.product-art--slim { width:auto; max-width:22%; height:76%; }
.product-art--large { width:90%; height:86%; }
.product-art--grant { width:100%; height:100%; object-fit:cover; }
.product-visual:has(.product-art--grant) { margin-bottom:10px; padding:0; background:transparent; }
.product-visual:has(.product-art--grant[src$="ai-grant.png"]) { background:#c5c66d; }
.product-copy { display:grid; min-height:0; padding:12px 14px 8px; align-content:start; gap:5px; }
.product-title { font-size:19px; font-weight:700; line-height:1.25; }
.product-value { width:max-content; padding:2px 9px; border-radius:999px; background:var(--yellow); color:var(--ink); font-size:14px; font-weight:800; line-height:1.5; }
.site-footer { margin-top:20px; }

.product-dialog { position:fixed; inset:0; width:min(100% - 32px,480px); max-width:none; max-height:min(90vh,760px); margin:auto; padding:24px; overflow:auto; border:1px solid rgba(255,255,255,.2); border-radius:20px; background:#003b4b; box-shadow:0 24px 90px rgba(0,0,0,.5); color:var(--white); font:500 18px/1.5 "Baloo 2",sans-serif; }
.product-dialog::backdrop { background:rgba(0,20,28,.76); backdrop-filter:blur(4px); }
.product-dialog form { position:absolute; top:10px; right:10px; }
.dialog-close { display:grid; width:42px; height:42px; place-items:center; border:1px solid rgba(255,255,255,.4); border-radius:50%; background:rgba(0,47,63,.95); color:var(--white); font:500 30px/1 "Baloo 2",sans-serif; cursor:pointer; }
.dialog-close:hover { background:var(--cyan); color:var(--ink); }
.dialog-close:focus-visible { outline:3px solid var(--yellow); outline-offset:3px; }
.dialog-image { display:block; width:100%; max-height:320px; margin-bottom:16px; border-radius:14px; background:transparent; object-fit:contain; }
.dialog-category { color:var(--cyan); font-size:14px; font-weight:800; letter-spacing:1px; text-transform:uppercase; }
.product-dialog h2 { margin-top:4px; color:var(--yellow); font-size:clamp(26px,6vw,34px); line-height:1.2; }
.dialog-description { margin-top:10px; color:var(--muted); }
.dialog-value { width:max-content; margin-top:12px; padding:3px 12px; border-radius:999px; background:var(--yellow); color:var(--ink); font-weight:800; }
.dialog-buy { display:inline-block; margin-top:20px; color:var(--cyan); font-weight:800; text-underline-offset:4px; }
.dialog-buy:hover { color:var(--yellow); }
.dialog-buy:focus-visible { outline:3px solid var(--yellow); outline-offset:4px; }
.dialog-image--slim { display:block; width:auto; max-width:22%; height:260px; margin-right:auto; margin-left:auto; }
.dialog-image--grant { width:100%; height:auto; aspect-ratio:16 / 10; }
.shop-region { display:flex; width:fit-content; max-width:100%; margin:22px auto 0; align-items:center; justify-content:center; gap:12px; color:var(--white); }
.shop-region label { font-size:17px; font-weight:800; line-height:1.3; }
.shop-region-controls { display:flex; min-width:0; gap:8px; }
.shop-region select, .shop-region input { min-height:46px; padding:10px 42px 10px 15px; border:1px solid rgba(255,255,255,.3); border-radius:12px; background-color:rgba(0,47,63,.96); color:var(--white); font:inherit; cursor:pointer; }
.shop-region select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23f8ffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 15px center; }
.shop-region input { width:240px; padding-right:14px; cursor:text; }
.shop-region select:hover, .shop-region input:hover { border-color:rgba(0,213,222,.75); }
.shop-region select:focus-visible, .shop-region input:focus-visible { outline:3px solid var(--yellow); outline-offset:3px; }
.shop-region input[hidden] { display:none; }

@media (max-width:980px) {
  .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:700px) {
  .shop-header { padding:72px 16px 16px; }
  .shop-region { width:min(100%,420px); flex-direction:column; gap:8px; }
  .shop-region-controls { display:grid; width:100%; grid-template-columns:minmax(0,1fr); }
  .shop-region select, .shop-region input { width:100%; min-width:0; }
  .shop-content { width:min(100% - 32px,1120px); padding-top:8px; }
  .shop-category { margin-top:26px; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .product-visual { height:150px; padding:12px; }
  .product-copy { min-height:0; padding:10px 12px 6px; }
  .product-title { font-size:17px; }
}

@media (max-width:420px) {
  .product-grid { grid-template-columns:1fr; }
  .product-card { display:grid; grid-template-columns:42% 1fr; align-items:center; }
  .product-visual { height:126px; min-height:0; padding:10px; }
  .product-visual { margin-bottom:0; }
  .product-card { column-gap:12px; }
  .product-art { height:76%; min-height:0; }
  .product-art--large { width:90%; height:86%; }
  .product-art--slim { width:auto; min-height:0; max-width:22%; height:76%; }
}

@media (prefers-reduced-motion:reduce) {
  .product-card { transition:none; }
  .product-card:hover { transform:none; }
}
