/* ESTYLUS V3.3 — PREMIUM SHOPPING */

:root {
  --est33-ink: #302722;
  --est33-muted: #756d67;
  --est33-accent: #8e6654;
  --est33-soft: #f8f5f1;
  --est33-border: #e8e2dc;
}

/* IDENTIDADE GERAL */

body {
  --theme-palette-color-1: #302722;
  --theme-palette-color-2: #8e6654;
}

.ct-header {
  border-bottom: 1px solid var(--est33-border);
}

.ct-header .site-title {
  letter-spacing: -.045em;
}

/* CATÁLOGO E CATEGORIAS */

body.post-type-archive-product .hero-section,
body.tax-product_cat .hero-section,
body.post-type-archive-product [data-type="type-1"] .hero-section,
body.tax-product_cat [data-type="type-1"] .hero-section {
  padding-top: 35px;
  padding-bottom: 35px;
  min-height: 0;
  background: var(--est33-soft);
}

body.post-type-archive-product .hero-section h1,
body.tax-product_cat .hero-section h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -.04em;
  color: var(--est33-ink);
}

.woocommerce .woocommerce-result-count {
  color: var(--est33-muted);
  font-size: 13px;
}

.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--est33-border);
  background: #fff;
  color: var(--est33-ink);
  border-radius: 0;
  font-size: 13px;
}

/* CARTÕES DE PRODUTO */

.woocommerce ul.products li.product {
  min-width: 0;
  transition: transform .2s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
}

.woocommerce ul.products li.product img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #f5f3f0;
  border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--est33-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.woocommerce ul.products li.product .price {
  color: var(--est33-ink);
  font-size: 15px;
  font-weight: 700;
}

.woocommerce ul.products li.product .button {
  background: var(--est33-ink);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 20px;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--est33-accent);
  color: #fff;
}

/* HOMEPAGE — NOVIDADES */

body.home .est3-products {
  background: var(--est33-soft);
}

body.home .est3-products .woocommerce ul.products {
  align-items: start;
}

body.home .est3-products .woocommerce ul.products li.product:only-child {
  max-width: 340px;
}

body.home .est3-products .woocommerce ul.products li.product img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #fff;
}

/* PÁGINA INDIVIDUAL */

body.single-product {
  background: #fff;
}

body.single-product .woocommerce div.product .product_title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 400;
  letter-spacing: -.035em;
  color: var(--est33-ink);
}

body.single-product .woocommerce div.product p.price,
body.single-product .woocommerce div.product span.price {
  color: var(--est33-ink);
  font-size: 23px;
  font-weight: 600;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery img {
  background: #f7f5f2;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--est33-ink) !important;
  color: #fff !important;
  border-color: var(--est33-ink) !important;
  border-radius: 0;
  min-height: 50px;
  font-weight: 600;
  transition: background .2s ease;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--est33-accent) !important;
  border-color: var(--est33-accent) !important;
}

body.single-product .woocommerce div.product form.cart .quantity {
  border-color: var(--est33-border);
}

body.single-product .woocommerce div.product .product_meta {
  color: var(--est33-muted);
  font-size: 12px;
}

body.single-product .woocommerce div.product .product_meta a,
body.single-product .woocommerce-breadcrumb a {
  color: var(--est33-accent);
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--est33-ink);
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-color: var(--est33-ink);
}

/* LINKS E FOCUS */

.woocommerce a:not(.button):hover {
  color: var(--est33-accent);
}

.woocommerce a:focus-visible,
.woocommerce button:focus-visible {
  outline: 2px solid var(--est33-accent);
  outline-offset: 3px;
}

/* MOBILE */

@media (max-width: 767px) {
  body.post-type-archive-product .hero-section,
  body.tax-product_cat .hero-section {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
  }

  body.single-product .woocommerce div.product .product_title {
    font-size: 32px;
  }

  body.home .est3-products .woocommerce ul.products li.product:only-child {
    max-width: 100%;
  }
}
