/* ============================================================
   CTR Sports â€” WooCommerce (carrito + checkout + mi cuenta)
   Cargado SOLO en pÃ¡ginas WC.
   ============================================================ */

/* Quita el tÃ­tulo duplicado: la pÃ¡gina de WC se encarga de poner el suyo. */
.woocommerce-cart .ctr-page-head,
.woocommerce-checkout .ctr-page-head,
.woocommerce-account .ctr-page-head { display: none; }

.woocommerce-notices-wrapper { margin-bottom: 1.5rem; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: .875rem 1rem;
  border-radius: .75rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: 600;
  list-style: none;
  margin: 0 0 1rem 0;
}
.woocommerce-error { background: #fff; color: #000; border-color: #dc2626; }
.woocommerce-info  { background: #f5f5f5; color: #000; }
.woocommerce-message::before,
.woocommerce-info::before { display: none; }

.ctr-cart {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
  width: 100%;
}
@media (max-width: 900px) {
  .ctr-cart { grid-template-columns: 1fr; }
}

/* Cart layout container & padding: centrado elegante con márgenes laterales */
.woocommerce-cart .ctr-container {
  max-width: 1280px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  box-sizing: border-box !important;
}
.woocommerce-cart .ctr-site-main.ctr-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}
@media (max-width: 640px) {
  .woocommerce-cart .ctr-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.ctr-cart-head { grid-column: 1 / -1; margin-bottom: .25rem; }
.ctr-cart-notices { grid-column: 1 / -1; }
.ctr-cart-notices .woocommerce-message,
.ctr-cart-notices .woocommerce-info,
.ctr-cart-notices .woocommerce-error { margin: 0 0 1rem; }
.ctr-cart-title {
  font-size: 2rem; font-weight: 800; margin: 0 0 .25rem;
  color: #000; letter-spacing: -.01em;
}
.ctr-cart-subtitle { margin: 0; color: #525252; font-size: .9375rem; }

.ctr-cart-form {
  background: #fff; border: 1px solid #e5e5e5;
  border-radius: 1rem; padding: 1.5rem;
}
.ctr-cart-items {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .75rem;
}

/* Card del producto: 1 fila en desktop, apilada en mobile.
   [imagen 80] | [nombre + meta + qty]  | [subtotal / quitar] */
.ctr-cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  column-gap: 1rem; row-gap: .5rem;
  align-items: stretch;
  padding: 1.25rem;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: .75rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ctr-cart-item:hover {
  border-color: #d4d4d4;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.15);
}

/* Imagen del producto en el carrito: cubre totalmente el cuadro sin espacio blanco */
.ctr-cart-item-media {
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  border-radius: .75rem !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
  border: 1px solid #e5e5e5 !important;
  display: block !important;
  align-self: start !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ctr-cart-item-media a,
.ctr-cart-item-media figure,
.ctr-cart-item-media picture {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ctr-cart-item-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Body: nombre + meta + controles. */
.ctr-cart-item-body {
  display: flex; flex-direction: column;
  gap: .35rem; min-width: 0;
}
.ctr-cart-item-name {
  margin: 0; font-size: 1.125rem; font-weight: 700;
  line-height: 1.3; color: #000;
}
.ctr-cart-item-name a { color: #000; text-decoration: none; transition: opacity .2s ease; }
.ctr-cart-item-name a:hover { opacity: .7; }
.ctr-cart-item-meta { font-size: .8125rem; color: #525252; line-height: 1.5; }
.ctr-cart-variations {
  display: flex; flex-wrap: wrap;
  gap: .25rem .875rem; margin: 0; padding: 0;
}
.ctr-cart-variations dt, .ctr-cart-variations dd {
  display: inline; margin: 0; font-size: .8125rem; color: #525252;
}
.ctr-cart-variations dt { font-weight: 600; color: #000; margin-right: .25rem; }
.ctr-cart-variations dt::after { content: ":"; }
.ctr-cart-variations dd { padding: 0; }
.ctr-cart-variations dd:not(:last-child)::after { content: " · "; margin-left: .35rem; color: #d4d4d4; }
.ctr-cart-item-meta img {
  max-width: 48px; max-height: 48px;
  object-fit: cover; border-radius: .375rem;
  border: 1px solid #e5e5e5;
  display: inline-block; vertical-align: middle;
  margin: 2px 4px 2px 0;
}

/* Controles: qty a la izq, precio unitario a la der (compacto). */
.ctr-cart-item-controls {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .75rem; margin-top: auto; padding-top: .25rem;
}
.ctr-cart-qty { display: inline-flex; align-items: center; gap: .5rem; }
.ctr-cart-qty-label {
  font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: #525252;
}
.ctr-cart-qty input.qty {
  width: 3.75rem;
  border: 1px solid #d4d4d4; border-radius: .5rem;
  padding: .4rem .5rem; text-align: center;
  font-weight: 600; font-size: .9375rem;
  background: #fff; color: #000;
}
.ctr-cart-item-price {
  font-size: .8125rem; color: #737373; margin-left: auto;
}
.ctr-cart-item-price::before { content: "· "; color: #d4d4d4; }
.ctr-cart-item-price .amount { font-weight: 600; color: #525252; }

/* Side: subtotal arriba, Quitar abajo, alineado a la derecha. */
.ctr-cart-item-side {
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: space-between;
  gap: .5rem; min-width: 110px;
}
.ctr-cart-item-subtotal {
  font-size: 1.25rem; font-weight: 800;
  color: #000; text-align: right; line-height: 1.2; white-space: nowrap;
}
.ctr-cart-item-subtotal .amount { font-weight: 800; }
.ctr-cart-item-remove {
  /* Botón X para quitar el producto del side-cart. Es el tercer item
     del grid de .ctr-cart-item (columna `auto`). Visible solo al
     hover del item, salvo en touch donde queda siempre visible. */
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  color: #525252;
  background-color: transparent;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.2s ease;
  opacity: 0.6;
  align-self: start;
  margin-top: 0.125rem;
}
.ctr-cart-item-remove:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #000;
  opacity: 1;
}
.ctr-cart-item-remove.is-busy {
  opacity: 0.4;
  pointer-events: none;
}
/* En pantallas táctiles (no hay hover) mostramos el botón siempre */
@media (hover: none) {
  .ctr-cart-item-remove { opacity: 0.9; }
}

/* Botón Quitar / Remove en mobile y desktop */
.ctr-cart-item-remove,
.ctr-cart-remove,
.woocommerce-cart .product-remove a.remove,
.woocommerce-cart a.remove {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 9999px !important;
  background: rgba(0, 0, 0, 0.06) !important;
  color: #525252 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border: 0 !important;
  transition: all 0.2s ease;
  z-index: 10;
  margin: 0 !important;
}
.ctr-cart-item-remove:hover,
.ctr-cart-remove:hover,
.woocommerce-cart .product-remove a.remove:hover,
.woocommerce-cart a.remove:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}
.ctr-cart-remove-text {
  display: none !important;
}

/* Mobile Layout para la página del carrito /carrito/ */
@media (max-width: 640px) {
  .ctr-cart-item {
    position: relative !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    grid-template-areas: "media body" "side side" !important;
    column-gap: 0.75rem !important;
    row-gap: 0.5rem !important;
    padding: 1rem !important;
  }
  .ctr-cart-item-media {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    grid-area: media !important;
  }
  .ctr-cart-item-body {
    grid-area: body !important;
    padding-right: 2.25rem !important;
  }
  .ctr-cart-item-controls {
    margin-top: 0.25rem !important;
  }
  .ctr-cart-item-side {
    grid-area: side !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid #ececec !important;
    padding-top: 0.625rem !important;
    margin-top: 0.25rem !important;
    min-width: 0 !important;
  }
  .ctr-cart-item-subtotal {
    text-align: left !important;
    font-size: 1.1rem !important;
  }
  .ctr-cart-item-price {
    margin-left: 0 !important;
  }
}

.ctr-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ececec;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}
.ctr-cart-actions-left,
.ctr-cart-actions-right {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.ctr-cart-coupon {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.ctr-cart-coupon input.input-text {
  border: 1px solid #d4d4d4;
  border-radius: 9999px;
  padding: .5rem 1rem;
  min-width: 12rem;
  background: #fff;
  color: #000;
  font-size: .875rem;
}
.ctr-cart-coupon input.input-text:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.ctr-cart-continue,
.ctr-cart-actions .button {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 9999px;
  padding: .625rem 1.25rem;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.ctr-cart-continue:hover,
.ctr-cart-continue:focus-visible,
.ctr-cart-actions .button:hover,
.ctr-cart-actions .button:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
}

@media (max-width: 600px) {
  .ctr-cart-actions { flex-direction: column; align-items: stretch; }
  .ctr-cart-actions-left, .ctr-cart-actions-right { width: 100%; justify-content: stretch; }
  .ctr-cart-continue, .ctr-cart-actions .button { width: 100%; justify-content: center; }
  .ctr-cart-coupon { width: 100%; }
  .ctr-cart-coupon input.input-text { flex: 1 1 auto; min-width: 0; }
}

.ctr-cart-collaterals { position: sticky; top: 1rem; }

/* Estado "busy" durante peticiones AJAX: ligera opacidad + cursor */
.ctr-cart.is-busy { opacity: .65; pointer-events: none; transition: opacity .15s ease; }
.ctr-cart .ctr-cart-item.is-removing { opacity: 0; transform: translateX(-8px); transition: opacity .2s ease, transform .2s ease; }

/* Carrito vacÃ­o */
.ctr-cart-empty-state {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-width: 520px;
  margin: 2rem auto;
}
.ctr-cart-empty-icon {
  font-size: 3.5rem;
  color: rgba(0,0,0,.4);
}
.ctr-cart-empty-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
}
.ctr-cart-empty-text {
  margin: 0;
  color: #525252;
  max-width: 32ch;
}
.ctr-cart-empty-cta {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 9999px;
  padding: .75rem 1.5rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-top: .5rem;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.ctr-cart-empty-cta:hover,
.ctr-cart-empty-cta:focus-visible {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}

/* Fix layout columna derecha: Totales del carrito deben ocupar el 100% del ancho del sidebar */
.woocommerce-cart .cart-collaterals,
.ctr-cart-collaterals {
  width: 100% !important;
  float: none !important;
  display: block !important;
  grid-template-columns: 1fr !important;
  margin-top: 0 !important;
}

.woocommerce-cart .cart_totals,
.woocommerce-cart .cart-collaterals .cart_totals,
.cart_totals {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  padding: 1.5rem;
}
/* En el cart no queremos el shipping calculator con la direcciÃ³n completa â€”
   se muestra en el checkout. Lo ocultamos aquÃ­ para mantener limpio el resumen. */
.woocommerce-cart .cart_totals .shipping-calculator-form,
.woocommerce-cart .cart_totals .shipping-calculator-button {
  display: none !important;
}
.woocommerce-cart .cart_totals tr.shipping th,
.woocommerce-cart .cart_totals tr.shipping td {
  font-size: .875rem;
}
.woocommerce-cart .cart_totals tr.shipping td[data-title="EnvÃ­o"] ul,
.woocommerce-cart .cart_totals tr.shipping td ul#shipping_method {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-align: right;
}
.woocommerce-cart .cart_totals tr.shipping td[data-title="EnvÃ­o"] li,
.woocommerce-cart .cart_totals tr.shipping td ul#shipping_method li {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
  padding: 0;
  margin: 0;
  font-size: .875rem;
  color: #000;
  text-align: right;
}
.woocommerce-cart .cart_totals tr.shipping td[data-title="EnvÃ­o"] li label,
.woocommerce-cart .cart_totals tr.shipping td ul#shipping_method li label {
  display: inline;
  margin: 0;
  font-weight: 500;
  color: #000;
  text-transform: none;
  letter-spacing: 0;
  font-size: .875rem;
}
.woocommerce-cart .cart_totals tr.shipping td[data-title="EnvÃ­o"] .amount,
.woocommerce-cart .cart_totals tr.shipping td ul#shipping_method .amount {
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}
.woocommerce-cart .cart_totals tr.shipping td small {
  display: none !important; /* "Enviar a <direcciÃ³n>" â€” vive en el checkout */
}
.woocommerce-cart .cart_totals tr.shipping .woocommerce-shipping-destination,
.woocommerce-cart .cart_totals tr.shipping .woocommerce-shipping-calculator {
  display: none !important;
}
.cart_totals > h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: #000;
}
.cart_totals table.shop_table {
  width: 100%;
  border: 0;
  background: transparent;
  margin: 0 0 1rem;
}
.cart_totals th {
  border: 0;
  padding: .625rem 0;
  background: transparent;
  font-weight: 500;
  color: #525252;
  font-size: .875rem;
  text-align: left;
  vertical-align: top;
  width: 1%;
  padding-right: 1rem;
  white-space: nowrap;
}
.cart_totals td {
  border: 0;
  padding: .625rem 0;
  background: transparent;
  font-weight: 600;
  color: #000;
  font-size: .9375rem;
  text-align: right;
  overflow-wrap: anywhere;
}
.cart_totals .cart-subtotal th,
.cart_totals .cart-subtotal td { font-size: .9375rem; }
.cart_totals .order-total th,
.cart_totals .order-total td {
  border-top: 1px solid #e5e5e5;
  padding-top: .875rem;
  font-size: 1.125rem;
  font-weight: 800;
}
.cart_totals .order-total td .amount { font-weight: 800; font-size: 1.25rem; }
.cart_totals .shipping-calculator-button {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wc-proceed-to-checkout { margin-top: 1rem; }
.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout a.button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 9999px;
  padding: 1rem 1.25rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.wc-proceed-to-checkout a.checkout-button:hover,
.wc-proceed-to-checkout a.button:hover,
.wc-proceed-to-checkout a.checkout-button:focus-visible,
.wc-proceed-to-checkout a.button:focus-visible {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}

/* Legacy: ocultar la tabla WC por si queda de fallback en algÃºn edge case */
.woocommerce-cart-form table.shop_table { display: none; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.woocommerce-checkout .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .woocommerce-checkout .woocommerce { grid-template-columns: 1fr; }
}

#customer_details {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  padding: 1.5rem;
}
#customer_details h3 {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: #000;
}
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
  margin-bottom: 1.5rem;
}
.woocommerce form .form-row {
  display: block;
  margin-bottom: 1rem;
  padding: 0;
  line-height: 1.4;
}
.woocommerce form .form-row label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: #000;
  margin-bottom: .25rem;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  border: 1px solid #d4d4d4;
  border-radius: .5rem;
  padding: .625rem .75rem;
  font-size: 1rem;
  background: #fff;
  color: #000;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: #000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.woocommerce form .form-row .required { color: #dc2626; }
.woocommerce form .form-row .woocommerce-input-wrapper { display: block; width: 100%; }
.select2-container .select2-selection--single {
  height: auto !important;
  border: 1px solid #d4d4d4;
  border-radius: .5rem;
  padding: .375rem .75rem;
  background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
  padding: 0;
  color: #000;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: .75rem;
}

/* Order review */
#order_review {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
}
#order_review_heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1rem;
}
#order_review table.shop_table {
  width: 100%;
  border: 0;
  background: transparent;
  margin: 0 0 1rem;
}
#order_review th, #order_review td {
  border: 0;
  padding: .5rem 0;
  background: transparent;
  vertical-align: top;
}
#order_review .cart_item .product-name {
  font-weight: 600;
  color: #000;
}
#order_review .cart_item .product-total {
  text-align: right;
  font-weight: 700;
}
#order_review tfoot th,
#order_review tfoot td {
  border-top: 1px solid #e5e5e5;
  padding-top: .75rem;
  font-weight: 600;
}
#order_review tfoot .order-total th,
#order_review tfoot .order-total td {
  font-size: 1.125rem;
  font-weight: 800;
  color: #000;
}

/* MÃ©todos de pago */
.woocommerce-checkout #payment {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: .75rem;
  padding: 1rem;
  margin-top: 1rem;
}
.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.woocommerce-checkout #payment ul.payment_methods li {
  padding: .75rem 0;
  border-bottom: 1px solid #e5e5e5;
}
.woocommerce-checkout #payment ul.payment_methods li:last-child { border-bottom: 0; }
.woocommerce-checkout #payment label {
  font-weight: 600;
  color: #000;
}
.woocommerce-checkout #payment .payment_box {
  background: #fff;
  border-radius: .5rem;
  padding: .75rem;
  margin-top: .5rem;
  font-size: .875rem;
  color: #525252;
}
.woocommerce-checkout #payment .place-order {
  margin-top: 1rem;
  padding: 0;
}
.woocommerce-checkout #payment .place-order button#place_order {
  width: 100%;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 9999px;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.woocommerce-checkout #payment .place-order button#place_order:hover,
.woocommerce-checkout #payment .place-order button#place_order:focus-visible {
  background: #fff;
  color: #000;
  border-color: #000;
}

/* Login en checkout */
.woocommerce-form-login,
.woocommerce-form-coupon {
  border: 1px solid #e5e5e5;
  border-radius: .75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.woocommerce-form-login p,
.woocommerce-form-coupon p { margin: .5rem 0; }
.woocommerce-form-login button,
.woocommerce-form-coupon button {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 9999px;
  padding: .5rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.woocommerce-form-login button:hover,
.woocommerce-form-coupon button:hover {
  background: #fff;
  color: #000;
}

/* ============================================================
   MINI-CART del side-drawer (header)
   ============================================================ */
.woocommerce-mini-cart__buttons a {
  display: block;
  text-align: center;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 9999px;
  padding: .625rem 1rem;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: .5rem;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.woocommerce-mini-cart__buttons a:hover,
.woocommerce-mini-cart__buttons a:focus-visible {
  background: #fff;
  color: #000;
  border-color: #000;
}
.woocommerce-mini-cart__buttons a.checkout {
  background: #fff;
  color: #000;
}
.woocommerce-mini-cart__buttons a.checkout:hover {
  background: #000;
  color: #fff;
}

/* Overrides específicos para el Side Cart en páginas WC */
.ctr-side-cart .ctr-side-cart-item {
  display: flex !important;
  position: relative !important;
  align-items: flex-start !important;
  gap: 0.875rem !important;
  padding: 0.875rem !important;
  background: rgba(24, 24, 27, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0.75rem !important;
  color: #ffffff !important;
}
.ctr-side-cart .ctr-side-cart-item-img {
  width: 4rem !important;
  height: 4rem !important;
  min-width: 4rem !important;
  min-height: 4rem !important;
  border-radius: 0.5rem !important;
  overflow: hidden !important;
}
.ctr-side-cart .ctr-side-cart-item-body {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  padding-right: 1.75rem !important;
}
.ctr-side-cart .ctr-side-cart-item-name {
  color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.ctr-side-cart .ctr-side-cart-item-meta {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.75rem !important;
}
.ctr-side-cart .ctr-side-cart-item-remove {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 1.75rem !important;
  height: 1.75rem !important;
  border-radius: 9999px !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
}
.ctr-side-cart .ctr-side-cart-item-remove:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

/* Estado vacío en Side Cart */
.ctr-side-cart .ctr-cart-empty-state {
  background: transparent !important;
  border: 0 !important;
  padding: 3rem 1.5rem !important;
  margin: auto 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 1.25rem !important;
  max-width: 100% !important;
}
.ctr-side-cart .ctr-cart-empty-icon {
  font-size: 1.75rem !important;
  color: #ffffff !important;
  width: 4.5rem !important;
  height: 4.5rem !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 0 0.25rem 0 !important;
}
.ctr-side-cart .ctr-cart-empty-text {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
.ctr-side-cart .ctr-cart-empty-state .ctr-btn {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  border-radius: 9999px !important;
  padding: 0.75rem 1.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-size: 0.875rem !important;
  transition: all 0.25s ease !important;
}
.ctr-side-cart .ctr-cart-empty-state .ctr-btn:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* ============================================================
   PÃGINAS "MI CUENTA" + forms WC en general
   ============================================================ */
.woocommerce form .button,
.woocommerce a.button,
.woocommerce button.button {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 9999px;
  padding: .625rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  display: inline-block;
}
.woocommerce form .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce form .button:focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible {
  background: #fff;
  color: #000;
}

@media (max-width: 600px) {
  .woocommerce-cart-form .product-thumbnail img { width: 64px; height: 64px; }
  .woocommerce-cart-form table.shop_table th,
  .woocommerce-cart-form table.shop_table td { padding: .75rem .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce form .button,
  .wc-proceed-to-checkout a.checkout-button,
  .woocommerce-checkout #payment .place-order button#place_order,
  .woocommerce-cart-form button[name="update_cart"],
  .woocommerce-cart-form button[name="apply_coupon"],
  .woocommerce-cart-form .product-remove a {
    transition: none !important;
  }
}

/* ============================================================
   TIENDA OFICIAL CTR SPORTS — Hero, Toolbar, Pagination y Grid
   ============================================================ */

/* Ocultar migas de pan (breadcrumbs) y eliminar espacio en blanco superior */
.woocommerce-breadcrumb,
.ctr-is-woocommerce .woocommerce-breadcrumb {
  display: none !important;
}

.ctr-shop-wrapper {
  background-color: #fcfcfc;
  min-height: 80vh;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Hero Section (Negro) */
.ctr-shop-hero {
  background: #000000;
  color: #ffffff;
  padding: 3.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0 !important;
}
.ctr-shop-hero-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ctr-shop-hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}
.ctr-shop-hero-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ctr-shop-hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 680px;
  line-height: 1.6;
}

/* Main Shop Catalog Container */
.ctr-shop-main {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

/* Toolbar (Results Count + Sort Ordering) */
.ctr-shop-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
  margin-bottom: 2.25rem !important;
  padding-bottom: 1.25rem !important;
  border-bottom: 1px solid #e4e4e7 !important;
  width: 100% !important;
  clear: both !important;
}
.ctr-shop-toolbar::before,
.ctr-shop-toolbar::after {
  display: none !important;
}
.ctr-shop-toolbar-left {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
.ctr-shop-toolbar-left .woocommerce-result-count,
.ctr-shop-toolbar .woocommerce-result-count {
  float: none !important;
  margin: 0 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 0.95rem !important;
  color: #52525b !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}
.ctr-shop-toolbar-right {
  margin-left: auto !important;
}
.ctr-shop-toolbar .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
  display: inline-block !important;
}
.ctr-shop-toolbar .woocommerce-ordering select.orderby {
  font-family: "Poppins", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #09090b !important;
  background-color: #ffffff !important;
  border: 1px solid #d4d4d8 !important;
  border-radius: 9999px !important;
  padding: 0.6rem 2.5rem 0.6rem 1.25rem !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2309090b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 0.9rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
.ctr-shop-toolbar .woocommerce-ordering select.orderby:hover,
.ctr-shop-toolbar .woocommerce-ordering select.orderby:focus {
  border-color: #000000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Product Loop Grid */
.ctr-shop-main ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.75rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 3rem 0 !important;
  width: 100% !important;
  clear: both !important;
}
.ctr-shop-main ul.products::before,
.ctr-shop-main ul.products::after {
  display: none !important;
}

/* Product Card (li.product.ctr-shop-card) */
.ctr-shop-main ul.products li.product.ctr-shop-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
  position: relative !important;
  box-sizing: border-box !important;
}
.ctr-shop-main ul.products li.product.ctr-shop-card:hover {
  transform: none !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
  border-color: #18181b !important;
}

/* Media Box */
.ctr-shop-card-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background: #f4f4f5 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem !important;
  box-sizing: border-box !important;
}
.ctr-shop-card-img-wrap {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.ctr-shop-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transition: transform 0.35s ease !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ctr-shop-card:hover .ctr-shop-card-img {
  transform: scale(1.08) !important;
}
.ctr-shop-card-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #a1a1aa !important;
  font-size: 2.5rem !important;
}
.ctr-shop-card-badge {
  position: absolute !important;
  top: 0.75rem !important;
  left: 0.75rem !important;
  background: #000000 !important;
  color: #ffffff !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.3rem 0.65rem !important;
  border-radius: 9999px !important;
  z-index: 2 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Card Body */
.ctr-shop-card-body {
  padding: 1.25rem 1.25rem 0.5rem 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  flex-grow: 1 !important;
}
.ctr-shop-card-cat {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #71717a !important;
}
.ctr-shop-card-title {
  font-family: "Poppins", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  color: #09090b !important;
}
.ctr-shop-card-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
.ctr-shop-card-title a:hover {
  color: #525252 !important;
}
.ctr-shop-card-price {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #09090b !important;
  margin-top: 0.25rem !important;
  line-height: 1.2 !important;
}
.ctr-shop-card-price del {
  color: #a1a1aa !important;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  margin-right: 0.35rem !important;
}
.ctr-shop-card-price ins {
  text-decoration: none !important;
  color: #000000 !important;
}

/* Card Footer & Button */
.ctr-shop-card-footer {
  padding: 0.75rem 1.25rem 1.25rem 1.25rem !important;
  margin-top: auto !important;
}
.ctr-shop-card-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  border-radius: 9999px !important;
  padding: 0.7rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
  box-sizing: border-box !important;
}
.ctr-shop-card-btn:hover {
  background: #27272a !important;
  border-color: #27272a !important;
  color: #ffffff !important;
}
.ctr-shop-card-btn i {
  font-size: 0.75rem !important;
  transition: transform 0.2s ease !important;
}
.ctr-shop-card-btn:hover i {
  transform: translateX(3px) !important;
}

/* Clean Pagination Styling */
.ctr-shop-pagination-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 3.5rem !important;
  margin-bottom: 2rem !important;
  width: 100% !important;
  clear: both !important;
}
.ctr-shop-pagination-wrap nav.woocommerce-pagination,
.ctr-shop-pagination-wrap .woocommerce-pagination {
  display: block !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.ctr-shop-pagination-wrap .woocommerce-pagination ul.page-numbers,
.ctr-shop-pagination-wrap .woocommerce-pagination ul {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ctr-shop-pagination-wrap .woocommerce-pagination ul.page-numbers li,
.ctr-shop-pagination-wrap .woocommerce-pagination ul li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  float: none !important;
}
.ctr-shop-pagination-wrap .woocommerce-pagination ul li a.page-numbers,
.ctr-shop-pagination-wrap .woocommerce-pagination ul li span.page-numbers,
.ctr-shop-pagination-wrap .woocommerce-pagination ul li a,
.ctr-shop-pagination-wrap .woocommerce-pagination ul li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 0.9rem !important;
  border-radius: 9999px !important;
  border: 1px solid #d4d4d8 !important;
  background: #ffffff !important;
  color: #09090b !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}
.ctr-shop-pagination-wrap .woocommerce-pagination ul li a:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.ctr-shop-pagination-wrap .woocommerce-pagination ul li span.current {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

/* Empty Shop State */
.ctr-shop-empty {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.ctr-shop-empty-icon {
  font-size: 3.5rem;
  color: #d4d4d4;
  margin-bottom: 1rem;
}
.ctr-shop-empty h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.ctr-shop-empty p {
  color: #71717a;
  margin-bottom: 1.5rem;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1024px) {
  .ctr-shop-main ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
}
@media (max-width: 768px) {
  .ctr-shop-hero {
    padding: 2.5rem 0 2.5rem;
  }
  .ctr-shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
  }
  .ctr-shop-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
@media (max-width: 480px) {
  .ctr-shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }
  .ctr-shop-card-body {
    padding: 0.85rem 0.85rem 0.35rem 0.85rem !important;
  }
  .ctr-shop-card-title {
    font-size: 0.925rem !important;
  }
  .ctr-shop-card-price {
    font-size: 0.95rem !important;
  }
  .ctr-shop-card-footer {
    padding: 0.5rem 0.85rem 0.85rem 0.85rem !important;
  }
  .ctr-shop-card-btn {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.775rem !important;
  }
  .ctr-shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem !important;
  }
  .ctr-shop-toolbar-right {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .ctr-shop-toolbar .woocommerce-ordering select.orderby {
    width: 100% !important;
  }
}