/* =========================================================
   Glowshop — Storefront child theme styles
   Department-store layout: sticky 4-tier header, mega menu,
   season hero, carousels, shop grid, superstore PDP.
   Breakpoints follow the reference: 1024 / 760 (header) / 749.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-n4.b2a3f24c19b4de56e8871f609e73ca7f6d2e2bb9.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-n5.d7101d5e168594dd06f56f290dd759fba5431d97.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-n7.02711e6b374660cfc7915d1afc1c204e633421e4.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/inter-i4.feae1981dda792ab80d117249d9c7e0f1017e5b3.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/inter-i5.4474f48e6ab2b1e01aa2b6d942dd27fa24f2d99f.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/inter-i7.b377bcd4cc0f160622a22d638ae7e2cd9b86ea4c.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
	--gs-red: #cc0000;
	--gs-red-d: #a80000;
	--gs-ink: #333333;
	--gs-soft: #666666;
	--gs-line: #d6d6d6;
	--gs-wash: #f7f7f7;
	--gs-amber: #fdeaea;
	--gs-star: #e0a800;
	--gs-ok: #008300;
	--gs-accent: #ff6d00;
	--gs-font: 'Inter', system-ui, -apple-system, sans-serif;
	--gs-page: 1440px;
	--gs-r: 12px;
	--gs-rb: 26px;
	--mks-dark: #2a1711;
	--mks-panel: #3d241b;
	--mks-gold: #f2b544;
	--mks-band: #ee7f1a;
	--mks-band-ink: #3d1c00;
	--mks-btn: #cc0000;
	--mks-badge: #fde7b0;
	--mks-badge-ink: #3d1c00;
}

/* ---------- Base ---------- */
.gs, .gs body { font-family: var(--gs-font); color: var(--gs-ink); }
.gs body { font-size: 14px; line-height: 1.45; margin: 0; background: #fff; }
.gs h1, .gs h2, .gs h3, .gs h4, .gs h5, .gs h6 { font-family: var(--gs-font); font-weight: 800; letter-spacing: -.3px; color: var(--gs-ink); }
.gs ::selection { background: var(--gs-amber); color: var(--gs-red-d); }
.gs img { max-width: 100%; height: auto; }
.gs a { color: inherit; text-decoration: none; }
.gs button { font-family: inherit; cursor: pointer; }
.gs .gs-main { min-height: 40vh; }

/* Storefront scaffolding resets (our templates own the page) */
.woocommerce-page .site, .site { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.storefront-full-width-content .site-content .woocomerce-area, .site-content { margin: 0; padding: 0; }
.gs #page { max-width: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { max-width: var(--gs-page); margin: 0 auto !important; }
ul.products::before, ul.products::after { content: none !important; }

/* =========================================================
   HEADER (sticky block: promo + utility + main + nav + mega)
   ========================================================= */
.gs-h { position: sticky; top: 0; z-index: 100; font-size: 14px; line-height: 1.4; background: #fff; }
.gs-h * { box-sizing: border-box; }
.gs-h a { color: inherit; text-decoration: none; }
.gs-h ul { list-style: none; margin: 0; padding: 0; }

/* promo bar */
.gs-pb { background: var(--gs-red); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.gs-pb-in { max-width: var(--gs-page); margin: 0 auto; padding: 7px 20px; }
.gs-pb a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.gs-pb a:hover { text-decoration: none; }

/* utility bar */
.gs-u { background: var(--gs-red-d); color: #fff; font-size: 13px; }
.gs-u-in { max-width: var(--gs-page); margin: 0 auto; padding: 0 20px; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gs-u-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gs-u-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border-radius: 20px; padding: 5px 12px; font-weight: 600; white-space: nowrap; }
.gs-u-pill svg { flex: 0 0 auto; }
.gs-u-tag { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-u-right { display: flex; align-items: center; gap: 22px; }
.gs-u-right a { opacity: .9; }
.gs-u-right a:hover { opacity: 1; text-decoration: underline; }

/* white header variant (reference data-mkt-style=white) */
.gs-h[data-gs="header"] .gs-u { background: #fff; color: var(--gs-soft); border-bottom: 1px solid var(--gs-line); }
.gs-h[data-gs="header"] .gs-u-pill { background: var(--gs-wash); color: var(--gs-ink); }
.gs-h[data-gs="header"] .gs-u-pill svg { color: var(--gs-red); }
.gs-h[data-gs="header"] .gs-u-right a { opacity: 1; color: var(--gs-soft); }
.gs-h[data-gs="header"] .gs-u-right a:hover { color: var(--gs-red); text-decoration: none; }

/* main bar */
.gs-m { background: #fff; color: var(--gs-ink); }
.gs-m-in { max-width: var(--gs-page); margin: 0 auto; padding: 0 20px; height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.gs-burger { display: none; background: none; border: 0; padding: 6px; color: var(--gs-ink); }
.gs-logo { display: flex; align-items: center; white-space: nowrap; }
.gs-logo img { max-height: 44px; width: auto; display: block; }
.gs-search { position: relative; max-width: 820px; width: 100%; justify-self: center; }
.gs-search form { display: flex; align-items: center; background: var(--gs-wash); border: 1px solid var(--gs-line); border-radius: var(--gs-rb); height: 44px; padding: 0 4px 0 20px; }
.gs-search form:focus-within { background: #fff; border-color: var(--gs-red); }
.gs-search input[type="search"] { flex: 1; min-width: 0; border: 0; background: none; font-family: inherit; font-size: 15px; color: var(--gs-ink); outline: none; }
.gs-search button { width: 36px; height: 36px; border-radius: 22px; border: 0; background: var(--gs-red); color: #fff; display: grid; place-items: center; }
.gs-acts { display: flex; align-items: center; gap: 22px; }
.gs-act { display: flex; align-items: center; gap: 8px; line-height: 1.1; position: relative; color: var(--gs-ink); }
.gs-act svg { flex: 0 0 auto; color: var(--gs-ink); }
.gs-act small { display: block; font-size: 11px; color: var(--gs-soft); }
.gs-act b { font-size: 14px; font-weight: 700; }
.gs-act:hover b { text-decoration: underline; }
.gs-cart-n { position: absolute; top: -6px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--gs-red); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.gs-cart-n[hidden] { display: none; }
.gs-cart-n.is-bump { animation: gsBump .35s ease; }
@keyframes gsBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* nav bar */
.gs-n { background: #fff; border-bottom: 1px solid var(--gs-line); color: var(--gs-ink); position: relative; }
.gs-n-in { max-width: var(--gs-page); margin: 0 auto; padding: 0 20px; height: 44px; display: flex; align-items: center; gap: 6px; }
.gs-n-dep { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; padding: 8px 12px; border-radius: 20px; background: transparent; border: 0; color: var(--gs-ink); flex: 0 0 auto; }
.gs-n-dep svg { transition: transform .2s; }
.gs-n-dep.is-open { background: var(--gs-wash); color: var(--gs-red); }
.gs-n-dep.is-open svg { transform: rotate(180deg); }
.gs-n-dep:active { transform: scale(.97); }
.gs-n-sep { flex: 0 0 auto; width: 1px; height: 22px; background: var(--gs-line); margin: 0 8px; }
.gs-n-q { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.gs-n-q::-webkit-scrollbar { display: none; }
.gs-n-q a { font-size: 14px; font-weight: 700; padding: 12px 10px; position: relative; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.gs-n-q a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: var(--gs-red); transform: scaleX(0); transition: transform .15s; }
.gs-n-q a:hover { color: var(--gs-red); }
.gs-n-q a:hover::after { transform: scaleX(1); }
.gs-n-q a.is-accent { border-radius: 999px; padding: 7px 14px; margin: 0 4px; background: var(--gs-accent); color: #fff !important; }
.gs-n-q a.is-accent::after { display: none; }
.gs-n-q a.is-accent:hover { color: #fff !important; }

/* mega menu (anchors to header = full width) */
.gs-h { position: sticky; }
.gs-n { position: static; }
.gs-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--gs-line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25); z-index: 99; }
.gs-mega.is-open { display: block; }
.gs-mega-in { max-width: var(--gs-page); margin: 0 auto; padding: 18px 20px 20px; display: grid; grid-template-columns: 240px 1fr; gap: 26px; }
.gs-mega-l { display: flex; flex-direction: column; border-right: 1px solid var(--gs-wash); padding-right: 10px; }
.gs-mega-l a { font-size: 14px; font-weight: 700; padding: 7px 12px; border-radius: 8px; }
.gs-mega-l a:hover, .gs-mega-l a.is-active { color: var(--gs-red); background: var(--gs-wash); }
.gs-mega-r { min-height: 320px; max-height: min(60vh, 480px); overflow: auto; }
.gs-panel { display: none; }
.gs-panel.is-active { display: block; }
.gs-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.gs-panel-head h3 { margin: 0; font-size: 17px; }
.gs-panel-head a { font-size: 13px; font-weight: 700; color: var(--gs-red); }
.gs-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 26px; }
.gs-col > a { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 8px; }
.gs-col > a:hover { color: var(--gs-red); }
.gs-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gs-col ul a { font-size: 13px; color: var(--gs-soft); font-weight: 400; }
.gs-col ul a:hover { color: var(--gs-red); text-decoration: underline; }
.gs-col .gs-more { font-weight: 700; color: var(--gs-red); }
.gs-mega-all { grid-column: 1 / -1; border-top: 1px solid var(--gs-wash); padding-top: 12px; }
.gs-mega-all a { font-weight: 800; color: var(--gs-red); font-size: 14px; }

/* mobile drawer */
.gs-drawer { display: none; position: fixed; inset: 0; background: #fff; z-index: 200; overflow: auto; padding-bottom: 30px; }
.gs-drawer.is-open { display: block; }
.gs-drawer-top { display: flex; align-items: center; justify-content: space-around; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--gs-wash); }
.gs-drawer-top a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.gs-drawer-list { padding: 8px 16px; }
.gs-drawer-list details { border-bottom: 1px solid var(--gs-wash); }
.gs-drawer-list summary, .gs-d-top { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; font-weight: 800; font-size: 15px; list-style: none; }
.gs-drawer-list summary::-webkit-details-marker { display: none; }
.gs-drawer-list summary::after { content: '+'; font-weight: 400; color: var(--gs-soft); }
.gs-drawer-list details[open] > summary::after { content: '–'; }
.gs-d-link { display: block; padding: 9px 4px 9px 16px; font-size: 14px; color: var(--gs-ink); }
.gs-d-sub summary { padding: 10px 4px 10px 16px; font-weight: 600; font-size: 14px; }
.gs-d-sub .gs-d-link { padding-left: 32px; color: var(--gs-soft); }
.gs-drawer-help { display: block; margin: 14px 16px 0; padding: 12px; border: 1px solid var(--gs-line); border-radius: 10px; text-align: center; font-weight: 700; }

/* scrolled state (mobile: hide utility + promo bars) */
.gs-h.is-scrolled .gs-u { display: none; }
.gs-h.is-scrolled .gs-pb { display: none; }

/* =========================================================
   SEASON SECTION (mks)
   ========================================================= */
.mks { font-family: var(--gs-font); }
.mks-dark { background: var(--mks-dark); padding: 18px 0 26px; }
.mks-in { max-width: var(--gs-page); margin: 0 auto; padding: 0 20px; }
.mks-hero { display: grid; grid-template-columns: 1fr 1.05fr 1fr; border-radius: 14px; overflow: hidden; min-height: 300px; background: var(--mks-panel); }
.mks-hero-img { position: relative; overflow: hidden; }
.mks-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mks-hero:hover .mks-hero-img img { transform: scale(1.03); }
.mks-hero-c { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px 28px; color: #fff; background: radial-gradient(120% 90% at 50% 40%, #3a3a3d 0%, var(--mks-panel) 60%, #1a1a1c 100%); }
.mks-hero-c h2 { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.04; color: #fff; letter-spacing: -.6px; margin: 0; }
.mks-hero-c p { margin: 12px 0 0; font-size: clamp(15px, 1.25vw, 19px); font-weight: 600; color: #f3f3f3; max-width: 330px; line-height: 1.3; }
.mks-cta { margin-top: 18px; display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--mks-btn); color: #fff; font-weight: 800; font-size: 15px; }
.mks-hero:hover .mks-cta { filter: brightness(1.08); }
.mks-deco { margin: 14px 0 2px; }
.mks-deco.b { margin: 2px 0 14px; }
.mks-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.mks-tile { display: block; }
.mks-tile-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: #222; }
.mks-tile-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mks-tile-t { position: absolute; inset: 0 0 auto 0; padding: 14px 16px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent); }
.mks-tile-t small { display: block; font-size: 13px; font-weight: 700; opacity: .95; }
.mks-tile-t b { font-size: clamp(28px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.mks-tile-cap { display: block; margin-top: 8px; color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; }
.mks-note { color: #cbb9a8; font-size: 12px; margin: 14px 2px 0; }
.mks-band { background: var(--mks-band); padding: 20px 0 26px; }
.mks-band-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.mks-band-h h2 { margin: 0; color: var(--mks-band-ink); font-size: clamp(22px, 2vw, 28px); }
.mks-band-h a { font-weight: 800; color: var(--mks-band-ink); font-size: 14px; text-decoration: underline; }
.mks-car { position: relative; }

/* =========================================================
   PRODUCT CARD + CAROUSELS
   ========================================================= */
.gs-sec { max-width: var(--gs-page); margin: 0 auto; padding: 26px 20px 6px; }
.gs-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.gs-sec-head h2 { margin: 0; font-size: clamp(20px, 1.8vw, 26px); }
.gs-sec-head a { font-weight: 800; font-size: 14px; color: var(--gs-red); }
.gs-car { position: relative; }
.gs-arr { position: absolute; top: 34%; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gs-line); background: #fff; color: var(--gs-ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.gs-arr.l { left: -14px; }
.gs-arr.r { right: -14px; }
.gs-arr:hover { color: var(--gs-red); border-color: var(--gs-red); }
.gs-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.gs-track::-webkit-scrollbar { display: none; }
.gs-track > * { scroll-snap-align: start; }

.gs-p { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gs-p-img { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--gs-wash); overflow: hidden; }
.gs-p-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; transition: transform .35s ease; }
.gs-p:hover .gs-p-img img { transform: scale(1.04); }
.gs-p-badge { position: absolute; top: 8px; right: 8px; background: var(--gs-red); color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 8px; border-radius: 6px; }
.gs-add { align-self: center; display: inline-flex; align-items: center; gap: 6px; background: var(--gs-red); color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 8px 18px; margin-top: 2px; transition: transform .12s; }
.gs-add:hover { filter: brightness(1.07); }
.gs-add:active { transform: scale(.96); }
.gs-add.is-opts { background: #fff; color: var(--gs-ink); border: 1.5px solid var(--gs-ink); }
.gs-price { font-weight: 800; font-size: 15px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.gs-price .now { font-size: 12px; font-weight: 800; color: var(--gs-red); text-transform: uppercase; letter-spacing: .3px; }
.gs-price del { color: var(--gs-soft); font-weight: 500; font-size: 13px; }
.gs-price.sale { color: var(--gs-red); }
.gs-price .woocommerce-Price-amount { font-weight: 800; }
.gs-price ins { text-decoration: none; }
.gs-p-t { font-size: 13px; line-height: 1.35; color: var(--gs-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs-p:hover .gs-p-t { text-decoration: underline; }

/* =========================================================
   TILE GRID + CATEGORY CIRCLES
   ========================================================= */
.mkt-wrap { max-width: var(--gs-page); margin: 0 auto; padding: 10px 20px 40px; }
.gs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gs-tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1.15; background: var(--gs-wash); }
.gs-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gs-tile:hover img { transform: scale(1.04); }
.gs-tile-c { position: absolute; inset: auto 0 0 0; padding: 44px 16px 14px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); }
.gs-tile-c small { display: block; font-size: 12.5px; font-weight: 700; opacity: .9; text-transform: uppercase; letter-spacing: .4px; }
.gs-tile-c h3 { margin: 4px 0 8px; color: #fff; font-size: 19px; line-height: 1.15; }
.gs-link { display: inline-block; background: #fff; color: var(--gs-ink); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 8px 14px; }
.gs-tile:hover .gs-link { background: var(--gs-red); color: #fff; }
.gs-cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gs-cat { text-align: center; min-width: 0; }
.gs-cat-img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--gs-wash); border: 1px solid var(--gs-wash); }
.gs-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gs-cat:hover .gs-cat-img img { transform: scale(1.07); }
.gs-cat:hover .gs-cat-img { border-color: var(--gs-red); }
.gs-cat span { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.25; }

/* =========================================================
   SUBNAV (breadcrumb + h1 + count + chips)
   ========================================================= */
.gs-sn { font-size: 14px; }
.gs-sn-in { max-width: var(--gs-page); margin: 0 auto; padding: 14px 20px 6px; }
.gs-bc { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--gs-soft); margin-bottom: 10px; }
.gs-bc a:hover { text-decoration: underline; color: var(--gs-red); }
.gs-bc b { color: var(--gs-ink); font-weight: 600; }
.gs-sn h1 { margin: 0 0 6px; font-size: 28px; }
.gs-sn-cnt { color: var(--gs-soft); font-size: 13px; margin-bottom: 12px; }
.gs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.gs-chips a { border: 1px solid var(--gs-line); background: #fff; border-radius: 20px; padding: 7px 14px; font-weight: 600; font-size: 13px; }
.gs-chips a:hover { border-color: var(--gs-red); color: var(--gs-red); background: var(--gs-wash); }

/* =========================================================
   SHOP (toolbar + grid + pagination)
   ========================================================= */
.gs-page-wrap { max-width: var(--gs-page); margin: 0 auto; padding: 0 20px 50px; }
.gs-page-in { width: 100%; }
.gs-shop { width: 100%; }
.gs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0 14px; border-top: 1px solid var(--gs-wash); }
.gs-toolbar-count { font-size: 13px; color: var(--gs-soft); }
.gs-sort { display: flex; align-items: center; gap: 8px; }
.gs-sort label { font-size: 13px; color: var(--gs-soft); font-weight: 600; }
.gs-sort select { appearance: none; -webkit-appearance: none; border: 1px solid var(--gs-line); background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; border-radius: 10px; padding: 9px 34px 9px 12px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--gs-ink); }
.gs-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
.gs-grid .gs-p-badge { top: 10px; left: 10px; right: auto; }
.gs-pagination { margin-top: 30px; display: flex; justify-content: center; }
.gs-pagination .nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gs-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--gs-line); border-radius: 10px; font-weight: 700; font-size: 14px; }
.gs-pagination .page-numbers.current { background: var(--gs-red); border-color: var(--gs-red); color: #fff; }
.gs-pagination .page-numbers:hover:not(.current) { border-color: var(--gs-red); color: var(--gs-red); }
.gs-empty { border: 1px dashed var(--gs-line); border-radius: 8px; padding: 28px; text-align: center; color: var(--gs-soft); margin: 10px 0 30px; }
.gs-empty a { color: var(--gs-red); text-decoration: underline; font-weight: 600; }

/* =========================================================
   PDP (superstore: gallery | mid | buy box)
   ========================================================= */
.gs-pdp { max-width: var(--gs-page); margin: 0 auto; padding: 10px 20px 30px; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 27%) minmax(300px, 27%); gap: 26px; align-items: start; }
.gs-pdp-gal { display: grid; grid-template-columns: 64px 1fr; gap: 12px; position: sticky; top: 128px; }
.gs-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; scrollbar-width: none; }
.gs-thumbs::-webkit-scrollbar { display: none; }
.gs-thumb { padding: 0; border: 1.5px solid var(--gs-line); border-radius: 8px; background: #fff; overflow: hidden; flex: 0 0 auto; }
.gs-thumb.is-active { border-color: var(--gs-ink); }
.gs-thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.gs-stage { position: relative; border-radius: 12px; background: #fff; }
.gs-stage-img { aspect-ratio: 1; display: grid; place-items: center; }
.gs-stage-img img { max-width: 100%; max-height: 640px; object-fit: contain; }
.gs-stage-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gs-line); background: rgba(255, 255, 255, .92); color: var(--gs-ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); z-index: 2; }
.gs-stage-arr.l { left: 10px; }
.gs-stage-arr.r { right: 10px; }
.gs-stage-arr:hover { color: var(--gs-red); }

.gs-pdp-title { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.12; margin: 2px 0 16px; }
.gs-acc { border: 1px solid var(--gs-line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.gs-acc-h { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; background: none; border: 0; font-weight: 800; font-size: 15.5px; color: var(--gs-ink); text-align: left; }
.gs-acc-x { position: relative; width: 12px; height: 12px; flex: 0 0 auto; }
.gs-acc-x::before, .gs-acc-x::after { content: ''; position: absolute; background: var(--gs-soft); transition: transform .18s; }
.gs-acc-x::before { left: 0; right: 0; top: 5px; height: 2px; }
.gs-acc-x::after { top: 0; bottom: 0; left: 5px; width: 2px; }
.gs-acc.is-open .gs-acc-x::after { transform: scaleY(0); }
.gs-acc-b { padding: 0 16px 14px; }
.gs-specs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gs-specs td { padding: 9px 4px; border-top: 1px solid var(--gs-wash); vertical-align: top; }
.gs-specs tr:first-child td { border-top: 0; }
.gs-specs td:first-child { font-weight: 700; width: 42%; }

/* buy box */
.gs-bb { margin: 0 0 12px; }
.gs-bb-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.gs-bb-pct { background: var(--gs-red); color: #fff; font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 6px; }
.gs-bb-was { color: var(--gs-soft); font-size: 14px; text-decoration: line-through; }
.gs-bb-was .woocommerce-Price-amount { color: var(--gs-soft); }
.gs-bb-tag { font-size: 12px; font-weight: 700; color: var(--gs-red); background: var(--gs-amber); padding: 4px 8px; border-radius: 6px; }
.gs-bb-price { font-size: 26px; font-weight: 800; color: var(--gs-red); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gs-bb-price del { color: var(--gs-soft); font-size: 15px; font-weight: 500; }
.gs-bb-price ins { text-decoration: none; }
.gs-bb-price .woocommerce-Price-amount { color: var(--gs-red); }

/* variation pills */
.gs-variations { margin: 4px 0 6px; }
.gs-var-field { border: 0; padding: 0 0 6px; margin: 0 0 8px; }
.gs-var-legend { display: block; font-size: 13px; font-weight: 700; color: var(--gs-ink); margin-bottom: 8px; padding: 0; }
.gs-var-legend[data-sel]::after { content: ': ' attr(data-sel); font-weight: 500; color: var(--gs-soft); }
.gs-var-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-var-pill { position: relative; display: inline-flex; }
.gs-var-pill input { position: absolute; opacity: 0; pointer-events: none; }
.gs-var-pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 40px; padding: 8px 14px; border: 1px solid #cfd4dc; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--gs-ink); background: #fff; text-align: center; white-space: normal; }
.gs-var-pill:hover span { border-color: var(--gs-red); color: var(--gs-red); }
.gs-var-pill input:checked + span { font-weight: 700; box-shadow: inset 0 0 0 1px var(--gs-red); background: var(--gs-amber); color: var(--gs-red); border-color: var(--gs-red); }
.gs-var-pill.is-unavailable span { color: #9aa1ab; background: var(--gs-wash); text-decoration: line-through; }
.gs-var-clear { margin-top: 6px; }
.gs-var-clear button { background: none; border: 0; color: var(--gs-red); font-weight: 700; font-size: 13px; text-decoration: underline; padding: 0; }
.gs-var-price { margin: 8px 0 2px; font-size: 18px; font-weight: 800; color: var(--gs-red); }
.gs-var-price del { color: var(--gs-soft); font-size: 14px; font-weight: 500; margin-left: 8px; }
.woocommerce-variation-price { display: none; }
.woocommerce-variation-availability { display: none; }

/* add-to-cart area */
.gs-buy-form { border-top: 1px solid var(--gs-wash); padding-top: 14px; }
.gs-buy-form table.variations { display: none; }
.gs-buy-form .quantity { display: inline-flex; align-items: center; border: 1px solid var(--gs-line); border-radius: 10px; overflow: hidden; margin: 0 12px 12px 0; background: #fff; }
.gs-buy-form .quantity .qty { width: 44px; height: 46px; border: 0; text-align: center; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--gs-ink); -moz-appearance: textfield; background: none; }
.gs-buy-form .quantity .qty::-webkit-outer-spin-button, .gs-buy-form .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gs-buy-form .quantity .gs-q { width: 40px; height: 46px; border: 0; background: #fff; color: var(--gs-ink); display: grid; place-items: center; padding: 0; }
.gs-buy-form .quantity .gs-q:hover { color: var(--gs-red); }
.gs-buy-form .single_add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 200px; height: 54px; padding: 0 30px; background: var(--gs-red) !important; color: #fff !important; border: 0; border-radius: 27px; font-family: inherit; font-weight: 800; font-size: 16px; }
.gs-buy-form .single_add_to_cart_button:hover { filter: brightness(1.08); }
.gs-buy-form .single_add_to_cart_button:disabled { opacity: .55; }
.gs-buynow { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; margin-top: 10px; background: var(--gs-ink); color: #fff; border: 0; border-radius: 27px; font-family: inherit; font-weight: 800; font-size: 16px; }
.gs-buynow:hover { filter: brightness(1.25); }
.gs-buy-form .gs-buy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gs-bn-note { display: flex; justify-content: center; margin: 12px 0 4px; }
.gs-bn-note span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--gs-soft); }
.gs-bn-note svg { color: var(--gs-ok); }

.gs-ship-card { border: 1px solid var(--gs-line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.gs-ship-h { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.gs-ship-h svg { color: var(--gs-red); }
.gs-ship-arrive { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.gs-ship-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gs-ship-card li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--gs-ink); }
.gs-ship-card li::before { content: '\2713'; position: absolute; left: 0; color: var(--gs-ok); font-weight: 800; }

/* trust strip + accordions */
.gs-t { margin: 20px 0 10px; }
.gs-t-strip { border-top: 1px solid var(--gs-wash); border-bottom: 1px solid var(--gs-wash); background: var(--gs-wash); }
.gs-t-in { max-width: var(--gs-page); margin: 0 auto; padding: 16px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gs-ti { display: flex; align-items: center; gap: 12px; justify-content: center; }
.gs-ti svg { color: var(--gs-red); flex: 0 0 auto; }
.gs-ti strong { display: block; font-size: 14.5px; }
.gs-ti span { display: block; font-size: 12.5px; color: var(--gs-soft); }
.gs-t-acc { max-width: 860px; margin: 0 auto; padding: 22px 20px 6px; }
.gs-t-acc h2 { margin: 0 0 12px; font-size: 20px; }
.gs-t-item { border-bottom: 1px solid var(--gs-wash); }
.gs-t-item summary { padding: 13px 4px; font-weight: 700; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.gs-t-item summary::-webkit-details-marker { display: none; }
.gs-t-item summary::after { content: '+'; color: var(--gs-soft); font-size: 18px; font-weight: 400; }
.gs-t-item[open] summary::after { content: '\2013'; }
.gs-t-a { padding: 0 4px 14px; color: var(--gs-ink); font-size: 14px; }
.gs-t-a table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 10px; }
.gs-t-a td { padding: 8px 4px; border-top: 1px solid var(--gs-wash); }
.gs-t-a td:first-child { font-weight: 600; width: 45%; }
.gs-t-a a { color: var(--gs-red); font-weight: 600; }
.gs-t-a a:hover { text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
.gs-f { background: var(--gs-wash); color: var(--gs-ink); border-top: 1px solid var(--gs-line); margin-top: 30px; font-size: 14px; }
.gs-f a { color: inherit; }
.gs-f-in { max-width: var(--gs-page); margin: 0 auto; padding: 0 20px; }
.gs-f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 20px 22px; }
.gs-f-col h4 { margin: 0 0 12px; font-size: 15px; }
.gs-f-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gs-f-col a { opacity: .85; font-size: 13.5px; }
.gs-f-col a:hover { opacity: 1; text-decoration: underline; color: var(--gs-red); }
.gs-f-about p { margin: 0; font-size: 13.5px; opacity: .85; line-height: 1.5; }
.gs-f-about a { text-decoration: underline; }
.gs-f-bot-wrap { border-top: 1px solid var(--gs-line); padding: 0 20px; }
.gs-f-bot { max-width: var(--gs-page); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; flex-wrap: wrap; font-size: 13px; opacity: .9; }
.gs-pay { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gs-pay-ic { display: inline-flex; border: 1px solid var(--gs-line); border-radius: 4px; background: #fff; overflow: hidden; }
.gs-pay svg { display: block; }

/* =========================================================
   GENERIC PAGES
   ========================================================= */
.gs-page-title { margin: 18px 0 14px; font-size: 26px; }
.gs-post-item { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--gs-wash); }
.gs-post-item h2 { margin: 0 0 6px; font-size: 20px; }
.gs-post-item a:hover { color: var(--gs-red); }
.gs-prose { font-size: 15px; line-height: 1.6; max-width: 820px; }
.gs-prose h2 { margin: 22px 0 8px; font-size: 20px; }
.gs-prose p { margin: 0 0 12px; }
.gs-prose a { color: var(--gs-red); }
.gs-prose a:hover { text-decoration: underline; }
.gs-prose ul, .gs-prose ol { padding-left: 22px; margin: 0 0 12px; }
form.gs-sub { display: flex; gap: 8px; max-width: 420px; }
form.gs-sub input[type="email"] { flex: 1; border: 1px solid var(--gs-line); border-radius: 10px; padding: 11px 14px; font-family: inherit; font-size: 14px; }
form.gs-sub button { border: 0; border-radius: 10px; background: var(--gs-red); color: #fff; font-weight: 800; padding: 0 18px; }

/* =========================================================
   REVIEWS
   ========================================================= */
.gs-stars { color: var(--gs-star); font-size: 13px; letter-spacing: 1px; display: inline-flex; }
.gs-stars i { font-style: normal; position: relative; }
.gs-stars i::before { color: #ddd; }
.gs-stars i[data-f="1"]::before { color: var(--gs-star); }
.gs-stars em { font-style: normal; color: var(--gs-soft); font-size: 12px; margin-left: 6px; }
#review_form .submit, #review_form #submit { background: var(--gs-red) !important; border: 0 !important; border-radius: 999px !important; padding: 12px 26px !important; color: #fff !important; font-weight: 800 !important; }
#reviews .commentlist { list-style: none; padding: 0; }

/* =========================================================
   RESPONSIVE (1024 / 989 / 760 / 480)
   ========================================================= */
@media (max-width: 1024px) {
	.gs-track { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
	.gs-grid { grid-template-columns: repeat(3, 1fr); }
	.gs-pdp { grid-template-columns: minmax(0, 52%) minmax(0, 1fr); }
	.gs-pdp-buy { grid-column: 1 / -1; max-width: 620px; }
	.gs-pdp-gal { position: static; }
	.gs-cats { grid-template-columns: repeat(6, 1fr); }
	.gs-cols { grid-template-columns: repeat(3, 1fr); }
	.gs-mega-in { grid-template-columns: 210px 1fr; }
}

@media (max-width: 989px) {
	.gs-tiles { grid-template-columns: repeat(2, 1fr); }
	.gs-t-in { grid-template-columns: 1fr; }
	.gs-ti { justify-content: flex-start; }
}

@media (max-width: 760px) {
	.gs-h { font-size: 13px; }
	.gs-pb { font-size: 12px; }
	.gs-pb-in { padding: 6px 14px; }
	.gs-u-in { padding: 8px 14px; height: auto; }
	.gs-u-tag { display: none; }
	.gs-u-right { gap: 16px; }
	.gs-m-in { display: flex; flex-wrap: wrap; padding: 0 14px; height: auto; row-gap: 0; column-gap: 12px; min-height: 56px; }
	.gs-burger { display: inline-flex; order: 1; }
	.gs-logo { order: 2; flex: 0 1 auto; margin-right: auto; }
	.gs-logo img { max-height: 34px; }
	.gs-acts { order: 3; gap: 16px; }
	.gs-act small, .gs-act-items { display: none !important; }
	.gs-search { order: 5; flex: 1 0 100%; margin: 4px 0 10px; max-width: none; }
	.gs-search form { height: 42px; padding-left: 16px; }
	.gs-n-in { padding: 6px 14px; height: auto; }
	.gs-n-dep { border: 1px solid var(--gs-line); border-radius: 999px; padding: 7px 12px; font-weight: 700; }
	.gs-n-dep.is-open { border-color: var(--gs-red); background: var(--gs-red); color: #fff; }
	.gs-n-dep.is-open svg { color: #fff; }
	.gs-n-sep { display: none; }
	.gs-n-q a { padding: 7px 10px; border-radius: 999px; background: var(--gs-wash); font-weight: 600; }
	.gs-n-q a::after { display: none; }
	.gs-n-q a.is-accent { background: var(--gs-accent); color: #fff !important; }
	.gs-mega { display: none !important; }

	.gs-sec, .mks-in, .mkt-wrap, .gs-sn-in, .gs-page-wrap, .gs-pdp { padding-left: 14px; padding-right: 14px; }
	.gs-arr { display: none; }
	.gs-track { grid-auto-columns: calc((100% - 12px) / 2.35); gap: 12px; }
	.gs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
	.gs-cats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
	.gs-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 6px -14px 14px; padding: 0 14px 4px; }
	.gs-chips::-webkit-scrollbar { display: none; }
	.gs-chips a { flex: 0 0 auto; white-space: nowrap; }
	.mks-hero { grid-template-columns: 1fr; }
	.mks-hero-c { padding: 26px 20px; }
	.mks-hero-img { aspect-ratio: 1.6; }
	.mks-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.gs-tiles { gap: 10px; }
	.gs-tile-c h3 { font-size: 16px; }
	.gs-tile-c { padding: 30px 12px 10px; }

	.gs-pdp { grid-template-columns: 1fr; padding-top: 0; }
	.gs-pdp-gal { display: block; }
	.gs-thumbs { display: none; }
	.gs-stage-img { aspect-ratio: 1; }
	.gs-stage-img img { max-height: 100vw; }
	.gs-pdp-title { font-size: 22px; }
	.gs-buy-form .single_add_to_cart_button { width: 100%; min-width: 0; }
	.gs-buynow { width: 100%; }
	.gs-cols { grid-template-columns: repeat(2, 1fr); }

	.gs-f-cols { grid-template-columns: 1fr 1fr; padding: 26px 14px 18px; gap: 20px; }
	.gs-f-about { grid-column: 1 / -1; }
	.gs-f-bot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
	.gs-track { grid-auto-columns: calc((100% - 12px) / 1.6); }
	.gs-f-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.gs * { transition: none !important; animation: none !important; }
}

/* Price order: Now | current | original (reference layout) */
.gs-price del { order: 3; }
.gs-price ins { order: 2; }
.gs-price .now { order: 1; }

/* Mobile header refinements (match reference: pill + Sign in only, icon-only actions) */
@media (max-width: 760px) {
	.gs-u-right a:not(.gs-keep) { display: none; }
	.gs-act span { display: none !important; }
	.gs-act-account, .gs-act-cart { display: inline-flex; }
}

/* Mobile logo: reference shows a compact mark, not the full-size wordmark image */
@media (max-width: 760px) {
	.gs-logo img { max-height: 34px; max-width: 150px; width: auto; object-fit: contain; }
	.gs-u-pill { font-size: 12px; padding: 4px 10px; }
}

/* =========================================================
   HORIZONTAL OVERFLOW CONTAINMENT
   .mks-car / .gs-car 内的轮播轨道（.gs-track, overflow-x:auto）
   把内容宽度推到约 2121~2343px，外层容器为 visible，导致整页
   可横向滚动约 701px（右侧出现空白）。裁剪层放在带 20px 内边距
   的 .mks-in / .gs-sec 上，使 .gs-arr 的 left/right:-14px 外扩
   仍完整可见，轨道自身的横向滚动手感不变。
   ========================================================= */
.mks-in,
.gs-sec {
	overflow-x: hidden;   /* 老浏览器回退 */
	overflow-x: clip;     /* 现代浏览器：不建立滚动容器，不强制裁剪 y 轴 */
}
/* =========================================================
   POLICY / HELP PAGES  (shipping, returns, privacy, terms,
   about, contact, faq — 正文排版补充)
   ========================================================= */
.gs-prose h3 { margin: 18px 0 6px; font-size: 17px; }

.gs-prose .gs-lede {
	margin: 0 0 18px;
	padding: 13px 16px;
	background: var(--gs-wash);
	border-left: 3px solid var(--gs-red);
	border-radius: 8px;
	font-size: 14.5px;
	line-height: 1.58;
}

.gs-prose table.gs-tb {
	width: 100%;
	border-collapse: collapse;
	margin: 4px 0 18px;
	font-size: 14px;
}
.gs-prose table.gs-tb th,
.gs-prose table.gs-tb td {
	border: 1px solid var(--gs-line);
	padding: 9px 12px;
	text-align: left;
	vertical-align: top;
}
.gs-prose table.gs-tb tr:first-child th {
	background: var(--gs-wash);
	font-weight: 700;
	color: var(--gs-ink);
}
.gs-prose table.gs-tb tbody tr:nth-child(even) td { background: #fbfbfb; }
.gs-prose table.gs-tb a { word-break: break-word; }

.gs-prose details {
	border: 1px solid var(--gs-line);
	border-radius: 10px;
	margin: 0 0 8px;
	padding: 0 14px;
}
.gs-prose details summary {
	cursor: pointer;
	font-weight: 700;
	padding: 12px 0;
	list-style: none;
	outline: none;
}
.gs-prose details summary::-webkit-details-marker { display: none; }
.gs-prose details summary::after {
	content: "+";
	float: right;
	font-weight: 700;
	color: var(--gs-soft);
	line-height: 1;
}
.gs-prose details[open] summary { border-bottom: 1px solid var(--gs-line); margin-bottom: 12px; }
.gs-prose details[open] summary::after { content: "\2013"; }
.gs-prose details p { margin: 0 0 12px; }
.gs-prose details[open] { background: #fcfcfc; }

@media (max-width: 760px) {
	.gs-prose table.gs-tb { font-size: 13px; }
	.gs-prose table.gs-tb th,
	.gs-prose table.gs-tb td { padding: 8px 9px; }
	.gs-prose .gs-lede { font-size: 14px; padding: 11px 13px; }
}

/* ===== GS-GALLERY-FIX START ===== */
/* =========================================================
   PDP GALLERY ARROWS
   修复三件事：
   1) 圆被拉成椭圆 —— 原 width/height 42 未清 button 默认 padding，
      实测 47x42 → border-radius:50% 渲染成蛋形。
      改为 border-box + padding:0 + 44x44 正圆。
   2) 左右箭头静止态不一致 —— 原底色 rgba(255,255,255,.92) 半透明，
      压在深色商品图上显灰、压白底显白；图标色又被 :hover 染红。
      改为不透明白底 + 统一深灰图标，hover 反色。
   3) 移动端 tap 后 :hover 粘住（箭头一直黑底）—— hover 规则
      收进 @media (hover:hover)，触屏只走 :active 瞬时反馈。
   ========================================================= */
.gs-pdp-gal .gs-stage-arr {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #e2e2e2;
	border-radius: 50%;
	background: #fff;
	color: var(--gs-ink);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	transition: background .15s ease, color .15s ease,
	            border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.gs-pdp-gal .gs-stage-arr svg {
	width: 20px;
	height: 20px;
	display: block;
}

/* 键盘聚焦：只在键盘导航时出红环（鼠标点击不显示） */
.gs-pdp-gal .gs-stage-arr:focus {
	background: #fff;
	border-color: #e2e2e2;
	color: var(--gs-ink);
}
.gs-pdp-gal .gs-stage-arr:focus-visible {
	outline: 2px solid var(--gs-red);
	outline-offset: 2px;
}

/* 按下：鼠标 / 触摸都给即时反馈 */
.gs-pdp-gal .gs-stage-arr:active {
	background: var(--gs-red);
	border-color: var(--gs-red);
	color: #fff;
	transform: translateY(-50%) scale(.93);
}

/* 悬停反色：仅真实指针设备，避免触屏粘住 */
@media (hover: hover) and (pointer: fine) {
	.gs-pdp-gal .gs-stage-arr:hover {
		background: var(--gs-ink);
		border-color: var(--gs-ink);
		color: #fff;
		box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
	}
	.gs-pdp-gal .gs-stage-arr:hover:active {
		background: var(--gs-red);
		border-color: var(--gs-red);
		color: #fff;
	}
}

/* 图片切换淡入，让"点击有反应"看得见 */
.gs-pdp-gal .gs-stage-img img { animation: gsGalFade .22s ease; }
@keyframes gsGalFade { from { opacity: .35; } to { opacity: 1; } }

/* 移动端箭头略小，保持不挡商品 */
@media (max-width: 760px) {
	.gs-pdp-gal .gs-stage-arr { width: 38px; height: 38px; }
	.gs-pdp-gal .gs-stage-arr svg { width: 18px; height: 18px; }
	.gs-pdp-gal .gs-stage-arr.l { left: 8px; }
	.gs-pdp-gal .gs-stage-arr.r { right: 8px; }
}

/* 单图商品：箭头与计数无意义，隐藏 */
.gs-pdp-gal.is-single .gs-stage-arr,
.gs-pdp-gal.is-single .gs-stage-count { display: none; }
/* ---------- PDP gallery: 图片计数 ---------- */
.gs-pdp-gal .gs-stage-count {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .02em;
	pointer-events: none;
	z-index: 2;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
	.gs-pdp-gal .gs-stage-count {
		right: 8px;
		bottom: 8px;
		font-size: 11px;
		padding: 2px 8px;
	}
}

/* ===== GS-GALLERY-FIX END ===== */

/* ===== GS-NAV-FADE START ===== */
/* 窄屏下快捷导航是横向滚动的，右侧加渐隐提示「还能滑」；滚到尽头就去掉 */
@media (max-width: 1279px) {
	.gs-n-q {
		-webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent 100%);
		mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 40px), transparent 100%);
	}
	.gs-n-q.is-at-end {
		-webkit-mask-image: none;
		mask-image: none;
	}
}
/* ===== GS-NAV-FADE END ===== */

/* ===== GS-SEARCH-FIX START ===== */
/* Storefront 给 button 塞了 padding: .618em 1.41575em，
   这里宽高又被写死 36px（border-box），内容区被压成负宽度，
   图标就被左内边距顶到右边去、看起来不居中。 */
.gs-search button {
	box-sizing: border-box;
	padding: 0;
	flex: 0 0 auto;
	line-height: 1;
}
.gs-search button svg { display: block; margin: 0; }
/* ===== GS-SEARCH-FIX END ===== */
