/* CUPISSA: ficha de producto estilo app SOLO para la web móvil.
   La experiencia de escritorio permanece intacta. */
@media(max-width:767px){
/* La barra de navegación se oculta al inspeccionar un producto. */
body.cupissa-web-product.cupissa-product-open #mobile-app-nav{visibility:hidden!important;pointer-events:none!important}
body.cupissa-web-product.cupissa-product-open{overflow:hidden!important}
/* FICHA DE PRODUCTO = una pantalla de aplicación, no un diálogo pequeño. */
body.cupissa-web-product #modal-product-options{position:fixed!important;inset:0!important;top:0!important;bottom:0!important;left:0!important;right:0!important;z-index:1800!important;background:#fff!important;backdrop-filter:none!important;overflow:hidden!important;padding:0!important;margin:0!important;transform:none!important;display:none!important;align-items:stretch!important;justify-content:stretch!important}
body.cupissa-web-product #modal-product-options:not(.hidden){display:block!important}
body.cupissa-web-product #modal-product-options .product-modal-inner{display:flex!important;flex-direction:column!important;gap:0!important;position:relative!important;width:100%!important;max-width:none!important;height:100%!important;max-height:100%!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;border-radius:0!important;overflow:auto!important;overscroll-behavior:contain!important;background:#fff!important;scrollbar-width:none}
body.cupissa-web-product #modal-product-options .product-modal-inner::-webkit-scrollbar{display:none}
body.cupissa-web-product #modal-product-options .product-modal-grid{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;gap:0!important;width:100%!important;margin:0!important;min-width:0!important;padding:0 0 10px!important}
body.cupissa-web-product #modal-product-options .product-modal-media{position:relative!important;display:flex!important;flex-direction:column!important;gap:0!important;width:100%!important;min-width:0!important;background:#f9f6f8!important}
body.cupissa-web-product #modal-product-options .product-modal-media>div:first-child{position:relative!important;width:100%!important;height:min(64dvh,630px)!important;min-height:min(55dvh,430px)!important;max-height:none!important;aspect-ratio:auto!important;border:none!important;border-radius:0!important;background:#f8f5f7!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
body.cupissa-web-product #modal-product-options #opt-modal-img{display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;aspect-ratio:auto!important;mix-blend-mode:normal!important}
body.cupissa-web-product #modal-product-options #opt-modal-badges{position:absolute!important;bottom:17px!important;top:auto!important;left:12px!important;right:55px!important;display:flex!important;flex-wrap:wrap!important;gap:5px!important;pointer-events:none!important}
body.cupissa-web-product #modal-product-options #opt-modal-badges span{background:rgba(255,255,255,.94)!important;color:#a80d56!important;border:1px solid #f9d2e5!important;border-radius:999px!important;font-size:9px!important;padding:5px 8px!important;font-weight:800!important}
/* Botón de navegación: la flecha sustituye la X únicamente en la ficha. */
body.cupissa-web-product #modal-product-options .product-modal-inner>button:first-child{position:fixed!important;top:calc(14px + env(safe-area-inset-top,0px))!important;left:14px!important;right:auto!important;z-index:1810!important;width:40px!important;height:40px!important;border-radius:50%!important;background:#ffffffea!important;border:1px solid #f3e4eb!important;color:#16131b!important;box-shadow:0 4px 18px #3014201d!important}
body.cupissa-web-product #modal-product-options .product-modal-inner>button:first-child i{font-size:0!important}
body.cupissa-web-product #modal-product-options .product-modal-inner>button:first-child i::after{content:'\f060';font:900 17px 'Font Awesome 6 Free';}
body.cupissa-web-product #modal-product-options #opt-modal-thumbs{display:flex!important;gap:9px!important;align-items:center!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;width:100%!important;min-height:81px!important;padding:12px 14px!important;margin:0!important;box-sizing:border-box!important;background:#fff!important;scrollbar-width:none!important}
body.cupissa-web-product #modal-product-options #opt-modal-thumbs img{width:57px!important;height:57px!important;max-width:none!important;flex:0 0 57px!important;object-fit:cover!important;border-radius:11px!important;border:2px solid #f5ebef!important;scroll-snap-align:start!important}
body.cupissa-web-product #modal-product-options #opt-modal-thumbs img.fuchsia-border{border-color:#dd0c70!important}
body.cupissa-web-product .app-gallery-count{position:absolute;right:14px;bottom:98px;z-index:1;padding:5px 10px;border-radius:99px;background:#1c1618a8;color:white;font-size:11px;font-weight:800;pointer-events:none}
body.cupissa-web-product #modal-product-options .product-modal-grid>div:nth-child(2){display:flex!important;flex-direction:column!important;gap:0!important;padding:9px 16px 15px!important;min-width:0!important;width:100%!important;background:#fff!important;}
body.cupissa-web-product #modal-product-options .product-modal-grid>div:nth-child(2)>div:first-child{width:100%;min-width:0}
body.cupissa-web-product #opt-modal-subcat{font-size:10px!important;color:#c21d67!important;line-height:1.5!important;letter-spacing:.07em!important}
body.cupissa-web-product #opt-modal-title{font-size:19px!important;line-height:1.32!important;letter-spacing:-.35px!important;padding:4px 0 0!important;margin:0!important;text-transform:none!important;color:#19131a!important;font-weight:850!important}
body.cupissa-web-product #opt-modal-ref{font-size:10px!important;padding:5px 0 10px!important;color:#88808b!important}
body.cupissa-web-product #wrapper-descripcion{padding:12px 13px!important;border-radius:14px!important;background:#fcf8fa!important;border:1px solid #f4e8ef!important;color:#514451!important;font-size:12px!important;line-height:1.5!important;margin:8px 0 12px!important}
body.cupissa-web-product #wrapper-modalidad,body.cupissa-web-product #wrapper-tallas,body.cupissa-web-product #wrapper-colores,body.cupissa-web-product #wrapper-custom{margin:15px 0!important;min-width:0!important}
body.cupissa-web-product #modal-product-options #wrapper-modalidad>label,body.cupissa-web-product #modal-product-options #wrapper-tallas>label,body.cupissa-web-product #modal-product-options #wrapper-colores>label,body.cupissa-web-product #modal-product-options #wrapper-custom>label{font-size:12px!important;color:#211923!important;text-transform:none!important;letter-spacing:0!important;margin-bottom:9px!important;font-weight:900!important}
body.cupissa-web-product #modalidad-options-container{gap:9px!important}
body.cupissa-web-product #modalidad-options-container label{min-height:44px!important;border-radius:13px!important;padding:9px!important;font-size:12px!important}
body.cupissa-web-product #modal-product-options select,body.cupissa-web-product #modal-product-options #opt-input-custom{min-height:45px!important;font-size:14px!important;border-radius:12px!important;padding:11px 12px!important;background:#fff!important}
/* Selección por chips; la select HTML continúa activa y siendo la fuente de verdad. */
body.cupissa-web-product .app-variant-choices{display:flex;flex-wrap:wrap;gap:8px;width:100%;min-width:0}
body.cupissa-web-product .app-variant-choice{display:flex;align-items:center;justify-content:center;gap:7px;min-height:43px;max-width:100%;border:1.5px solid #e8dfe5;background:white;color:#2b242b;border-radius:13px;padding:8px 13px;font-size:12px;font-weight:800;line-height:1.2;text-align:center}
body.cupissa-web-product .app-variant-choice[aria-pressed='true']{border-color:#d90d6c;background:#fff1f7;color:#b30d59;box-shadow:0 0 0 1px #d90d6c1c}
body.cupissa-web-product .app-variant-choice img{width:39px;height:39px;flex:0 0 39px;border-radius:9px;object-fit:cover;background:#f9f3f6}
body.cupissa-web-product .app-variant-choice.app-color-choice{min-height:61px;max-width:100%;padding:6px 9px 6px 6px}
body.cupissa-web-product #wrapper-tallas.app-has-variant-chips>select,body.cupissa-web-product #wrapper-colores.app-has-variant-chips>select{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%)!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
body.cupissa-web-product #modal-product-options .product-modal-grid>div:nth-child(2)>div:nth-child(2){background:#fff!important;border:0!important;border-radius:0!important;padding:10px 0 0!important;margin:12px 0 0!important;display:flex!important;flex-direction:column!important;gap:14px!important;box-shadow:none!important}
body.cupissa-web-product #modal-product-options .product-modal-grid>div:nth-child(2)>div:nth-child(2)>div:first-child{padding:12px 0!important;border-top:1px solid #f0e7ec!important}
body.cupissa-web-product #modal-product-options #opt-modal-qty{font-size:14px!important;min-width:29px;text-align:center}
body.cupissa-web-product #modal-product-options button[onclick^='updateModalQty']{min-height:38px;min-width:38px;font-size:18px!important}
body.cupissa-web-product #wrapper-accesorios{padding-top:14px!important;border-top:1px solid #f1e8ed!important}
body.cupissa-web-product #wrapper-accesorios>label{font-size:13px!important;letter-spacing:0!important;color:#241722!important;margin-bottom:8px!important}
body.cupissa-web-product #accessory-options-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.cupissa-web-product .accessory-choice{align-items:flex-start!important;gap:6px!important;min-height:96px!important;padding:9px 7px!important;border-radius:15px!important;flex-direction:column!important;justify-content:flex-start!important}
body.cupissa-web-product .accessory-image-wrap{width:45px!important;height:45px!important;flex:0 0 45px!important}
body.cupissa-web-product .accessory-choice-name{font-size:10px!important}
body.cupissa-web-product .accessory-choice-price{font-size:10px!important}
body.cupissa-web-product #opt-modal-total-price{font-size:19px!important}
body.cupissa-web-product #wrapper-anticipo{gap:12px!important;font-size:11px!important}
/* Franja fija inferior, sin tapar opciones ni simular descuentos. */
body.cupissa-web-product #modal-product-options .product-modal-actions{position:sticky!important;bottom:0!important;z-index:12!important;display:flex!important;flex:0 0 auto!important;gap:9px!important;align-items:center!important;min-height:84px!important;margin:auto 0 0!important;padding:11px 14px calc(11px + env(safe-area-inset-bottom,0px))!important;border:0!important;border-top:1px solid #ede3e9!important;border-radius:0!important;background:#fff!important;box-shadow:0 -7px 21px #21121b0e!important;}
body.cupissa-web-product #modal-product-options .product-modal-actions>button#btn-modal-fav{width:45px!important;min-width:45px!important;height:50px!important;background:#fff4f9!important;color:#c20d61!important;border-radius:14px!important}
body.cupissa-web-product #modal-product-options .product-modal-actions>button:last-child{flex:1!important;height:50px!important;min-height:50px!important;box-shadow:none!important;border-radius:15px!important;font-size:12px!important;white-space:nowrap!important;background:#dc0e70!important;color:#fff!important}
body.cupissa-web-product #modal-product-options .app-sticky-price{min-width:0;flex:0 0 auto;max-width:31%;display:flex;flex-direction:column;gap:3px;justify-content:center;line-height:1.1}
body.cupissa-web-product #modal-product-options .app-sticky-price small{font-size:9px;color:#81717c;font-weight:750}
body.cupissa-web-product #modal-product-options .app-sticky-price strong{font-size:14px;font-weight:950;white-space:nowrap;color:#23171e}
body.cupissa-web-product #modal-full-image{z-index:2100!important;padding:15px!important}
body.cupissa-web-product #modal-full-image>div{width:100%!important;max-width:100%!important;max-height:90dvh!important}
body.cupissa-web-product #modal-full-image img{max-height:78dvh!important;max-width:100%!important}

body.cupissa-web-product #modal-product-options .product-modal-actions{margin-top:auto!important}
}




/* CUPISSA: mostrar únicamente el selector rosado original, sin chips ni select duplicado. */
body.cupissa-web-product #wrapper-tallas .app-variant-choices{display:none!important;}
body.cupissa-web-product #wrapper-tallas .cupissa-select-control{display:block!important;position:relative!important;width:100%!important;}
body.cupissa-web-product #wrapper-tallas .cupissa-select-control #opt-select-talla{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;opacity:0!important;pointer-events:none!important;}
body.cupissa-web-product #wrapper-tallas .cupissa-select-trigger{display:flex!important;}


/* Colores por dispositivo: en móvil solo tarjetas con la imagen de la variante.
   La selección real continúa en el <select> original, para carrito y precios. */
@media (max-width: 767px) {
  body.cupissa-web-product #wrapper-colores.app-has-variant-chips > .cupissa-select-control {
    display: none !important;
  }
  body.cupissa-web-product #wrapper-colores.app-has-variant-chips > .app-variant-choices {
    display: flex !important;
  }
}
/* Escritorio: solo el desplegable; evita duplicados al ampliar la ventana. */
@media (min-width: 768px) {
  #wrapper-colores .app-variant-choices {
    display: none !important;
  }
}


/* CUPISSA | Ficha móvil: sin franja vacía cuando solo existe una fotografía. */
@media (max-width: 767px) {
  body.cupissa-web-product #modal-product-options #opt-modal-thumbs.hidden {
    display: none !important;
    width: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.cupissa-web-product #product-modal-details { scroll-margin-top: 16px; }

  body.cupissa-web-product #cupissa-mobile-view-details {
    position: fixed !important;
    left: 50% !important;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    z-index: 1820 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 42px !important;
    padding: 0 17px !important;
    border: 1px solid #f3c6dc !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #b70e5b !important;
    box-shadow: 0 8px 25px #4b17301f !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.cupissa-web-product #cupissa-mobile-view-details[hidden] { display: none !important; }
}

/* CUPISSA | Productos parecidos: exclusivo de móvil y con carga infinita por lotes. */
@media (max-width: 767px) {
  #cupissa-related-products {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 17px 14px 8px;
    border-top: 1px solid #eadfe5;
  }
  #cupissa-related-products .cupissa-related-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 13px;
    color: #211923;
    font-size: 14px;
    font-weight: 900;
  }
  #cupissa-related-products .cupissa-related-heading::before,
  #cupissa-related-products .cupissa-related-heading::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eadfe5;
  }
  #cupissa-related-products .cupissa-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  #cupissa-related-products .cupissa-related-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #eee4e9;
    border-radius: 13px;
    background: #fff;
    text-align: left;
    color: #271e26;
  }
  #cupissa-related-products .cupissa-related-card img {
    display: block;
    width: 100%;
    height: 116px;
    object-fit: contain;
    background: #faf7f9;
  }
  #cupissa-related-products .cupissa-related-card-copy { padding: 8px; }
  #cupissa-related-products .cupissa-related-card-name {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.5em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 850;
  }
  #cupissa-related-products .cupissa-related-card-price {
    display: block;
    margin-top: 5px;
    color: #bd1764;
    font-size: 11px;
    font-weight: 950;
  }
  #cupissa-related-products .cupissa-related-sentinel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    margin-top: 10px;
    color: #b70e5b;
    font-size: 10px;
    font-weight: 800;
  }
  #cupissa-related-products .cupissa-related-sentinel[hidden] { display: none !important; }
  #cupissa-related-products .cupissa-related-sentinel > span {
    display: none;
    align-items: center;
    gap: 8px;
  }
  #cupissa-related-products .cupissa-related-sentinel.is-loading > span { display: inline-flex; }
}
@media (min-width: 768px) {
  #cupissa-related-products { display: none !important; }
}


/* CUPISSA | Colores compactos: un único desplegable también en móviles. */
@media (max-width: 767px) {
  body.cupissa-web-product #wrapper-colores .app-variant-choices {
    display: none !important;
  }
  body.cupissa-web-product #wrapper-colores.app-has-variant-chips > .cupissa-select-control {
    display: block !important;
    width: 100% !important;
  }
  body.cupissa-web-product #wrapper-colores .cupissa-select-trigger {
    display: flex !important;
    min-height: 39px !important;
    padding: 8px 11px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 750 !important;
  }
  body.cupissa-web-product #wrapper-colores .cupissa-select-option {
    min-height: 36px !important;
    padding: 7px 9px !important;
    font-size: 11px !important;
  }
  body.cupissa-web-product #wrapper-colores .cupissa-select-menu {
    max-height: 190px !important;
    border-radius: 12px !important;
  }
}
