/*
 Theme Name:   Astra Child
 Theme URI:    https://seusite.com/
 Description:  Tema filho do Astra para customizações
 Author:       Seu Nome
 Author URI:   https://seusite.com/
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/*==============================*/
/*        VARIÁVEIS DE CORES       */
/*==============================*/


body {
  background-color:#dffbff !important;
}

/*==============================*/
/*    CABEÇALHO DA LOJA DOKAN     */
/*==============================*/
.dokan-store-wrapper {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.dokan-store-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.dokan-store-header img {
  max-height: 80px;
  margin-right: 20px;
  border-radius: 8px;
  object-fit: contain;
}

.dokan-store-header .store-name {
  font-size: 2.4em;
  font-weight: 700;
  color: #222;
}

/*==============================*/
/*        CATEGORIAS DA LOJA    */
/*==============================*/
.dokan-store-categories ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.dokan-store-categories li {
  background: #eee;
  padding: 7px 18px;
  border-radius: 20px;
}

.dokan-store-categories a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  font-size: 0.95rem;
}

.dokan-store-categories a:hover {
  color: var(--cor-terciaria);
}

/*==============================*/
/*         PRODUTOS DOKAN       */
/*==============================*/
.dokan-store-products {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 24px;
}

.product-card {
  border: 1px solid var(--cinza-borda);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.08);
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 5px 18px rgb(0 0 0 / 0.15);
}

.product-card img {
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product-card h4 {
  margin: 0 0 12px;
  font-size: 1.1em;
  color: #222;
}

.product-card .price {
  font-weight: bold;
  color: var(--cor-terciaria);
  font-size: 1.1em;
}

/*==============================*/
/*    GRID PERSONALIZADO LOJA   */
/*==============================*/
.seller-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

.seller-items li.product {
  list-style: none;
  width: calc(20% - 20px);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.seller-items li.product:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.seller-items li.product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 6px;
}

.seller-items li.product h2.woocommerce-loop-product__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cor-texto);
  margin: 0 0 8px;
  height: 42px;
  overflow: hidden;
}

.seller-items li.product .price {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--cor-erro);
  margin-bottom: 10px;
}

.seller-items li.product .review-rating {
  margin-bottom: 5px;
}

.seller-items li.product .star-rating {
  display: inline-block;
  color: #ffc107;
}

.seller-items li.product .ast-on-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cor-secundaria);
  color: #fff !important;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.seller-items li.product .ast-on-card-button:hover {
  background-color: #e60073;
}

/* Responsivo */
@media (max-width: 1024px) {
  .seller-items li.product {
    width: calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .seller-items li.product {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .seller-items li.product {
    width: calc(50% - 20px);
  }
}

/*==============================*/
/*    FILTRO CATEGORIAS VENDEDOR */
/*==============================*/
.vendor-category-filter {
  padding: 10px 15px;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  overflow-x: auto;
  white-space: nowrap;
}

.vendor-category-filter strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--cor-texto);
}

.vendor-category-filter ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-x: auto;
}

.vendor-category-filter ul li {
  display: inline-block;
}

.vendor-category-filter .vendor-cat-link {
  display: inline-block;
  padding: 6px 14px;
  background-color: #f7f7f7;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--cor-texto);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.vendor-category-filter .vendor-cat-link:hover {
  background-color: var(--cor-secundaria);
  color: #fff;
  border-color: var(--cor-secundaria);
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.2);
}

.vendor-category-filter .vendor-cat-link.active {
  background-color: var(--cor-texto);
  color: #fff;
  border-color: var(--cor-texto);
}

/*==============================*/
/*         PAGINAÇÃO DOKAN        */
/*==============================*/
.dokan-pagination-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.dokan-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.dokan-pagination li {
  display: inline-block;
}

.dokan-pagination li a {
  display: inline-block;
  padding: 8px 14px;
  background-color: var(--cor-clara);
  border: 1px solid var(--cinza-borda);
  border-radius: 8px;
  color: var(--cor-texto);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.dokan-pagination li a:hover {
  background-color: #ffcb05;
  color: #000;
  border-color: #ffcb05;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dokan-pagination li.active a {
  background-color: var(--cor-destaque);
  color: #fff;
  font-weight: bold;
  border-color: var(--cor-destaque);
  cursor: default;
  pointer-events: none;
}

.dokan-pagination li.disabled a {
  background-color: #e0e0e0;
  color: #888;
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 500px) {
  .dokan-pagination li a {
    padding: 6px 10px;
    font-size: 14px;
  }
}

/*==============================*/
/*        CONTEÚDO DO SITE        */
/*==============================*/
#page .site-content {
  padding: 0rem 0rem;
}
.status-checking {
  background: #ccc;
  color: #444;
}
.status-aberto {
  background: #4caf50;
  color: white;
}
.status-fechado {
  background: #f44336;
  color: white;
}
