/*
Theme Name: G82K MK3 Clean
Theme URI: https://g82k.co.uk/
Author: G82K
Description: A clean, original WooCommerce theme for G82K with a premium automotive trade storefront layout inspired by modern parts catalogues.
Version: 1.6.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: g82k-mk3-clean
*/

:root {
  --g82k-red: #e92d27;
  --g82k-red-dark: #c91e19;
  --g82k-black: #1f1f21;
  --g82k-ink: #161b22;
  --g82k-muted: #707784;
  --g82k-line: #e2e4e8;
  --g82k-bg: #f3f4f6;
  --g82k-card: #fff;
  --g82k-blue: #112435;
  --g82k-teal: #25d2ca;
}

/* Final WooCommerce archive and mobile navigation fixes. */
.woocommerce-shop .g82k-woo-shell .woocommerce-products-header,
.post-type-archive-product .g82k-woo-shell .woocommerce-products-header,
.tax-product_cat .g82k-woo-shell .woocommerce-products-header,
.tax-product_tag .g82k-woo-shell .woocommerce-products-header,
.g82k-woo-shell .woocommerce-products-header__title,
.woocommerce-shop .g82k-woo-shell > .page-description,
.post-type-archive-product .g82k-woo-shell > .page-description,
.tax-product_cat .g82k-woo-shell > .term-description,
.tax-product_tag .g82k-woo-shell > .term-description {
  display: none !important;
}

.woocommerce-shop .g82k-woo-shell,
.post-type-archive-product .g82k-woo-shell {
  padding-top: 28px !important;
}

.g82k-menu-toggle {
  cursor: pointer;
}

@media (min-width: 761px) {
  .g82k-nav .g82k-menu {
    display: flex !important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce .products,
  .g82k-product-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .g82k-nav {
    position: relative;
  }

  .g82k-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 52px;
  }

  .g82k-nav .g82k-menu {
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
    padding: 12px !important;
    list-style: none !important;
    background: #1f1f21 !important;
    border-radius: 0 !important;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .18);
  }

  .g82k-nav .g82k-menu.is-open {
    display: flex !important;
  }

  .g82k-nav .g82k-menu li {
    list-style: none !important;
    margin: 0 !important;
  }

  .g82k-nav .g82k-menu a {
    display: block !important;
    width: 100% !important;
    padding: 16px 18px !important;
    border-radius: 0 !important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce .products,
  .g82k-product-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 20px !important;
    line-height: 1.12 !important;
  }
}

@media (max-width: 420px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce .products,
  .g82k-product-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .woocommerce ul.products li.product .button {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--g82k-bg);
  color: var(--g82k-ink);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.g82k-header {
  background: #fff;
  position: relative;
  z-index: 40;
  box-shadow: 0 14px 35px rgba(21, 25, 31, .1);
}

.g82k-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  background: #fff;
  padding: 16px 40px 10px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .02em;
  color: #8a929d;
}

.g82k-topbar a {
  color: #111;
  font-weight: 900;
}

.g82k-header-main {
  max-width: 1880px;
  margin: 0 auto;
  padding: 40px 54px;
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(460px, 760px) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
}

.g82k-brand {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 24px;
  align-items: center;
}

.g82k-brand-mark {
  display: block;
  width: 28px;
  height: 86px;
  border-radius: 8px;
  background: var(--g82k-red);
  box-shadow: 0 14px 28px rgba(233, 45, 39, .22);
}

.g82k-brand-name {
  display: block;
  color: var(--g82k-red);
  font-weight: 950;
  font-size: 64px;
  line-height: .9;
}

.g82k-brand-sub {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  font-weight: 900;
  color: #242832;
}

.g82k-search-form {
  display: grid;
  grid-template-columns: 1fr 178px;
  border: 2px solid #e5e6eb;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 24, 40, .11);
}

.g82k-search-form input {
  border: 0;
  padding: 24px 32px;
  font-size: 23px;
  font-weight: 800;
  color: #2b3039;
  min-width: 0;
}

.g82k-search-form button {
  border: 0;
  background: var(--g82k-red);
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  cursor: pointer;
}

.g82k-header-actions {
  display: grid;
  grid-template-columns: auto auto minmax(130px, 170px);
  gap: 28px;
  align-items: center;
  justify-content: end;
  text-transform: uppercase;
  font-weight: 950;
}

.g82k-header-actions > a:not(.g82k-cart-link) {
  font-size: 18px;
  color: #20242b;
  white-space: nowrap;
}

.g82k-cart-link {
  border-left: 2px solid #dfe2e7;
  padding-left: 38px;
  display: grid;
  gap: 2px;
  text-transform: none;
}

.g82k-cart-link strong {
  font-size: 28px;
  line-height: 1;
  color: #111;
}

.g82k-cart-link span {
  font-size: 18px;
  color: #69717d;
}

.g82k-nav {
  background: var(--g82k-black);
  display: flex;
  align-items: center;
  padding: 0 54px;
}

.g82k-menu-toggle {
  display: none;
}

.g82k-menu {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1880px;
  width: 100%;
}

.g82k-menu li {
  margin: 0;
}

.g82k-menu a {
  display: block;
  padding: 30px;
  color: #fff;
  text-transform: uppercase;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: .02em;
}

.g82k-menu .current-menu-item > a,
.g82k-menu a:hover {
  background: var(--g82k-red);
}

.g82k-promo-strip {
  background: #eceef1;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding: 18px 48px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .05);
}

.g82k-promo-strip a {
  text-transform: uppercase;
  font-weight: 950;
  font-size: 19px;
  color: #14171d;
  white-space: nowrap;
}

.g82k-promo-pill {
  background: var(--g82k-red);
  color: #fff !important;
  border-radius: 999px;
  padding: 18px 34px;
  box-shadow: 0 12px 24px rgba(233, 45, 39, .18);
}

.g82k-main {
  background: var(--g82k-bg);
}

.g82k-hero {
  max-width: 1880px;
  margin: 34px auto 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #07131d 0%, #0d2738 58%, #071018 100%);
  min-height: 610px;
  padding: 64px 76px;
  display: grid;
  grid-template-columns: minmax(420px, .86fr) minmax(620px, 1.14fr);
  gap: 46px;
  overflow: hidden;
  color: #fff;
  position: relative;
}

.g82k-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(233, 45, 39, .16), transparent 28%),
    radial-gradient(circle at 38% 80%, rgba(37, 210, 202, .16), transparent 34%);
  pointer-events: none;
}

.g82k-hero-copy,
.g82k-hero-visual {
  position: relative;
  z-index: 1;
}

.g82k-kicker {
  display: inline-flex;
  background: var(--g82k-teal);
  color: #041014;
  border-radius: 8px;
  padding: 16px 24px;
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: .02em;
  margin-bottom: 32px;
}

.g82k-hero h1 {
  font-size: 76px;
  line-height: .98;
  margin: 0 0 28px;
  font-weight: 950;
  letter-spacing: 0;
}

.g82k-hero p {
  font-size: 24px;
  color: #dbe4ee;
  margin: 0 0 30px;
  max-width: 780px;
}

.g82k-hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.g82k-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--g82k-red);
  color: #fff;
  padding: 18px 28px;
  border-radius: 7px;
  font-weight: 950;
  text-transform: uppercase;
}

.g82k-button-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .25);
}

.g82k-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
}

.g82k-proof span {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 16px;
  color: #d8e0ea;
}

.g82k-proof strong {
  display: block;
  color: #fff;
  font-size: 24px;
}

.g82k-hero-visual {
  align-self: start;
  margin-top: 0;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.g82k-hero-visual .g82k-product-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.g82k-hero-visual .g82k-product-card:nth-child(n+3) {
  display: none;
}

.g82k-section {
  max-width: 1880px;
  margin: 42px auto 0;
  padding: 0 54px 48px;
}

.g82k-section-light {
  background: #fff;
  max-width: none;
  padding: 44px max(54px, calc((100vw - 1880px) / 2 + 54px)) 64px;
}

.g82k-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.g82k-section-heading span {
  color: var(--g82k-red);
  text-transform: uppercase;
  font-weight: 950;
}

.g82k-section-heading h2 {
  font-size: 58px;
  line-height: 1;
  margin: 0;
  font-weight: 950;
  color: #111;
}

.g82k-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.g82k-category-card,
.g82k-product-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e0e4ea;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.g82k-category-card {
  padding: 34px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.g82k-category-card:hover,
.g82k-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, .14);
}

.g82k-category-card span {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--g82k-red), #ff7a33);
  margin-bottom: auto;
}

.g82k-category-card strong {
  font-size: 28px;
  line-height: 1.1;
  color: #111;
}

.g82k-category-card em {
  font-style: normal;
  color: #596273;
  font-size: 17px;
  margin-top: 12px;
}

.g82k-product-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.g82k-product-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  color: #111;
  min-height: 100%;
}

.g82k-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f9;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  overflow: hidden;
}

.g82k-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.g82k-sku {
  color: var(--g82k-red);
  font-weight: 950;
  font-size: 15px;
  margin-bottom: 8px;
}

.g82k-product-card strong {
  font-size: 22px;
  line-height: 1.15;
}

.g82k-price {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 950;
  font-size: 22px;
  color: #111;
}

.g82k-empty-note {
  background: #fff;
  border: 1px dashed #cdd3dc;
  border-radius: 14px;
  padding: 28px;
  color: #636b77;
}

.g82k-shop-head,
.g82k-content-shell {
  max-width: 1880px;
  margin: 0 auto;
  padding: 48px 54px 18px;
}

.g82k-shop-head span {
  text-transform: uppercase;
  color: var(--g82k-red);
  font-weight: 950;
}

.g82k-shop-head h1,
.g82k-content-shell h1 {
  font-size: 56px;
  line-height: 1;
  margin: 10px 0 0;
  color: #111;
}

.g82k-woo-shell {
  max-width: 1880px;
  margin: 0 auto;
  padding: 22px 54px 70px;
}

.woocommerce .woocommerce-result-count {
  font-weight: 800;
}

.woocommerce .woocommerce-ordering select {
  border: 1px solid #d9dde5;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px !important;
  margin: 26px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products:before,
.woocommerce ul.products:after {
  display: none !important;
}

.woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #e0e4ea;
  border-radius: 16px;
  padding: 18px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  text-align: left;
}

.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f7f8fa;
  border-radius: 12px;
  margin: 0 0 16px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 22px !important;
  line-height: 1.16 !important;
  color: #111 !important;
  font-weight: 950 !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product .price {
  font-size: 21px !important;
  font-weight: 950 !important;
  color: #111 !important;
}

.woocommerce ul.products li.product .button {
  background: var(--g82k-red) !important;
  color: #fff !important;
  border-radius: 7px !important;
  font-weight: 950 !important;
  text-transform: uppercase;
}

.woocommerce span.onsale {
  background: var(--g82k-red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0 !important;
  display: flex !important;
  gap: 8px;
  list-style: none !important;
  margin: 34px 0 !important;
  padding: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0 !important;
  list-style: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111 !important;
  font-weight: 900 !important;
  border: 1px solid #dce1e8 !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--g82k-red) !important;
  color: #fff !important;
  border-color: var(--g82k-red) !important;
}

.single-product div.product {
  display: grid !important;
  grid-template-columns: minmax(320px, 560px) 1fr;
  gap: 50px;
  background: #fff;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.single-product div.product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
}

.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
}

.single-product div.product .product_title {
  font-size: 48px;
  line-height: 1.05;
  color: #111;
  font-weight: 950;
}

.single-product div.product .price {
  font-size: 30px;
  color: var(--g82k-red);
  font-weight: 950;
}

.g82k-footer {
  background: #1f1f21;
  color: #fff;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 36px 54px;
  margin-top: 0;
}

.g82k-footer span {
  color: #adb5c0;
  margin-left: 12px;
}

@media (max-width: 1300px) {
  .g82k-header-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .g82k-header-actions {
    justify-content: start;
  }

  .g82k-hero {
    grid-template-columns: 1fr;
  }

  .g82k-category-grid,
  .g82k-product-strip,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .g82k-hero h1 {
    font-size: 62px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .g82k-topbar {
    display: none;
  }

  .g82k-header-main {
    padding: 28px 22px;
  }

  .g82k-brand {
    grid-template-columns: 18px 1fr;
    gap: 14px;
  }

  .g82k-brand-mark {
    width: 18px;
    height: 70px;
  }

  .g82k-brand-name {
    font-size: 48px;
  }

  .g82k-brand-sub {
    font-size: 18px;
  }

  .g82k-search-form {
    grid-template-columns: minmax(0, 1fr) 118px;
  }

  .g82k-search-form input {
    font-size: 18px;
    padding: 18px;
  }

  .g82k-search-form button {
    font-size: 18px;
  }

  .g82k-header-actions {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .g82k-cart-link {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #e3e6eb;
    padding: 14px 0 0;
  }

  .g82k-nav {
    padding: 0;
    background: var(--g82k-black);
    display: block;
  }

  .g82k-menu-toggle {
    display: block;
    margin: 18px 22px;
    padding: 16px 24px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 8px;
    font-weight: 950;
  }

  .g82k-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  .g82k-menu.is-open {
    display: flex;
  }

  .g82k-menu a {
    padding: 18px 24px;
  }

  .g82k-promo-strip {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 22px;
    padding: 18px 22px;
  }

  .g82k-promo-strip a {
    font-size: 18px;
  }

  .g82k-promo-pill {
    padding: 18px 28px;
  }

  .g82k-hero {
    margin: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
    padding: 42px 22px;
    min-height: 0;
  }

  .g82k-hero h1 {
    font-size: 42px;
  }

  .g82k-hero p {
    font-size: 18px;
  }

  .g82k-proof {
    grid-template-columns: 1fr;
  }

  .g82k-hero-visual {
    padding: 14px;
  }

  .g82k-hero-visual .g82k-product-strip {
    grid-template-columns: 1fr 1fr;
  }

  .g82k-section,
  .g82k-shop-head,
  .g82k-woo-shell,
  .g82k-content-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .g82k-section-light {
    padding-left: 22px;
    padding-right: 22px;
  }

  .g82k-section-heading {
    display: block;
  }

  .g82k-section-heading h2,
  .g82k-shop-head h1 {
    font-size: 36px;
  }

  .g82k-category-grid,
  .g82k-product-strip,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px !important;
  }

  .g82k-product-card,
  .woocommerce ul.products li.product {
    padding: 12px !important;
  }

  .single-product div.product {
    display: block !important;
    padding: 18px;
  }

  .single-product div.product .product_title {
    font-size: 34px;
  }

  .g82k-footer {
    display: block;
    padding: 30px 22px;
  }

  .g82k-footer a {
    display: block;
    margin-top: 14px;
  }
}

@media (max-width: 460px) {
  .g82k-category-grid,
  .g82k-product-strip,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .g82k-hero-visual .g82k-product-strip {
    grid-template-columns: 1fr;
  }

  .g82k-header-actions {
    grid-template-columns: 1fr;
  }

  .g82k-search-form {
    grid-template-columns: 1fr;
  }

  .g82k-search-form button {
    padding: 16px;
  }

  .g82k-brand-name {
    font-size: 42px;
  }
}

/* G82K 1.1 layout corrections */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
}

.g82k-site,
.g82k-header,
.g82k-main,
.g82k-section,
.g82k-woo-shell,
.g82k-content-shell {
  max-width: 100%;
}

.g82k-header-main,
.g82k-search-form {
  min-width: 0;
}

.g82k-search-form input {
  min-width: 0;
  text-overflow: ellipsis;
}

.g82k-hero {
  align-items: start;
  margin-top: 20px;
  padding-top: clamp(28px, 4vw, 54px);
}

.g82k-hero-visual {
  align-self: start;
  margin-top: 0;
  transform: translateY(-34px);
}

.g82k-hero-visual .g82k-product-strip {
  align-items: start;
}

.g82k-product-card strong {
  overflow-wrap: anywhere;
}

@media (min-width: 1200px) {
  .g82k-product-strip,
  .woocommerce ul.products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .g82k-section-light .g82k-product-strip,
  .g82k-hero-visual .g82k-product-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .g82k-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.woocommerce nav.woocommerce-pagination ul.page-numbers {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
  margin: 28px 0 !important;
  border: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  list-style: none !important;
  border: 0 !important;
  margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li::marker {
  content: "";
}

.woocommerce nav.woocommerce-pagination a,
.woocommerce nav.woocommerce-pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #111317;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(17, 19, 23, .08);
}

.woocommerce nav.woocommerce-pagination span.current {
  background: var(--g82k-red);
  color: #fff;
}

.single-product div.product {
  overflow: hidden;
}

.single-product div.product .product_title {
  overflow-wrap: anywhere;
}

.single-product div.product div.images img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .g82k-header-main {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 22px;
  }

  .g82k-brand-name {
    font-size: clamp(42px, 12vw, 68px);
  }

  .g82k-brand-sub {
    font-size: clamp(16px, 4vw, 22px);
  }

  .g82k-search-form {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(100px, 34%);
  }

  .g82k-search-form input {
    font-size: clamp(16px, 4.8vw, 22px);
    padding: 18px 20px;
  }

  .g82k-search-form button {
    font-size: clamp(16px, 4.5vw, 22px);
    padding: 0 18px;
  }

  .g82k-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 12px;
  }

  .g82k-cart-link {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .g82k-promo-strip {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 16px 20px;
    gap: 18px;
  }

  .g82k-promo-strip a {
    flex: 0 0 auto;
  }

  .g82k-hero {
    padding: 30px 18px 36px;
  }

  .g82k-hero-visual {
    transform: none;
  }

  .g82k-hero-visual .g82k-product-card:nth-child(n+3) {
    display: none;
  }
}

@media (max-width: 460px) {
  .g82k-header-main {
    padding: 20px 16px;
  }

  .g82k-search-form {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .g82k-search-form button {
    border-radius: 0 999px 999px 0;
  }

  .g82k-header-actions a {
    font-size: 15px;
  }

  .g82k-product-strip,
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* G82K 1.2 shop visibility and grid fix */
.woocommerce-page .site-main,
.woocommerce .site-main,
.g82k-woo-shell {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.woocommerce ul.products,
.woocommerce-page ul.products,
.woocommerce .products,
.g82k-product-strip {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.g82k-product-card {
  display: flex !important;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
}

.woocommerce ul.products li.product img,
.g82k-product-image img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

.woocommerce-result-count {
  display: block !important;
  margin: 0 0 16px !important;
}

.woocommerce-ordering {
  margin: 0 0 24px !important;
}

@media (max-width: 1199px) and (min-width: 761px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce .products,
  .g82k-product-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .g82k-header-main {
    grid-template-columns: 1fr !important;
  }

  .g82k-header-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  .g82k-cart-link {
    grid-column: 1 / -1 !important;
  }

  .g82k-promo-strip {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scroll-snap-type: x proximity;
  }

  .g82k-promo-strip a {
    flex: 0 0 auto !important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce .products,
  .g82k-product-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .woocommerce ul.products li.product,
  .g82k-product-card {
    min-height: 0 !important;
    padding: 12px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  .woocommerce ul.products li.product .price {
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce .products,
  .g82k-product-strip {
    grid-template-columns: 1fr !important;
  }
}

/* G82K repair patch: custom logo support, mobile menu stability, and safer image sizing. */
.g82k-brand-logo,
.g82k-brand-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.g82k-brand-logo img,
.g82k-brand .custom-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 62px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .g82k-brand-logo img,
  .g82k-brand .custom-logo {
    max-width: 150px;
    max-height: 52px;
  }

  .g82k-nav .g82k-menu {
    display: none;
  }

  .g82k-nav .g82k-menu.is-open {
    display: flex;
  }
}

@media (min-width: 761px) {
  .g82k-menu-toggle {
    display: none !important;
  }
}
