/* ==========================================================================
   2000sGaming Shop: storefront, product page, cart, and product cards (also used on the homepage).
   Builds on home.css (top bar, wallpaper, windows, radio).
   ========================================================================== */

/* ---------- Glossy buttons ---------- */
.sg-gbtn { --g1: #8fb6ff; --g2: #2b55e0; --g3: #1a3bc0; --g4: #3a66f0; --edge: #0e2380; --glow: rgba(70,140,255,.55);
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .55em 1.4em; border: 0; border-radius: 999px; overflow: hidden; cursor: pointer;
	font: inherit; font-weight: 900; font-size: 16px; color: #fff; text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,40,.5); white-space: nowrap;
	background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 48%, var(--g3) 52%, var(--g4) 100%);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -2px 4px rgba(0,0,40,.25), 0 0 0 1.5px var(--edge), 0 4px 10px rgba(0,20,80,.25);
	transition: transform 180ms var(--ease), filter 180ms, box-shadow 180ms; }
.sg-gbtn::after { content: ""; position: absolute; left: 8%; right: 8%; top: 6%; height: 42%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0)); pointer-events: none; }
.sg-gbtn .xp-i { font-size: 1.2em; }
.sg-gbtn:hover:not(:disabled), .sg-gbtn:focus-visible { transform: translateY(-2px); filter: brightness(1.08); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 0 0 1.5px var(--edge), 0 0 16px var(--glow), 0 6px 12px rgba(0,20,80,.25); }
.sg-gbtn:disabled { cursor: not-allowed; filter: grayscale(.55); opacity: .65; }
.sg-gbtn--green { --g1: #c8ff7a; --g2: #4bc21b; --g3: #2e9a0c; --g4: #52c824; --edge: #1c6b05; --glow: rgba(120,230,40,.6); color: #fff; }
.sg-gbtn--silver { --g1: #ffffff; --g2: #eef0f3; --g3: #d6dae0; --g4: #e9ecf0; --edge: #aab1bb; --glow: rgba(150,170,200,.6); color: #1c2340; text-shadow: none; }

/* ---------- Product art (placeholder) ---------- */
.sg-pimg { --h: 210; position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: #fff;
	background: radial-gradient(70% 55% at 30% 15%, hsl(var(--h) 100% 85% / .9), transparent 60%), linear-gradient(160deg, hsl(var(--h) 80% 58%), hsl(calc(var(--h) + 25) 75% 30%)); }
.sg-pimg svg { width: 52%; height: 52%; filter: drop-shadow(0 6px 10px rgba(0,0,40,.35)); }
.sg-pimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 42%); pointer-events: none; }
.sg-pimg--v1 svg { transform: rotate(-12deg) scale(.88); } .sg-pimg--v2 svg { transform: scale(1.18) translate(6%, 8%); }

/* ---------- Product card ---------- */
.sg-pcard { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, #ffffff, #f2f5fb);
	box-shadow: inset 0 0 0 1.5px #d4def2, 0 8px 18px rgba(10,30,90,.14); transition: transform 180ms var(--ease), box-shadow 180ms; }
.sg-pcard:hover, .sg-pcard:focus-within { transform: translateY(-3px); box-shadow: inset 0 0 0 2px #4fb2ff, 0 0 18px rgba(80,170,255,.45), 0 12px 22px rgba(10,30,90,.18); }
.sg-pcard__media { position: relative; display: block; aspect-ratio: 1; margin: 10px 10px 0; overflow: hidden; border-radius: 16px; background: #eef1f8; }
.sg-pcard__media > img, .shop-gallery__slide > img, .shop-gallery__thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.sg-pcard__labels { position: absolute; z-index: 2; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.sg-plabel { padding: .2em .65em; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #2b55e0; box-shadow: 0 1px 3px rgba(0,0,40,.35); }
.sg-plabel--new { background: linear-gradient(180deg, #8de05a, #3d9e12); } .sg-plabel--featured { background: linear-gradient(180deg, #ffd56a, #e69a00); color: #3a2300; }
.sg-plabel--limited { background: linear-gradient(180deg, #c8a0ff, #6a3be6); } .sg-plabel--soldout { background: #5a6070; } .sg-plabel--preview { background: rgba(15,30,70,.7); }
.sg-pcard__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 14px 14px; }
.sg-pcard__meta { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #5a6a99; }
.sg-pcard__brand { color: #b0189f; }
.sg-pcard__name { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.2; color: #14245e; }
.sg-pcard__name a:hover { text-decoration: underline; }
.sg-pcard__price { margin: 0; font-size: 16px; font-weight: 900; color: #b0189f; }
.sg-pstatus { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 800; color: #4a5680; }
.sg-pstatus span { width: 10px; height: 10px; border-radius: 50%; background: #f0a400; }
.sg-pstatus--instock span { background: #3dbb18; } .sg-pstatus--soldout span, .sg-pstatus--preview span { background: #9aa0b8; } .sg-pstatus--backorder span { background: #2b8cf0; }
.sg-pcard__go { margin-top: auto; align-self: stretch; min-height: 40px; font-size: 15px; }
.sg-pcard__body > .sg-pstatus { margin-bottom: 8px; }

/* ---------- Top bar cart button ---------- */
.hp-cart-btn { position: relative; display: grid; justify-items: center; align-content: center; gap: 0; padding: 4px 8px; border-radius: 16px; color: #fff; font-weight: 900; text-shadow: 0 1px 2px rgba(0,10,60,.75); transition: transform 180ms var(--ease); }
.hp-cart-btn .xp-i { font-size: clamp(34px, 3vw, 46px); filter: drop-shadow(0 2px 4px rgba(0,20,80,.5)); }
.hp-cart-btn__label { font-size: clamp(12px, .95vw, 15px); }
.hp-cart-btn__count { position: absolute; top: 0; right: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 12px; line-height: 22px; text-align: center; color: #fff; background: linear-gradient(180deg, #ff6b9a, #d01865); box-shadow: 0 0 0 2px #fff; }
.hp-cart-btn__count[hidden] { display: none; }
.hp-cart-btn:hover { transform: translateY(-2px); }
.sg-shop-page .hp-top { grid-template-columns: auto minmax(0, 1fr) auto auto; }
@media (max-width: 1100px) { .sg-shop-page .hp-top { grid-template-areas: "logo . cart radio" "nav nav nav nav"; } .hp-cart-btn { grid-area: cart; } }
@media (max-width: 699.98px) { .sg-shop-page .hp-top.is-stuck { grid-template-areas: "logo nav cart radio"; grid-template-columns: auto minmax(0, 1fr) auto auto; } .hp-top.is-stuck .hp-cart-btn .xp-i { font-size: 28px; } .hp-top.is-stuck .hp-cart-btn__label { display: none; } }

/* ---------- Storefront ---------- */
.shop { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: clamp(16px, 2.4vw, 36px) clamp(10px, 2vw, 28px) 20px; }
.shop-notices { margin-bottom: 12px; }
.shop-head { display: grid; gap: 12px; padding: clamp(18px, 2.4vw, 34px) clamp(18px, 3vw, 44px); border-radius: 28px; color: #fff; text-align: center;
	background: linear-gradient(180deg, rgba(120,170,255,.95) 0%, rgba(40,95,235,.95) 46%, rgba(22,64,205,.95) 54%, rgba(50,110,245,.95) 100%);
	box-shadow: inset 0 3px 0 rgba(255,255,255,.6), 0 0 0 3px #fff, 0 0 0 6px rgba(80,150,255,.6), 0 0 30px rgba(70,140,255,.5), 0 14px 30px rgba(0,20,80,.35); }
.shop-head__title { display: inline-flex; align-items: center; justify-content: center; gap: .35em; margin: 0; font-size: clamp(30px, 4.2vw, 60px); font-weight: 1000; letter-spacing: -.02em; text-shadow: 0 3px 0 rgba(0,20,100,.45), 0 0 22px rgba(160,210,255,.7); }
.shop-head__icon { font-size: 1.05em; filter: drop-shadow(0 3px 4px rgba(0,0,60,.4)); }
.shop-head__sub { margin: 0; font-size: clamp(16px, 1.6vw, 24px); font-weight: 800; font-style: italic; opacity: .95; }
.shop-head__note { display: inline-flex; align-items: center; gap: 8px; justify-self: center; margin: 4px 0 0; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 800; color: #14245e; background: rgba(255,255,255,.9); text-shadow: none; }
.shop-head__note .xp-i { color: #2b55e0; font-size: 18px; }

.shop-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(16px, 2.6vw, 40px); align-items: center; margin-top: clamp(18px, 2.4vw, 32px); padding: clamp(14px, 2vw, 26px); border-radius: 28px;
	background: linear-gradient(160deg, #ffffff 0%, #eef2f8 55%, #dde3ec 100%); box-shadow: inset 0 2px 0 #fff, 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px rgba(140,230,40,.75), 0 0 24px rgba(150,240,40,.45), 0 12px 26px rgba(0,20,80,.25); }
.shop-banner__art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: #e6ebf3; }
.shop-banner__art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.shop-banner__kicker { margin: 0; display: inline-block; padding: .2em .8em; border-radius: 999px; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, #8de05a, #3d9e12); }
.shop-banner__title { margin: 10px 0 6px; font-size: clamp(24px, 2.8vw, 42px); font-weight: 1000; letter-spacing: -.02em; color: #14245e; line-height: 1.1; }
.shop-banner__copy { margin: 0 0 18px; font-size: clamp(15px, 1.3vw, 19px); font-weight: 700; color: #3c4670; line-height: 1.45; }

.shop-browse { margin-top: clamp(24px, 3vw, 44px); padding: clamp(14px, 2vw, 26px); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(70,110,240,.5), 0 14px 30px rgba(0,20,80,.25); }
.shop-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: linear-gradient(180deg, #eef2fb, #dfe6f5); box-shadow: inset 0 1px 3px rgba(0,20,80,.15); }
.shop-tab { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 900; font-size: 15px; color: #1d2c66; transition: background 180ms, color 180ms, box-shadow 180ms; }
.shop-tab:hover { background: rgba(255,255,255,.9); }
.shop-tab.is-current { color: #fff; text-shadow: 0 1px 2px rgba(0,20,80,.5); background: linear-gradient(180deg, #b8f2ff 0%, #4fc8ff 45%, #169ef0 55%, #46c4ff 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.85), 0 0 12px rgba(80,200,255,.75); }
.shop-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: #1d2c66; }
.shop-brand select { min-height: 42px; padding: 0 12px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; background: #eef2fb; box-shadow: inset 0 0 0 1.5px #c3d0ee; }
.shop-count { margin: 0 0 0 auto; font-weight: 800; color: #4a5680; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.shop-grid__cell[hidden] { display: none; }
.shop-empty { margin: 14px 0 0; font-weight: 800; color: #3c4670; text-align: center; }

/* ---------- Product page ---------- */
.shop-crumbs { margin: 0 0 14px; padding: 8px 16px; display: inline-block; border-radius: 999px; font-weight: 800; color: #fff; background: rgba(10,30,110,.55); text-shadow: 0 1px 2px rgba(0,0,40,.6); }
.shop-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.shop-product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); padding: clamp(16px, 2.4vw, 32px); border-radius: 28px; background: linear-gradient(160deg, #ffffff, #eef2f8 60%, #e1e7f0);
	box-shadow: inset 0 2px 0 #fff, 0 0 0 3px #fff, 0 0 0 6px rgba(70,110,240,.5), 0 14px 30px rgba(0,20,80,.25); }
.shop-gallery__main { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 22px; background: #e6ebf3; box-shadow: inset 0 0 0 1.5px #d4def2; }
.shop-gallery__slide { position: absolute; inset: 0; }
.shop-gallery__slide[hidden] { display: none; }
.shop-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.shop-gallery__thumb { position: relative; width: 84px; aspect-ratio: 1; overflow: hidden; border-radius: 14px; opacity: .7; box-shadow: inset 0 0 0 2px #d4def2; transition: opacity 160ms, box-shadow 160ms; }
.shop-gallery__thumb .sg-pimg svg { width: 60%; height: 60%; }
.shop-gallery__thumb.is-current, .shop-gallery__thumb:hover { opacity: 1; box-shadow: 0 0 0 3px #4fb2ff; }
.shop-info { display: flex; flex-direction: column; gap: 10px; }
.shop-info__brand { margin: 0; font-size: 14px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #5a6a99; }
.shop-info__title { margin: 0; font-size: clamp(28px, 3.2vw, 46px); font-weight: 1000; letter-spacing: -.02em; line-height: 1.08; color: #14245e; }
.shop-info__price { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 900; color: #b0189f; }
.shop-info__short { margin: 0; font-size: 17px; font-weight: 700; color: #3c4670; line-height: 1.5; }
.shop-buy { display: grid; gap: 14px; margin-top: 8px; padding-top: 16px; border-top: 2px solid #dfe5f1; }
.shop-field { display: grid; gap: 6px; font-weight: 900; color: #1d2c66; }
.shop-field select { min-height: 46px; padding: 0 14px; border-radius: 14px; border: 0; font: inherit; font-weight: 800; background: #fff; box-shadow: inset 0 0 0 1.5px #c3d0ee; }
.shop-qty { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #c3d0ee; }
.shop-qty button { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; font-weight: 900; color: #2b55e0; }
.shop-qty button:hover { background: #eef2fb; }
.shop-qty input { width: 52px; height: 44px; border: 0; background: none; text-align: center; font: inherit; font-weight: 900; font-size: 17px; color: #14245e; -moz-appearance: textfield; }
.shop-qty input::-webkit-outer-spin-button, .shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-buy__add { justify-self: start; min-height: 52px; padding: 0 28px; font-size: 18px; }
.shop-buy__note { margin: 0; font-size: 14px; font-weight: 700; color: #5a6a99; }
.shop-buy__msg { margin: 0; font-weight: 900; color: #2e8a0c; min-height: 1.2em; }
.shop-buy--woo .single_add_to_cart_button { min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #c8ff7a 0%, #4bc21b 48%, #2e9a0c 52%, #52c824 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 0 0 1.5px #1c6b05; cursor: pointer; }
.shop-buy--woo .quantity input { min-height: 44px; width: 70px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px #c3d0ee; text-align: center; font-weight: 900; }
.shop-buy--woo form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.shop-buy--woo table.variations select { min-height: 44px; border-radius: 12px; }
.shop-desc, .shop-related { margin-top: clamp(20px, 2.6vw, 36px); padding: clamp(16px, 2vw, 28px); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(70,110,240,.5), 0 14px 30px rgba(0,20,80,.22); }
.shop-desc h2, .shop-related h2 { margin: 0 0 12px; font-size: clamp(22px, 2vw, 30px); font-weight: 1000; color: #14245e; }
.shop-desc__body { font-size: 17px; line-height: 1.6; color: #2c3660; max-width: 75ch; }

/* ---------- Cart drawer ---------- */
.sg-cart { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); height: 100%; max-height: none; margin: 0; padding: 12px; border: 0; background: none; overflow: visible; --u: 9px; }
.sg-cart::backdrop { background: rgba(5,15,60,.45); }
.sg-cart:not([open]) { display: none; }
.sg-cart__win { height: 100%; display: flex; flex-direction: column; }
.sg-cart__body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; background: #f6f8fd; }
.sg-cart__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sg-cart__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty qty"; gap: 6px 10px; align-items: center; padding: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px #d4def2; }
.sg-cart__img { grid-area: img; position: relative; display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: #eef1f8; }
.sg-cart__img img { width: 100%; height: 100%; object-fit: cover; }
.sg-cart__img.is-art { --h: 210; background: radial-gradient(70% 55% at 30% 15%, hsl(var(--h) 100% 85% / .9), transparent 60%), linear-gradient(160deg, hsl(var(--h) 80% 58%), hsl(calc(var(--h) + 25) 75% 30%)); }
.sg-cart__info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.sg-cart__name { font-weight: 900; color: #14245e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-cart__var { font-size: 13px; font-weight: 800; color: #5a6a99; }
.sg-cart__line { font-size: 14px; font-weight: 900; color: #b0189f; }
.sg-cart__item .shop-qty { grid-area: qty; }
.shop-qty--sm button { width: 36px; height: 36px; font-size: 18px; } .shop-qty--sm input { width: 40px; height: 36px; font-size: 15px; }
.sg-cart__rm { grid-area: rm; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; font-weight: 900; color: #c02050; }
.sg-cart__rm:hover { background: #ffe3ec; }
.sg-cart__empty, .sg-cart__msg { margin: 8px 0; font-weight: 800; color: #3c4670; text-align: center; }
.sg-cart__msg:empty { display: none; }
.sg-cart__foot { padding: 12px; background: linear-gradient(180deg, #eef2fb, #dfe6f5); border-top: 1.5px solid #c3d0ee; }
.sg-cart__total { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 18px; font-weight: 900; color: #14245e; }
.sg-cart__note, .sg-cart__soon { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #5a6a99; }
.sg-cart__soon { margin: 8px 0 0; text-align: center; }
.sg-cart__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sg-cart__actions .sg-gbtn { padding: 0 10px; font-size: 15px; }

/* ---------- Homepage: Featured Shop Items use the same cards ---------- */
.hp-shopgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 22px); }

/* ---------- Tablet / phone ---------- */
@media (max-width: 1100px) {
	.shop-grid, .hp-shopgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.shop-count { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 820px) {
	.shop-grid, .hp-shopgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shop-banner, .shop-product { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699.98px) {
	.shop-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; border-radius: 18px; scrollbar-width: none; }
	.shop-tabs::-webkit-scrollbar { display: none; }
	.shop-tab { flex-shrink: 0; min-height: 40px; padding: 0 14px; font-size: 14px; }
	.shop-filters { margin-bottom: 12px; }
	.sg-pcard__media { margin: 8px 8px 0; border-radius: 12px; }
	.sg-pcard__body { padding: 10px; }
	.sg-pcard__name { font-size: 15px; }
	.sg-pcard__meta { font-size: 10px; flex-direction: column; gap: 0; }
	.sg-pcard__go { font-size: 14px; padding: 0 8px; }
	.shop-buy__add { justify-self: stretch; }
	.sg-cart { padding: 6px; }
}
@media (max-width: 360px) { .shop-grid, .hp-shopgrid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .sg-pcard, .sg-gbtn, .shop-tab { transition: none; } .sg-pcard:hover, .sg-gbtn:hover { transform: none; } }
