:root {
  --tachi-green: #537b32;
  --tachi-green-dark: #315325;
  --tachi-green-soft: #f2f7ed;
  --tachi-border: #dbe6d2;
}

/* WooCommerce muestra "GRATIS" cuando el método cuesta $0, aunque el despacho
   se cotice después. Se oculta para evitar una promesa comercial contradictoria. */
.wc-block-checkout__shipping-option--free,
.wc-block-components-totals-shipping__via {
  display: none !important;
}

.tachi-aviso-tienda {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--tachi-border);
  border-left: 5px solid var(--tachi-green);
  border-radius: 10px;
  background: var(--tachi-green-soft);
  color: #263322;
  line-height: 1.5;
}

.tachi-producto-datos {
  display: grid;
  gap: 0.25rem;
  margin: 0.55rem 0 0.9rem;
  padding: 0;
  list-style: none;
  color: var(--tachi-green-dark);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.42;
}

.tachi-producto-datos li {
  margin: 0;
}

.woocommerce ul.products li.product {
  border: 1px solid #e8ece4;
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(36, 62, 31, 0.06);
}

.woocommerce ul.products li.product img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.woocommerce a.button,
.woocommerce button.button,
.wc-block-components-button:not(.is-link) {
  border-radius: 999px;
  font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover {
  transform: translateY(-1px);
}

.tachi-pie-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.2rem;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--tachi-border);
  background: var(--tachi-green-soft);
  color: #263322;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tachi-pie-legal strong {
  color: var(--tachi-green-dark);
}

.tachi-pie-legal a {
  color: var(--tachi-green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.tachi-pie-legal a:hover,
.tachi-pie-legal a:focus-visible {
  color: #1d3c16;
}

@media (max-width: 782px) {
  .tachi-aviso-tienda {
    margin-bottom: 1rem;
  }

  .woocommerce ul.products li.product {
    padding: 0.8rem;
  }

  .tachi-pie-legal {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}
