/*
Theme Name: Arte Destak — Quadros e Molduras
Theme URI: https://artedestak.com.br
Author: Arte Destak Vidraçaria e Molduraria
Author URI: https://artedestak.com.br
Description: Tema oficial WordPress para a loja Arte Destak — Quadros, Molduras e Vidraçaria Sob Medida. Inclui vitrine completa, simulador visual 2D proporcional de molduras, categorias circulares e integração total com o plugin Destak Custom Frames.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 9.5
License: GPL v2 or later
Text Domain: destak-theme
*/

:root {
  --destak-black: #171614;
  --destak-gold: #B98235;
  --destak-gold-light: #E6B664;
  --destak-beige: #F5EBDD;
  --destak-coffee: #6B3E1B;
  --destak-white: #FFFFFF;
  --destak-sand: #D8C1A7;
  --destak-bg: #FAF6F0;
}

body {
  background-color: var(--destak-bg);
  color: var(--destak-black);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, .font-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-mono-tabular {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* Estilização nativa para páginas internas do WooCommerce (Carrinho, Checkout, Minha Conta) */
.woocommerce-page .woocommerce {
  background: #FFFFFF;
  border: 1px solid #D8C1A7;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: #6B3E1B !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 24px !important;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #522E13 !important;
}

.woocommerce table.shop_table {
  border-color: #D8C1A7 !important;
  border-radius: 8px !important;
}

.woocommerce-info,
.woocommerce-message {
  border-top-color: #B98235 !important;
  background-color: #F5EBDD !important;
  color: #171614 !important;
}

/* =========================================================
   GRADE DE PRODUTOS DO WOOCOMMERCE (Loja, Relacionados, Upsells)
   O tema assume o layout em CSS Grid para não depender do
   float legado do woocommerce-layout.css (que conflita com o
   Tailwind CDN e faz os produtos ficarem um em cima do outro).
   ========================================================= */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  margin: 0 !important;
  padding: 0;
}

@media (min-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products {
    gap: 1.5rem;
  }

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

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

  .woocommerce ul.products.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }
}

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

.woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(216, 193, 167, 0.7);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  list-style: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.woocommerce ul.products li.product:hover {
  border-color: rgba(185, 130, 53, 0.55);
  box-shadow: 0 6px 20px rgba(23, 22, 20, 0.08);
  transform: translateY(-2px);
}

.woocommerce ul.products li.product a {
  color: inherit;
  text-decoration: none;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.woocommerce ul.products li.product a img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  background: #f5ebdd;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: #171614;
  padding: 0.75rem 1rem 0;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
  color: #6b3e1b;
}

.woocommerce ul.products li.product .price {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #171614;
  padding: 0.375rem 1rem 0;
  margin: 0;
  display: block;
}

.woocommerce ul.products li.product .price del {
  opacity: 0.55;
  font-weight: 400;
  margin-right: 0.35rem;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: #6b3e1b;
}

.woocommerce ul.products li.product .price .from {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.7;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product button.button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.875rem 1rem 1rem;
  padding: 0.625rem 0.75rem;
  background: #6b3e1b;
  color: #ffffff !important;
  border: 0;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  min-height: 40px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
  background: #522e13;
}

.woocommerce ul.products li.product .button.added,
.woocommerce ul.products li.product a.button.added {
  background: #b98235;
  color: #171614 !important;
}

.woocommerce ul.products li.product .onsale {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  left: auto;
  bottom: auto;
  margin: 0;
  padding: 0.25rem 0.625rem;
  min-height: 0;
  width: auto;
  line-height: 1.4;
  background: #b98235;
  color: #ffffff;
  border-radius: 999px;
  border: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   SEÇÃO "PRODUTOS RELACIONADOS" E UPSELLS (página de produto)
   ========================================================= */
.woocommerce .related.products,
.woocommerce .upsells.products {
  clear: both;
  padding-top: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid #d8c1a7;
}

.woocommerce .related.products h2,
.woocommerce .upsells.products h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #171614;
  margin: 0 0 1.25rem;
  padding: 0;
  letter-spacing: -0.01em;
}

/* =========================================================
   PÁGINA DE PRODUTO INDIVIDUAL — layout responsivo
   ========================================================= */
.woocommerce div.product {
  margin-bottom: 0;
}

.woocommerce div.product .product_title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #171614;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 700;
  color: #6b3e1b;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  opacity: 0.55;
  font-size: 1.125rem;
  font-weight: 400;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  text-decoration: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(23, 22, 20, 0.8);
  margin: 1rem 0 1.5rem;
}

.woocommerce div.product form.cart {
  margin: 1.5rem 0;
}

.woocommerce div.product form.cart div.quantity {
  margin-right: 0.75rem;
}

.woocommerce div.product form.cart .qty {
  width: 5rem;
  padding: 0.625rem 0.5rem;
  border: 1px solid #d8c1a7;
  border-radius: 8px;
  background: #faf6f0;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #171614;
  text-align: center;
}

.woocommerce div.product form.cart .qty:focus {
  outline: none;
  border-color: #b98235;
  box-shadow: 0 0 0 3px rgba(185, 130, 53, 0.15);
}

/* =========================================================
   VARIAÇÕES DO PRODUTO (selects: cor, tamanho, etc.)
   Padroniza com o mesmo visual do campo quantidade
   ========================================================= */
.woocommerce div.product form.variations_form table.variations select,
.woocommerce div.product form.cart .variations select,
.woocommerce div.product form.cart select {
  border: 1px solid #d8c1a7 !important;
  border-radius: 8px !important;
  background-color: #faf6f0 !important;
  color: #171614 !important;
  min-height: 44px;
  padding: 0.625rem 0.75rem !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B3E1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 1.125rem !important;
  padding-right: 2.5rem !important;
}

.woocommerce div.product form.variations_form table.variations select:focus,
.woocommerce div.product form.cart .variations select:focus,
.woocommerce div.product form.cart select:focus {
  outline: none !important;
  border-color: #b98235 !important;
  box-shadow: 0 0 0 3px rgba(185, 130, 53, 0.15) !important;
}

/* Label das variações */
.woocommerce div.product form.variations_form table.variations label {
  font-weight: 600 !important;
  color: #6b3e1b !important;
  margin-bottom: 0.375rem !important;
  display: block !important;
}

.woocommerce div.product form.cart .variations td.value {
  padding-bottom: 0.75rem !important;
}

.woocommerce div.product .woocommerce-tabs {
  clear: both;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #d8c1a7;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0;
  margin: 0 0 1.25rem;
  list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  float: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5ebdd;
  border: 1px solid #d8c1a7;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b3e1b;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  background: #171614;
  border-color: #171614;
  color: #e6b664;
}

.woocommerce div.product .woocommerce-tabs .panel {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: #faf6f0;
  border: 1px solid #d8c1a7;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(23, 22, 20, 0.85);
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.375rem;
  margin-top: 0;
  color: #171614;
}

/* Galeria + resumo: empilhados no mobile, lado a lado no desktop */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary {
  float: none;
  width: 100%;
  margin-left: 0;
}

.woocommerce div.product .woocommerce-product-gallery {
  margin-bottom: 1.5rem;
  position: relative;
}

.woocommerce div.product .woocommerce-product-gallery .flex-viewport,
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
  border: 1px solid #d8c1a7;
  border-radius: 12px;
  overflow: hidden;
  background: #f5ebdd;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a {
  display: block;
}

.woocommerce div.product .woocommerce-product-gallery img {
  border-radius: 0;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
  width: auto;
  float: none;
  margin: 0;
  padding: 0;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #d8c1a7;
  border-radius: 8px;
  opacity: 0.85;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li.flex-active img {
  opacity: 1;
  border-color: #b98235;
}

@media (min-width: 992px) {
  .woocommerce div.product::after {
    content: '';
    display: table;
    clear: both;
  }

  .woocommerce div.product .woocommerce-product-gallery {
    float: left;
    width: 47%;
    margin-bottom: 0;
    position: sticky;
    top: 7rem;
  }

  .woocommerce div.product .summary {
    float: right;
    width: 49%;
    margin-left: 0;
  }

  .woocommerce div.product .product_title {
    font-size: 2.375rem;
  }
}

/* =========================================================
   CONFIGURADOR SOB MEDIDA (destak-configurator.php)
   ========================================================= */
.destak-wc-configurator {
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem;
  background: #faf6f0;
  border: 1px solid #d8c1a7;
  border-radius: 12px;
}

.destak-config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 569px) {
  .destak-config-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.destak-field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #171614;
  margin-bottom: 0.375rem;
}

.destak-field input[type='number'] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  background: #ffffff;
  border: 1px solid #d8c1a7;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #171614;
}

.destak-field input[type='number']:focus {
  outline: none;
  border-color: #b98235;
  box-shadow: 0 0 0 3px rgba(185, 130, 53, 0.15);
}

.destak-glass-fieldset {
  border: 1px solid #d8c1a7;
  border-radius: 10px;
  padding: 0.5rem 1rem 1rem;
  margin: 1rem 0;
}

.destak-glass-fieldset legend {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b3e1b;
  padding: 0 0.375rem;
}

.destak-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  margin-bottom: 0.5rem;
  background: #ffffff;
  border: 1px solid #d8c1a7;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #171614;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.destak-radio-card:last-child {
  margin-bottom: 0;
}

.destak-radio-card:has(input:checked) {
  border-color: #b98235;
  background: #f5ebdd;
}

.destak-radio-card input {
  accent-color: #6b3e1b;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.destak-price-summary {
  margin-top: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #d8c1a7;
  border-radius: 10px;
}

.destak-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #171614;
  padding: 0.25rem 0;
}

.destak-summary-row strong {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.destak-summary-row span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.destak-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px dashed #d8c1a7;
  font-size: 0.875rem;
  font-weight: 700;
  color: #171614;
}

.destak-summary-total strong {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.125rem;
  color: #6b3e1b;
}

/* ---------------------------------------------
   Marquee da barra superior (header)
--------------------------------------------- */
@keyframes destak-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.destak-marquee-inner {
  display: flex;
  align-items: center;
  width: max-content;
  animation: destak-marquee-scroll 60s linear infinite;
  will-change: transform;
}

.destak-marquee-inner:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .destak-marquee-inner {
    animation: none;
  }
}

/* ---------------------------------------------
   Página do Carrinho — evitar estouro no mobile
--------------------------------------------- */
.woocommerce-cart form.woocommerce-cart-form,
.woocommerce-cart .cart_totals,
.woocommerce-cart .cart-collaterals {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.woocommerce table.shop_table {
  width: 100%;
}

@media (max-width: 767px) {
  .woocommerce-cart table.shop_table th,
  .woocommerce-cart table.shop_table td {
    padding: 10px 8px !important;
    font-size: 12px;
  }

  .woocommerce-cart table.shop_table td.product-thumbnail {
    display: none;
  }

  .woocommerce-cart table.shop_table td.product-name {
    word-break: break-word;
  }

  .woocommerce-cart table.shop_table td.product-price,
  .woocommerce-cart table.shop_table td.product-subtotal {
    white-space: nowrap;
  }

  .woocommerce-cart table.cart .quantity .qty {
    width: 3.2rem;
    padding: 4px;
  }
}

/* ---------------------------------------------
   Carrinho em Blocos (wc-block-cart) — mobile
--------------------------------------------- */
.woocommerce-cart .wc-block-cart,
.woocommerce-cart .wc-block-cart__inner,
.wc-block-cart,
.wc-block-cart__inner {
  max-width: 100% !important;
}

.woocommerce-cart .wc-block-cart,
.wc-block-cart {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wc-block-components-line-item__product,
.wc-block-components-product-details {
  min-width: 0;
}

@media (max-width: 767px) {
  .wc-block-cart-items__header {
    display: none !important;
  }

  .wc-block-components-line-item {
    padding-left: 6px !important;
    padding-right: 6px !important;
    column-gap: 6px !important;
  }

  .wc-block-components-line-item .wc-block-components-product-image {
    width: 40px !important;
    height: 40px !important;
  }

  .wc-block-components-product-name {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .wc-block-components-product-details {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .wc-block-components-line-item__total,
  .wc-block-components-product-price {
    font-size: 11px !important;
    white-space: nowrap;
  }

  .wc-block-components-quantity-selector {
    padding: 1px 3px !important;
  }

  .wc-block-components-quantity-selector__input {
    width: 1.9rem !important;
  }
}

/* Trava extra: conteúdo largo do WooCommerce rola dentro do cartão, não na página */
.woocommerce main > div {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------
   FAQ — acordeão (details/summary)
--------------------------------------------- */
#perguntas-frequentes summary::-webkit-details-marker {
  display: none;
}

#perguntas-frequentes details[open] {
  border-color: #b98235;
}

/* =========================================================
   SIMULADOR DE TAMANHO NA PAREDE (destak-size-simulator.php)
   Paleta Arte Destak: #171614 / #B98235 / #E6B664 / #6B3E1B / #F5EBDD / #D8C1A7
   ========================================================= */
.destak-simulator {
  margin: 0 auto;
  max-width: 1060px;
  scroll-margin-top: 110px;
}

.destak-simulator.destak-sim-flash {
  border-color: #b98235;
  box-shadow: 0 0 0 4px rgba(185, 130, 53, 0.18);
}

.destak-sim-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: #171614;
  padding: 1.15rem 1.35rem;
}

.destak-sim-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #b98235;
  color: #171614;
  flex-shrink: 0;
}

.destak-sim-title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: #e6b664;
}

.destak-sim-title em {
  font-style: italic;
  color: #ffffff;
}

.destak-sim-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.destak-sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
}

@media (min-width: 900px) {
  .destak-sim-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.destak-sim-steps {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: #ffffff;
  border: 1px solid #d8c1a7;
  border-radius: 14px;
  box-shadow: 0 14px 34px -22px rgba(60, 40, 28, 0.45);
}

.destak-sim-step {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.destak-sim-step-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #171614;
}

.destak-sim-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #b98235;
  color: #171614;
  font-size: 0.6875rem;
  font-weight: 700;
}

.destak-sim-furniture-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.destak-sim-fbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.3rem;
  background: rgba(245, 235, 221, 0.6);
  border: 1px solid #d8c1a7;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: #171614;
  cursor: pointer;
  transition: all 0.18s ease;
}

.destak-sim-fbtn:hover {
  border-color: #b98235;
}

.destak-sim-fbtn.is-active {
  background: #171614;
  border-color: #171614;
  color: #e6b664;
}

.destak-sim-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.destak-sim-slider-row input[type='range'] {
  flex: 1;
  accent-color: #b98235;
  cursor: pointer;
  min-width: 0;
}

.destak-sim-input {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f5ebdd;
  border: 1px solid #d8c1a7;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  flex-shrink: 0;
}

.destak-sim-input input[type='number'] {
  width: 3.4rem;
  background: transparent;
  border: none;
  outline: none;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  font-weight: 700;
  color: #171614;
  -moz-appearance: textfield;
}

.destak-sim-input input[type='number']::-webkit-outer-spin-button,
.destak-sim-input input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.destak-sim-input em {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6b3e1b;
}

.destak-sim-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.destak-sim-size {
  position: relative;
  padding: 0.5rem 0.7rem;
  background: rgba(245, 235, 221, 0.6);
  border: 1px solid #d8c1a7;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 700;
  color: #171614;
  cursor: pointer;
  transition: all 0.18s ease;
}

.destak-sim-size:hover {
  border-color: #b98235;
}

.destak-sim-size.is-active {
  background: #171614;
  border-color: #171614;
  color: #e6b664;
}

.destak-sim-star {
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #b98235;
  color: #171614;
  font-size: 0.55rem;
  line-height: 17px;
  text-align: center;
}

.destak-sim-size.is-recommended .destak-sim-star {
  display: block;
}

.destak-sim-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: #f5ebdd;
  border: 1px solid #d8c1a7;
  border-radius: 8px;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #6b3e1b;
}

.destak-sim-info > span:first-child {
  color: #b98235;
  font-weight: 700;
}

.destak-sim-apply {
  width: 100%;
  padding: 0.8rem;
  background: #b98235;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #171614;
  cursor: pointer;
  transition: background 0.18s ease;
}

.destak-sim-apply:hover {
  background: #9e6d28;
}

/* ---------- Visualização da parede ---------- */
.destak-sim-view {
  order: -1;
  padding: 0.95rem;
  background: #ffffff;
  border: 1px solid #d8c1a7;
  border-radius: 14px;
  box-shadow: 0 14px 34px -22px rgba(60, 40, 28, 0.45);
  display: flex;
  flex-direction: column;
}

.destak-sim-wall {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  aspect-ratio: 250 / 190;
  border: 1px solid #d8c1a7;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f5ebdd 100%);
}

.destak-sim-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: rgba(216, 193, 167, 0.7);
  border-top: 1px solid rgba(107, 62, 27, 0.2);
}

.destak-sim-art {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5ebdd 0%, #ffffff 50%, #f5ebdd 100%);
  border: 5px solid #171614;
  box-shadow: 0 14px 26px -10px rgba(23, 22, 20, 0.4);
  transition: all 0.3s ease;
}

.destak-sim-art-label {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a89f93;
}

.destak-sim-cota {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.destak-sim-cota i {
  flex: 1;
  height: 1px;
  background: #b98235;
}

.destak-sim-cota b {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #6b3e1b;
  background: #ffffff;
  border: 1px solid #d8c1a7;
  border-radius: 4px;
  padding: 0 0.25rem;
}

.destak-sim-furniture {
  position: absolute;
  bottom: 18px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 6px 10px rgba(23, 22, 20, 0.3));
}

/* ---------- Ilustrações dos móveis (sofá / aparador / cama) ---------- */
.dsf-set {
  position: absolute;
  inset: 0;
  display: none;
}

.destak-sim-furniture[data-furniture='sofa'] .dsf-sofa-set,
.destak-sim-furniture[data-furniture='aparador'] .dsf-aparador-set,
.destak-sim-furniture[data-furniture='cama'] .dsf-cama-set {
  display: block;
}

.dsf-part {
  position: absolute;
  display: block;
}

/* Sofá: encosto com costuras, braços, almofadas, assento e pés */
.dsf-sofa-back {
  left: 7%;
  right: 7%;
  top: 0;
  height: 62%;
  background: linear-gradient(90deg, #6b3e1b 0 31%, #553015 31% 33%, #6b3e1b 33% 65%, #553015 65% 67%, #6b3e1b 67% 100%);
  border-radius: 9px 9px 3px 3px;
}

.dsf-sofa-arm {
  top: 26%;
  width: 13%;
  height: 50%;
  background: #8b5a2b;
  border-radius: 8px 8px 3px 3px;
}

.dsf-sofa-arm.dsf-l {
  left: 0;
}

.dsf-sofa-arm.dsf-r {
  right: 0;
}

.dsf-sofa-seat {
  left: 6%;
  right: 6%;
  top: 50%;
  height: 28%;
  background: linear-gradient(90deg, #c9a06a 0 48%, #a97c4c 48% 52%, #c9a06a 52% 100%);
  border-radius: 5px;
}

.dsf-sofa-leg,
.dsf-cm-leg {
  bottom: 0;
  width: 6%;
  height: 12%;
  background: #3a2410;
  border-radius: 0 0 3px 3px;
}

.dsf-sofa-leg.dsf-l {
  left: 13%;
}

.dsf-sofa-leg.dsf-r {
  right: 13%;
}

/* Aparador: tampo, corpo com gavetas e pés */
.dsf-ap-top {
  left: -2%;
  right: -2%;
  top: 0;
  height: 9%;
  background: #553015;
  border-radius: 4px;
}

.dsf-ap-body {
  left: 5%;
  right: 5%;
  top: 9%;
  height: 62%;
  background:
    radial-gradient(circle 3px at 50% 16%, #3a2410 99%, transparent 0),
    radial-gradient(circle 3px at 50% 50%, #3a2410 99%, transparent 0),
    radial-gradient(circle 3px at 50% 84%, #3a2410 99%, transparent 0),
    #8b5a2b;
  border-radius: 3px;
  box-shadow: inset 0 -25px 0 -23px #6b3e1b, inset 0 -50px 0 -48px #6b3e1b;
}

.dsf-ap-leg {
  top: 71%;
  width: 7%;
  height: 29%;
  background: #3a2410;
  border-radius: 0 0 3px 3px;
}

.dsf-ap-leg.dsf-l {
  left: 10%;
}

.dsf-ap-leg.dsf-r {
  right: 10%;
}

/* Cama: cabeceira, travesseiros, colchão, cobertor e pés */
.dsf-cm-head {
  left: 5%;
  right: 5%;
  top: 0;
  height: 64%;
  background: #6b3e1b;
  border-radius: 10px 10px 3px 3px;
}

.dsf-cm-pillow {
  top: 40%;
  width: 36%;
  height: 18%;
  background: #faf6f0;
  border-radius: 14px 14px 4px 4px;
  box-shadow: 0 1px 2px rgba(58, 36, 16, 0.25);
}

.dsf-cm-pillow.dsf-l {
  left: 10%;
}

.dsf-cm-pillow.dsf-r {
  right: 10%;
}

.dsf-cm-mattress {
  left: 0;
  right: 0;
  top: 55%;
  height: 27%;
  background: #f5ebdd;
  border-radius: 5px;
}

.dsf-cm-blanket {
  left: 0;
  right: 0;
  top: 68%;
  height: 15%;
  background: #8b5a2b;
  border-radius: 3px;
}

.dsf-cm-leg {
  height: 18%;
}

.dsf-cm-leg.dsf-l {
  left: 10%;
}

.dsf-cm-leg.dsf-r {
  right: 10%;
}

.destak-sim-furniture-label {
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #171614;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8c1a7;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

.destak-sim-person {
  position: absolute;
  /* left/width/height/bottom definidos pelo JS */
  transition: all 0.3s ease;
}

.destak-sim-person-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.destak-sim-person-label {
  position: absolute;
  top: -17px;
  right: -4px;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #171614;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8c1a7;
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
}

.destak-sim-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.7rem;
  text-align: center;
}

.destak-sim-legend > div {
  background: #ffffff;
  border: 1px solid #d8c1a7;
  border-radius: 10px;
  padding: 0.5rem 0.4rem;
}

.destak-sim-legend-k {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b3e1b;
}

.destak-sim-legend strong {
  display: block;
  margin-top: 0.15rem;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  color: #171614;
}

/* Link �ncora para o simulador (dentro do configurador) */
.destak-sim-anchor {
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
}

.destak-sim-anchor a {
  color: #b98235;
  text-decoration: none;
}

.destak-sim-anchor a:hover,
.destak-sim-anchor a:focus {
  color: #6b3e1b;
  text-decoration: underline;
}

/* Destaque tempor�rio ao aplicar um tamanho no configurador */
.destak-wc-configurator.destak-sim-highlight {
  border-color: #b98235;
  box-shadow: 0 0 0 4px rgba(185, 130, 53, 0.18);
}

/* =========================================================
   NOSSOS ACABAMENTOS (parts/destak-acabamentos.php)
   Seção clonada da referência (Pora dos Quadros) e adaptada
   à paleta Arte Destak: #171614 / #B98235 / #6B3E1B / #F5EBDD
   ========================================================= */
.destak-acb {
  background: linear-gradient(180deg, #faf6f0 0%, #ffffff 20%, #ffffff 80%, #faf6f0 100%);
  padding: clamp(38px, 4.4vw, 66px) 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-margin-top: 110px;
}

.destak-acb-head {
  max-width: 680px;
  margin: 0 auto clamp(24px, 3vw, 40px);
  padding: 0 24px;
  text-align: center;
}

.destak-acb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b98235;
  background: rgba(185, 130, 53, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin: 0 0 16px;
}

.destak-acb-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b98235;
}

.destak-acb-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171614;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  line-height: 1.12;
  margin: 0 0 10px;
}

.destak-acb-title em {
  font-style: italic;
  color: #b98235;
}

.destak-acb-sub {
  color: #6b3e1b;
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 34em;
}

.destak-acb-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.destak-acb-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d8c1a7;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 44px -26px rgba(60, 40, 28, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.destak-acb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px -26px rgba(60, 40, 28, 0.44);
}

.destak-acb-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5ebdd;
  overflow: hidden;
}

.destak-acb-media video,
.destak-acb-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Poster webp como IRMÃO absoluto por baixo: pinta instantâneo;
   o vídeo (z-index 1) cobre quando tiver frame. */
.destak-acb-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.destak-acb-media video {
  position: relative;
  z-index: 1;
}

.destak-acb-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(23, 22, 20, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.destak-acb-body {
  padding: clamp(18px, 1.7vw, 24px);
}

.destak-acb-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171614;
  font-size: 1.24rem;
  line-height: 1.15;
  margin: 0 0 8px;
}

.destak-acb-desc {
  color: #6b3e1b;
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0;
}

.destak-acb-desc strong {
  color: #171614;
  font-weight: 600;
}

/* Troca desk/mobile do título/eyebrow */
.destak-acb--mob {
  display: none;
}

@media (max-width: 900px) {
  .destak-acb--desk {
    display: none !important;
  }

  .destak-acb--mob {
    display: inline;
  }
}

/* Mobile: grid vira carrossel horizontal com snap */
@media (max-width: 780px) {
  .destak-acb-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 18px 10px;
    scrollbar-width: none;
  }

  .destak-acb-grid::-webkit-scrollbar {
    display: none;
  }

  .destak-acb-card {
    flex: 0 0 79%;
    scroll-snap-align: center;
  }
}
