/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.0
 Text Domain:  bricks
*/
/* =========================================================
   CULTIVERS · CSS CUSTOM · CHILD THEME
   ========================================================= */

/* =========================================================
   1. FORMULARIOS EXTERNOS · CONTACTO / NEWSLETTER
   ========================================================= */

.contacto label {
  color: #2b0000;
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-top: 5%;
  padding: 12px 5px 0;
  margin-bottom: 0;
}

.contacto input:not([type="submit"]),
.contacto select,
.contacto textarea {
  border: 1px solid #958080;
  border-radius: 25px;
}

.contacto textarea {
  height: 100px;
}

.contacto input[type="submit"] {
  background-color: #968218;
  border-radius: 100px;
  border: none;
  padding: 20px;
  height: auto;
  width: 170px;
  color: #fff;
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  margin-top: 5%;
}

.newsletter input:not([type="submit"]),
.newsletter select,
.newsletter textarea {
  border: 1px solid #958080;
  border-radius: 25px;
  padding: 12px 24px;
}

.newsletter input[type="submit"] {
  background-color: #968218;
  border-radius: 100px;
  border: none;
  padding: 20px;
  height: auto;
  width: 170px;
  color: #fff;
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.newsletter .avis,
.newsletter .sib-OPT_IN-area {
  margin-right: 5px;
}

/* =========================================================
   2. PRODUCTO / VARIACIONES / LISTADOS
   ========================================================= */

body:not(.woocommerce) .brx-popup-content:not(.woocommerce) form.cart .single_add_to_cart_button,
body:not(.woocommerce) .product_type_external,
body:not(.woocommerce) .product_type_grouped,
body:not(.woocommerce) .product_type_simple,
body:not(.woocommerce) .product_type_variable {
  display: none;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item {
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif !important;
  font-weight: 400 !important;
  font-size: 13px !important;
}

.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item) {
  border-radius: 100px !important;
  padding: 8px !important;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item:not(.no-stock) {
  background-color: transparent !important;
  color: #2c0000 !important;
  border: 1px solid #2c0000 !important;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item:not(.no-stock):hover {
  background-color: #968218 !important;
  color: #fff !important;
  border: 1px solid #968218 !important;
}

.woo-variation-swatches.wvs-show-label .variations th label {
  display: none;
  margin: 0 2px;
}

.size-woocommerce_thumbnail {
  width: 75px;
}

.listado-productos .repeater-item [data-field-id="12e066"] {
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  color: #968218 !important;
  text-align: left !important;
}

.listado-productos .repeater-item [data-field-id="dmecaq"] {
  background: #968218 !important;
}

.listado-productos img {
  width: 100%;
  height: 200px !important;
  object-fit: contain;
}
.woo-variation-swatches .variable-items-wrapper .variable-item[title] {
    pointer-events: auto;
}
body.product-type-variable .woocommerce-variation-price {
    display: none !important;
}

/* =========================================================
   3. SISTEMA GLOBAL DE BOTONES
   ========================================================= */

:root {
  --btn-radius: 25px;
  --btn-bg: #968218;
  --btn-bg-hover: #98b721;
  --btn-text: #f5f5f5;
  --btn-font: "Lato", sans-serif;
  --btn-font-size: 16px;
  --btn-font-transform: uppercase;
  --btn-padding-x: 35px;
  --btn-padding-y: 0;
}

/* Base SOLO para botones "de contenido" */
input[type="submit"],
input[type="button"],
a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-text);
  border-radius: var(--btn-radius);
  font-family: var(--btn-font);
  font-size: var(--btn-font-size);
  text-transform: var(--btn-font-transform);
  padding-left: var(--btn-padding-x);
  padding-right: var(--btn-padding-x);
  padding-top: var(--btn-padding-y);
  padding-bottom: var(--btn-padding-y);
  letter-spacing: 0.04em;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
a.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  color: var(--btn-text);
}

/* Reset botones UI del header */
.bricks-mobile-menu-toggle,
button.x-header-search_toggle-open,
button.x-header-search_toggle-close {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-transform: none !important;
  font-family: inherit !important;
  letter-spacing: normal !important;
  min-height: auto !important;
  color: inherit !important;
}

/* =========================================================
   4. WOOCOMMERCE · PRECIOS POR CONTEXTO
   ========================================================= */

.woocommerce-cart .woocommerce-Price-amount,
.woocommerce-checkout .woocommerce-Price-amount,
.widget_shopping_cart .woocommerce-Price-amount,
.woocommerce-mini-cart .woocommerce-Price-amount {
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif !important;
  font-weight: 900 !important;
  color: #2c0000 !important;
}

.woocommerce-cart .woocommerce-Price-amount,
.woocommerce-checkout .woocommerce-Price-amount {
  font-size: 18px !important;
  text-align: right !important;
}

.widget_shopping_cart .woocommerce-Price-amount,
.woocommerce-mini-cart .woocommerce-Price-amount {
  font-size: 15px !important;
}

/* =========================================================
   5. MINI CARRITO
   ========================================================= */

.widget_shopping_cart,
.woocommerce-mini-cart {
  font-size: 14px !important;
  line-height: 1.4;
}

.widget_shopping_cart .woocommerce-mini-cart-item a,
.woocommerce-mini-cart .woocommerce-mini-cart-item a {
  font-size: 13px !important;
  font-weight: 600;
}

.widget_shopping_cart .quantity,
.woocommerce-mini-cart .quantity {
  font-size: 13px !important;
  opacity: 0.8;
}

.widget_shopping_cart .total,
.woocommerce-mini-cart .total {
  font-size: 14px !important;
}

.widget_shopping_cart .button,
.woocommerce-mini-cart .button {
  font-size: 13px !important;
  padding: 10px 16px !important;
}

/* =========================================================
   6. CHECKOUT
   ========================================================= */

.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: 28px;
  row-gap: 18px;
  align-items: start;
}

.woocommerce-checkout form.checkout > .woocommerce-notices-wrapper,
.woocommerce-checkout form.checkout > .brxe-container,
.woocommerce-checkout form.checkout > #wc-stripe-express-checkout-element,
.woocommerce-checkout form.checkout > #wc-stripe-express-checkout-button-separator {
  grid-column: 1 / -1;
}

.woocommerce-checkout form.checkout #customer_details {
  grid-column: 1;
  min-width: 0;
}

.woocommerce-checkout form.checkout #customer_details + div {
  grid-column: 2;
  min-width: 0;
}

.woocommerce-checkout #customer_details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.woocommerce-checkout #customer_details > .col-1,
.woocommerce-checkout #customer_details > .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 14px 0;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout #order_review,
.woocommerce-checkout #payment {
  background: #f6f6f4;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  padding: 22px;
}

.woocommerce-checkout #payment {
  margin-top: 16px;
}

.woocommerce-checkout .form-row {
  margin-bottom: 25px;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea.input-text,
.woocommerce-checkout select {
  border-radius: 5px;
  padding: 2px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
}

.woocommerce-checkout textarea.input-text {
  border-radius: 5px;
  min-height: 120px;
}

.woocommerce-checkout label {
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 6px;
}

.woocommerce-checkout #order_review table.shop_table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}

.woocommerce-checkout #order_review table.shop_table thead th {
  font-weight: 700;
  opacity: 0.85;
}

.woocommerce-checkout #order_review table.shop_table td:last-child,
.woocommerce-checkout #order_review table.shop_table th:last-child {
  text-align: right;
}

.woocommerce-checkout #order_review table.shop_table tr:last-child td,
.woocommerce-checkout #order_review table.shop_table tr:last-child th {
  border-bottom: 0;
}

.woocommerce-checkout #order_review .order-total th {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  opacity: 0.85;
}

.woocommerce-checkout #order_review .order-total td strong {
  font-weight: 800;
}

.woocommerce-checkout #payment ul.payment_methods {
  padding: 0;
  margin: 0;
  list-style: none;
  border: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
  background: rgba(255, 255, 255, 0.65);
  border: 0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.woocommerce-checkout #payment div.payment_box {
  background: #fff;
  border: 0;
  border-radius: 14px;
  margin-top: 12px;
  padding: 14px;
}

.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .form-row.terms {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.9;
}

.woocommerce-checkout #place_order {
  width: 100%;
  display: block;
  margin-top: 12px;
  padding-left: 35px;
  padding-right: 35px;
  border-radius: 50px;
}

/* Compactar huecos superiores */
.woocommerce > .before-checkout.brxe-container,
.woocommerce > form.checkout.brxe-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  row-gap: 0 !important;
}

/* Responsive checkout */
@media (max-width: 980px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 14px;
  }

  .woocommerce-checkout form.checkout #customer_details,
  .woocommerce-checkout form.checkout #customer_details + div {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   7. STRIPE EXPRESS CHECKOUT
   ========================================================= */

form.woocommerce-checkout #wc-stripe-express-checkout-element {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  clear: none !important;
}

form.woocommerce-checkout #wc-stripe-express-checkout-element-googlePay {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
}

form.woocommerce-checkout #wc-stripe-express-checkout-element-googlePay .__PrivateStripeElement {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 620px !important;
  overflow: hidden !important;
}

form.woocommerce-checkout #wc-stripe-express-checkout-element-googlePay iframe {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 68px !important;
}

form.woocommerce-checkout #wc-stripe-express-checkout-button-separator {
  margin: 70px 0 14px 0 !important;
  line-height: 1 !important;
}

@media (max-width: 980px) {
  form.woocommerce-checkout #wc-stripe-express-checkout-element-googlePay .__PrivateStripeElement {
    max-width: 520px !important;
  }

  form.woocommerce-checkout #wc-stripe-express-checkout-element-googlePay iframe {
    height: 68px !important;
  }
}

@media (max-width: 480px) {
  form.woocommerce-checkout #wc-stripe-express-checkout-element {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }

  form.woocommerce-checkout #wc-stripe-express-checkout-element-googlePay .__PrivateStripeElement {
    max-width: 100% !important;
  }

  form.woocommerce-checkout #wc-stripe-express-checkout-element-googlePay iframe {
    height: 68px !important;
  }

  form.woocommerce-checkout #wc-stripe-express-checkout-button-separator {
    margin: 68px 0 12px 0 !important;
  }
}

/* =========================================================
   8. CARRITO
   ========================================================= */

#brxe-ejodvt.cart-bricks .cart-collaterals {
  display: grid !important;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.95fr) !important;
  gap: 40px !important;
  align-items: start !important;
  width: 100% !important;
  margin-top: 40px !important;
}

#brxe-ejodvt.cart-bricks .cross-sells {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  order: 1 !important;
}

#brxe-ejodvt.cart-bricks .cart_totals {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  order: 2 !important;
  align-self: start !important;
}

#brxe-ejodvt.cart-bricks .cross-sells > h2 {
  margin: 0 0 20px 0 !important;
}

#brxe-ejodvt.cart-bricks .cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 26px 22px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#brxe-ejodvt.cart-bricks .cross-sells ul.products.columns-2 li.product,
#brxe-ejodvt.cart-bricks .cross-sells ul.products.columns-3 li.product,
#brxe-ejodvt.cart-bricks .cross-sells ul.products li.product {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

#brxe-ejodvt.cart-bricks .cross-sells li.product .woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  text-decoration: none !important;
}

#brxe-ejodvt.cart-bricks .cross-sells ul.products li.product img,
#brxe-ejodvt.cart-bricks .cross-sells ul.products li.product .attachment-woocommerce_thumbnail,
#brxe-ejodvt.cart-bricks .cross-sells ul.products li.product .size-woocommerce_thumbnail {
  display: block !important;
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  height: 70px !important;
  object-fit: contain !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 0 12px 0 !important;
}

#brxe-ejodvt.cart-bricks .cross-sells .woocommerce-loop-product__title {
  font-size: 11px !important;
  line-height: 1.35 !important;
  margin: 0 0 6px 0 !important;
  max-width: 180px !important;
}

#brxe-ejodvt.cart-bricks .cross-sells .price,
#brxe-ejodvt.cart-bricks .cross-sells .woocommerce-Price-amount {
  display: block !important;
  margin: 0 0 10px 0 !important;
}

#brxe-ejodvt.cart-bricks .cross-sells .woocommerce-Price-amount {
  font-size: 13px !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

#brxe-ejodvt.cart-bricks .cross-sells .button,
#brxe-ejodvt.cart-bricks .cross-sells a.button,
#brxe-ejodvt.cart-bricks .cross-sells .add_to_cart_button {
  margin-top: auto !important;
  font-size: 11px !important;
  line-height: 1 !important;
  padding: 10px 16px !important;
  min-height: auto !important;
  border-radius: 999px !important;
  width: auto !important;
}

@media (max-width: 1024px) {
  #brxe-ejodvt.cart-bricks .cart-collaterals {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  #brxe-ejodvt.cart-bricks .cross-sells {
    order: 1 !important;
  }

  #brxe-ejodvt.cart-bricks .cart_totals {
    order: 2 !important;
  }

  #brxe-ejodvt.cart-bricks .cross-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 16px !important;
  }

  #brxe-ejodvt.cart-bricks .cross-sells ul.products li.product:nth-child(n+3) {
    display: none !important;
  }

  #brxe-ejodvt.cart-bricks .cross-sells ul.products li.product img,
  #brxe-ejodvt.cart-bricks .cross-sells ul.products li.product .attachment-woocommerce_thumbnail,
  #brxe-ejodvt.cart-bricks .cross-sells ul.products li.product .size-woocommerce_thumbnail {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    height: 90px !important;
    margin-bottom: 10px !important;
  }

  #brxe-ejodvt.cart-bricks .cross-sells .woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    max-width: 150px !important;
  }

  #brxe-ejodvt.cart-bricks .cross-sells .woocommerce-Price-amount {
    font-size: 15px !important;
  }

  #brxe-ejodvt.cart-bricks .cross-sells .button,
  #brxe-ejodvt.cart-bricks .cross-sells a.button,
  #brxe-ejodvt.cart-bricks .cross-sells .add_to_cart_button {
    font-size: 12px !important;
    padding: 9px 14px !important;
  }
}

/* =========================================================
   9. MENSAJES WOOCOMMERCE
   ========================================================= */

.woocommerce-notices-wrapper {
  margin-bottom: 20px;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-NoticeGroup-checkout,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error {
  border-radius: 14px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: none !important;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error {
  position: relative !important;
  background: #f6f6f4 !important;
  color: #2c0000 !important;
  padding: 16px 18px !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.45 !important;
  font-size: 14px !important;
  list-style: none !important;
}

.woocommerce-info {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.woocommerce-message {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.woocommerce-error {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
  display: none !important;
  content: none !important;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
}

.woocommerce-info a:not(.button),
.woocommerce-message a:not(.button),
.woocommerce-error a:not(.button) {
  color: #968218 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.woocommerce-info a:not(.button):hover,
.woocommerce-message a:not(.button):hover,
.woocommerce-error a:not(.button):hover {
  color: #7f6d14 !important;
  text-decoration: underline !important;
}

.woocommerce-message,
.woocommerce-info {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.woocommerce-error {
  padding-left: 18px !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
  background: #f6f6f4 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #2c0000 !important;
}

.checkout_coupon.woocommerce-form-coupon,
.woocommerce-form-login {
  background: #f6f6f4 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  margin: 0 0 18px 0 !important;
}

.checkout_coupon input.input-text,
.woocommerce-form-login input.input-text {
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 25px !important;
  background: #fff !important;
}

.woocommerce .woocommerce-message .restore-item {
  margin-left: 10px !important;
}

.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
  margin-bottom: 18px !important;
}

/* Botón dentro de mensajes */
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button,
.woocommerce-message a.button.wc-forward,
.woocommerce-info a.button.wc-forward,
.woocommerce-error a.button.wc-forward {
  background-color: #968218 !important;
  border: 1px solid #968218 !important;
  color: #f5f5f5 !important;
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  line-height: 1 !important;
  padding: 12px 24px !important;
  border-radius: 25px !important;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover,
.woocommerce-message a.button.wc-forward:hover,
.woocommerce-info a.button.wc-forward:hover,
.woocommerce-error a.button.wc-forward:hover {
  background-color: #98b721 !important;
  border-color: #98b721 !important;
  color: #f5f5f5 !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .woocommerce-message,
  .woocommerce-info {
    display: block !important;
  }

  .woocommerce-info .button,
  .woocommerce-message .button,
  .woocommerce-error .button,
  .woocommerce-info a.button,
  .woocommerce-message a.button,
  .woocommerce-error a.button {
    display: inline-block !important;
    margin: 12px 0 0 0 !important;
  }
}

/* ==========================================================
   PARA PARA TIENDA WOOCOMMERCE CULTIVERS
   Solo aplica a la página tienda
========================================================== */

body.post-type-archive-product ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

body.post-type-archive-product ul.products li.product {
  width: auto !important;
  margin: 0 !important;
}

/* ==========================================================
   CATEGORÍAS SUPERIORES
========================================================== */

body.post-type-archive-product ul.products li.product-category {
  text-align: center;
  margin-bottom: 40px !important;
}

body.post-type-archive-product ul.products li.product-category:first-child {
  grid-column: 2;
}

body.post-type-archive-product ul.products li.product-category:nth-child(2) {
  grid-column: 3;
}

/* Fuerza que los productos empiecen debajo */
body.post-type-archive-product ul.products li.product-category:nth-child(2) + li.type-product {
  grid-column: 1;
}

body.post-type-archive-product ul.products li.product-category img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 2px;
}

body.post-type-archive-product ul.products li.product-category .woocommerce-loop-category__title {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 800;
  color: #333;
}

/* ==========================================================
   TARJETAS DE PRODUCTO
========================================================== */

body.post-type-archive-product ul.products li.type-product {
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
  padding: 0 0 26px;
  overflow: hidden;
}

body.post-type-archive-product ul.products li.type-product img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin: 0 0 22px;
}

body.post-type-archive-product ul.products li.type-product .woocommerce-loop-product__title {
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  color: #968218 !important;
  text-align: left !important;
  min-height: 58px;
  padding: 0 22px;
  line-height: 1.35;
  text-transform: uppercase;
  color: #9f8708;
}

body.post-type-archive-product ul.products li.type-product .star-rating {
  margin-left: 22px;
  display: none;
  margin-top: 0px;
}

body.post-type-archive-product ul.products li.type-product .price {
  display: block;
  color: #22262a;
  font-size: 18px;
  text-align: left;
  line-height: 1.5em;
  font-family: "Lato";
  font-weight: 700;
  font-style: normal;
  padding: 12px 22px 0;
}

body.post-type-archive-product ul.products li.type-product a.button {
  display: none;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1024px) {
  body.post-type-archive-product ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.post-type-archive-product ul.products li.product-category:first-child,
  body.post-type-archive-product ul.products li.product-category:nth-child(2),
  body.post-type-archive-product ul.products li.product-category:nth-child(2) + li.type-product {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  body.post-type-archive-product ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 18px;
  }

  body.post-type-archive-product ul.products li.product-category img {
    width: 80px;
    height: 80px;
  }

  body.post-type-archive-product ul.products li.type-product img {
    height: 170px;
  }
}

/* =========================================================
   10. STICKY ADD TO CART · SOLO MÓVIL
   Aplica únicamente al elemento #brxe-qpbsoi (sticky)
   y solo en pantallas de hasta 768px.
   No afecta a ningún otro botón ni breakpoint.
   ========================================================= */

@media (max-width: 768px) {

  #brxe-qpbsoi form.cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* ---------- Primera fila (variaciones + precio) ---------- */

  #brxe-qpbsoi .sticky-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 2px !important;
    padding-right: 8px !important;
  }

  #brxe-qpbsoi .variations {
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 !important;
  }

  #brxe-qpbsoi .variations tbody,
  #brxe-qpbsoi .variations tr,
  #brxe-qpbsoi .variations td,
  #brxe-qpbsoi .variations th {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  #brxe-qpbsoi .variable-items-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  #brxe-qpbsoi .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item),
  #brxe-qpbsoi.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item),
  #brxe-qpbsoi .woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item) {
    padding: 4px !important;
  }

  #brxe-qpbsoi .variable-item {
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
  }

  #brxe-qpbsoi .sticky-price-clone,
  body.product-type-variable #brxe-qpbsoi .sticky-price-clone {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 6px !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #968218 !important;
  }

  #brxe-qpbsoi .sticky-price-clone .woocommerce-Price-amount,
  #brxe-qpbsoi .sticky-price-clone bdi {
    display: inline !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #968218 !important;
  }

  /* ---------- Segunda fila (cantidad + botón) ---------- */

  #brxe-qpbsoi .single_variation_wrap {
    width: 100% !important;
  }

  #brxe-qpbsoi .woocommerce-variation-add-to-cart,
  #brxe-qpbsoi form.cart:not(.variations_form) {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  #brxe-qpbsoi .quantity {
    flex: 0 0 88px !important;
    width: 88px !important;
    min-width: 88px !important;
    margin: 0 !important;
  }

  #brxe-qpbsoi .single_add_to_cart_button,
  body.woocommerce #brxe-qpbsoi .single_add_to_cart_button,
  body.woocommerce #brxe-qpbsoi button.single_add_to_cart_button.button {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
  }

  /* ---------- Ocultar precio original ---------- */

  #brxe-qpbsoi .woocommerce-variation-price:not(.sticky-price-clone),
  #brxe-qpbsoi .woocommerce-variation-availability {
    display: none !important;
  }

  /* ---------- Productos simples ---------- */

  #brxe-qpbsoi form.cart:not(.variations_form) .price,
  #brxe-qpbsoi form.cart:not(.variations_form) .woocommerce-Price-amount {
    display: inline-block !important;
    margin: 0 6px 0 auto !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 42px !important;
    color: #968218 !important;
    white-space: nowrap !important;
  }

}
/* =========================================================
   11. DESACTIVAR TOOLTIPS DE WOO VARIATION SWATCHES
   ========================================================= */

.woo-variation-swatches .variable-item::before,
.woo-variation-swatches .variable-item::after,
.woo-variation-swatches [data-title]::before,
.woo-variation-swatches [data-title]::after,
.woo-variation-swatches [data-wvstooltip]::before,
.woo-variation-swatches [data-wvstooltip]::after,
.woo-variation-swatches .wvs-tooltip,
.woo-variation-swatches .wvs-hint {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  content: none !important;
  pointer-events: none !important;
}
/* =========================================================
   12. GALERÍA DE PRODUCTO · MÓVIL
   ========================================================= */

@media (max-width: 768px) {

  /* Limitar la altura visual de la galería */
  .single-product .woocommerce-product-gallery,
  .single-product .woocommerce-product-gallery__wrapper,
  .single-product .woocommerce-product-gallery__image {
    max-height: 350px !important;
  }

  .single-product .woocommerce-product-gallery__image img,
  .single-product .woocommerce-product-gallery img {
    display: block !important;
    width: 100% !important;
    max-height: 350px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  /* Ocultar miniaturas en móvil */
  .single-product .flex-control-thumbs {
    display: none !important;
  }

}

/* =========================================================
   13. LOGO CABECERA
   ========================================================= */

#brx-header #brxe-1fd8d9 .bricks-site-logo {
  height: 90px !important;
  max-height: 90px !important;
}
