/* Leer del Viaje — shop layout polish (cart / shop / product) */
:root {
  --leer-accent: #0d7377;
  --leer-accent-dark: #095456;
  --leer-sand: #c4a574;
  --leer-border: #e5e2dc;
  --leer-muted: #6b7280;
  --leer-radius: 10px;
  --leer-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* ===== Shop archive ===== */
.woocommerce-shop ul.products,
.woocommerce.post-type-archive-product ul.products,
.woocommerce.tax-product_cat ul.products,
.woocommerce.tax-product_tag ul.products,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 0 0 2rem;
}
/* Related/upsells: never use the archive grid */
.single-product section.related ul.products,
.single-product section.upsells ul.products {
  display: flex !important;
  grid-template-columns: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; content: none !important; }
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border: 1px solid var(--leer-border);
  border-radius: var(--leer-radius);
  box-shadow: var(--leer-shadow);
  overflow: hidden;
  padding: 0 0 1.1rem !important;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.woocommerce ul.products li.product .wc-product-image,
.woocommerce ul.products li.product .inside-wc-product-image {
  background: #f4f6f5;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.woocommerce ul.products li.product a img {
  margin: 0 auto !important;
  border-radius: 0;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.05rem !important;
  padding: 0.85rem 1rem 0.25rem !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product .price {
  padding: 0 1rem;
  color: var(--leer-accent-dark) !important;
  font-weight: 700;
  margin-bottom: .75rem !important;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
  margin: 0 1rem !important;
  align-self: stretch;
  text-align: center;
  border-radius: 8px !important;
  background: var(--leer-accent) !important;
  color: #fff !important;
  border: none !important;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--leer-accent-dark) !important;
}

/* ===== Single product ===== */
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.single-product div.product .woocommerce-product-gallery img {
  border-radius: var(--leer-radius);
  border: 1px solid var(--leer-border);
}
.single-product div.product .summary .price {
  font-size: 1.6rem;
  color: var(--leer-accent-dark);
  margin: .5rem 0 1rem;
}
.single-product div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: 1rem;
}
.single-product div.product .single_add_to_cart_button {
  background: var(--leer-accent) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: .85rem 1.4rem !important;
  font-weight: 600;
}
.single-product .leer-trust {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: #f3faf9;
  border: 1px solid #cfe8e6;
  border-radius: 8px;
  color: var(--leer-muted);
  font-size: .92rem;
}
@media (max-width: 768px) {
  .single-product div.product {
    grid-template-columns: 1fr;
  }
}

/* ===== Related / upsells on single product ===== */
.single-product section.related.products,
.single-product section.upsells.products {
  clear: both !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 2.75rem auto 1.25rem !important;
  padding: 0 !important;
  grid-column: 1 / -1 !important;
  float: none !important;
  text-align: center !important;
}
.single-product section.related.products > h2,
.single-product section.upsells.products > h2 {
  text-align: center !important;
  margin: 0 0 1.35rem !important;
  width: 100% !important;
}
.single-product section.related ul.products,
.single-product section.upsells ul.products,
.single-product .related ul.products.columns-4,
.single-product .related ul.products.columns-3,
.single-product .related ul.products.columns-2,
.single-product .woocommerce .related ul.products {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  align-content: center !important;
  gap: 1.5rem !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 920px !important;
  float: none !important;
  grid-template-columns: none !important;
  text-align: left !important;
}
.single-product section.related ul.products::before,
.single-product section.related ul.products::after,
.single-product section.upsells ul.products::before,
.single-product section.upsells ul.products::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}
.single-product section.related ul.products li.product,
.single-product section.upsells ul.products li.product,
.woocommerce .related ul.products li.product,
.woocommerce.single-product .related ul.products li.product {
  float: none !important;
  clear: none !important;
  position: relative !important;
  width: 280px !important;
  max-width: calc(50% - 0.75rem) !important;
  flex: 0 0 280px !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
}
@media (max-width: 640px) {
  .single-product section.related ul.products li.product,
  .single-product section.upsells ul.products li.product {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ===== Cart ===== */
.woocommerce-cart .woocommerce {
  max-width: 1100px;
}

.woocommerce-cart-form {
  margin-bottom: 1.25rem;
}

.woocommerce-cart table.shop_table {
  border: 1px solid var(--leer-border);
  border-radius: var(--leer-radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  text-align: left;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  border-color: var(--leer-border) !important;
  padding: 1rem !important;
  vertical-align: middle;
  text-align: left !important;
}

.woocommerce-cart table.shop_table .product-price,
.woocommerce-cart table.shop_table .product-subtotal {
  white-space: nowrap;
  text-align: right !important;
}

.woocommerce-cart table.shop_table img {
  border-radius: 6px;
  width: 64px !important;
  height: auto !important;
  max-width: 64px;
}


/* Hide empty default remove column; X lives beside thumbnail */
.woocommerce-cart table.cart th.product-remove,
.woocommerce-cart table.cart td.product-remove,
.woocommerce-cart table.shop_table th.product-remove,
.woocommerce-cart table.shop_table td.product-remove {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.woocommerce-cart .leer-thumb-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
}

.woocommerce-cart .leer-thumb-wrap .leer-remove-inline,
.woocommerce-cart .leer-thumb-wrap a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  color: #cc1818 !important;
  text-decoration: none !important;
}

.woocommerce-cart table.cart th.product-thumbnail,
.woocommerce-cart table.cart td.product-thumbnail,
.woocommerce-cart table.shop_table th.product-thumbnail,
.woocommerce-cart table.shop_table td.product-thumbnail {
  width: 110px !important;
  max-width: 120px !important;
  padding-right: 0.5rem !important;
  vertical-align: middle !important;
}

/* Sold individually => hidden qty input; hide empty column */
.woocommerce-cart th.product-quantity,
.woocommerce-cart td.product-quantity {
  display: none !important;
}

.woocommerce-cart-form td.actions {
  background: #faf9f7;
  padding: 1.15rem !important;
}

.woocommerce-cart-form .actions {
  display: block !important;
}

/* Kill Woo clearfix pseudos — they break flex/grid */
.woocommerce-cart-form .actions .coupon::before,
.woocommerce-cart-form .actions .coupon::after,
.woocommerce table.cart td.actions .coupon::before,
.woocommerce table.cart td.actions .coupon::after {
  content: none !important;
  display: none !important;
  clear: none !important;
}

.woocommerce-cart-form .actions .coupon {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.6rem !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 0 0.9rem !important;
  width: 100% !important;
  max-width: 560px !important;
}

/* Un-hide coupon label */
.woocommerce-cart-form .actions .coupon label.screen-reader-text,
.woocommerce-cart-form .actions .coupon label[for="coupon_code"] {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  border: 0 !important;
  white-space: normal !important;
  flex: 1 0 100% !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: #1f2937 !important;
  line-height: 1.3 !important;
}

.woocommerce-cart-form .actions .coupon .input-text,
.woocommerce-cart-form .actions .coupon input#coupon_code,
.woocommerce table.cart td.actions .coupon .input-text,
.woocommerce-page table.cart td.actions .coupon .input-text {
  float: none !important;
  display: block !important;
  box-sizing: border-box !important;
  flex: 1 1 280px !important;
  width: 280px !important;
  min-width: 220px !important;
  max-width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  border: 1px solid var(--leer-border) !important;
  border-radius: 8px !important;
  padding: 0 0.9rem !important;
  background: #fff !important;
  font-size: 1rem !important;
  line-height: 44px !important;
  color: #111 !important;
}

.woocommerce-cart-form .actions .coupon .button,
.woocommerce table.cart td.actions .coupon .button {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 140px !important;
  height: 44px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--leer-accent-dark) !important;
  border: 1px solid var(--leer-accent) !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  padding: 0 1rem !important;
  box-sizing: border-box !important;
}

.woocommerce-cart-form .actions .coupon .button:hover {
  background: #f3faf9 !important;
}

.woocommerce-cart-form .actions > .button[name="update_cart"] {
  display: inline-block !important;
  float: none !important;
  width: auto !important;
  background: transparent !important;
  color: #4b5563 !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
  height: auto !important;
  padding: 0.2rem 0 !important;
  opacity: 1 !important;
}

.woocommerce-cart-form .actions > .button[name="update_cart"]:disabled {
  opacity: 0.55 !important;
}

/* Totals card */
.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  float: none !important;
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 0.5rem !important;
}

.woocommerce-cart .cart_totals {
  width: 100% !important;
  max-width: 380px !important;
  float: none !important;
  background: #fff !important;
  border: 1px solid var(--leer-border) !important;
  border-radius: var(--leer-radius) !important;
  box-shadow: var(--leer-shadow) !important;
  padding: 1.25rem !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.woocommerce-cart .cart_totals h2 {
  font-size: 1.15rem !important;
  margin: 0 0 1rem !important;
  color: #0f172a !important;
}

.woocommerce-cart .cart_totals .shop_table,
.woocommerce-cart .cart_totals table {
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}

.woocommerce-cart .cart_totals .shop_table th,
.woocommerce-cart .cart_totals .shop_table td {
  border: none !important;
  padding: 0.55rem 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  opacity: 1 !important;
}

.woocommerce-cart .cart_totals .shop_table th {
  text-align: left !important;
  font-weight: 600 !important;
}

.woocommerce-cart .cart_totals .shop_table td {
  text-align: right !important;
}

.woocommerce-cart .cart_totals .cart-subtotal .amount,
.woocommerce-cart .cart_totals .order-total .amount,
.woocommerce-cart .cart_totals .amount,
.woocommerce-cart .cart_totals .amount bdi {
  color: #0f172a !important;
  opacity: 1 !important;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 1.15rem !important;
  padding-top: 0.9rem !important;
  border-top: 1px solid var(--leer-border) !important;
  color: #0f172a !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
  padding: 1rem 0 0 !important;
  margin: 0 !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  background: var(--leer-accent) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.95rem 1rem !important;
  margin: 0 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1.3 !important;
  white-space: normal !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--leer-accent-dark) !important;
}

@media (max-width: 768px) {
  .woocommerce-cart-form .actions .coupon {
    max-width: none !important;
  }
  .woocommerce-cart-form .actions .coupon .input-text,
  .woocommerce-cart-form .actions .coupon input#coupon_code,
  .woocommerce-cart-form .actions .coupon .button {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .woocommerce-cart .cart-collaterals,
  .woocommerce-cart .cart_totals {
    max-width: none !important;
  }
}

/* ===== Top bar cart icon (match Jetpack social exactly) ===== */
/* Jetpack size-medium: a=32x32, svg inherits; color from .top-bar a (#189e5f) */
.top-bar .jetpack_widget_social_icons li.leer-top-cart-item a.leer-top-cart-link {
  position: relative;
  overflow: visible;
}
.top-bar .jetpack_widget_social_icons li.leer-top-cart-item a.leer-top-cart-link .leer-cart-count {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #189e5f !important;
  background-color: #189e5f !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 2;
  border: 1px solid #131313;
}

/* Hide stacked duplicate Woo error banners */
.woocommerce-notices-wrapper .woocommerce-error + .woocommerce-error,
.woocommerce .woocommerce-error + .woocommerce-error,
ul.woocommerce-error + ul.woocommerce-error {
  display: none !important;
}

/* ===== Blog CTA card (after last post photo) ===== */
.leer-cta-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 1.25rem 0 0.75rem !important; /* mismo aire que párrafo → botón JUJUY */
  padding: 1.5rem 1.5rem 1.35rem !important;
  border: 3px solid #189e5f !important;
  border-radius: 14px !important;
  background: #eef9f3 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12) !important;
  clear: both !important;
  max-width: 100% !important;
  position: relative !important;
  z-index: 5 !important;
}
.leer-cta-eyebrow {
  margin: 0 0 0.4rem !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #147a49 !important;
}
.leer-cta-title {
  margin: 0 0 0.6rem !important;
  font-size: 1.45rem !important;
  line-height: 1.25 !important;
  color: #102418 !important;
  font-weight: 800 !important;
}
.leer-cta-text {
  margin: 0 0 1.1rem !important;
  font-size: 1.08rem !important;
  line-height: 1.45 !important;
  color: #243 !important;
}
.leer-cta-actions { margin: 0 0 0.25rem !important; }
.leer-cta-btn {
  display: inline-block !important;
  background: #189e5f !important;
  color: #fff !important;
  padding: 0.95rem 1.35rem !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 1.08rem !important;
  line-height: 1.2 !important;
  border: none !important;
  box-shadow: 0 6px 16px rgba(24, 158, 95, 0.4) !important;
}
.leer-cta-btn:hover,
.leer-cta-btn:focus {
  background: #126b40 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.leer-cta-secondary {
  margin: 0.85rem 0 0 !important;
  font-size: 0.95rem !important;
  color: #445 !important;
}
.leer-cta-secondary a {
  color: #189e5f !important;
  font-weight: 700 !important;
}
/* El bloque que sigue no debe abrir un hueco extra */
.leer-cta-card + .thrv_wrapper,
.leer-cta-card + div {
  margin-top: 0.75rem !important;
}


