/* ================================================
   WOODMART INSPIRATION - B2B Template
   Cards con hover actions, borde delicado, bottom bar
   ================================================ */

/* === WOODMART CARDS (GRID) === */
.wm-grid {
    gap: 20px !important;
}
.wm-card {
    background: #fff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s !important;
}
.wm-card:hover {
    border-color: #ddd !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07) !important;
    transform: none !important;
}

/* Imagen: cuadrada, fondo gris claro */
.wm-imagen {
    position: relative;
    padding-top: 110% !important;
    background: #f8f9fa !important;
    border-radius: 0 !important;
    overflow: hidden;
}
.wm-imagen img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.wm-card:hover .wm-imagen img {
    transform: scale(1.04);
}

/* Badges */
.wm-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.wm-badge-sale {
    background: #e53935;
    color: #fff;
}
.wm-badge-promo {
    background: #22c55e;
    color: #fff;
}

/* Hover actions: aparecen al pasar el mouse */
.wm-hover-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 3;
}
.wm-card:hover .wm-hover-actions {
    opacity: 1;
    transform: translateY(0);
}
.wm-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.2s;
}
.wm-action-btn:hover {
    background: #111;
    color: #fff;
}
.wm-action-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}
.wm-action-btn i.icon {
    font-size: 14px !important;
    margin: 0 !important;
}

/* Content */
.wm-content {
    padding: 14px 16px 16px !important;
    background: #fff !important;
    text-align: center;
}
.wm-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wm-product-cat {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}
.wm-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}
.wm-price-old {
    text-decoration: line-through;
    color: #bbb;
    font-weight: 400;
    font-size: 13px;
    margin-right: 6px;
}
.wm-price-sale {
    color: #e53935;
}

/* Qty selector + botón carrito inline */
.wm-qty-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.wm-cart-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.wm-cart-btn:hover { background: #333; }
.wm-cart-btn:disabled { background: #e0e0e0; color: #999; cursor: not-allowed; }
.wm-cart-btn i.icon { font-size: 14px !important; margin: 0 !important; line-height: 1 !important; width: auto !important; height: auto !important; }
body.dark-mode .wm-cart-btn { background: #555; }
body.dark-mode .wm-cart-btn:hover { background: #666; }

/* Botón ver variantes */
.wm-variants-btn {
    width: 100%;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.wm-variants-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}
.wm-variants-btn i.icon { font-size: 13px !important; margin: 0 !important; }
body.dark-mode .wm-variants-btn {
    background: var(--ml-input-bg);
    border-color: var(--ml-border);
    color: var(--ml-text);
}
body.dark-mode .wm-variants-btn:hover {
    background: #555;
    color: #fff;
    border-color: #555;
}
.wm-qty-selector {
    height: 34px !important;
    border-radius: 20px !important;
    border-color: #e8e8e8 !important;
}
.wm-qty-selector .producto-qty-btn {
    width: 30px !important;
    height: 34px !important;
    font-size: 14px !important;
    background: transparent !important;
}
.wm-qty-selector .producto-qty-btn:hover {
    background: #f5f5f5 !important;
}
.wm-qty-selector .producto-qty-input {
    width: 36px !important;
    font-size: 13px !important;
    background: transparent !important;
}

/* Dark mode: qty selector */
body.dark-mode .wm-qty-selector {
    border-color: var(--ml-border) !important;
}
body.dark-mode .wm-qty-selector .producto-qty-btn {
    color: var(--ml-text) !important;
}
body.dark-mode .wm-qty-selector .producto-qty-btn:hover {
    background: var(--ml-hover-bg) !important;
}
body.dark-mode .wm-qty-selector .producto-qty-input {
    color: var(--ml-text) !important;
}

/* Mobile: always show actions */
@media (max-width: 768px) {
    .wm-hover-actions {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    .wm-grid {
        gap: 12px !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .wm-content {
        padding: 10px 10px 12px !important;
    }
    .wm-product-name {
        font-size: 13px;
    }
    .wm-product-price {
        font-size: 14px;
    }
    .wm-action-btn {
        width: 34px;
        height: 34px;
    }
    .wm-action-btn i.icon {
        font-size: 13px !important;
    }
}

/* === VISTA LISTA WOODMART === */
.wm-lista {
    display: flex !important;
    flex-direction: column;
    gap: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.wm-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.wm-list-item:hover {
    border-color: #ddd;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.wm-list-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
}
.wm-list-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.wm-list-info {
    flex: 1;
    min-width: 0;
}
.wm-list-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.3;
}
.wm-list-cat {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 4px;
}
.wm-list-stock {
    font-size: 11px;
    color: #888;
}
.wm-list-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.wm-list-price {
    text-align: right;
    white-space: nowrap;
}
.wm-list-price .wm-price-current {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}
.wm-list-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Lista: responsive mobile */
@media (max-width: 768px) {
    .wm-list-item {
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }
    .wm-list-img {
        width: 56px;
        height: 56px;
    }
    .wm-list-name {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .wm-list-right {
        width: 100%;
        justify-content: space-between;
        padding-left: 66px;
        margin-top: 4px;
    }
}

/* Dark mode: lista */
body.dark-mode .wm-list-item {
    background: var(--ml-card-bg) !important;
    border-color: var(--ml-border) !important;
}
body.dark-mode .wm-list-item:hover {
    border-color: var(--ml-input-border) !important;
}
body.dark-mode .wm-list-img { background: var(--ml-input-bg) !important; }
body.dark-mode .wm-list-name { color: var(--ml-text) !important; }
body.dark-mode .wm-list-cat { color: var(--ml-text-muted) !important; }
body.dark-mode .wm-list-stock { color: var(--ml-text-light) !important; }
body.dark-mode .wm-list-price .wm-price-current { color: var(--ml-precio) !important; }

/* === CARRITO: estilo Woodmart === */
.cart-items-card {
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.cart-item {
    border-bottom-color: #f0f0f0 !important;
}
.cart-item:hover {
    background: #fafafa;
}
.cart-item-img img {
    border-radius: 8px !important;
}
.cart-item-noimg {
    border-radius: 8px !important;
}
.carrito-section-card {
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.cart-summary-card {
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.cart-summary-btn--primary {
    background: #111 !important;
    border-radius: 6px !important;
}
.cart-summary-btn--primary:hover {
    background: #333 !important;
}
.cart-summary-btn--secondary {
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
}
.cart-summary-row--total {
    border-top: 1px solid #f0f0f0 !important;
}
.ui.spinner input {
    border-radius: 6px !important;
}
.cart-summary-coupon .ui.input input {
    border-radius: 6px 0 0 6px !important;
    border: 1px solid #f0f0f0 !important;
}
.cart-summary-coupon .ui.button {
    border-radius: 0 6px 6px 0 !important;
    background: #111 !important;
    color: #fff !important;
}
.metodo-pago-btn {
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
}
.metodo-pago-btn.active {
    border-color: #111 !important;
}

/* Dark mode carrito woodmart */
body.dark-mode .cart-items-card { border-color: var(--ml-border) !important; }
body.dark-mode .cart-item { border-bottom-color: var(--ml-border) !important; }
body.dark-mode .cart-item:hover { background: var(--ml-hover-bg); }
body.dark-mode .carrito-section-card { border-color: var(--ml-border) !important; }
body.dark-mode .cart-summary-card { border-color: var(--ml-border) !important; }
body.dark-mode .cart-summary-btn--primary { background: #555 !important; }
body.dark-mode .cart-summary-btn--secondary { border-color: var(--ml-border) !important; }
body.dark-mode .cart-summary-row--total { border-top-color: var(--ml-border) !important; }
body.dark-mode .cart-summary-coupon .ui.input input { border-color: var(--ml-border) !important; }
body.dark-mode .cart-summary-coupon .ui.button { background: #555 !important; }
body.dark-mode .metodo-pago-btn { border-color: var(--ml-border) !important; }

/* === FILTROS: limpios === */
.menu-filtros {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}
.mobile-filter-trigger {
    background: transparent !important;
    border: 1px solid #eee !important;
    box-shadow: none !important;
    padding: 12px 16px !important;
    font-weight: 500 !important;
    color: #333 !important;
    border-radius: 6px !important;
}

/* View toggle */
.view_type .button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.view_type .button.primary { color: #111 !important; }
.view_type .button:not(.primary) { color: #ccc !important; }

/* Paginación */
.ui.pagination.menu {
    box-shadow: none !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
}

/* === LISTA: ocultar campos extra === */
.producto-meta { display: none !important; }
.producto-categoria { display: none !important; }

/* === BOTTOM BAR (MOBILE) === */
.woodmart-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
    .woodmart-bottom-bar { display: flex; }
    #main { margin-bottom: 60px !important; }
    .b2b-footer { margin-bottom: 60px !important; }
}
.woodmart-bottom-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    font-weight: 500;
    padding: 4px;
    position: relative;
    transition: color 0.15s;
}
.woodmart-bottom-bar a.active { color: #111; }
.woodmart-bottom-bar a i.icon {
    font-size: 18px !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1 !important;
}
.woodmart-bottom-bar .bb-badge {
    position: absolute;
    top: 0;
    right: calc(50% - 16px);
    background: #e53935;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* === HOME === */
.home-carousel-section {
    box-shadow: none !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
    background: #fff !important;
}
.home-carousel-header { border-bottom: none !important; }
.home-carousel-title { font-weight: 700 !important; font-size: 1.1rem !important; }
.home-cat-card { border-radius: 20px !important; }
.home-marca-card { border: 1px solid #f0f0f0 !important; box-shadow: none !important; }

/* === DARK MODE === */
body.dark-mode .wm-card {
    background: var(--ml-card-bg) !important;
    border-color: var(--ml-border) !important;
}
body.dark-mode .wm-card:hover {
    border-color: var(--ml-input-border) !important;
}
body.dark-mode .wm-imagen { background: var(--ml-input-bg) !important; }
body.dark-mode .wm-content { background: var(--ml-card-bg) !important; }
body.dark-mode .wm-product-name { color: var(--ml-text) !important; }
body.dark-mode .wm-product-cat { color: var(--ml-text-muted) !important; }
body.dark-mode .wm-product-price { color: var(--ml-precio) !important; }
body.dark-mode .wm-price-old { color: var(--ml-text-muted) !important; }
body.dark-mode .wm-action-btn {
    background: var(--ml-card-bg);
    color: var(--ml-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode .wm-action-btn:hover {
    background: #555;
    color: #fff;
}
body.dark-mode .woodmart-bottom-bar {
    background: var(--ml-card-bg) !important;
    border-top-color: var(--ml-border) !important;
}
body.dark-mode .woodmart-bottom-bar a { color: var(--ml-text-muted); }
body.dark-mode .woodmart-bottom-bar a.active { color: var(--ml-text); }
body.dark-mode .mobile-filter-trigger {
    color: var(--ml-text) !important;
    border-color: var(--ml-border) !important;
}
body.dark-mode .home-carousel-section {
    background: var(--ml-card-bg) !important;
    border-color: var(--ml-border) !important;
}
body.dark-mode .home-marca-card {
    border-color: var(--ml-border) !important;
}

/* ================================================
   PDP (Product Detail Page) - Woodmart Style
   ================================================ */

/* Layout */
.pdp {
    background: #fff !important;
}
.pdp__main {
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    overflow: hidden;
}

/* Breadcrumb */
.pdp__breadcrumb {
    color: #aaa !important;
    font-size: 13px !important;
    border-bottom: none !important;
    padding-bottom: 8px !important;
}
.pdp__breadcrumb a {
    color: #999 !important;
}
.pdp__breadcrumb a:hover {
    color: #111 !important;
}

/* Gallery */
.pdp__gallery {
    background: #f8f9fa !important;
    border-radius: 6px !important;
}
.pdp__gallery img {
    border-radius: 6px !important;
}
/* Padding alrededor de la imagen principal para que respire dentro
   del card gris claro de la galería. Con box-sizing:border-box el
   aspect-ratio:1 del wrapper se mantiene cuadrado. */
.pdp__image-wrapper {
    padding: 24px !important;
    box-sizing: border-box !important;
}
.pdp__gallery-thumbs img {
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
    transition: border-color 0.2s !important;
}
.pdp__gallery-thumbs img:hover,
.pdp__gallery-thumbs img.active {
    border-color: #111 !important;
}

/* Info */
.pdp__info {
    padding: 24px 28px !important;
}
.pdp__title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 1.3 !important;
}
.pdp__codes {
    color: #aaa !important;
    font-size: 12px !important;
}

/* Price */
.pdp__price {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #333 !important;
}
.pdp__price-old {
    color: #bbb !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}
.pdp__price-sale {
    color: #e53935 !important;
}

/* Stock */
.pdp__stock {
    font-size: 13px !important;
    color: #888 !important;
}

/* Buy box */
.pdp__buy-box {
    background: #fafafa !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
    padding: 20px !important;
}

/* Buy button */
.pdp__buy-btn {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.pdp__buy-btn:hover {
    background: #333 !important;
}
.pdp__buy-btn:disabled {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

/* Qty selector */
.pdp__qty-selector {
    border: 1px solid #e8e8e8 !important;
    border-radius: 20px !important;
    overflow: hidden;
}
.pdp__qty-selector .producto-qty-btn {
    background: transparent !important;
    border: none !important;
}
.pdp__qty-selector .producto-qty-btn:hover {
    background: #f5f5f5 !important;
}
.pdp__qty-selector .producto-qty-input,
.pdp__qty-input {
    border: none !important;
    background: transparent !important;
    text-align: center !important;
}

/* Variant blocks */
.pdp__variant-block {
    background: #fafafa !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 6px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
}
.pdp__variant-block label,
.pdp__variant-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

/* Size chips — RETAIL (single-select pill style, sin contador adentro) */
.pdp__size-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    padding: 6px 14px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.pdp__size-chip:hover {
    border-color: #111 !important;
}
.pdp__size-chip.active,
.pdp__size-chip.selected {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}
.pdp__size-chip.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* Size chips — WHOLESALE (chip con contador adentro, multi-cantidad).
   El selector :has() detecta el contador y aplica un layout de card
   cuadrada estilo MercadoLibre, sobreescribiendo la pill horizontal
   del modo retail. */
.pdp__size-chips:has(.pdp__size-chip-qty) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 10px !important;
}
.pdp__size-chip:has(.pdp__size-chip-qty),
.pdp__size-chip--has-qty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 8px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    min-width: auto !important;
    cursor: default !important;
    color: #111 !important;
    font-size: 14px !important;
}
.pdp__size-chip:has(.pdp__size-chip-qty):hover {
    border-color: #94a3b8 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    background: #fff !important;
}
.pdp__size-chip--has-qty {
    border-color: #16a34a !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 1px #16a34a inset !important;
}
.pdp__size-chip:has(.pdp__size-chip-qty) .pdp__size-chip-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-align: center !important;
    letter-spacing: 0.2px !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    word-break: break-word !important;
}
/* Pill ovalado con bordes redondeados full */
.pdp__size-chip:has(.pdp__size-chip-qty) .pdp__size-chip-qty {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 100px !important;
    background: #fff !important;
    padding: 3px !important;
    overflow: visible !important;
}
/* Botones circulares — texto oculto, trazos via pseudo-elementos */
.pdp__size-chip:has(.pdp__size-chip-qty) .pdp__chip-btn {
    position: relative !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    color: #2563eb !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}
.pdp__size-chip:has(.pdp__size-chip-qty) .pdp__chip-btn::before {
    content: '' !important;
    width: 11px !important;
    height: 1.6px !important;
    background: currentColor !important;
    border-radius: 1px !important;
    display: block !important;
}
.pdp__size-chip:has(.pdp__size-chip-qty) .pdp__chip-btn[data-action="increase"]::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 1.6px !important;
    height: 11px !important;
    background: currentColor !important;
    border-radius: 1px !important;
    transform: translate(-50%, -50%) !important;
}
.pdp__size-chip:has(.pdp__size-chip-qty) .pdp__chip-btn:hover {
    background: #2563eb !important;
    color: #fff !important;
}
.pdp__size-chip:has(.pdp__size-chip-qty) .pdp__chip-btn:active {
    transform: scale(0.92);
}
/* Input sin bordes — el pill exterior ya enmarca */
.pdp__size-chip:has(.pdp__size-chip-qty) .pdp__chip-input {
    width: 36px !important;
    height: 28px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #111 !important;
    -moz-appearance: textfield !important;
}
.pdp__size-chip:has(.pdp__size-chip-qty) .pdp__chip-input::-webkit-outer-spin-button,
.pdp__size-chip:has(.pdp__size-chip-qty) .pdp__chip-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
/* Verde cuando qty > 0 */
.pdp__size-chip--has-qty .pdp__size-chip-qty {
    border-color: #16a34a !important;
}
.pdp__size-chip--has-qty .pdp__chip-btn {
    background: #fff !important;
    color: #16a34a !important;
}
.pdp__size-chip--has-qty .pdp__chip-btn:hover {
    background: #16a34a !important;
    color: #fff !important;
}

/* Description */
.pdp__description {
    border: none !important;
    padding-top: 16px !important;
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}
.pdp__description h3,
.pdp__description-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 10px !important;
}

/* Dark mode PDP */
body.dark-mode .pdp { background: var(--ml-bg) !important; }
body.dark-mode .pdp__main { background: var(--ml-card-bg) !important; border-color: var(--ml-border) !important; }
body.dark-mode .pdp__title { color: var(--ml-text) !important; }
body.dark-mode .pdp__price { color: var(--ml-precio) !important; }
body.dark-mode .pdp__buy-box { background: var(--ml-input-bg) !important; border-color: var(--ml-border) !important; }
body.dark-mode .pdp__buy-btn { background: #555 !important; }
body.dark-mode .pdp__buy-btn:hover { background: #666 !important; }
body.dark-mode .pdp__variant-block { background: var(--ml-input-bg) !important; border-color: var(--ml-border) !important; }
body.dark-mode .pdp__size-chip { background: var(--ml-card-bg) !important; border-color: var(--ml-border) !important; color: var(--ml-text) !important; }
body.dark-mode .pdp__size-chip.active,
body.dark-mode .pdp__size-chip.selected { background: #555 !important; color: #fff !important; border-color: #555 !important; }
body.dark-mode .pdp__description { color: var(--ml-text-muted) !important; }
body.dark-mode .pdp__gallery { background: var(--ml-input-bg) !important; }
body.dark-mode .pdp__gallery-thumbs img { border-color: var(--ml-border) !important; }
body.dark-mode .pdp__breadcrumb { color: var(--ml-text-muted) !important; }
body.dark-mode .pdp__stock { color: var(--ml-text-light) !important; }
body.dark-mode .pdp__qty-selector { border-color: var(--ml-border) !important; }
