/* WooCommerce dentro de la composición de Miu Lovers. */

ul.products {
  list-style: none;
  padding: 0;
}
ul.products:not(.row) { margin: 0; }
#catalogo ul.products.row {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 4rem;
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
  margin-top: 0;
  margin-bottom: 0;
}
#catalogo ul.products > li {
  min-width: 0;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}
#catalogo .piece-photo,
#catalogo .piece-photo > a {
  display: block;
  width: 100%;
  height: 100%;
}
#catalogo .piece-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.woocommerce-product-gallery,
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: 100% !important;
  float: none !important;
}
.woocommerce div.product div.images img { width: 100%; height: auto; }
.flex-control-thumbs {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.flex-control-thumbs li { width: 4.5rem; }
.flex-control-thumbs img { border-radius: 0.25rem; }

.lume-shop .woocommerce-result-count,
.lume-shop .woocommerce-ordering { margin: 0 0 1.5rem; }
.lume-shop .woocommerce-ordering,
.filter-tools .woocommerce-ordering { float: none; margin: 0; }
.filter-tools .woocommerce-ordering select.btn-pill {
  width: auto;
  max-width: 16rem;
  border: 0;
  border-radius: 999px;
  background-color: #f5f3ee;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c5b4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  height: 3.25rem;
  padding: 0 2rem 0 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(27, 28, 25, 0.05);
  appearance: none;
}
@media (max-width: 767.98px) {
  .filter-tools .woocommerce-ordering select.btn-pill {
    width: 100%;
    max-width: none;
  }
}
.filter-tools .woocommerce-ordering select.btn-pill:hover,
.filter-tools .woocommerce-ordering select.btn-pill:focus {
  background-color: #f0eee9;
  color: #1b1c19;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c5b4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");
}
#catalogo .piece-photo img { transition: transform 0.7s ease-out; }
#catalogo .piece:hover .piece-photo img { transform: scale(1.05); }
#catalogo.lookbook ul.products.row { --bs-gutter-y: 6rem; }
@media (min-width: 992px) {
  #catalogo.lookbook .catalog > .piece {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
  #catalogo.lookbook .catalog > .col-lg-8 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.load-more .woocommerce-pagination { margin: 0; }
.load-more ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.load-more .page-numbers {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(245, 243, 238, 0.8);
  padding: 0.45rem 0.9rem;
  color: inherit;
}
.load-more .page-numbers.current { background: #000; color: #fff; }
.woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart-form .input-text {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--outline-variant);
  border-radius: 0;
  padding: 0.7rem 0;
  color: var(--on-surface);
}
.woocommerce .quantity .qty {
  width: 4.5rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--outline-variant);
  border-radius: 0;
  padding: 0.7rem 0;
  color: var(--on-surface);
}
form.cart,
.woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.woocommerce form .form-row label,
.woocommerce-form-row label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.woocommerce form .form-row { margin-bottom: 1rem; padding: 0; }
.woocommerce-input-wrapper { display: block; }

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #place_order {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 0.25rem;
  padding: 0.875rem 1.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #place_order:hover { background: #000; color: #fff; }

.woocommerce .piece-add a.button,
.piece-add .button,
.piece-add a.button,
button.piece-add {
  background: transparent;
  color: #fff;
  padding: 0;
  width: 100%;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
}
.price del,
.price del .amount { color: #7e7570; font-size: 13px; margin-right: 0.35rem; }
.price ins { text-decoration: none; }

.woocommerce-cart-form .shop_table,
.woocommerce-checkout-review-order-table,
.woocommerce-table { width: 100%; }
.woocommerce table.shop_table { border: 0; border-collapse: collapse; }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border-bottom: 1px solid var(--hairline); padding: 0.85rem 0.4rem; vertical-align: middle; }
.woocommerce a.remove { color: var(--on-surface) !important; font-size: 1.25rem; }
.cart-collaterals .cart_totals {
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  padding: 1.25rem;
}
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error { margin-bottom: 1rem; }
.woocommerce-error { list-style: none; padding-left: 1rem; }
.store-notice.tone-error,
.store-notice.tone-error a { color: var(--surface); }

.cuenta-side a.is-active { font-weight: 600; }
.woocommerce-MyAccount-content .button { margin-top: 0.5rem; }
.star-rating { color: var(--secondary); }

.select2-container .select2-selection--single {
  height: auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--outline-variant);
  border-radius: 0;
  padding: 0.45rem 0;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.6; padding-left: 0; color: var(--on-surface); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }

@media (max-width: 767px) {
  .woocommerce table.shop_table_responsive tr td { text-align: right; }
  .woocommerce table.shop_table_responsive tr td::before { float: left; font-weight: 600; }
}

/* Pago: campos en caja. protocol está en el body; woocommerce envuelve el formulario. */
.protocol form.checkout .form-row-first,
.protocol form.checkout .form-row-last {
  float: left;
  width: calc(50% - 0.45rem);
}
.protocol form.checkout .form-row-last { float: right; }
.protocol form.checkout .form-row-wide { clear: both; width: 100%; }
.protocol .woocommerce-billing-fields__field-wrapper,
.protocol .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.9rem;
}
.protocol form.checkout .woocommerce-billing-fields__field-wrapper > .form-row,
.protocol form.checkout .woocommerce-shipping-fields__field-wrapper > .form-row {
  float: none;
  width: 100%;
  clear: none;
}
.protocol .woocommerce-billing-fields__field-wrapper > .form-row:has(input[type="checkbox"]),
.protocol .woocommerce-shipping-fields__field-wrapper > .form-row:has(input[type="checkbox"]) {
  grid-column: 1 / -1;
}
.protocol form.checkout .woocommerce-billing-fields__field-wrapper::after,
.protocol form.checkout .woocommerce-shipping-fields__field-wrapper::after {
  content: none;
}
.protocol form.checkout .form-row input.input-text,
.protocol form.checkout .form-row textarea,
.protocol form.checkout .form-row select,
.protocol form.checkout .select2-container .select2-selection--single {
  width: 100%;
  background: #faf9f6;
  border: 1px solid #e8e5dc;
  border-radius: 0.35rem;
  padding: 0.75rem 0.9rem;
  color: var(--on-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.protocol form.checkout .form-row textarea { min-height: 6.5rem; resize: vertical; }
.protocol form.checkout .form-row input.input-text:focus,
.protocol form.checkout .form-row textarea:focus,
.protocol form.checkout .form-row select:focus,
.protocol form.checkout .select2-container--open .select2-selection--single,
.protocol form.checkout .select2-container--focus .select2-selection--single {
  border-color: #1b1c19;
  box-shadow: 0 0 0 1px #1b1c19;
  background: #fff;
  outline: 0;
}
.protocol form.checkout .select2-container { width: 100% !important; }
.protocol form.checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
  padding-left: 0;
}
.protocol form.checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
.protocol #payment {
  background: transparent;
  border-radius: 0;
}
.protocol #payment .wc_payment_methods {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
@media (min-width: 576px) {
  .protocol #payment .wc_payment_methods:has(> li:nth-child(2)) { grid-template-columns: 1fr 1fr; }
}
.protocol #payment .wc_payment_method {
  position: relative;
  margin: 0;
  padding: 1rem;
  border: 1px solid #e8e5dc;
  border-radius: 0.6rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.protocol #payment .wc_payment_method:hover { border-color: #9c9489; background: #faf9f6; }
.protocol #payment .wc_payment_method:has(input:checked) {
  border: 2px solid #1b1c19;
  background: #faf9f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.protocol #payment .wc_payment_method input.input-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.protocol #payment .wc_payment_method > label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.protocol #payment .wc_payment_method > label::after {
  content: "check_circle";
  flex: none;
  font-family: "Material Symbols Outlined";
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #c8c2b8;
}
.protocol #payment .wc_payment_method:has(input:checked) > label::after { color: #1b1c19; }
.protocol #payment .payment_box {
  margin: 0.7rem 0 0;
  padding: 0.85rem;
  border: 1px solid #e8e5dc;
  border-radius: 0.45rem;
  background: #fff;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
}
.protocol #payment .payment_box::before { display: none; }
.protocol #payment .payment_box p { margin: 0 0 0.55rem; }
.protocol #payment .payment_box p:last-child { margin-bottom: 0; }
.pay-channels {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.85rem 0 0.15rem;
  padding: 0;
  list-style: none;
}
.pay-channel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e8e5dc;
  border-radius: 0.6rem;
  background: #faf9f6;
}
.pay-channel-mark {
  display: block;
  flex: none;
  width: 4.2rem;
  height: 1.55rem;
  object-fit: contain;
  object-position: left center;
}
.pay-channel-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pay-channel-num {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  padding: 0.35rem 0.8rem;
  border: 1px solid #e8e5dc;
  border-radius: 999px;
  background: #fff;
  color: #1b1c19;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pay-channel-num:hover,
.pay-channel-num.is-copied {
  border-color: #1b1c19;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.pay-channel-num.is-copied::before {
  content: "check";
  font-family: "Material Symbols Outlined";
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}
.protocol #billing_phone_field .woocommerce-input-wrapper {
  display: flex;
  align-items: center;
  background: #faf9f6;
  border: 1px solid #e8e5dc;
  border-radius: 0.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.protocol #billing_phone_field .woocommerce-input-wrapper::before {
  content: "+57";
  flex: none;
  padding-left: 0.9rem;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
}
.protocol #billing_phone_field input.input-text {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.protocol #billing_phone_field .woocommerce-input-wrapper:focus-within {
  border-color: #1b1c19;
  box-shadow: 0 0 0 1px #1b1c19;
  background: #fff;
}
.protocol #place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  box-shadow: 0 4px 16px rgba(94, 23, 235, 0.28);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.protocol #place_order::before {
  content: "lock";
  font-family: "Material Symbols Outlined";
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.protocol #place_order:hover::before { transform: scale(1.12); }
.protocol #place_order:active { transform: scale(0.99); }
@media (max-width: 767.98px) {
  .protocol .woocommerce-billing-fields__field-wrapper,
  .protocol .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
  .protocol form.checkout .form-row-first,
  .protocol form.checkout .form-row-last {
    float: none;
    width: 100%;
  }
  .protocol .checkout-main,
  .protocol .sheet,
  .protocol #payment,
  .protocol #payment .wc_payment_methods,
  .protocol #payment .wc_payment_method,
  .protocol #payment .payment_box {
    min-width: 0;
    max-width: 100%;
  }
  .pay-channel-num {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: center;
  }
}
