/* Storefront templates use the shop palette and spacing without changing campaign landing pages. */
.gw-home-storefront,
.gw-shop-card,
.gw-store-product,
.gw-parts-page .gw-commerce-mobile {
  --gw-store-ink: #111827;
  --gw-store-muted: #4b5563;
  --gw-store-border: #d1d5db;
  --gw-store-surface: #f5f6f2;
  --gw-store-primary: #1f5a34;
  --gw-store-primary-hover: #19492b;
  --gw-store-accent: #b8f16b;
}

.gwhs-product-first .gwhs-shop-intro { padding: 16px 0 0; background: var(--gw-store-surface); }
.gwhs-shop-hero {
  display: grid;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border-radius: 16px;
  background: #10271f;
  color: #fff;
}
.gwhs-shop-hero-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 270px); }
.gwhs-product-first .gwhs-shop-hero h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -.035em;
}
.gwhs-product-first .gwhs-shop-hero p { margin: 8px 0 12px; color: #e3efe4; font-size: 15px; line-height: 1.5; }
.gwhs-shop-hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--gw-store-accent);
  color: #10271f;
  font-weight: 700;
  text-decoration: none;
}
.gwhs-shop-hero-link:hover { background: #cdfa9a; color: #10271f; }
.gwhs-shop-hero-image { display: block; overflow: hidden; border-radius: 10px; background: #fff; }
.gwhs-shop-hero-image img { display: block; width: 100%; height: 146px; padding: 8px; object-fit: contain; }
.gwhs-product-first .gwhs-shop-categories { margin: 12px 0 0; scrollbar-width: thin; }
.gwhs-product-first .gwhs-shop-categories a { flex-shrink: 0; }
.gwhs-shop-trust {
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--gw-store-border);
  color: var(--gw-store-muted);
  font-size: 13px;
  line-height: 1.35;
  list-style: none;
}
.gwhs-shop-trust li { display: flex; align-items: baseline; gap: 6px; }
.gwhs-shop-trust li::before { content: "✓"; color: var(--gw-store-primary); font-weight: 700; }
.gwhs-product-first .gwhs-featured { padding-top: 24px; }
.gwhs-featured-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 12px; }
.gwhs-product-first .gwhs-featured-head h2 { margin: 0; color: var(--gw-store-ink); font-size: clamp(20px, 3vw, 30px); }
.gwhs-featured-head .gwhs-text-link { min-height: 40px; display: inline-flex; align-items: center; }
.gwhs-product-first .gwhs-faq-compact { padding-block: 12px; }
.gwhs-home-faq { max-width: 680px; }
.gwhs-home-faq > summary { min-height: 44px; padding: 10px 0; color: var(--gw-store-ink); font-size: 17px; font-weight: 700; cursor: pointer; }
.gwhs-faq-compact .gwhs-text-link { display: inline-flex; align-items: center; min-height: 44px; }

.gw-parts-page .gw-parts-search .gw-parts-categories { flex-wrap: wrap; overflow: visible; }
.gw-store-results-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 12px; }
.gw-store-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.gw-store-sort label { font-size: 13px; font-weight: 700; color: #4b5563; }
.gw-store-sort select,
.gw-store-sort button { min-width: 0; min-height: 40px; max-width: 100%; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; padding: 4px 8px; color: #111827; font: inherit; font-size: 13px; }
.gw-store-sort button { color: #1f5a34; font-weight: 700; cursor: pointer; }
.gw-store-sort button:hover { background: #e3efe4; }
.gw-store-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.gw-store-active-filters a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #1f5a34; font-size: 13px; overflow-wrap: anywhere; }
.gw-store-active-filters a:hover { background: #e3efe4; }

.gw-parts-page .gw-parts-grid.gw-shop-grid,
.gwhs-product-first .gw-shop-grid.gwhs-featured-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.gw-shop-card.gw-parts-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--gw-store-border);
  border-radius: 10px;
  background: #fff;
  color: var(--gw-store-ink);
}
.gw-shop-card.gw-parts-card:hover { border-color: #80978a; }
.gw-shop-card.gw-parts-card .gw-shop-image-link { display: block; min-width: 0; }
.gw-shop-card.gw-parts-card .gw-shop-media {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: clamp(136px, 16vw, 205px);
  overflow: hidden;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.gw-shop-card.gw-parts-card .gw-shop-media img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: contain; }
.gw-shop-card.gw-parts-card .gw-shop-media figcaption {
  position: absolute;
  inset: auto auto 4px 4px;
  border-radius: 6px;
  padding: 3px 6px;
  background: #fff;
  color: var(--gw-store-muted);
  font-size: 12px;
  line-height: 1.25;
}
.gw-shop-card.gw-parts-card .gw-shop-placeholder { align-content: center; gap: 8px; background: var(--gw-store-surface); color: var(--gw-store-muted); }
.gw-shop-card.gw-parts-card .gw-shop-placeholder span { font-size: 13px; }
.gw-shop-card.gw-parts-card .gw-shop-title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.gw-shop-card.gw-parts-card .gw-shop-title a { color: var(--gw-store-ink); text-decoration: none; }
.gw-shop-card.gw-parts-card .gw-shop-title a:hover { text-decoration: underline; }
.gw-shop-card.gw-parts-card .gw-shop-mpn,
.gw-shop-card.gw-parts-card .gw-shop-facts { margin: 4px 0 0; color: var(--gw-store-muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.gw-shop-card.gw-parts-card .gw-shop-mpn { font-variant-numeric: tabular-nums; }
.gw-shop-card.gw-parts-card .gw-shop-badges { gap: 6px; margin: 0; font-size: 12px; }
.gw-shop-card.gw-parts-card .gw-shop-condition { padding: 2px 6px; border: 1px solid var(--gw-store-border); border-radius: 6px; color: var(--gw-store-muted); }
.gw-shop-card.gw-parts-card .gw-shop-condition[data-condition="new"] { color: #23523a; background: #edf6ee; border-color: #c7e0cd; }
.gw-shop-card.gw-parts-card .gw-shop-condition[data-condition="used"] { color: #344057; background: #edf1f7; border-color: #d5dce8; }
.gw-shop-card.gw-parts-card .gw-shop-condition[data-condition="refurbished"] { color: #4a3561; background: #f4eef8; border-color: #e2d5e9; }
.gw-shop-card.gw-parts-card .gw-shop-condition:is([data-condition="open_box"], [data-condition="open-box"]) { color: #704814; background: #f8f2e5; border-color: #e7d7b7; }
.gw-shop-card.gw-parts-card .gw-shop-stock { padding: 2px 6px; color: #23523a; background: #edf6ee; border-color: #c7e0cd; }
.gw-shop-card.gw-parts-card .gw-shop-stock-check { color: #704814; background: #f8f2e5; border-color: #e7d7b7; }
.gw-shop-card.gw-parts-card .gw-shop-price-block { display: grid; gap: 2px; min-height: 45px; align-content: center; margin: 0; }
.gw-shop-card.gw-parts-card .gw-shop-price { margin: 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--gw-store-ink); }
.gw-shop-card.gw-parts-card .gw-shop-price-enquiry { font-size: 17px; }
.gw-shop-card.gw-parts-card .gw-shop-tax { color: var(--gw-store-muted); font-size: 12px; }
.gw-shop-card.gw-parts-card .gw-shop-primary { display: grid; gap: 2px; margin: 0; }
.gw-shop-card.gw-parts-card .gw-checkout-add,
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-add,
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-quote-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--gw-store-primary);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.gw-shop-card.gw-parts-card .gw-checkout-add::after { content: none; }
/* The legacy purchase stylesheet marks its dark button text as important. */
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-add,
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-quote-primary,
.gw-parts-page .gw-commerce-mobile-buy { color: #fff !important; }
.gw-parts-page .gw-commerce-mobile-buy {
  background: var(--gw-store-primary);
  border-color: var(--gw-store-primary);
}
.gw-parts-page .gw-commerce-mobile-buy:hover { background: var(--gw-store-primary-hover); }
.gw-shop-card.gw-parts-card .gw-checkout-add:hover,
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-add:hover,
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-quote-primary:hover { background: var(--gw-store-primary-hover); color: #fff; }
.gw-shop-card.gw-parts-card .gw-checkout-add:active,
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-add:active,
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-quote-primary:active { background: #133820; }
.gw-shop-card.gw-parts-card .gw-checkout-add:focus-visible,
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-add:focus-visible,
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-quote-primary:focus-visible { outline: 2px solid var(--gw-store-primary); outline-offset: 2px; }
.gw-shop-card.gw-parts-card .gw-shop-quote-link { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; color: var(--gw-store-primary); font-size: 13px; }

.gw-parts-page .gw-parts-product.gw-store-product { padding: 12px 0 32px; background: var(--gw-store-surface); color: var(--gw-store-ink); }
.gw-store-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 8px; color: var(--gw-store-muted); font-size: 13px; }
.gw-store-breadcrumb a { display: inline-flex; align-items: center; min-height: 36px; color: var(--gw-store-primary); }
.gw-parts-page .gw-store-product .gw-parts-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
  gap: 16px;
  align-items: start;
}
.gw-parts-page .gw-store-product .gw-parts-product-grid > .gw-parts-product-media,
.gw-parts-page .gw-store-product .gw-parts-product-grid > .gw-parts-purchase {
  grid-column: auto;
  grid-row: auto;
  order: 0;
  min-width: 0;
  width: 100%;
  margin: 0;
}
.gw-parts-page .gw-store-product .gw-parts-product-media .gw-nvidia-image {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--gw-store-border);
  border-radius: 10px;
  background: #fff;
}
.gw-parts-page .gw-store-product .gw-parts-product-media .gw-nvidia-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(146px, 36vw, 320px);
  object-fit: contain;
}
.gw-parts-page .gw-store-product .gw-parts-product-media .gw-nvidia-image figcaption {
  padding: 4px 8px;
  color: var(--gw-store-muted);
  font-size: 12px;
  line-height: 1.35;
}
.gw-parts-page .gw-store-product .gw-parts-product-media .gw-nvidia-image figcaption a { color: var(--gw-store-primary); }
.gw-store-product .gw-parts-product-media .gw-shop-placeholder,
.gw-parts-page .gw-store-product .gw-nvidia-image-pending {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 120px;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--gw-store-border);
  border-radius: 10px;
  background: #fff;
  color: var(--gw-store-muted);
  text-align: center;
}
.gw-parts-page .gw-store-product .gw-nvidia-image-pending p,
.gw-parts-page .gw-store-product .gw-nvidia-image-pending strong { margin: 0; color: inherit; }
.gw-parts-page .gw-store-product .gw-parts-purchase {
  padding: clamp(14px, 2.1vw, 24px);
  border: 1px solid var(--gw-store-border);
  border-radius: 10px;
  box-shadow: none;
  background: #fff;
  color: var(--gw-store-ink);
}
.gw-store-product-label { margin: 0 0 4px; color: var(--gw-store-muted); font-size: 13px; line-height: 1.35; }
.gw-parts-page .gw-store-product .gw-parts-purchase h1 { margin: 0 0 8px; color: var(--gw-store-ink); font-size: clamp(25px, 3vw, 40px); line-height: 1.15; }
.gw-parts-page .gw-store-product .gw-store-buy-price { display: flex; flex-flow: row wrap; align-items: baseline; gap: 4px 10px; }
.gw-parts-page .gw-store-product .gw-store-buy-price .gw-parts-price { margin: 0; color: var(--gw-store-ink); font-size: clamp(24px, 3vw, 32px); font-variant-numeric: tabular-nums; }
.gw-parts-page .gw-store-product .gw-store-buy-price .gw-parts-tax { font-size: 13px; color: var(--gw-store-muted); }
.gw-parts-page .gw-store-product .gw-store-buy-price .gw-parts-stock { font-size: 12px; }
.gw-store-product .gw-commerce-purchase-actions { margin: 8px 0 0; }
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-add,
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-quote-primary { min-height: 48px; font-size: 16px; }
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-buy-row input { height: 48px; border-color: var(--gw-store-border); border-radius: 8px; background: #fff; }
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-bulk-link { min-height: 40px; padding: 6px 10px; margin: 0; border: 1px solid var(--gw-store-primary); border-radius: 8px; color: var(--gw-store-primary); font-size: 13px; text-decoration: none; }
.gw-store-product .gw-commerce-purchase-actions .gw-commerce-bulk-link:hover { background: #e3efe4; }
.gw-store-assistance { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 4px 0; color: var(--gw-store-muted); font-size: 13px; }
.gw-store-assistance a { display: inline-flex; align-items: center; min-height: 40px; color: var(--gw-store-primary); font-weight: 700; }
.gw-store-product .gw-commerce-offer-identity { margin: 0; }
.gw-store-product .gw-commerce-order-terms { margin: 8px 0 0; }
.gw-store-product .gw-commerce-order-terms > p { margin: 0; font-size: 14px; line-height: 1.45; }
.gw-store-product .gw-commerce-order-terms details { margin: 4px 0 0; }
.gw-store-product-overview { margin: 16px 0; padding: 4px 16px; border: 1px solid var(--gw-store-border); border-radius: 10px; background: #fff; }
.gw-store-product-overview summary { min-height: 44px; padding: 10px 0; color: var(--gw-store-ink); font-weight: 700; cursor: pointer; }
.gw-parts-page .gw-store-product .gw-store-product-overview p { max-width: 680px; margin: 0 0 8px; color: var(--gw-store-muted); }
.gw-parts-page .gw-store-product .gw-store-product-overview .gw-parts-regions { margin: 4px 0 12px; }

@media (min-width: 600px) {
  .gw-parts-page .gw-parts-grid.gw-shop-grid,
  .gwhs-product-first .gw-shop-grid.gwhs-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-parts-page .gw-store-product .gw-parts-product-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px; }
}

@media (min-width: 760px) and (max-width: 1023px) {
  .gwhs-product-first .gw-shop-grid.gwhs-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gwhs-product-first .gwhs-shop-intro .gwhs-shop-categories { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
}

@media (min-width: 1024px) {
  .gw-parts-page .gw-parts-grid.gw-shop-grid,
  .gwhs-product-first .gw-shop-grid.gwhs-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gw-parts-page .gw-store-product .gw-parts-product-media .gw-nvidia-image img { height: clamp(310px, 32vw, 432px); }
}

@media (min-width: 1280px) {
  .gw-parts-page .gw-parts-grid.gw-shop-grid,
  .gwhs-product-first .gw-shop-grid.gwhs-featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .gwhs-shop-hero { padding: 16px; gap: 8px; }
  .gwhs-shop-hero-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 29%); }
  .gwhs-product-first .gwhs-shop-hero h1 { font-size: clamp(22px, 6.3vw, 30px); }
  .gwhs-product-first .gwhs-shop-hero p { margin: 6px 0 8px; font-size: 13px; }
  .gwhs-shop-hero-image img { height: 80px; padding: 4px; }
  .gwhs-product-first .gwhs-shop-categories { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .gw-parts-page .gw-parts-search .gw-parts-categories { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .gwhs-shop-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gwhs-product-first .gwhs-featured { padding-top: 16px; }
}
