/* Tres Hermanos — WooCommerce bridge
   Keeps the original shop design; styles the Woo cart, checkout, account
   and single-product pages to sit inside the theme. */

/* product card: the whole card is a link again, exactly like the original */
.product-card__add { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.product-card__add.loading { opacity: .55; pointer-events: none; }
.product-card__add.added::after { content: none; }
.product-card .added_to_cart { display: none; }
.product-card__price del { opacity: .5; margin-right: 6px; }
.product-card__price ins { text-decoration: none; }
.product-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* header cart trigger keeps the original look as an <a> */
a.cart-trigger { text-decoration: none; }

/* generic Woo page shell (cart, checkout, account, single product) */
.th-woo-page { background: var(--paper); color: var(--bean); padding: clamp(120px, 12vw, 180px) var(--gutter) clamp(70px, 8vw, 120px); }
.th-woo-inner { max-width: var(--maxw); margin: 0 auto; }
.th-woo-page h1, .th-woo-page h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.th-woo-page h1 { font-size: clamp(38px, 5vw, 64px); margin: 0 0 28px; }
.th-woo-page a { color: var(--green-deep); }
.th-woo-page table { width: 100%; border-collapse: collapse; font-family: var(--sans); }
.th-woo-page table th, .th-woo-page table td { border-bottom: 1px solid var(--rule); padding: 16px 12px; text-align: left; vertical-align: middle; }
.th-woo-page table th { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.th-woo-page img { max-width: 100%; height: auto; }
.th-woo-page .quantity input { width: 72px; padding: 8px 10px; border: 1px solid var(--rule-strong); background: transparent; font-family: var(--sans); }
.th-woo-page td.product-thumbnail { width: 96px; }
.th-woo-page td.product-thumbnail img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.th-woo-page table.shop_table { table-layout: auto; display: table; width: 100%; }
.th-woo-page table.shop_table thead { display: table-header-group; }
.th-woo-page table.shop_table tbody { display: table-row-group; }
.th-woo-page table.shop_table tr { display: table-row; }
.th-woo-page table.shop_table th, .th-woo-page table.shop_table td { display: table-cell; }
.th-woo-page td.product-name a { color: var(--bean); text-decoration: none; }
.th-woo-page td.product-name a:hover { color: var(--green-deep); }
.th-woo-page td.actions { text-align: left; }
.th-woo-page .product-remove { width: 34px; }
.th-woo-page .actions { padding-top: 22px; }
.th-woo-page .coupon { display: inline-flex; gap: 10px; align-items: center; }
.th-woo-page .coupon { float: none; }
.th-woo-page .coupon input[type="text"] { width: 190px; margin-right: 10px; }
.th-woo-page td.actions .button { float: none; }
.th-woo-page form.woocommerce-cart-form + .cart-collaterals, .th-woo-page .cart-collaterals { clear: both; }
.th-woo-page .woocommerce-cart-form { overflow-x: auto; }
.th-woo-page .place-order, .th-woo-page .form-row.place-order { text-align: left; }
.th-woo-page #place_order { width: auto; }

/* buttons — reuse the original .btn--dark look */
.th-woo-page .button,
.th-woo-page button.button,
.th-woo-page input[type="submit"],
.th-woo-page .checkout-button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bean); color: var(--cream);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.th-woo-page .button:hover, .th-woo-page button.button:hover,
.th-woo-page input[type="submit"]:hover, .th-woo-page .checkout-button:hover { background: var(--green-deep); transform: translateY(-1px); }
.th-woo-page .button:disabled, .th-woo-page .button.disabled { opacity: .45; pointer-events: none; }
.th-woo-page .checkout-button { width: 100%; justify-content: center; margin-top: 14px; }

/* form fields */
.th-woo-page input[type="text"], .th-woo-page input[type="email"], .th-woo-page input[type="tel"],
.th-woo-page input[type="password"], .th-woo-page textarea, .th-woo-page select,
.th-woo-page .select2-container .select2-selection {
  width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--rule-strong);
  background: transparent; font-family: var(--sans); font-size: 16px; color: var(--bean); border-radius: 0;
}
.th-woo-page textarea { min-height: 120px; }
.th-woo-page label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.th-woo-page .form-row { margin-bottom: 20px; }

/* cart / checkout layout */
.th-woo-page .cart-collaterals { margin-top: 44px; max-width: 460px; margin-left: auto; }
.th-woo-page .cart_totals h2, .th-woo-page #order_review_heading { font-size: 26px; }
.th-woo-page .woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) {
  /* classic two-column checkout: left = billing, right = order review (independent heights) */
  .th-woo-page form.checkout::after { content: ""; display: table; clear: both; }
  .th-woo-page form.checkout .col2-set,
  .th-woo-page form.checkout .woocommerce-additional-fields { float: left; width: 54%; clear: left; }
  .th-woo-page form.checkout #order_review_heading,
  .th-woo-page form.checkout #order_review { float: right; width: 40%; clear: right; }
  .th-woo-page form.checkout #order_review_heading { margin-top: 0; }
}
.th-woo-page .select2-container { margin-bottom: 6px; }
.th-woo-page .select2-container .select2-selection--single { height: 46px; display: flex; align-items: center; }
.th-woo-page .select2-container .select2-selection__rendered { padding-left: 2px; line-height: 1.4; }
.th-woo-page select { height: 46px; }
.th-woo-page .woocommerce-info, .th-woo-page .woocommerce-message, .th-woo-page .woocommerce-error {
  background: rgba(79,124,62,.10); border-left: 3px solid var(--green); padding: 14px 18px; margin: 0 0 26px; list-style: none;
  font-family: var(--sans); font-size: 15px;
}
.th-woo-page .woocommerce-error { background: rgba(139,58,31,.10); border-left-color: var(--rust); }
.th-woo-page .wc_payment_methods { list-style: none; padding: 0; margin: 0 0 20px; }
.th-woo-page .place-order { margin-top: 18px; }

/* single product */
.th-woo-page .product { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 900px) { .th-woo-page .product { grid-template-columns: 1fr 1fr; align-items: start; } }
.th-woo-page .product .summary { font-family: var(--sans); }
.th-woo-page .product .price { font-family: var(--display); font-size: 34px; margin: 10px 0 22px; color: var(--bean); }
.th-woo-page .product .woocommerce-product-gallery { background: var(--cream); border-radius: 6px; padding: 18px; }
.th-woo-page .cart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.th-woo-page .product_meta { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.th-woo-page .related.products { grid-column: 1 / -1; margin-top: 70px; }
.th-woo-page .related.products ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; list-style: none; padding: 0; }
.th-woo-page .th-woo-shipping-note { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin-top: 26px; }

/* assurances + shop-foot shipping line, in the original type styles */
.th-assure { list-style: none; padding: 0; margin: 24px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.th-assure li { padding: 6px 0; border-top: 1px solid var(--rule); }
.shop-foot__ship { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; margin-top: 10px; }
