/* Minicart y página del carrito con el estilo A del rediseño 2026-11 (catálogo/ficha).
   Se carga en todas las páginas desde porto_child/Smartwave_Porto/templates/html/head.phtml (después de custom.css).
   Ojo: custom.css tiene button:not(.primary){line-height:0 !important; padding:1px 6px !important}
   y hover fucsia global; por eso los botones llevan !important. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================ MINICART ============================ */
.minicart-wrapper .block-minicart {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; color: #211915; letter-spacing: normal; word-spacing: normal;
  width: 380px !important; padding: 20px !important; border: 1px solid #211915 !important; border-top: 3px solid #e41150 !important;
  border-radius: 0 !important; box-shadow: 0 12px 30px rgba(33, 25, 21, .15) !important; background: #fff !important;
}
.minicart-wrapper .block-minicart * { border-radius: 0 !important; font-family: inherit; }
.minicart-wrapper .block-minicart::before, .minicart-wrapper .block-minicart::after { display: none !important; }
.minicart-wrapper .block-minicart .block-title { display: block !important; margin: 0 0 12px !important; padding: 0 0 12px !important; border-bottom: 1px solid #ecedef; }
.minicart-wrapper .block-minicart .block-title strong { display: flex; align-items: baseline; gap: 8px; font-size: 18px !important; font-weight: 800 !important; color: #211915 !important; text-transform: none !important; }
.minicart-wrapper .block-minicart .block-title .qty { display: inline-block !important; background: #fcedf1 !important; color: #8f0a33 !important; font-size: 12px !important; font-weight: 700 !important; padding: 3px 8px !important; line-height: 1.3 !important; min-width: 0 !important; height: auto !important; }
.minicart-wrapper .block-minicart .block-title .qty::after { content: ' uds.'; }
.minicart-wrapper .block-minicart #btn-minicart-close { display: none !important; }
/* "N artículos · Ver carrito": se reubica abajo, junto al subtotal */
.minicart-wrapper .block-minicart .block-content { display: flex !important; flex-direction: column; }
.minicart-wrapper .block-minicart .block-content > * { order: 5; }
.minicart-wrapper .block-minicart .total-count { order: 8; display: flex !important; justify-content: space-between; align-items: center; margin: 10px 0 0 !important; padding: 0 !important; border: 0 !important; }
.minicart-wrapper .block-minicart .total-count .items-total { display: none !important; }
.minicart-wrapper .block-minicart .total-count .actions, .minicart-wrapper .block-minicart .total-count .secondary { width: 100%; margin: 0 !important; padding: 0 !important; float: none !important; }
.minicart-wrapper .block-minicart .subtitle { display: none !important; }
.minicart-wrapper .block-minicart .minicart-items-wrapper { order: 1; margin: 0 !important; padding: 0 !important; border: 0 !important; max-height: 340px; overflow-y: auto; height: auto !important; }
.minicart-wrapper .block-minicart .minicart-items { margin: 0 !important; padding: 0 !important; }
.minicart-wrapper .block-minicart .minicart-items .product-item { padding: 12px 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid #f3f1f0 !important; }
.minicart-wrapper .block-minicart .minicart-items .product-item:last-child { border-bottom: 0 !important; }
.minicart-wrapper .block-minicart .minicart-items .product { display: flex !important; gap: 12px; align-items: flex-start; position: relative; }
.minicart-wrapper .block-minicart .product-item-photo { flex: none; width: 56px !important; border: 1px solid #ecedef !important; padding: 4px; background: #fff; float: none !important; margin: 0 !important; }
.minicart-wrapper .block-minicart .product-item-photo .product-image-container { width: 100% !important; }
.minicart-wrapper .block-minicart .product-item-details { flex: 1; min-width: 0; padding: 0 28px 0 0 !important; margin: 0 !important; }
.minicart-wrapper .block-minicart .product-item-name { display: block; margin: 0 0 4px !important; font-size: 13px !important; font-weight: 700 !important; line-height: 1.3 !important; }
.minicart-wrapper .block-minicart .product-item-name a { color: #211915 !important; text-decoration: none !important; font-weight: 700 !important; }
.minicart-wrapper .block-minicart .product-item-name a:hover { color: #b80d40 !important; }
.minicart-wrapper .block-minicart .product-item-pricing { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.minicart-wrapper .block-minicart .product-item-pricing .price-container { margin: 0 !important; }
.minicart-wrapper .block-minicart .minicart-price .price, .minicart-wrapper .block-minicart .product-item-pricing .price { font-size: 15px !important; font-weight: 800 !important; color: #b80d40 !important; }
.minicart-wrapper .block-minicart .details-qty { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; }
.minicart-wrapper .block-minicart .details-qty .label { font-size: 12px !important; color: #5b5a5d !important; font-weight: 400 !important; margin: 0 !important; }
.minicart-wrapper .block-minicart .details-qty .label::after { content: none !important; }
.minicart-wrapper .block-minicart .details-qty .item-qty {
  width: 52px !important; height: 34px !important; border: 1px solid #dcd8d5 !important; padding: 0 4px !important; margin: 0 !important;
  text-align: center; font-size: 14px !important; font-weight: 700 !important; color: #211915 !important; background: #fff !important; box-shadow: none !important;
}
.minicart-wrapper .block-minicart .update-cart-item {
  height: 34px !important; border: 1px solid #211915 !important; background: #211915 !important; color: #fff !important; font-size: 12px !important; font-weight: 700 !important;
  line-height: 1.2 !important; padding: 0 10px !important; margin: 0 !important; text-transform: none !important;
}
.minicart-wrapper .block-minicart .product.actions { position: absolute; top: 0; right: 0; margin: 0 !important; float: none !important; }
.minicart-wrapper .block-minicart .product.actions .secondary { margin: 0 !important; float: none !important; }
.minicart-wrapper .block-minicart .action.delete {
  display: grid !important; place-items: center; width: 26px; height: 26px; background: #fcedf1 !important; color: #8f0a33 !important; text-decoration: none !important; line-height: 1 !important;
}
.minicart-wrapper .block-minicart .action.delete::before { display: none !important; }
.minicart-wrapper .block-minicart .action.delete span { font-size: 14px !important; font-weight: 700; }
.minicart-wrapper .block-minicart .action.delete:hover { background: #e41150 !important; color: #fff !important; }
.minicart-wrapper .block-minicart .subtotal {
  order: 6; display: flex !important; justify-content: space-between; align-items: baseline; margin: 12px 0 0 !important; padding: 12px 0 0 !important;
  border-top: 1px solid #ecedef !important; text-align: left !important; font-size: 14px !important; color: #4a4340;
}
.minicart-wrapper .block-minicart .subtotal .label { font-size: 14px !important; font-weight: 600 !important; color: #4a4340 !important; text-transform: none !important; }
.minicart-wrapper .block-minicart .subtotal .label::after { content: ' sin IVA' !important; font-weight: 400; color: #5b5a5d; }
.minicart-wrapper .block-minicart .subtotal .amount, .minicart-wrapper .block-minicart .subtotal .price-container { margin: 0 !important; float: none !important; }
.minicart-wrapper .block-minicart .subtotal .price { font-size: 20px !important; font-weight: 800 !important; color: #b80d40 !important; }
.minicart-wrapper .block-minicart .block-content > .actions { order: 7; margin: 12px 0 0 !important; }
.minicart-wrapper .block-minicart .block-content > .actions .primary { margin: 0 !important; float: none !important; }
.minicart-wrapper .block-minicart #top-cart-btn-checkout {
  display: block; width: 100% !important; height: auto !important; margin: 0 !important; padding: 15px 16px !important; line-height: 1.3 !important;
  background: #e41150 !important; border: 1px solid #e41150 !important; color: #fff !important; font-size: 15px !important; font-weight: 800 !important;
  text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important;
}
.minicart-wrapper .block-minicart #top-cart-btn-checkout:hover { background: #b80d40 !important; border-color: #b80d40 !important; }
.minicart-wrapper .block-minicart .action.viewcart {
  display: block !important; width: 100%; text-align: center; margin: 0 !important; padding: 12px 16px !important; height: auto !important; line-height: 1.3 !important;
  background: #fff !important; border: 1px solid #211915 !important; color: #211915 !important; font-size: 14px !important; font-weight: 700 !important;
  text-transform: none !important; letter-spacing: normal !important; text-decoration: none !important;
}
.minicart-wrapper .block-minicart .action.viewcart span { font: inherit !important; text-transform: none !important; }
.minicart-wrapper .block-minicart .action.viewcart:hover { background: #211915 !important; color: #fff !important; }
.minicart-wrapper .block-minicart .subtitle.empty { display: block !important; order: 1; padding: 16px 0 !important; font-size: 14px !important; color: #5b5a5d !important; font-weight: 400 !important; text-align: left !important; }

@media (max-width: 767px) {
  .minicart-wrapper .block-minicart { width: calc(100vw - 24px) !important; max-width: 380px; }
}

/* ============================ PÁGINA DEL CARRITO ============================
   Plantillas: Magento_Checkout/templates/cart.phtml, cart/form.phtml, cart/item/default.phtml
   Dos columnas: artículos a la izquierda, resumen fijo a la derecha. */
body.checkout-cart-index .page-title-wrapper { display: none !important; }
body.checkout-cart-index .column.main { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #211915; letter-spacing: normal; word-spacing: normal; }
body.checkout-cart-index .column.main *:not(.scalapay-widget):not(scalapay-widget) { border-radius: 0 !important; }
body.checkout-cart-index .column.main [hidden] { display: none !important; }

/* Cabecera */
.bxk-head { margin: 8px 0 24px; }
.bxk-head-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.bxk-title { margin: 0 !important; font-family: inherit !important; font-size: 38px !important; line-height: 1.1 !important; font-weight: 800 !important; letter-spacing: -0.02em; color: #211915 !important; text-transform: none !important; }
.bxk-count { margin: 0; font-size: 15px; color: #5b5a5d; }
.bxk-ship { margin-top: 18px; background: #fcedf1; padding: 14px 18px; }
.bxk-ship-text { margin: 0 0 10px; font-size: 14px; color: #4a4340; }
.bxk-ship-text strong { color: #8f0a33; }
.bxk-ship-bar { height: 6px; background: #fff; overflow: hidden; }
.bxk-ship-bar span { display: block; height: 100%; background: #e41150; transition: width .3s; }
.bxk-ship.is-done { background: #e7f4ec; }
.bxk-ship.is-done .bxk-ship-text strong { color: #1f7a4d; }
.bxk-ship.is-done .bxk-ship-bar span { background: #1f7a4d; }
.bxk-notice { margin: 10px 0 0; font-size: 12px; color: #77767a; }

/* Rejilla general */
body.checkout-cart-index .cart-container { display: grid !important; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 32px; align-items: start; }
body.checkout-cart-index .cart-container::before, body.checkout-cart-index .cart-container::after { display: none !important; }
body.checkout-cart-index .cart-container > * { grid-column: 1; float: none !important; width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
body.checkout-cart-index .cart-container > .cart-discount { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 16px; display: flex !important; flex-direction: column; gap: 14px; padding: 0 !important; margin: 0 !important; }
body.checkout-cart-index .cart-container > #gift-options-cart:empty { display: none; }
body.checkout-cart-index .cart-container > .block.crosssell { grid-column: 1 / -1; margin-top: 40px !important; }

/* Añadir por código */
.bxk-code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #faf6f5; padding: 14px 16px; margin: 0 0 16px; }
.bxk-code-label { margin: 0; font-size: 14px; font-weight: 800; color: #211915; }
.bxk-code-fields { display: flex; gap: 8px; flex: 1 1 360px; }
.bxk-code-fields input { height: 42px !important; border: 1px solid #dcd8d5 !important; padding: 0 12px !important; margin: 0 !important; font-family: inherit !important; font-size: 14px !important; color: #211915 !important; background: #fff !important; box-shadow: none !important; }
.bxk-code-fields input[name=code] { flex: 1; min-width: 0; }
.bxk-code-fields input[name=qty] { width: 70px !important; text-align: center; }
.bxk-code .bxk-code-btn {
  height: 42px !important; padding: 0 18px !important; margin: 0 !important; line-height: 1.2 !important; border: 1px solid #211915 !important;
  background: #211915 !important; color: #fff !important; font-family: inherit !important; font-size: 14px !important; font-weight: 800 !important; text-transform: none !important; cursor: pointer;
}
.bxk-code .bxk-code-btn:hover { background: #e41150 !important; border-color: #e41150 !important; }
.bxk-code-msg { flex: 1 1 100%; margin: 0; font-size: 13px; font-weight: 700; color: #1f7a4d; }
.bxk-code-msg.is-error { color: #b80d40; }
.bxk-code-msg a { color: inherit !important; text-decoration: underline; }

/* Lista de artículos */
body.checkout-cart-index .bxk-list { border: 1px solid #ecedef !important; background: #fff; margin: 0 !important; overflow: visible !important; }
.bxk-thead, .bxk-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 100px 128px 100px 32px; gap: 0 16px; align-items: center; }
.bxk-thead { padding: 12px 18px; border-bottom: 1px solid #ecedef; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5b5a5d; }
.bxk-thead span:first-child { grid-column: 1 / span 2; }
.bxk-thead span:nth-child(4) { text-align: right; }
.bxk-item { padding: 14px 18px; border-bottom: 1px solid #f3f1f0; position: relative; transition: opacity .2s; }
.bxk-item:last-child { border-bottom: 0; }
.bxk-item.is-saving { opacity: .55; pointer-events: none; }
.bxk-photo .product-item-photo { display: block; width: 72px; border: 1px solid #ecedef; background: #fff; padding: 4px; }
.bxk-photo .product-image-container { width: 100% !important; display: block; }
.bxk-photo img { object-fit: contain; }
.bxk-info { min-width: 0; padding: 0 !important; margin: 0 !important; }
.bxk-name { display: block; font-size: 14px !important; font-weight: 700 !important; line-height: 1.35; }
.bxk-name a { color: #211915 !important; text-decoration: none !important; font-weight: 700 !important; }
.bxk-name a:hover { color: #b80d40 !important; }
.bxk-sku { display: block; margin-top: 2px; font-size: 12px; color: #5b5a5d; }
.bxk-options { margin: 4px 0 0; font-size: 12px; color: #5b5a5d; }
.bxk-msg { margin-top: 6px !important; font-size: 12px !important; padding: 6px 10px !important; }
.bxk-label { display: none; }
.bxk-unit .price { font-size: 14px !important; font-weight: 500 !important; color: #4a4340 !important; }
.bxk-total { text-align: right; }
.bxk-total .price { font-size: 16px !important; font-weight: 800 !important; color: #b80d40 !important; }
.bxk-unit .price-including-tax, .bxk-total .price-including-tax { display: none !important; }

.bxk-stepper { display: inline-flex; align-items: center; border: 1px solid #dcd8d5; background: #fff; }
.bxk-stepper .bxk-dec, .bxk-stepper .bxk-inc {
  width: 38px; height: 40px !important; border: 0 !important; padding: 0 !important; margin: 0 !important; line-height: 40px !important;
  background: none !important; color: #211915 !important; font-family: inherit !important; font-size: 18px !important; cursor: pointer; box-shadow: none !important;
}
.bxk-stepper .bxk-dec:hover, .bxk-stepper .bxk-inc:hover { background: #fcedf1 !important; }
.bxk-stepper .bxk-input {
  width: 48px !important; height: 40px !important; border: 0 !important; padding: 0 !important; margin: 0 !important; text-align: center;
  font-family: inherit !important; font-size: 15px !important; font-weight: 700 !important; color: #211915 !important; background: transparent !important; box-shadow: none !important; -moz-appearance: textfield;
}
.bxk-stepper .bxk-input::-webkit-outer-spin-button, .bxk-stepper .bxk-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bxk-qty .mage-error { font-size: 11px; }

/* Quitar: la × de la derecha (el enlace estándar de Magento) */
.bxk-actions { display: flex; justify-content: flex-end; margin: 0 !important; padding: 0 !important; }
.bxk-actions .action-edit { display: none !important; }
.bxk-actions .action-delete {
  display: grid !important; place-items: center; width: 30px; height: 30px; background: #fcedf1 !important; color: #8f0a33 !important;
  text-decoration: none !important; margin: 0 !important; padding: 0 !important; line-height: 1 !important; font-size: 0 !important;
}
.bxk-actions .action-delete::before { content: '×' !important; font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; font-size: 18px !important; line-height: 1 !important; color: inherit !important; margin: 0 !important; }
.bxk-actions .action-delete span { display: none !important; }
.bxk-actions .action-delete:hover { background: #e41150 !important; color: #fff !important; }
.bxk-actions .gift-options-cart-item:empty { display: none; }

/* Pie de la lista: enlaces discretos */
body.checkout-cart-index .bxk-foot { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 0 !important; padding: 0 !important; }
body.checkout-cart-index .bxk-foot .bxk-link, body.checkout-cart-index .bxk-foot button.bxk-link {
  display: inline !important; height: auto !important; min-height: 0; padding: 4px 0 !important; margin: 0 !important; line-height: 1.3 !important;
  background: none !important; border: 0 !important; box-shadow: none !important; color: #b80d40 !important; font-family: inherit !important;
  font-size: 14px !important; font-weight: 700 !important; text-transform: none !important; text-decoration: none !important; cursor: pointer; float: none !important;
}
body.checkout-cart-index .bxk-foot .bxk-link span { font: inherit !important; }
body.checkout-cart-index .bxk-foot .bxk-link:hover { color: #211915 !important; text-decoration: underline !important; background: none !important; }
body.checkout-cart-index .bxk-foot .bxk-link-muted { color: #77767a !important; font-weight: 600 !important; }
body.checkout-cart-index .bxk-foot .bxk-update { display: none !important; }

/* Resumen (columna derecha) */
body.checkout-cart-index .cart-summary {
  order: 1; position: static !important; width: auto !important; float: none !important; margin: 0 !important;
  background: #fff !important; border: 1px solid #211915 !important; padding: 22px !important; box-shadow: none !important;
}
body.checkout-cart-index .cart-summary > .title, body.checkout-cart-index .cart-summary .summary.title {
  display: block; margin: 0 0 12px !important; padding: 0 0 12px !important; border-bottom: 1px solid #ecedef !important;
  font-family: inherit !important; font-size: 20px !important; font-weight: 800 !important; color: #211915 !important; text-transform: none !important; letter-spacing: normal !important;
}
body.checkout-cart-index .cart-summary .block.shipping { display: none !important; }
body.checkout-cart-index .cart-totals { border: 0 !important; padding: 0 !important; margin: 0 !important; }
body.checkout-cart-index .cart-totals .table-wrapper { margin: 0 !important; }
body.checkout-cart-index .cart-totals tbody tr th, body.checkout-cart-index .cart-totals tbody tr td {
  padding: 5px 0 !important; font-size: 14px !important; color: #4a4340 !important; font-weight: 500 !important; border: 0 !important; background: none !important; font-family: inherit !important;
}
body.checkout-cart-index .cart-totals .totals.sub th::after { content: ' (sin IVA)'; color: #77767a; font-weight: 400; }
body.checkout-cart-index .cart-totals .grand.totals th, body.checkout-cart-index .cart-totals .grand.totals td { padding-top: 12px !important; border-top: 1px solid #ecedef !important; vertical-align: baseline !important; }
body.checkout-cart-index .cart-totals .grand.totals strong { font-size: 15px !important; font-weight: 800 !important; color: #211915 !important; }
body.checkout-cart-index .cart-totals .grand.totals .price { font-size: 26px !important; font-weight: 800 !important; color: #b80d40 !important; }
body.checkout-cart-index .cart-summary #scalapay-widget { margin: 12px 0 0 !important; }
body.checkout-cart-index .cart-summary .checkout-methods-items { margin: 16px 0 0 !important; padding: 0 !important; }
body.checkout-cart-index .cart-summary .checkout-methods-items .item { margin: 0 !important; }
body.checkout-cart-index .cart-summary .checkout-methods-items .action.primary {
  display: block; width: 100% !important; height: auto !important; margin: 0 !important; padding: 16px !important; line-height: 1.3 !important;
  background: #e41150 !important; border: 1px solid #e41150 !important; color: #fff !important; font-family: inherit !important;
  font-size: 16px !important; font-weight: 800 !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important;
}
body.checkout-cart-index .cart-summary .checkout-methods-items .action.primary span { display: none !important; }
body.checkout-cart-index .cart-summary .checkout-methods-items .action.primary::after { content: 'Tramitar pedido'; }
body.checkout-cart-index .cart-summary .checkout-methods-items .action.primary:hover { background: #b80d40 !important; border-color: #b80d40 !important; }

/* Cupón: plegable, debajo del resumen */
body.checkout-cart-index .cart-discount .block.discount {
  order: 2; width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; border: 1px solid #ecedef !important; background: #fff;
}
body.checkout-cart-index .cart-discount .block.discount .title { padding: 14px 18px !important; margin: 0 !important; border: 0 !important; cursor: pointer; }
body.checkout-cart-index .cart-discount .block.discount .title strong { font-family: inherit !important; font-size: 14px !important; font-weight: 700 !important; color: #211915 !important; text-transform: none !important; }
body.checkout-cart-index .cart-discount .block.discount .content { padding: 0 18px 16px !important; }
body.checkout-cart-index .cart-discount .block.discount .fieldset { display: flex; gap: 8px; margin: 0 !important; }
body.checkout-cart-index .cart-discount .block.discount .field { flex: 1; margin: 0 !important; }
body.checkout-cart-index .cart-discount .block.discount .field .label { display: none; }
body.checkout-cart-index .cart-discount .block.discount input.input-text { height: 42px !important; border: 1px solid #dcd8d5 !important; padding: 0 12px !important; font-family: inherit !important; font-size: 14px !important; box-shadow: none !important; width: 100%; }
body.checkout-cart-index .cart-discount .block.discount .actions-toolbar { margin: 0 !important; }
body.checkout-cart-index .cart-discount .block.discount .actions-toolbar .primary { margin: 0 !important; }
body.checkout-cart-index .cart-discount .block.discount button {
  height: 42px !important; padding: 0 16px !important; margin: 0 !important; line-height: 1.2 !important; background: #211915 !important; border: 1px solid #211915 !important;
  color: #fff !important; font-family: inherit !important; font-size: 14px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: normal !important;
}
body.checkout-cart-index .cart-discount .block.discount button span { font: inherit !important; }

/* Carrito vacío */
body.checkout-cart-index .cart-empty { font-size: 15px; color: #4a4340; }
body.checkout-cart-index .cart-empty a { color: #b80d40 !important; font-weight: 700; }

@media (max-width: 991px) {
  body.checkout-cart-index .cart-container { grid-template-columns: minmax(0, 1fr); }
  body.checkout-cart-index .cart-container > .cart-discount { grid-column: 1; grid-row: auto; position: static; margin-top: 24px !important; }
}
@media (max-width: 767px) {
  .bxk-title { font-size: 28px !important; }
  .bxk-thead { display: none; }
  .bxk-item { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "photo info del" "photo unit unit" "qty qty total"; gap: 6px 12px; padding: 14px; }
  .bxk-photo { grid-area: photo; }
  .bxk-photo .product-item-photo { width: 64px; }
  .bxk-info { grid-area: info; }
  .bxk-actions { grid-area: del; align-self: start; }
  .bxk-unit { grid-area: unit; font-size: 12px; }
  .bxk-label { display: inline; font-size: 12px; color: #77767a; margin-right: 4px; }
  .bxk-qty { grid-area: qty; }
  .bxk-total { grid-area: total; align-self: center; }
  .bxk-code-fields { flex-wrap: wrap; }
  .bxk-code-fields input[name=code] { flex: 1 1 100%; }
}
body.checkout-cart-index .bxk-left, body.checkout-cart-index .bxk-left .form-cart { width: 100% !important; max-width: none !important; float: none !important; margin: 0 !important; padding: 0 !important; }
body.checkout-cart-index .bxk-item .bxk-total .price { font-size: 16px !important; font-weight: 800 !important; color: #b80d40 !important; }
body.checkout-cart-index .bxk-item .bxk-unit .price { font-size: 14px !important; font-weight: 500 !important; color: #4a4340 !important; }
@media (max-width: 767px) {
  body.checkout-cart-index .bxk-item, body.checkout-cart-index .bxk-item .bxk-info, body.checkout-cart-index .bxk-item .bxk-unit, body.checkout-cart-index .bxk-item .bxk-qty { text-align: left !important; }
  body.checkout-cart-index .bxk-item .bxk-total { text-align: right !important; }
  body.checkout-cart-index .bxk-item .bxk-unit { display: flex; gap: 6px; align-items: baseline; }
  body.checkout-cart-index .bxk-code-fields input[name=qty] { flex: 0 0 70px; }
  body.checkout-cart-index .bxk-code .bxk-code-btn { flex: 1; }
}

/* ---------- Minicart compacto (30/11) ---------- */
.minicart-wrapper .block-minicart { width: 330px !important; padding: 14px 16px !important; }
.minicart-wrapper .block-minicart .block-title { margin: 0 0 4px !important; padding: 0 0 8px !important; }
.minicart-wrapper .block-minicart .block-title strong { font-size: 15px !important; gap: 6px; }
.minicart-wrapper .block-minicart .block-title .qty { font-size: 11px !important; padding: 2px 6px !important; }
.minicart-wrapper .block-minicart .minicart-items-wrapper { max-height: 260px; }
.minicart-wrapper .block-minicart .minicart-items .product-item { padding: 8px 0 !important; }
.minicart-wrapper .block-minicart .minicart-items .product { gap: 10px; align-items: center; }
.minicart-wrapper .block-minicart .product-item-photo { width: 42px !important; padding: 2px !important; }
.minicart-wrapper .block-minicart .product-item-details { padding-right: 24px !important; }
.minicart-wrapper .block-minicart .product-item-name { margin: 0 0 2px !important; font-size: 12px !important; line-height: 1.25 !important; }
.minicart-wrapper .block-minicart .product-item-pricing { gap: 8px; flex-wrap: nowrap; }
.minicart-wrapper .block-minicart .minicart-price .price, .minicart-wrapper .block-minicart .product-item-pricing .price { font-size: 13px !important; }
.minicart-wrapper .block-minicart .details-qty .label { display: none !important; }
.minicart-wrapper .block-minicart .details-qty::before { content: '×'; font-size: 12px; color: #5b5a5d; }
.minicart-wrapper .block-minicart .details-qty .item-qty { width: 40px !important; height: 26px !important; font-size: 12px !important; }
.minicart-wrapper .block-minicart .update-cart-item { height: 26px !important; font-size: 11px !important; padding: 0 8px !important; }
.minicart-wrapper .block-minicart .product.actions { top: 50%; transform: translateY(-50%); }
.minicart-wrapper .block-minicart .action.delete { width: 20px; height: 20px; }
.minicart-wrapper .block-minicart .action.delete span { font-size: 11px !important; }
.minicart-wrapper .block-minicart .subtotal { margin: 6px 0 0 !important; padding: 8px 0 0 !important; font-size: 13px !important; }
.minicart-wrapper .block-minicart .subtotal .label { font-size: 13px !important; }
.minicart-wrapper .block-minicart .subtotal .price { font-size: 16px !important; }
/* botones en una sola fila: Ver carrito (izquierda) · Finalizar pedido (derecha) */
.minicart-wrapper .block-minicart .block-content { flex-direction: row !important; flex-wrap: wrap; gap: 0 8px; }
.minicart-wrapper .block-minicart .block-content > * { flex: 1 1 100%; }
.minicart-wrapper .block-minicart .total-count { order: 7 !important; flex: 0 0 38% !important; margin: 10px 0 0 !important; }
.minicart-wrapper .block-minicart .block-content > .actions { order: 8 !important; flex: 1 1 0 !important; margin: 10px 0 0 !important; }
.minicart-wrapper .block-minicart .block-content > .actions:empty,
.minicart-wrapper .block-minicart .block-content > .actions:not(:has(#top-cart-btn-checkout)) { display: none !important; }
.minicart-wrapper .block-minicart #top-cart-btn-checkout { padding: 10px 12px !important; font-size: 13px !important; }
.minicart-wrapper .block-minicart .action.viewcart { padding: 9px 10px !important; font-size: 13px !important; }
.minicart-wrapper .block-minicart .minicart-items .product { width: 100% !important; }
.minicart-wrapper .block-minicart .product-item-details { flex: 1 1 auto !important; width: auto !important; }
.minicart-wrapper .block-minicart .product-item-pricing { justify-content: flex-start !important; }
.minicart-wrapper .block-minicart .product.actions { right: 0 !important; left: auto !important; }
/* la × es "div.product.actions": no debe heredar las reglas de la fila (.product) */
.minicart-wrapper .block-minicart .minicart-items .product-item .product.actions {
  position: absolute !important; top: 50% !important; right: 0 !important; left: auto !important; transform: translateY(-50%);
  width: auto !important; display: block !important; margin: 0 !important;
}

/* Portes: no se muestran en el carrito (solo en el checkout). El total/impuestos sin portes los pinta cart.phtml */
body.checkout-cart-index .cart-totals .totals.shipping, body.checkout-cart-index .cart-totals .totals-shipping { display: none !important; }
