/* === Estilos generales para tienda La Cordonada === */

h2 {
  font-size: 26px;
  color: #004b6b;
  margin-top: 40px;
  border-bottom: 2px solid #0071a1;
  padding-bottom: 8px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

img[alt*="Contraportada"] {
  max-width: 150px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* === Cuadrícula de productos === */
.tienda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
  padding: 20px;
}

/* === Caja de cada producto === */
.tienda-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 480px;
  text-align: center;
}

.tienda-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tienda-item img {
  width: 277px;
  height: 277px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.tienda-item h3 {
  font-size: 18px;
  margin: 10px 0;
  color: #004b6b;
  min-height: 48px;
}

.tienda-item ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.tienda-item ul li {
  font-size: 14px;
  color: #333;
}

/* === Botón Webpay === */
.tienda-item img[src*="webpay"] {
  width: 160px !important;
  height: auto !important;
  margin: 10px auto !important;
  display: block !important;
}

/* === Botón PayPal === */
a[href*="paypal"] {
  display: inline-block;
  background-color: #0070ba;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 8px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

a[href*="paypal"]:hover {
  background-color: #004b87;
}

/* === Responsivo === */
@media (max-width: 1024px) {
  .tienda-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tienda-item {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .tienda-grid {
    grid-template-columns: 1fr;
  }

  .tienda-item {
    width: 100%;
    max-width: 320px;
    min-height: auto;
  }

  h2 {
    font-size: 22px;
  }

  img[alt*="Contraportada"] {
    max-width: 100px;
  }

  a[href*="paypal"] {
    font-size: 13px;
    padding: 6px 10px;
  }

  .tienda-item img[src*="webpay"] {
    max-width: 130px !important;
  }
}
/* === Corrección final botón WebPay === */
.tienda-item a[href*="webpay"] img {
  max-width: 160px !important;
  height: auto !important;
  display: block !important;
  margin: 10px auto !important;
  object-fit: contain !important;
}
/* === Ocultar encabezado de página SOLO en Territorio === */
.page-id-8816 .entry-header {
    display: none !important;
}
/* === Ajuste cabecera La Cordonada en celulares === */
@media screen and (max-width: 767px) {

    .site-title {
        font-size: 42px !important;
        line-height: 1 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .site-description {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }
}
/* === Ocultar imagen destacada dentro del contenido de las entradas === */
.entry-content-featured-img {
    display: none !important;
}