:root {
  --sgao-bg: #ffffff;
  --sgao-text: #111111;
  --sgao-muted: #686868;
  --sgao-line: #e8e8e8;
  --sgao-soft: #f6f6f4;
  --sgao-red: #c8192e;
  --sgao-red-dark: #991123;
  --sgao-green: #147a44;
  --sgao-shadow: 0 18px 48px rgba(17, 17, 17, 0.08);
  --sgao-wrap: min(1440px, calc(100vw - clamp(36px, 7vw, 104px)));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sgao-bg);
  color: var(--sgao-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  z-index: 99;
  padding: 10px 14px;
  background: var(--sgao-text);
  color: #fff;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--sgao-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: var(--sgao-wrap);
  min-height: 76px;
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.custom-logo-link img {
  display: block;
  max-height: 54px;
  width: auto;
}

.site-brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--sgao-text);
  color: #fff;
  font-weight: 900;
}

.site-brand__text strong,
.site-brand__text small {
  display: block;
}

.site-brand__text strong {
  font-size: 1rem;
}

.site-brand__text small {
  color: var(--sgao-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-nav__list,
.footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a,
.header-action {
  color: var(--sgao-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--sgao-line);
  border-radius: 8px;
}

.header-action--cart {
  border-color: var(--sgao-text);
  background: var(--sgao-text);
  color: #fff;
}

.header-action--cart:hover {
  background: var(--sgao-red);
  border-color: var(--sgao-red);
  color: #fff;
}

.header-action--cart span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--sgao-text);
  font-size: 0.76rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--sgao-line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--sgao-text);
}

.site-main {
  min-height: 60vh;
}

.page-shell,
.home-hero,
.trust-strip,
.home-catalog-preview,
.site-footer__inner,
.site-footer__bottom {
  width: var(--sgao-wrap);
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  padding: clamp(54px, 9vw, 112px) 0 42px;
  border-bottom: 1px solid var(--sgao-line);
}

.home-hero h1,
.page-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.5vw, 6.4rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 700px;
  margin: 22px 0 0;
  color: #424242;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--sgao-text);
  border-radius: 8px;
  background: var(--sgao-text);
  color: #fff;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.button--secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff;
  color: var(--sgao-text);
}

.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  border-color: var(--sgao-red);
  background: var(--sgao-red);
  color: #fff;
}

.home-hero__panel {
  display: grid;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--sgao-line);
  border-radius: 8px;
  background: var(--sgao-soft);
}

.home-hero__panel span,
.section-heading p,
.post-card__meta {
  color: var(--sgao-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-hero__panel strong {
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1;
}

.home-hero__panel p {
  margin: 0;
  font-size: 1rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--sgao-line);
  border-radius: 8px;
  overflow: hidden;
}

.trust-strip div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: #fff;
}

.trust-strip strong {
  font-size: 1rem;
}

.trust-strip span {
  color: var(--sgao-muted);
  font-size: 0.9rem;
}

.home-catalog-preview,
.page-shell {
  padding: clamp(42px, 7vw, 78px) 0;
}

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

.section-heading h2,
.entry-content h2,
.woocommerce-products-header__title,
.woocommerce div.product .product_title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.section-heading p {
  max-width: 420px;
  margin: 0;
  text-align: right;
}

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

.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content a {
  color: var(--sgao-red);
  font-weight: 800;
}

.entry-content .alignwide {
  max-width: var(--sgao-wrap);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  border: 1px solid var(--sgao-line);
  border-radius: 8px;
  overflow: hidden;
}

.post-card a {
  display: grid;
  color: inherit;
}

.post-card figure,
.single-entry__image {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sgao-soft);
}

.post-card img,
.single-entry__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card div {
  padding: 18px;
}

.post-card h1 {
  margin: 6px 0 8px;
  font-size: 1.3rem;
  line-height: 1.15;
}

.empty-page {
  padding: 72px 0;
  text-align: center;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--sgao-line);
  background: #111;
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.3fr;
  gap: clamp(28px, 6vw, 90px);
  padding: 44px 0;
}

.footer-brand {
  display: flex;
  gap: 14px;
}

.footer-brand .site-brand__mark {
  background: #fff;
  color: #111;
}

.footer-brand p,
.footer-widget p,
.site-footer__bottom {
  color: rgba(255, 255, 255, 0.68);
}

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

.footer-widget h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.site-footer__bottom p {
  margin: 0;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.78);
}

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

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 16px;
  border: 1px solid var(--sgao-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px;
  object-fit: cover;
  background: var(--sgao-soft);
}

.woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-left: 14px !important;
  margin-right: 14px !important;
}

.woocommerce-loop-product__title {
  color: var(--sgao-text);
  font-size: 1rem !important;
  font-weight: 900;
  line-height: 1.2;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--sgao-red);
  font-weight: 900;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 72px);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: auto;
  float: none;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.woocommerce .quantity .qty {
  min-height: 46px;
  border: 1px solid var(--sgao-line);
  border-radius: 8px;
}

.woocommerce-cart table.cart,
.woocommerce-checkout-review-order-table,
.woocommerce table.shop_table {
  border: 1px solid var(--sgao-line);
  border-radius: 8px;
  overflow: hidden;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
  min-height: 46px;
  border: 1px solid var(--sgao-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.woocommerce-checkout #payment {
  border: 1px solid var(--sgao-line);
  border-radius: 8px;
  background: var(--sgao-soft);
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--sgao-line);
}

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 8px;
}

.sgao-catalog {
  width: 100%;
}

.sgao-catalog__hero {
  padding-top: 0;
}

@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .primary-nav,
  .header-actions {
    display: none;
    grid-column: 1 / -1;
  }

  .site-header.is-open .primary-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }

  .site-header.is-open .primary-nav {
    justify-content: flex-start;
  }

  .primary-nav__list {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 0 12px;
  }

  .header-actions {
    justify-content: flex-start;
    padding-bottom: 18px;
  }

  .home-hero,
  .site-footer__inner,
  .woocommerce div.product {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .woocommerce ul.products,
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --sgao-wrap: min(100% - 32px, 1440px);
  }

  .home-hero h1,
  .page-header h1 {
    font-size: clamp(2.25rem, 13vw, 4rem);
  }

  .trust-strip,
  .woocommerce ul.products,
  .post-list,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading p {
    text-align: left;
  }
}
