/*
Theme Name: Grillgoods WooCommerce
Theme URI: https://www.grillgoods.de/
Author: Codex
Description: A Grillgoods-inspired WooCommerce storefront theme for the captured German catalog.
Version: 1.0.0
Requires at least: 6.1
Requires PHP: 7.4
Text Domain: grillgoods
*/

:root {
  --gg-red: #c40016;
  --gg-red-dark: #960012;
  --gg-black: #1f1f1f;
  --gg-ink: #2e2e2e;
  --gg-muted: #6e6e73;
  --gg-line: #e0e0e0;
  --gg-pale: #f6f6f4;
  --gg-white: #fff;
  --gg-max: 1600px;
  --gg-gutter: 24px;
  --gg-shadow: 0 16px 40px rgba(0, 0, 0, .08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gg-ink);
  background: var(--gg-white);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

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

a:hover {
  color: var(--gg-red);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="submit"],
.button {
  border: 0;
  border-radius: 0;
}

.screen-reader-text,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gg-container {
  width: min(calc(100% - 48px), var(--gg-max));
  margin-inline: auto;
}

.gg-announcement {
  padding: 9px var(--gg-gutter);
  color: var(--gg-white);
  background: var(--gg-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
}

.gg-announcement a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gg-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--gg-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.gg-header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}

.gg-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
}

.gg-brand img {
  display: block;
  width: 108px;
  height: auto;
}

.gg-header-search {
  display: flex;
  align-items: center;
  max-width: 430px;
}

.gg-header-search input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gg-line);
  border-right: 0;
  background: var(--gg-white);
}

.gg-header-search button,
.gg-button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--gg-white);
  background: var(--gg-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.gg-header-search button:hover,
.gg-button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
  color: var(--gg-white);
  background: var(--gg-red-dark);
  transform: translateY(-1px);
}

.gg-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gg-header-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.gg-header-action strong {
  color: var(--gg-red);
}

.gg-menu-toggle {
  display: none;
  padding: 8px 0;
  color: var(--gg-black);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gg-primary-nav {
  border-top: 1px solid var(--gg-line);
}

.gg-primary-nav .menu,
.gg-primary-nav ul {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gg-primary-nav li {
  position: relative;
}

.gg-primary-nav a {
  display: block;
  padding: 15px 17px;
  color: var(--gg-black);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.gg-primary-nav a:hover,
.gg-primary-nav .current-menu-item > a,
.gg-primary-nav .current-menu-ancestor > a {
  color: var(--gg-red);
}

.gg-primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  min-width: 220px;
  padding: 8px 0;
  border: 1px solid var(--gg-line);
  background: var(--gg-white);
  box-shadow: var(--gg-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.gg-primary-nav li:hover > .sub-menu,
.gg-primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gg-primary-nav .sub-menu a {
  padding: 10px 16px;
  text-transform: none;
}

.gg-hero {
  position: relative;
  min-height: 580px;
  color: var(--gg-white);
  background: var(--gg-black);
  overflow: hidden;
}

.gg-hero-media {
  position: absolute;
  inset: 0;
}

.gg-hero-media::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  content: "";
}

.gg-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gg-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 580px;
  padding-block: 80px;
}

.gg-eyebrow {
  margin: 0 0 14px;
  color: #f1b2b9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gg-hero h1,
.gg-page-title {
  max-width: 760px;
  margin: 0;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.gg-hero p {
  max-width: 620px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.gg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gg-button--outline {
  border: 1px solid rgba(255, 255, 255, .7);
  background: transparent;
}

.gg-button--outline:hover {
  background: rgba(255, 255, 255, .12);
}

.gg-band {
  padding-block: 72px;
}

.gg-band--pale {
  background: var(--gg-pale);
}

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

.gg-section-heading h2 {
  margin: 0;
  color: var(--gg-black);
  font-size: 42px;
  line-height: 1.05;
}

.gg-section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--gg-muted);
}

.gg-text-link {
  color: var(--gg-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gg-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}

.gg-category-tile {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 230px;
  padding: 22px;
  color: var(--gg-white);
  background: var(--gg-black);
  overflow: hidden;
}

.gg-category-tile::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  content: "";
}

.gg-category-tile:nth-child(2) {
  background: #4e3429;
}

.gg-category-tile:nth-child(3) {
  background: #37413e;
}

.gg-category-tile:nth-child(4) {
  background: #554f35;
}

.gg-category-tile > span {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 800;
}

.gg-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gg-product-card {
  position: relative;
  min-width: 0;
}

.gg-product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 24px;
  background: #f3f3f1;
  overflow: hidden;
}

.gg-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .35s ease;
}

.gg-product-card:hover .gg-product-card__media img {
  transform: scale(1.04);
}

.gg-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  color: var(--gg-white);
  background: var(--gg-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.gg-product-card__body {
  padding-top: 14px;
}

.gg-product-card__brand {
  min-height: 18px;
  margin-bottom: 3px;
  color: var(--gg-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gg-product-card h3 {
  min-height: 48px;
  margin: 0;
  color: var(--gg-black);
  font-size: 15px;
  line-height: 1.35;
}

.gg-product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.gg-product-card__price {
  color: var(--gg-black);
  font-size: 15px;
  font-weight: 800;
}

.gg-product-card__price del {
  margin-right: 6px;
  color: var(--gg-muted);
  font-weight: 400;
}

.gg-product-card__action {
  color: var(--gg-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.gg-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--gg-line);
}

.gg-feature-strip article {
  padding: 32px;
  border-right: 1px solid var(--gg-line);
}

.gg-feature-strip article:last-child {
  border-right: 0;
}

.gg-feature-strip h3 {
  margin: 0 0 8px;
  color: var(--gg-black);
  font-size: 20px;
}

.gg-feature-strip p {
  margin: 0;
  color: var(--gg-muted);
}

.gg-page-shell {
  padding-block: 54px 90px;
}

.gg-page-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gg-line);
  margin-bottom: 32px;
}

.gg-page-title {
  color: var(--gg-black);
  font-size: 48px;
}

.gg-page-description {
  max-width: 760px;
  margin-top: 16px;
  color: var(--gg-muted);
}

.gg-catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 42px;
}

.gg-filter-panel {
  align-self: start;
  position: sticky;
  top: 126px;
  padding: 20px;
  border: 1px solid var(--gg-line);
  background: var(--gg-white);
}

.gg-filter-panel h2 {
  margin: 0 0 20px;
  color: var(--gg-black);
  font-size: 17px;
}

.gg-filter-field {
  margin-bottom: 18px;
}

.gg-filter-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--gg-black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.gg-filter-field select,
.gg-filter-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--gg-line);
  background: var(--gg-white);
}

.gg-filter-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gg-filter-submit {
  width: 100%;
}

.gg-filter-clear {
  display: block;
  margin-top: 12px;
  color: var(--gg-muted);
  font-size: 12px;
  text-align: center;
}

.gg-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gg-line);
  margin-bottom: 24px;
}

.gg-catalog-count {
  color: var(--gg-muted);
  font-size: 13px;
}

.gg-catalog-sort select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--gg-line);
  background: var(--gg-white);
}

.gg-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  gap: 70px;
  align-items: start;
}

.gg-product-gallery .woocommerce-product-gallery {
  width: 100% !important;
}

.gg-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px !important;
}

.gg-product-gallery .flex-control-thumbs li {
  width: auto !important;
  float: none !important;
}

.gg-product-gallery .flex-control-thumbs img {
  border: 1px solid var(--gg-line);
}

.gg-product-summary {
  position: sticky;
  top: 126px;
}

.gg-product-summary .product_title {
  margin: 0 0 12px;
  color: var(--gg-black);
  font-size: 48px;
  line-height: 1.05;
}

.gg-product-summary .price {
  margin: 0 0 22px;
  color: var(--gg-red);
  font-size: 24px;
  font-weight: 800;
}

.gg-product-summary .woocommerce-product-details__short-description {
  padding-block: 20px;
  border-block: 1px solid var(--gg-line);
  margin-bottom: 22px;
  color: var(--gg-muted);
}

.gg-product-summary form.cart {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 24px;
}

.gg-product-summary form.cart .quantity input {
  width: 72px;
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid var(--gg-line);
}

.gg-product-summary form.cart .single_add_to_cart_button {
  flex: 1;
  min-height: 48px;
}

.gg-product-summary .product_meta {
  color: var(--gg-muted);
  font-size: 12px;
}

.gg-product-summary .product_meta > span {
  display: block;
  padding: 5px 0;
}

.gg-product-tabs {
  padding-top: 60px;
}

.gg-product-tabs .woocommerce-tabs {
  border-top: 1px solid var(--gg-line);
  padding-top: 30px;
}

.gg-product-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 28px !important;
}

.gg-product-tabs ul.tabs::before {
  display: none !important;
}

.gg-product-tabs ul.tabs li {
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
}

.gg-product-tabs ul.tabs li.active {
  border-bottom-color: var(--gg-red) !important;
}

.gg-product-tabs ul.tabs li a {
  padding: 10px 18px !important;
  color: var(--gg-black) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.gg-footer {
  padding-block: 60px 24px;
  color: rgba(255, 255, 255, .75);
  background: var(--gg-black);
}

.gg-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

.gg-footer h2,
.gg-footer h3 {
  margin: 0 0 14px;
  color: var(--gg-white);
}

.gg-footer h2 {
  font-size: 32px;
}

.gg-footer h3 {
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gg-footer p {
  max-width: 360px;
  margin: 0;
}

.gg-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.gg-footer li + li {
  margin-top: 7px;
}

.gg-footer a:hover {
  color: var(--gg-white);
}

.gg-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin-top: 46px;
  font-size: 12px;
}

.woocommerce-notices-wrapper {
  width: min(calc(100% - 48px), var(--gg-max));
  margin: 24px auto 0;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 14px 18px !important;
  border-top: 3px solid var(--gg-red) !important;
  background: var(--gg-pale) !important;
}

.woocommerce ul.products,
.gg-product-grid.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.gg-product-grid.products::before,
.gg-product-grid.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.gg-product-grid.products li.product {
  width: auto;
  margin: 0;
}

.woocommerce-pagination {
  margin-top: 42px;
}

.woocommerce-pagination ul {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gg-line);
  font-size: 12px;
}

.woocommerce-pagination .current {
  color: var(--gg-white);
  background: var(--gg-red);
}

.gg-empty-state {
  padding: 42px;
  border: 1px solid var(--gg-line);
  color: var(--gg-muted);
  text-align: center;
}

@media (max-width: 999px) {
  .gg-header-main {
    grid-template-columns: auto 1fr auto;
    min-height: 72px;
  }

  .gg-menu-toggle {
    display: block;
  }

  .gg-header-search {
    max-width: none;
  }

  .gg-brand {
    justify-self: start;
  }

  .gg-primary-nav {
    display: none;
  }

  .gg-primary-nav.is-open {
    display: block;
  }

  .gg-primary-nav .menu,
  .gg-primary-nav ul {
    display: block;
  }

  .gg-primary-nav a {
    padding: 13px var(--gg-gutter);
    border-top: 1px solid var(--gg-line);
  }

  .gg-primary-nav .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .gg-primary-nav .sub-menu a {
    padding-left: 44px;
    background: var(--gg-pale);
  }

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

  .gg-catalog-layout {
    grid-template-columns: 1fr;
  }

  .gg-filter-panel,
  .gg-product-summary {
    position: static;
  }

  .gg-product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gg-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --gg-gutter: 16px;
  }

  .gg-page-title {
    font-size: 36px;
  }

  .gg-section-heading h2,
  .gg-product-summary .product_title {
    font-size: 32px;
  }

  .gg-container,
  .woocommerce-notices-wrapper {
    width: min(calc(100% - 32px), var(--gg-max));
  }

  .gg-header-main {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .gg-header-search input[type="search"] {
    min-width: 0;
  }

  .gg-header-search button {
    width: 42px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .gg-header-search button::before {
    color: var(--gg-white);
    content: "Q";
    font-size: 14px;
  }

  .gg-header-actions {
    gap: 8px;
  }

  .gg-header-action span {
    display: none;
  }

  .gg-brand img {
    width: 84px;
  }

  .gg-hero,
  .gg-hero-content {
    min-height: 500px;
  }

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

  .gg-hero p {
    font-size: 16px;
  }

  .gg-band {
    padding-block: 48px;
  }

  .gg-section-heading,
  .gg-catalog-head,
  .gg-footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .gg-category-grid,
  .gg-product-grid,
  .woocommerce ul.products,
  .gg-product-grid.products,
  .gg-feature-strip,
  .gg-footer-grid {
    grid-template-columns: 1fr;
  }

  .gg-category-tile {
    min-height: 180px;
  }

  .gg-feature-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--gg-line);
  }

  .gg-feature-strip article:last-child {
    border-bottom: 0;
  }

  .gg-product-card h3 {
    min-height: 0;
  }

  .gg-product-layout {
    gap: 28px;
  }
}
