/* Product cards and mobile navigation: keep desktop and saved theme colors. */
/* Approved visual v1.4.4: typography, outline icons and full-width controls. */

/* Local vector silhouettes keep mobile icons independent of the font CDN. */
@media (max-width: 768px) {
  .mb-template-catalog .product-card .fa-ruler-vertical { --mb-mobile-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%227%22%20width%3D%2220%22%20height%3D%2210%22%20rx%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M6%207v4m4-4v2m4-2v4m4-4v2%22%2F%3E%3C%2Fsvg%3E'); }
  .mb-template-catalog .product-card .fa-weight-hanging { --mb-mobile-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%225%22%20r%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M7%209h10l4%2012H3z%22%2F%3E%3C%2Fsvg%3E'); }
  .mb-template-catalog .product-card .fa-crosshairs { --mb-mobile-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%227%22%2F%3E%3Cpath%20d%3D%22M12%202v4m0%2012v4M2%2012h4m12%200h4%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%221.4%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E'); }
  .mb-template-catalog .mb-header .fa-shopping-cart, .mb-template-catalog .bottom-nav .fa-cart-shopping { --mb-mobile-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%203h3l3%2012h10l3-9H6%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2220%22%20r%3D%221.2%22%20fill%3D%22black%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2220%22%20r%3D%221.2%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E'); }
  .mb-template-catalog .product-card .fa-cart-plus { --mb-mobile-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%203h3l3%2012h10l3-9H6m7-5v8m-4-4h8%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2220%22%20r%3D%221.2%22%20fill%3D%22black%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2220%22%20r%3D%221.2%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E'); }
  .mb-template-catalog .mb-header .fa-bars { --mb-mobile-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h18M3%2012h18M3%2019h18%22%2F%3E%3C%2Fsvg%3E'); }
  .mb-template-catalog .bottom-nav .fa-magnifying-glass { --mb-mobile-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%2F%3E%3Cpath%20d%3D%22m15%2015%207%207%22%2F%3E%3C%2Fsvg%3E'); }
  .mb-template-catalog .bottom-nav .fa-user { --mb-mobile-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%226%22%20r%3D%224%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3Cpath%20d%3D%22M4%2022v-2a8%208%200%200%201%2016%200v2z%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E'); }
  .mb-template-catalog .bottom-nav .fa-border-all { --mb-mobile-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%221.2%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%222%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%221.2%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%2214%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%221.2%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%221.2%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E'); }
  .mb-template-catalog .product-card .fa-bell { --mb-mobile-icon: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2016h14l-2-3V8a5%205%200%200%200-10%200v5zm5%203a2%202%200%200%200%204%200%22%2F%3E%3C%2Fsvg%3E'); }
  .mb-template-catalog .product-card :is(.add-to-cart, .notify-me-btn) i { display: block; width: 24px; height: 24px; flex-shrink: 0; }
  .mb-template-catalog .product-card .spec-chip i::before,
  .mb-template-catalog .product-card :is(.add-to-cart, .notify-me-btn) i::before,
  .mb-template-catalog .mb-header :is(.mb-menu-btn, #carrito-icono) i::before,
  .mb-template-catalog .bottom-nav i::before {
    content: "" !important;
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    -webkit-mask: var(--mb-mobile-icon) center / contain no-repeat;
    mask: var(--mb-mobile-icon) center / contain no-repeat;
  }
}

@media (max-width: 768px) {
  .mb-template-catalog .product-container {
    padding: 12px 8px 28px !important;
    gap: 20px !important;
  }
  .mb-template-catalog .product-card {
    border-radius: 12px !important;
    border: 1px solid rgba(148, 163, 184, .25) !important;
    box-shadow: none !important;
  }
  .mb-template-catalog .product-card .product-media {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }
  .mb-template-catalog .product-card .product-media::after {
    height: min(64px, 25%);
    background: linear-gradient(0deg, var(--tpl-card-top), transparent);
    pointer-events: none;
  }
  .mb-template-catalog .product-card .product-image {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
  }
  .mb-template-catalog .product-card .product-info {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 14px !important;
    align-items: stretch;
  }
  .mb-template-catalog .product-card .product-title {
    min-width: 0;
    font-size: clamp(26px, 8vw, 34px) !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
    letter-spacing: -.7px !important;
    overflow-wrap: anywhere;
  }
  .mb-template-catalog .product-card .product-subtitle {
    display: none !important;
  }
  .mb-template-catalog .product-card .spec-grid {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .mb-template-catalog .product-card .spec-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 4px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .26);
    background: rgba(15, 23, 42, .32);
  }
  .mb-template-catalog .product-card .spec-chip i {
    width: 28px;
    height: 28px;
    font-size: 28px;
    line-height: 1;
    text-align: center;
  }
  .mb-template-catalog .product-card .spec-chip strong {
    font-size: clamp(16px, 5.2vw, 21px);
    font-weight: 800;
    line-height: 1.25;
  }
  .mb-template-catalog .product-card .spec-chip span {
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0;
  }
  .mb-template-catalog .product-card .price-stock-row {
    min-width: 0;
    margin-top: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    box-sizing: border-box;
    border-top: 1px solid rgba(148, 163, 184, .24);
  }
  .mb-template-catalog .product-card .product-price {
    max-width: 100%;
    min-width: 0;
    font-size: clamp(32px, 10.5vw, 44px) !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .mb-template-catalog .product-card .product-stock {
    flex-shrink: 0;
    font-size: 18px !important;
    line-height: 1.3;
    text-align: right;
  }
  .mb-template-catalog .product-card .product-stock strong {
    font-size: 22px;
    font-weight: 900;
  }
  .mb-template-catalog .product-card .product-actions {
    min-width: 0;
    width: 100%;
    gap: 10px;
  }
  .mb-template-catalog .product-card .quantity-selector {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 0;
    gap: 0;
    align-items: center;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, .3);
    background: rgba(15, 23, 42, .5);
    overflow: hidden;
  }
  .mb-template-catalog .product-card .quantity-btn {
    width: 100% !important;
    height: 48px !important;
    font-size: 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--tpl-text) !important;
  }
  .mb-template-catalog .product-card .quantity-btn.minus {
    border-right: 1px solid rgba(148, 163, 184, .3) !important;
  }
  .mb-template-catalog .product-card .quantity-btn.plus {
    border-left: 1px solid rgba(148, 163, 184, .3) !important;
  }
  .mb-template-catalog .product-card .quantity-btn:hover {
    background: rgba(255, 255, 255, .06) !important;
    color: var(--tpl-icon) !important;
  }
  .mb-template-catalog .product-card .quantity-input {
    min-width: 0;
    max-width: none;
    width: 100% !important;
    height: 48px !important;
    font-size: 24px !important;
    padding: 0;
    box-sizing: border-box;
    appearance: textfield;
    -moz-appearance: textfield;
  }
  .mb-template-catalog .product-card .quantity-input::-webkit-inner-spin-button,
  .mb-template-catalog .product-card .quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  .mb-template-catalog .product-card .add-to-cart,
  .mb-template-catalog .product-card .notify-me-btn {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    height: auto !important;
    box-sizing: border-box;
    padding: 10px;
    font-size: clamp(20px, 5.6vw, 24px) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    white-space: normal;
  }
  .mb-template-catalog .product-card .badge-stack {
    inset: 12px 12px auto;
  }
  .mb-template-catalog .product-card .product-badge,
  .mb-template-catalog .product-card .spec-number {
    font-size: clamp(13px, 4vw, 16px);
    border-radius: 6px;
    padding: 8px 10px;
    box-shadow: none;
  }
  .mb-template-catalog .mb-header {
    padding: 8px 12px !important;
  }
  .mb-template-catalog .mb-topbar {
    min-height: 48px;
  }
  .mb-template-catalog .mb-topbar > div {
    width: 100%;
    min-width: 0;
    padding: 0 52px;
    box-sizing: border-box;
  }
  .mb-template-catalog .mb-logo {
    padding: 0 !important;
    font-size: clamp(20px, 6.4vw, 28px) !important;
    letter-spacing: -1px;
    text-shadow: none;
    overflow-wrap: anywhere;
  }
  .mb-template-catalog .mb-logo .logo-green {
    color: var(--tpl-icon) !important;
  }
  .mb-template-catalog .mb-logo img {
    width: auto;
    max-width: 100% !important;
    max-height: 40px !important;
    height: auto;
  }
  .mb-template-catalog .mb-slogan {
    display: none;
  }
  .mb-template-catalog .mb-menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .mb-template-catalog .mb-header .mb-menu-btn i,
  .mb-template-catalog .mb-header #carrito-icono i {
    width: 28px;
    height: 28px;
    color: var(--tpl-text) !important;
  }
  .mb-template-catalog .mb-header #carrito-icono {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 40px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
  }
  .mb-template-catalog #carrito-contador {
    top: -1px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
  }
  .mb-template-catalog .bottom-nav {
    background: var(--tpl-header);
    border-top: 1px solid rgba(148, 163, 184, .2);
  }
  .mb-template-catalog .bottom-nav a,
  .mb-template-catalog .bottom-nav button {
    min-height: 48px;
    font-weight: 500;
    font-size: 12px;
    gap: 5px;
  }
  .mb-template-catalog .bottom-nav i {
    width: 26px;
    height: 26px;
    color: var(--tpl-muted) !important;
  }
  .mb-template-catalog .bottom-nav .active i {
    color: var(--tpl-icon) !important;
  }
  .mb-template-catalog #whatsapp-button {
    display: none;
  }
  .mb-template-catalog .product-card :is(button, input):focus-visible,
  .mb-template-catalog .mb-menu-btn:focus-visible,
  .mb-template-catalog .bottom-nav :is(a, button):focus-visible {
    outline: 2px solid var(--tpl-icon);
    outline-offset: -3px;
  }
}
