/* MarketCity Fase 4 — tarjeta de producto y listado. Solo CSS encima de las clases de Wolmart/WooCommerce. */
/* ---------- Tarjeta ---------- */
html body li.product-wrap{padding:6px!important}
html body li.product-wrap>.product-loop{display:flex;flex-direction:column;height:100%;background:var(--mc-surface,#fff)!important;border:1px solid var(--mc-border,#E3E6EC)!important;border-radius:12px!important;overflow:hidden;box-shadow:none!important;transition:box-shadow .15s cubic-bezier(.2,.8,.2,1),border-color .15s;padding:0!important;text-align:left!important}
@media (hover:hover){html body li.product-wrap>.product-loop:hover{box-shadow:0 1px 2px rgba(15,18,34,.06),0 8px 24px rgba(15,18,34,.06)!important;border-color:transparent!important}}
html body li.product-wrap .product-media{aspect-ratio:1/1;margin:0!important;background:var(--mc-bg,#F7F8FA);border-radius:0!important;overflow:hidden}
html body li.product-wrap .product-media>a{display:block;height:100%}
html body li.product-wrap .product-media img{width:100%!important;height:100%!important;object-fit:contain!important;padding-top:0!important;background:transparent}
html body li.product-wrap .product-details{display:flex;flex-direction:column;gap:4px;padding:10px 12px 0!important;flex:1 1 auto;text-align:left!important;align-items:stretch!important}
html body li.product-wrap .woocommerce-loop-product__title{margin:0!important;font-size:14px!important;line-height:20px!important;font-weight:500!important;min-height:40px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-transform:none!important;letter-spacing:0!important}
html body li.product-wrap .woocommerce-loop-product__title a{color:var(--mc-ink,#0F1222)!important}
html body li.product-wrap .mcs-vendor{order:-1;font-size:12px!important;line-height:16px;color:var(--mc-ink-2,#4A5068)!important;font-weight:500}
/* Precio: $ pequeño arriba, cifras tabulares */
html body li.product-wrap .price{display:flex!important;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:2px 0 0!important;font-variant-numeric:tabular-nums;color:var(--mc-ink,#0F1222)!important;justify-content:flex-start!important}
html body li.product-wrap .price .amount,html body li.product-wrap .price ins .amount{font-family:var(--mc-font-display,inherit);font-size:18px!important;line-height:22px;font-weight:800!important;color:var(--mc-ink,#0F1222)!important;letter-spacing:-.01em}
html body li.product-wrap .price .woocommerce-Price-currencySymbol{font-size:.6em;vertical-align:.45em;font-weight:700;margin-right:1px}
html body li.product-wrap .price ins{text-decoration:none!important;order:-1}
html body li.product-wrap .price del,html body li.product-wrap .price del .amount{font-size:13px!important;line-height:18px;font-weight:500!important;color:var(--mc-ink-2,#4A5068)!important;opacity:1}
/* Cuota BNPL: una sola línea, color de crédito */
html body li.product-wrap .mc4-cuota{display:block;font-size:13px;line-height:18px;font-weight:600;color:var(--mc-credit,#5B43C0);font-variant-numeric:tabular-nums}
html body li.product-wrap .mc4-cuota strong{font-weight:800}
html body li.product-wrap .product-details:has(.mc4-cuota) .mcs-cuota{display:none!important}
/* Badge de descuento */
html body li.product-wrap .product-label-group{top:8px!important;left:8px!important}
html body li.product-wrap .product-label.label-sale{background:var(--mc-offer,#C23D0B)!important;color:#fff!important;border-radius:999px!important;font-size:12px!important;font-weight:700!important;line-height:24px!important;height:24px;padding:0 8px!important}
/* Botón Agregar siempre visible (antes solo al pasar el mouse) */
html body li.product-wrap .product-hide-details{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;max-height:none!important;padding:8px 12px 12px!important;margin-top:auto;background:transparent!important}
html body li.product-wrap .product-action{display:block!important;margin:0!important;position:static!important;visibility:visible!important;opacity:1!important;transform:none!important}
html body li.product-wrap a.mc-card-add{visibility:visible!important;opacity:1!important}
html body li.product-wrap a.mc-card-add{display:flex!important;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;border-radius:12px!important;background:var(--mc-brand,#0A4BFF)!important;color:#fff!important;border:0!important;font-size:14px!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;padding:0 12px!important;transition:background-color .15s,box-shadow .15s}
html body li.product-wrap a.mc-card-add:hover{box-shadow:0 1px 2px rgba(15,18,34,.06),0 8px 24px rgba(15,18,34,.06)}
html body li.product-wrap a.mc-card-add svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
html body li.product-wrap a.mc-card-add.loading{opacity:.7}
html body li.product-wrap a.added_to_cart{display:none!important}
html body li.product-wrap .product-action-vertical{display:none!important}

/* ---------- Listado (tienda, categorías, búsqueda) ---------- */
@media (max-width:767px){
  html body.mc4-plp ul.products{margin-left:-6px!important;margin-right:-6px!important}
}
/* Orden visible y legible */
html body.mc4-plp .toolbox .woocommerce-ordering label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html body.mc4-plp .toolbox select.orderby{min-height:44px!important;border-radius:999px!important;border:1px solid var(--mc-border-strong,#8A90A6)!important;background-color:var(--mc-surface,#fff)!important;color:var(--mc-ink,#0F1222)!important;font-size:14px!important;font-weight:600!important;padding:0 36px 0 16px!important}
/* "¿Cuánto quieres pagar al mes?" con el filtro de cuota existente */
html body .mcs-chips__label{font-size:0!important}
html body .mcs-chips__label::before{content:"¿Cuánto quieres pagar al mes?";font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
html body .mcs-chips .mcs-chip{min-height:40px;display:inline-flex!important;align-items:center}
html body .mcs-chips .mcs-chip.is-active{background:var(--mc-credit,#5B43C0)!important;border-color:var(--mc-credit,#5B43C0)!important;color:#fff!important}
/* Filtros como hoja inferior en el celular */
@media (max-width:991px){
  html body #shop-sidebar .sidebar-content{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%!important;max-width:none!important;height:85vh!important;height:85dvh!important;border-radius:20px 20px 0 0!important;transform:translateY(105%)!important;transition:transform .25s cubic-bezier(.2,.8,.2,1)!important;box-shadow:0 2px 4px rgba(15,18,34,.06),0 24px 48px rgba(15,18,34,.14)!important;padding:28px 16px calc(16px + env(safe-area-inset-bottom,0px))!important;overflow-y:auto!important;background:var(--mc-surface,#fff)!important}
  html body #shop-sidebar .sidebar-content::before{content:"";position:absolute;top:10px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:4px;background:var(--mc-border,#E3E6EC)}
  html body[class*="sidebar-active"] #shop-sidebar .sidebar-content{transform:translateY(0)!important}
  html body #shop-sidebar .sidebar-close{top:auto!important;bottom:calc(85dvh - 44px)!important;right:12px!important;left:auto!important;z-index:3}
}
@media (prefers-reduced-motion:reduce){html body #shop-sidebar .sidebar-content{transition:none!important}}

/* ---------- Acceso visible (el botón era blanco sobre el encabezado blanco del #53) ---------- */
html body #mcx a.mcx-sell-top{color:var(--mc-brand,#0A4BFF)!important;background:var(--mc-brand-soft,#EEF3FF)!important;border:1px solid #C9D6FF!important;border-radius:999px!important;min-height:40px;align-items:center;gap:6px;padding:0 14px!important;font-weight:700!important;white-space:nowrap}
html body #mcx a.mcx-sell-top svg{stroke:currentColor}
html body #mcx a.mcx-sell-top:hover{background:#E1E9FF!important}
html body #mcx .mcx-acc .mcx-acc-label{white-space:nowrap;font-weight:600}
.mc4-acceso{display:grid;gap:8px;margin:0 0 16px}
.mc4-acc-btn{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:12px;border:1px solid var(--mc-brand,#0A4BFF);color:var(--mc-brand,#0A4BFF)!important;background:var(--mc-surface,#fff);font-weight:700;font-size:15px;text-decoration:none!important}
.mc4-acc-btn--pri{background:var(--mc-brand,#0A4BFF);color:#fff!important}
.mc4-vende-cuenta{text-align:center;margin:16px 0 0;font-size:14px;color:var(--mc-ink-2,#4A5068)}
.mc4-vende-cuenta a{color:var(--mc-brand,#0A4BFF);font-weight:700}

/* ---------- Categorías del inicio con foto ---------- */
html body nav.mcc{gap:12px!important}
html body nav.mcc a.mc4-cat{display:flex!important;flex-direction:column;align-items:center;gap:8px;padding:12px 6px!important;text-decoration:none;background:var(--mc-surface,#fff);border:1px solid var(--mc-border,#E3E6EC)!important;border-radius:16px!important;color:var(--mc-ink,#0F1222)!important;font-weight:600;font-size:13px;line-height:16px;text-align:center}
html body nav.mcc a.mc4-cat:hover{box-shadow:0 1px 2px rgba(15,18,34,.06),0 8px 24px rgba(15,18,34,.06)}
html body nav.mcc .mc4-catimg{display:block;width:88px;height:88px;border-radius:50%;overflow:hidden;background:var(--mc-bg,#F7F8FA);flex:none}
html body nav.mcc .mc4-catimg img{width:100%;height:100%;object-fit:cover;display:block}
@media (min-width:1024px){html body nav.mcc{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important}}
@media (max-width:1023px){
  html body nav.mcc{display:flex!important;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  html body nav.mcc::-webkit-scrollbar{display:none}
  html body nav.mcc a.mc4-cat{flex:0 0 96px;padding:8px 4px!important;border:0!important;background:transparent}
  html body nav.mcc .mc4-catimg{width:72px;height:72px}
}