/*
Theme Name: Arquitetura Premium
Description: Tema WordPress para venda de projetos arquitetônicos com suporte completo ao WooCommerce
Version: 1.0
Author: Custom Theme
*/

:root {
  --primary-color: #02254F;
  --secondary-color: #B9A071;
  --background-color: #FFFFFF;
  --background-alt: #F9F9F9;
  --text-color: #333333;
  --text-light: #666666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Header Styles */
.site-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.logo img,
.custom-logo {
  margin-top: 5px;
  max-height: 60px;
  max-width: 100%;
  height: auto;
  width: auto;
}


.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--secondary-color);
}

.cart-icon {
  background: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cart-icon:hover {
  background: #a08c5e;
}

/* Hero Section */
.hero-section {
  height: 80vh;
  background: linear-gradient(rgba(2, 37, 79, 0.7), rgba(2, 37, 79, 0.7)), url('images/hero-bg.png');
  /* background-image: url('images/hero-bg.png'); */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 70px;
}

.hero-content {
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background: var(--secondary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: #a08c5e;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--background-alt);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.onsale {
  background: var(--secondary-color);
  position: absolute;
  margin-top: 10px;
  margin-left: 5px;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1rem;
  z-index: 9998;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}



.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 1rem 1rem !important;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-title a{
  color: var(--primary-color);
  text-decoration: none;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.product-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* How it Works */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.step h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

.testimonial {
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-radius: 10px;
  background: white;
  position: relative;
  padding: 2rem;
}

.testimonial img {
  margin-bottom: 1rem;
  max-width: 300px;
}

.testimonial::before {
  color: var(--secondary-color);
  position: absolute;
  font-size: 4rem;
  content: '"';
  top: -10px;
  left: 20px;
}

.testimonial-text {
  margin-bottom: 1rem;
  font-style: italic;
  font-size: 1.1rem;
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: bold;
}

/* Footer */
.site-footer {
  background: var(--primary-color);
  padding: 3rem 0 1rem;
  color: white;
}

.footer-content {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 2rem;
  display: grid;
  gap: 2rem;
}
.contato-item {
  align-items: center;
  margin-bottom: 6px;
  display: flex;
  color: #fff;
  gap: 8px;
}

.contato-item .icone {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.contato-item span {
  font-size: 15px;
  line-height: 1.4;
}


.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: #a08c5e;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .single-product-layout {
    flex-direction: column;
  }
  
  .product-title a{
    color: var(--primary-color);
    text-decoration: none;
  }
  
  .product-images,
  .product-summary {
    width: 100%;
    max-width: 100%;
  }

  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 1rem 0;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Grade da loja */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* 1–4 colunas responsivas */
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Garante que o card não force 100% */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
}

/* WooCommerce Styles */
.woocommerce-product-gallery {
  max-width: 500px;
  width: 60%;
  float: left;

}

.woocommerce-product-gallery__trigger {
  position: absolute;
  z-index: 9998;
  background-color: var(--secondary-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  left: 0px;
  padding-top: 2px;
  padding-left: 5px;
  
}

.woocommerce div.product div.images img {
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.woocommerce div.product .woocommerce-tabs{
  width: 40%;
  float: left;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.single-product div.product > .summary.entry-summary {
  width: 40%;
  float: left;
  max-width: 1200px;
  margin: 0px 0px 50px 0px;
  padding: 0 2rem;
}

.related-products {
  width: 100%;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.wc-block-components-order-summary-item__total-price{
  display: none;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.woocommerce div.product form.cart .quantity input {
  min-width: 60px;
  padding: 8px;
}

/* .products {
  display: flex;
  flex-direction: row;
  gap: 2rem;
} */

.related {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width:100%;
  max-width: 1200px;
}

section.related h2 {
  margin-top: 50px;
}

/* .woocommerce .products {
  display: flex;
  flex-direction: column;
  gap: 2rem;

} */

.woocommerce .product {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
  transition: transform 0.3s ease;
}

.woocommerce .product:hover {
  transform: translateY(-5px);
}

.form-submit .submit {
  background: var(--secondary-color) !important;
  color: white !important;
  border: none !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 5px !important;
  font-weight: bold !important;
  transition: background 0.3s ease !important;
}

.single_add_to_cart_button{
  margin-left: -15px;
  background: var(--secondary-color) !important;
  color: white !important;
  border: none !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 5px !important;
  font-weight: bold !important;
  transition: background 0.3s ease !important;
}

.single_add_to_cart_button:hover,
.add_to_cart_button:hover,
.form-submit .submit:hover {
  cursor: pointer;
  background-color: var(--primary-color) !important;
}

.woocommerce .add_to_cart_button {
  background: var(--secondary-color) !important;
  color: white !important;
  border: none !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 5px !important;
  font-weight: bold !important;
  transition: background 0.3s ease !important;
}

.woocommerce .add_to_cart_button:hover {
  background: #a08c5e !important;
}

.woocommerce .price {
  color: var(--secondary-color) !important;
  font-size: 1.3rem !important;
  font-weight: bold !important;
}

.woocommerce .price del {
    color: #999 !important;
    font-size: 1.2rem !important;
}

/* Shop Filters */
.shop-filters {
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: white;
}

/* Single Product */
.summary entry-summary {
  float: right;
  width: 40%;
}

.woocommerce-tabs wc-tabs-wrapper{
  float: left;
  width: 40%;
  padding: 0px;
}

.product-images {
  max-width: 100%;
  position: relative;
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}


.single-product-layout {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem !important;
}

.product_meta a {
    color: #b89b5e; /* dourado suave */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.product_meta a:hover {
    color: #967d44; /* tom mais escuro no hover */
    text-decoration: underline;
}
.product_meta {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.5rem;
}

div.wc-block-components-quantity-selector{
  display: none;
}

.single-product .product-meta,
.product-description,
.woocommerce-tabs,
.product-specifications {
  max-width: 100%;
}

.single-product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.product-specifications {
  background: var(--background-alt);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.specifications-table {
  width: 100%;
  border-collapse: collapse;
}

.specifications-table th,
.specifications-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.specifications-table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

/* Blog Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-post {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-post-content {
  padding: 1.5rem;
}

.blog-post-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.blog-post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-post-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}


/* estilizar abas */
/* --- WooCommerce: Abas do produto (Descrição / Avaliações) --- */
.single-product .woocommerce-tabs.wc-tabs-wrapper{
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Barra de abas */
.single-product .woocommerce-tabs .tabs{
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
}

/* Remove marcadores/pseudoelementos padrões de alguns temas */
.single-product .woocommerce-tabs .tabs li::before{
  display: none !important;
  content: none !important;
}

/* Cada aba */
.single-product .woocommerce-tabs .tabs li{
  margin: 0;
}

/*  */

/* Esconde o texto interno */
.comment-form-rating {
  inline-size: max-content;
}

.stars span {
  position: relative;
  top: -22px;
}

.comment-form-rating a {
  font-size: 0;
  text-decoration: none;
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
}

/* Cria a estrela visual */
.comment-form-rating a::before {
  content: "★";
  font-size: 28px;
  color: #ccc; /* cinza por padrão */
  transition: color 0.2s ease;
  position: absolute;
  top: 0;
  left: 0;
}

/* Ativa estrela quando hover ou marcada */
.comment-form-rating a:hover::before,
.comment-form-rating a:hover ~ a::before {
  color: #FFD700; /* amarelo no hover */
  float: left;
}

.comment-form-rating a.active::before,
.comment-form-rating a.active ~ a::before {
  color: #FFD700; /* amarelo quando selecionado */
  float: left;
}

.stars {
  direction: rtl; /* inverte a ordem visual */
  unicode-bidi: bidi-override; /* garante alinhamento correto */
}


/*  */

.star-1.active{
  color: red;
  text-decoration: none;
}

/* Link da aba */
.single-product .woocommerce-tabs .tabs a{
  display: block;
  padding: .75rem 1rem;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  transition: all .2s ease;
}

/* Hover / foco */
.single-product .woocommerce-tabs .tabs a:hover,
.single-product .woocommerce-tabs .tabs a:focus-visible{
  color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
  outline: none;
}

/* Aba ativa */
/* .single-product .woocommerce-tabs .tabs li.active a{
  color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
} */

.single-product .woocommerce-tabs .tabs li.active a{
  background: #f5f6f8;
  border-bottom-color: var(--secondary-color);
}

/* Painé*/

.cart .input-text {
  display: none;
}

/* TESTE*/
/* Container do rating */
.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.75rem;
}

/* Texto base */
.woocommerce-product-rating .woocommerce-review-link {
    color: #b89b5e; /* dourado suave */
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: all 0.3s ease;
}
.woocommerce-product-rating .woocommerce-review-link:hover {
    color: #967d44; /* dourado mais escuro no hover */
    text-decoration: underline;
}

/* Valor numérico da nota */
.woocommerce-product-rating strong {
    font-weight: 700;
    color: #1a2b49; /* azul escuro da marca */
}

/* Substituir o texto “Avaliado como X de 5” */
.woocommerce-product-rating .woocommerce-rating-text {
    display: none;
}

/* Exibir estrelas e nota juntas */
.woocommerce-product-rating::before {
    content: "⭐";
    color: #FFD700;
    font-size: 1.1rem;
}

/* TESTE*/



/* shop filters */

.shop-filters {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.shop-filters select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f8f9fa;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23777' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
}

.shop-filters select:hover {
    border-color: #b1976b;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(177, 151, 107, 0.2);
}

.shop-filters select:focus {
    outline: none;
    border-color: #b1976b;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(177, 151, 107, 0.3);
}

.shop-filters label {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

@media (max-width: 600px) {
    .shop-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-filters select {
        width: 100%;
    }
}


/* shop filters */
/* fim estilo abas */