/* WooCommerce surfaces owned by the theme: product cards, archives, single product,
   cart, checkout shell, notices, account, search. Checkout steps, the product-page
   buy area and the confirmation page keep their styles in the tulipan-site plugin. */

/* ---------- notices (ported from the old Customizer CSS) ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  position: relative; overflow: hidden; margin: 0 0 22px; padding: 16px 20px 16px 52px;
  background: #fff; border: 1px solid var(--borde-suave); border-left-width: 3px; border-radius: 10px;
  box-shadow: 0 1px 3px rgb(0 0 0 / .04); font-size: 1rem; line-height: 1.5; color: var(--tinta); list-style: none;
}
.woocommerce-message { border-left-color: var(--verde-accion); }
.woocommerce-info { border-left-color: var(--naranja); }
.woocommerce-error { border-left-color: var(--rojo-profundo); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { position: absolute; top: 17px; left: 20px; font-size: 20px; line-height: 1; }
.woocommerce-message::before { color: var(--verde-accion); }
.woocommerce-info::before { color: #B87A0C; }
.woocommerce-error::before { color: var(--rojo-profundo); }
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus { outline: none; box-shadow: 0 0 0 3px rgb(45 90 61 / .16); }
.woocommerce-message a.button, .woocommerce-info a.button, .woocommerce-error a.button {
  float: right; margin: -3px 0 0 18px; padding: 10px 18px; border: 0; border-radius: var(--r-pill);
  background: var(--verde-accion); color: #fff; font-weight: 600; font-size: .94rem; text-decoration: none;
}
.woocommerce-message a.button:hover, .woocommerce-info a.button:hover, .woocommerce-error a.button:hover { background: var(--verde-hover); color: #fff; }

/* ---------- product grid and card ---------- */
.woocommerce ul.products, ul.products {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
  margin: 0 !important; padding: 0 !important; list-style: none;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product {
  container-type: inline-size;
  display: flex; flex-direction: column; float: none !important; width: auto !important; margin: 0 !important;
  padding: 10px 12px 14px !important; background: #fff; border-radius: var(--r-md);
  box-shadow: 0 1px 3px rgb(43 38 34 / .06), 0 8px 28px rgb(43 38 34 / .07);
  transition: transform var(--dur-base) var(--ease-flor), box-shadow var(--dur-base) var(--ease-flor);
}
ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgb(43 38 34 / .08), 0 18px 44px rgb(43 38 34 / .14); }
ul.products li.product .woocommerce-loop-product__link { display: flex; flex-direction: column; flex: 1 1 auto; color: var(--tinta); text-decoration: none; }
ul.products li.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 0 10px !important; border-radius: 6px; background: var(--crema-oscura); }
ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 12px !important; padding: 0 !important; font-size: .94rem !important; font-weight: 500 !important;
  line-height: 1.3 !important; color: var(--tinta) !important;
}
ul.products li.product .onsale {
  position: absolute; top: 18px; left: 18px; z-index: 2; min-height: 0; min-width: 0; margin: 0; padding: 5px 11px;
  border-radius: var(--r-pill); background: var(--naranja); color: var(--tinta); font-size: .72rem; font-weight: 700; line-height: 1.2;
}
ul.products li.product { position: relative; }
ul.products li.product .tul-pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
/* The plugin's old phone rule pads and pushes the price down; in this footer the gap does the spacing. */
ul.products li.product .tul-pc-foot .price:is(.price, #tlp-na) { margin: 0 !important; padding: 0 !important; height: auto !important; }
ul.products li.product .tul-pc-foot .price, ul.products li.product .tul-pc-foot .button { position: static !important; inset: auto !important; height: auto !important; }
ul.products li.product .tul-pc-foot .price { margin: 0 !important; font-size: 1rem !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; color: var(--rojo-profundo) !important; }
ul.products li.product .tul-pc-foot .price del { color: var(--gris-texto) !important; font-weight: 400; }
ul.products li.product .tul-pc-foot .price ins { text-decoration: none; }
ul.products li.product .tul-pc-foot .button {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px; margin: 0 !important;
  padding: 0 16px !important; border-radius: var(--r-pill) !important; background: var(--verde-accion) !important;
  border: 0 !important; color: #fff !important; font-size: .86rem !important; font-weight: 600 !important; line-height: 1.2 !important;
  text-align: center; white-space: nowrap; text-decoration: none;
}
ul.products li.product .tul-pc-foot .button:hover { background: var(--verde-hover) !important; }
ul.products li.product .tul-pc-foot .button.loading { opacity: .7; }
ul.products li.product .tul-pc-foot .button.added::after, ul.products li.product .tul-pc-foot .added_to_cart { display: none !important; }
ul.products li.product .tul-pc-foot .button.added { background: var(--verde-hover) !important; }
ul.products li.product .tlp-entrega { display: block; margin-top: 10px; font-size: .75rem; line-height: 1.35; text-align: center; color: var(--verde-accion); }
/* Narrow cards (phones, related strip) stack price over a full-width button. */
@container (max-width: 230px) {
  ul.products li.product .tul-pc-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  ul.products li.product .tul-pc-foot .button { width: 100%; }
}
.term-condolencias ul.products li.product:hover, .term-coronas ul.products li.product:hover { transform: none; box-shadow: 0 1px 3px rgb(43 38 34 / .06), 0 8px 28px rgb(43 38 34 / .07); }
.term-condolencias .onsale, .term-coronas .onsale { display: none !important; }
@media (max-width: 1024px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } ul.products li.product { padding: 8px 8px 12px !important; } }
@media (prefers-reduced-motion: reduce) { ul.products li.product:hover { transform: none; } }

/* ---------- archive hero and pagination ---------- */
.tul-hero--shop .tul-crumbs .woocommerce-breadcrumb { margin: 0; }
.tul-hero--shop.is-simpatia .tul-eyebrow { color: var(--verde-accion); }
.tul-intro { margin-top: 12px; max-width: 80ch; color: var(--tinta-70); font-size: .98rem; }
.tul-intro p:last-child { margin-bottom: 0; }
.tul-intro.is-clamped .tul-intro-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tul-intro-more { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--verde-accion); font-weight: 600; font-size: .88rem; cursor: pointer; }
.tul-intro-more::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.tul-intro-more[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.tul-shop { padding-top: 4px; }
.woocommerce-pagination { margin-top: 32px; }
.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0 !important; list-style: none; }
.woocommerce-pagination ul.page-numbers li { border: 0 !important; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span {
  display: inline-grid !important; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px !important;
  border-radius: var(--r-pill); background: #fff; border: 1px solid var(--borde-suave); color: var(--tinta); font-weight: 500; text-decoration: none;
}
.woocommerce-pagination .page-numbers span.current { background: var(--verde-accion); border-color: var(--verde-accion); color: #fff; }

/* ---------- single product ---------- */
.tul-pdp { padding: 28px 0 56px; background: #fff; }
.tul-pdp .tul-crumbs { margin-bottom: 22px; }
.tul-pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.tul-pdp-media { position: sticky; top: 96px; }
.tul-pdp-media .woocommerce-product-gallery { position: relative; width: 100% !important; float: none !important; margin: 0 !important; }
.tul-pdp-media .woocommerce-product-gallery__image img { width: 100%; border-radius: 18px; }
.tul-pdp-media .woocommerce-product-gallery__trigger { position: absolute; top: 16px; right: 16px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); }
.tul-pdp-media .flex-control-thumbs:is(ol, #tlp-na) { display: flex; gap: 10px; margin: 14px 0 0 !important; padding: 0; list-style: none; }
.tul-pdp-media .flex-control-thumbs li { width: 72px; }
.tul-pdp-media .flex-control-thumbs img { border-radius: 8px; cursor: pointer; opacity: .7; }
.tul-pdp-media .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--verde-accion); }
.tul-pdp-summary { float: none !important; width: auto !important; margin: 0 !important; }
.tul-pdp-summary .product_title { margin: 0 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.tul-pdp-summary .woocommerce-product-details__short-description { color: var(--tinta-70); margin-bottom: 18px; }
.tul-pdp-summary .woocommerce-product-details__short-description a { color: var(--verde-accion); font-weight: 600; }
.tul-pdp-summary > .price { margin: 0 0 4px !important; font-size: 1.9rem !important; font-weight: 700 !important; line-height: 1.1; color: var(--rojo-profundo) !important; }
.tul-pdp-summary .ppcp-messages { display: none !important; }
.tul-pdp-summary form.cart:is(.cart, #tlp-na):is(form, #tlp-nb) { display: grid !important; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: stretch; margin: 0 !important; }
.tul-pdp-summary form.cart::before, .tul-pdp-summary form.cart::after { display: none !important; }
.tul-pdp-summary form.cart #yith-wapo-container { grid-column: 1 / -1; order: -1; }
.tul-pdp-summary form.cart wc-order-attribution-inputs { display: none; }
.tul-pdp-summary form.cart .quantity { display: flex !important; margin: 0 !important; float: none !important; }
.tul-pdp-summary form.cart .quantity input.qty { width: 100% !important; }
#yith-wapo-container .yith-wapo-option, #yith-wapo-container .yith-wapo-option > .label, #yith-wapo-container .yith-wapo-option .option-container { width: 100% !important; box-sizing: border-box; }
#yith-wapo-container::before { content: "Agregá algo más"; flex: 0 0 100%; display: block; margin: 0 0 10px; font-size: 1rem; font-weight: 600; color: var(--tinta); }
html[lang^="en"] #yith-wapo-container::before { content: "Add something extra"; }
/* Buy area, distilled: one tile language (44px, soft border), no boxed callouts. */
html body.single-product .tul-pdp-summary .tlp-pd-ciudades legend { margin: 0 0 8px; font-size: .95rem; }
html body.single-product .tul-pdp-summary .tlp-pd-grid { gap: 6px; }
html body.single-product .tul-pdp-summary .tlp-pd-ciudad span { flex-direction: row; flex-wrap: wrap; column-gap: 5px; min-height: 44px; padding: 6px 10px; border-color: #d6cfc4; font-size: 14px; }
html body.single-product .tul-pdp-summary .tlp-pd-ciudad small { font-size: 12.5px; }
html body.single-product .tul-pdp-summary .tlp-pd-ciudad input:hover + span { border-color: #968e82; }
html body.single-product .tul-pdp-summary .tlp-corte { gap: 7px; margin: 10px 0 0 !important; padding: 0; background: none; font-size: 13px; line-height: 1.45; }
html body.single-product .tul-pdp-summary .tlp-corte .tlp-ico { width: 15px; height: 15px; margin-top: 2px; flex: 0 0 15px; }
html body.single-product #yith-wapo-container:is(#yith-wapo-container, #tlp-na) { gap: 6px; margin-top: 4px !important; }
html body.single-product #yith-wapo-container::before { margin: 6px 0 2px !important; font-size: .95rem; }
html body.single-product #yith-wapo-container .option-container { min-height: 44px; padding: 6px 10px !important; border-color: #d6cfc4; }
html body.single-product #yith-wapo-container .option-container:hover { border-color: #968e82; }
html body.single-product #yith-wapo-container .yith-wapo-addon-label { flex-direction: row; flex-wrap: wrap; column-gap: 5px; row-gap: 0; font-size: 14px !important; line-height: 1.25 !important; }
html body.single-product #yith-wapo-container .option-price, html body.single-product #yith-wapo-container .option-price .amount { font-size: 12.5px !important; }
#yith-wapo-container #yith-wapo-block-5 { order: -1; flex: 0 0 100% !important; width: 100% !important; margin: 0 !important; }
html body.single-product #yith-wapo-container #yith-wapo-block-5 .option-container { justify-content: center; min-height: 44px; padding: 6px 12px !important; border-color: #f0d77a; background: #fff8dc; }
html body.single-product #yith-wapo-container #yith-wapo-block-5 .option-container:hover { border-color: #d9b21f; }
html body.single-product #yith-wapo-container #yith-wapo-block-5 .yith-wapo-option.selected .option-container, html body.single-product #yith-wapo-container #yith-wapo-block-5 .option-container:has(input:checked) { border-color: #d9b21f; background: #ffe98a; box-shadow: none; }
html body.single-product #yith-wapo-container #yith-wapo-block-5 .checkbox-button-container { display: flex; justify-content: flex-start; width: 100%; }
html body.single-product #yith-wapo-container #yith-wapo-block-5 .yith-wapo-addon-label { flex: 0 1 auto; text-align: left; justify-content: flex-start; gap: 10px; font-weight: 500 !important; }
html body.single-product #yith-wapo-container #yith-wapo-block-5 .yith-wapo-addon-label::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid #2b2622; border-radius: 4px; background: #fff center / 12px no-repeat; }
html body.single-product #yith-wapo-container #yith-wapo-block-5 .option-container:has(input:checked) .yith-wapo-addon-label::before { background-color: #2b2622; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23ffe98a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html body.single-product .tul-pdp-summary .tlp-pd-wa { min-height: 46px; margin-top: 8px; font-size: 15px; border-width: 1px; }
html body.single-product .tul-pdp-summary .tlp-pd-nota { margin-top: 8px; font-size: 12.5px; }
.tul-pdp-more { padding-top: 48px; }
.tul-pdp-more section.related > h2, .tul-pdp-more section.upsells > h2 { margin: 0 0 18px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; }
@media (max-width: 1024px) {
  .tul-pdp-grid { grid-template-columns: 1fr; gap: 24px; }
  .tul-pdp-media { position: static; }
}
@media (max-width: 767px) {
  .tul-pdp { padding-top: 16px; }
  .tul-pdp-summary form.cart:is(.cart, #tlp-na):is(form, #tlp-nb) { grid-template-columns: 116px minmax(0, 1fr); }
}

/* ---------- cart ---------- */
.tul-store-body { max-width: none; }
.tul-store-body > .woocommerce { display: block; }
.woocommerce-cart .tul-store-body .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.woocommerce-cart .tul-store-body .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .tul-store-body .cart-collaterals { display: contents; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none !important; width: auto !important; grid-column: 2; grid-row: 2; position: sticky; top: 96px; }
.woocommerce-cart .cart-collaterals .cross-sells { float: none !important; width: auto !important; grid-column: 1 / -1; }
.woocommerce-cart .woocommerce-cart-form { grid-column: 1; grid-row: 2; }
.woocommerce-cart .cross-sells > h2 { margin: 8px 0 16px; font-size: 1.35rem; font-weight: 700; }
.woocommerce-cart .cross-sells ul.products { display: flex !important; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 12px !important; }
.woocommerce-cart .cross-sells ul.products li.product { flex: 0 0 clamp(200px, 23%, 300px); scroll-snap-align: start; }
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: var(--r-pill); background: var(--verde-accion) !important; color: #fff !important; font-weight: 600; font-size: 1rem; }
@media (max-width: 1024px) {
  .woocommerce-cart .tul-store-body .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-cart .cart-collaterals .cart_totals { grid-column: 1; grid-row: auto; position: static; }
  .woocommerce-cart .woocommerce-cart-form { grid-row: auto; }
}

/* ---------- checkout shell ---------- */
.tul-co { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.tul-co-side { position: sticky; top: 96px; }
.tul-co-side #order_review_heading {
  margin: 0 !important; padding: 28px 28px 6px; background: #fff; border: 1px solid var(--borde-suave); border-bottom: 0;
  border-radius: 16px 16px 0 0; font-size: 1.2rem !important; font-weight: 700 !important;
}
.tul-co-side .woocommerce-checkout-review-order-table {
  margin: 0 0 22px !important; padding: 4px 28px 22px !important; background: #fff !important;
  border: 1px solid var(--borde-suave) !important; border-top: 0 !important; border-radius: 0 0 16px 16px !important;
  box-shadow: 0 10px 30px rgb(28 25 21 / .07);
}
body.woocommerce-checkout .tul-co .col2-set { float: none; width: 100%; }
@media (max-width: 1024px) {
  .tul-co { grid-template-columns: 1fr; }
  .tul-co-side { position: static; }
}
@media (max-width: 767px) {
  .tul-co-side #order_review_heading { padding: 22px 18px 4px; }
  .tul-co-side .woocommerce-checkout-review-order-table { padding: 4px 18px 18px !important; }
}

/* ---------- account ---------- */
.woocommerce-account .tul-store-body .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
.woocommerce-MyAccount-navigation { float: none !important; width: auto !important; }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 12px; list-style: none; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-md); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--tinta); text-decoration: none; font-weight: 500; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--verde-pale); color: var(--verde-hover); }
.woocommerce-MyAccount-content { float: none !important; width: auto !important; padding: 28px; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-md); }
.woocommerce-account:not(.logged-in) .tul-store-body .woocommerce { display: block; max-width: 520px; margin: 0 auto; }
.woocommerce form.login, .woocommerce form.register { margin: 0 !important; padding: 28px !important; background: #fff; border: 1px solid var(--borde-suave) !important; border-radius: var(--r-card) !important; }
@media (max-width: 767px) { .woocommerce-account .tul-store-body .woocommerce { grid-template-columns: 1fr; } }

/* ---------- search ---------- */
.tul-search-results ul.products { margin-bottom: 36px !important; }
.tul-search-h { margin: 8px 0 16px; font-size: 1.3rem; font-weight: 700; }

/* WooCommerce hides the delivery address block on load and slides it back open (the
   plugin keeps "ship to a different address" on), which pushed the rest of the form down
   by a full screen on phones. The block is always open here, so the animation cannot run. */
.woocommerce-checkout div.shipping_address { display: block !important; height: auto !important; overflow: visible !important; }

/* Checkout trust lines: space under the order summary and between lines. */
body.woocommerce-checkout .tlp-trust:is(ul, #tlp-na) { margin: 20px 0 24px !important; padding: 0 8px !important; gap: 14px; font-size: .9rem; line-height: 1.5; }
body.woocommerce-checkout .tlp-trust:is(ul, #tlp-na) li { margin: 0; }
/* PayPal writes its "Pay Later" monthly-payments line only in English, so the Spanish site
   leaves it out; Pay Later is still offered inside the PayPal window. */
html[lang^="es"] .ppcp-messages { display: none !important; }
