/*
Theme Name: GS Acabamentos Store
Theme URI: https://gsacabamentos.com.br
Author: Codex
Description: Tema personalizado para a loja GS Acabamentos com integracao WooCommerce.
Version: 1.0.0
Text Domain: gsacabamentos-store
*/

:root {
  --gs-bg: #f4f1eb;
  --gs-surface: #ffffff;
  --gs-surface-alt: #e7e1d8;
  --gs-text: #232220;
  --gs-muted: #676157;
  --gs-accent: #bc5f3d;
  --gs-accent-dark: #8a452d;
  --gs-secondary: #25453f;
  --gs-line: rgba(35, 34, 32, 0.12);
  --gs-shadow: 0 24px 48px rgba(25, 28, 28, 0.08);
  --gs-radius: 8px;
  --gs-content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gs-text);
  background:
    radial-gradient(circle at top left, rgba(188, 95, 61, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 69, 63, 0.14), transparent 30%),
    var(--gs-bg);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

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

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

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

.gs-shell {
  width: min(calc(100% - 2rem), var(--gs-content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(244, 241, 235, 0.9);
  border-bottom: 1px solid rgba(35, 34, 32, 0.08);
}

.site-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-branding__logo-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.site-branding__logo {
  width: min(280px, 34vw);
  max-height: 72px;
  object-fit: contain;
}

.site-branding__symbol {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.site-branding__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--gs-secondary), var(--gs-accent));
  font-weight: 700;
  letter-spacing: 0;
}

.site-branding__name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.1;
}

.site-branding__tag {
  display: block;
  color: var(--gs-muted);
  font-size: 0.82rem;
}

.menu-toggle {
  display: none;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--gs-text);
  color: #fff;
  font: inherit;
}

.primary-nav {
  justify-self: center;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--gs-muted);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  background: rgba(37, 69, 63, 0.08);
  color: var(--gs-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions__phone,
.header-actions__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.header-actions__phone {
  color: var(--gs-secondary);
}

.header-actions__cart {
  background: var(--gs-text);
  color: #fff;
}

.gsa-elementor-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(244, 241, 235, 0.92);
  border-bottom: 1px solid rgba(35, 34, 32, 0.08);
}

.gsa-elementor-header .elementor-container {
  width: min(calc(100% - 2rem), var(--gs-content));
  min-height: 78px;
  align-items: center;
  margin: 0 auto;
}

.gsa-elementor-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.gsa-elementor-brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gs-secondary), #c68a3f);
  color: #fff;
  font-weight: 800;
}

.gsa-elementor-brand__name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.1;
  font-weight: 800;
}

.gsa-elementor-brand__tag {
  display: block;
  color: var(--gs-muted);
  font-size: 0.82rem;
}

.gsa-elementor-header .elementor-widget-shortcode,
.gsa-elementor-header .elementor-widget-shortcode .elementor-shortcode {
  width: 100%;
}

.gsa-elementor-header .primary-nav {
  justify-self: auto;
}

.gsa-elementor-header .primary-nav ul {
  justify-content: center;
}

.gsa-elementor-header .header-actions {
  justify-content: flex-end;
}

.hero {
  padding: 2rem 0 1rem;
}

.hero__panel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border-radius: 0;
  background-position: center;
  background-size: cover;
  box-shadow: var(--gs-shadow);
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(18, 20, 21, 0.74) 12%, rgba(18, 20, 21, 0.36) 48%, rgba(18, 20, 21, 0.14) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  padding: clamp(2rem, 4vw, 4rem);
}

.hero__layout {
  max-width: 620px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  line-height: 0.98;
}

.hero p,
.page-hero p {
  margin: 0 0 1.5rem;
  max-width: 56ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.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: 48px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--gs-accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  transform: translateY(-1px);
  background: var(--gs-accent-dark);
  color: #fff;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.button--secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding-top: 2rem;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.section-heading p {
  margin: 0;
  max-width: 44ch;
  color: var(--gs-muted);
}

.category-grid,
.feature-grid,
.trust-grid {
  display: grid;
  gap: 1.2rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--gs-surface);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68));
}

.category-card__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.category-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 1.25rem;
  color: #fff;
}

.category-card__count {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 700;
}

.category-card h3,
.product-card__title {
  margin: 0.8rem 0 0.45rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.category-card p,
.product-card__excerpt,
.trust-card p,
.feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.trust-card,
.feature-card,
.page-panel,
.content-panel {
  background: var(--gs-surface);
  border: 1px solid rgba(35, 34, 32, 0.06);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow);
}

.product-card__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(145deg, #ddd6c9, #f3efe7);
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 1.2rem;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-card .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--gs-secondary);
  font-size: 1.08rem;
  font-weight: 700;
}

.feature-card,
.trust-card {
  padding: 1.5rem;
}

.feature-card h3,
.trust-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.feature-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(188, 95, 61, 0.12);
  color: var(--gs-accent);
  font-weight: 800;
}

.section-band {
  background:
    linear-gradient(135deg, rgba(37, 69, 63, 0.95), rgba(21, 30, 30, 0.96)),
    var(--gs-secondary);
  color: #fff;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.trust-card p {
  color: rgba(255, 255, 255, 0.84);
}

.page-hero {
  padding: 4rem 0 1rem;
}

.page-hero__panel {
  padding: 2.25rem;
  border-radius: var(--gs-radius);
  background:
    linear-gradient(135deg, rgba(37, 69, 63, 0.94), rgba(188, 95, 61, 0.94)),
    var(--gs-secondary);
  color: #fff;
  box-shadow: var(--gs-shadow);
}

.page-hero h1 {
  margin-top: 0.4rem;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.content-panel,
.page-panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 2rem 0 3rem;
  background: #171918;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer__logo {
  width: min(260px, 100%);
  max-height: 92px;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

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

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce-products-header__title.page-title {
  display: none;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 1rem;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0;
}

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--gs-surface);
  border: 1px solid rgba(35, 34, 32, 0.06);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow);
}

.woocommerce ul.products li.product a img {
  margin: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-left: 1rem;
  margin-right: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding-top: 1rem;
  font-size: 1.1rem;
}

.woocommerce ul.products li.product .price {
  color: var(--gs-secondary);
  font-weight: 700;
}

.woocommerce ul.products li.product .button {
  margin-bottom: 1rem;
}

.woocommerce div.product div.images img,
.woocommerce div.product div.summary {
  border-radius: var(--gs-radius);
}

.woocommerce div.product form.cart .button,
.woocommerce .cart .button,
.woocommerce .cart input.button,
.woocommerce-checkout .button.alt {
  background: var(--gs-secondary);
}

.woocommerce span.onsale {
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: var(--gs-accent);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--gs-secondary);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--gs-secondary);
}

.gsa-elementor-home {
  background:
    radial-gradient(circle at 12% 10%, rgba(192, 137, 62, 0.18), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(37, 69, 63, 0.18), transparent 30%),
    var(--gs-bg);
}

.gsa-elementor-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: grid;
  align-items: end;
  padding: clamp(2rem, 5vw, 5rem);
  color: #fff;
  background-position: center;
  background-size: cover;
}

.gsa-elementor-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(16, 24, 23, 0.82), rgba(16, 24, 23, 0.44) 55%, rgba(16, 24, 23, 0.12));
}

.gsa-elementor-hero > * {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.gsa-elementor-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: 0.98;
}

.gsa-elementor-hero p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.gsa-elementor-kicker {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.gsa-elementor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.gsa-elementor-section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.gsa-elementor-wrap {
  width: min(calc(100% - 2rem), var(--gs-content));
  margin: 0 auto;
}

.gsa-elementor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gsa-elementor-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.gsa-elementor-heading p {
  max-width: 440px;
  margin: 0;
  color: var(--gs-muted);
}

.gsa-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gsa-service-card {
  min-height: 230px;
  padding: 1.25rem;
  border-radius: var(--gs-radius);
  background: var(--gs-surface);
  border: 1px solid rgba(35, 34, 32, 0.08);
  box-shadow: var(--gs-shadow);
}

.gsa-service-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
  line-height: 1.15;
}

.gsa-service-card p {
  margin: 0;
  color: var(--gs-muted);
}

.gsa-elementor-dark {
  background: linear-gradient(135deg, rgba(37, 69, 63, 0.98), rgba(19, 28, 28, 0.98));
  color: #fff;
}

.gsa-elementor-dark .gsa-elementor-heading p,
.gsa-elementor-dark .gsa-service-card p {
  color: rgba(255, 255, 255, 0.78);
}

.gsa-elementor-dark .gsa-service-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.gsa-elementor-products .woocommerce ul.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .gsa-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gsa-elementor-hero {
    min-height: 560px;
    padding: 2rem 1rem;
  }

  .gsa-elementor-heading {
    display: block;
  }

  .gsa-service-grid,
  .gsa-elementor-products .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .category-grid,
  .feature-grid,
  .trust-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header__bar {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    padding: 1rem 0;
  }

  .site-branding__logo {
    width: min(230px, 42vw);
  }

  .site-branding {
    grid-area: brand;
  }

  .header-actions {
    grid-area: actions;
    justify-self: end;
  }

  .gsa-elementor-header .elementor-container {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 1rem 0;
  }

  .primary-nav {
    grid-area: nav;
    justify-self: stretch;
    margin-top: 0.75rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .gs-shell {
    width: min(calc(100% - 1.25rem), var(--gs-content));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header__bar {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .site-branding__logo {
    width: min(210px, 56vw);
    max-height: 62px;
  }

  .site-branding__symbol {
    width: 48px;
    height: 48px;
  }

  .header-actions__phone {
    display: none;
  }

  .gsa-elementor-header .elementor-container {
    width: min(calc(100% - 1.25rem), var(--gs-content));
    min-height: auto;
  }

  .gsa-elementor-brand__tag {
    display: none;
  }

  .gsa-elementor-header .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .gsa-elementor-header .primary-nav a {
    justify-content: flex-start;
  }

  .primary-nav {
    display: none;
  }

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

  .primary-nav ul {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.35rem 0;
  }

  .primary-nav a {
    justify-content: flex-start;
    padding: 0.6rem 0.9rem;
  }

  .hero__panel,
  .hero__content {
    min-height: 540px;
  }

  .category-grid,
  .feature-grid,
  .trust-grid,
  .woocommerce ul.products,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer__bottom {
    display: block;
  }

  .site-footer__bottom p + p {
    margin-top: 0.65rem;
  }
}
