/* Formulario de contacto */
.page-id-279 .contact-form {
  width: 100%;
  max-width: 640px;
  margin: 30px auto;
}

.page-id-279 .contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.page-id-279 .contact-form input[type="text"],
.page-id-279 .contact-form input[type="email"],
.page-id-279 .contact-form input[type="tel"],
.page-id-279 .contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
}

.page-id-279 .contact-form textarea {
  min-height: 170px;
}

.page-id-279 .contact-form button[type="submit"],
.page-id-279 .contact-form input[type="submit"] {
  padding: 14px 30px;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
/* Mostrar Vista rápida en móvil */
@media (max-width: 849px) {
  .product-small .image-tools:has(.quick-view) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .product-small .quick-view {
    display: block !important;
    padding: 10px 5px;
  }
}

/* Whip Tactical: escala visual de las mochilas en el catálogo. */
.term-whip-tactical .product-small .box-image img {
  object-fit: contain !important;
}
.term-whip-tactical .post-10117 .box-image .attachment-woocommerce_thumbnail {
  transform: scale(1.14);
}
.term-whip-tactical :is(.post-10134, .post-10130, .post-10125) .box-image .attachment-woocommerce_thumbnail {
  transform: scale(1.37);
}
.term-whip-tactical .post-6873 .box-image .attachment-woocommerce_thumbnail {
  transform: scale(1.32);
}


/* Mochilas: ocultar el tamaño cuando 36 L es la única opción preseleccionada. */
.product_cat-whip-tactical form.variations_form table.variations:not(:has(tr + tr)):has(select[name="attribute_pa_tamano-mochila"] option[value="36-l"][selected]):not(:has(select[name="attribute_pa_tamano-mochila"] option:not([value=""]):not([value="36-l"]))) {
  display: none;
}


/* Ropa: encuadre uniforme de las fotos del catálogo. */
.page-id-13978 .product-small .box-image img {
  object-fit: contain;
  object-position: center;
}
.page-id-13978 .product-small .box-image {
  background-color: #fff;
}

/* Miniaturas de los cortes Híbrido Enchufable Oversize */
body:is(.postid-14744,.postid-14746) .variations tbody { display:flex; flex-direction:column; }
body:is(.postid-14744,.postid-14746) .variations tbody > tr.wap-size-row { order:1; }
body:is(.postid-14744,.postid-14746) .wap-cut-options { grid-template-columns:repeat(4,minmax(0,1fr)); }
body:is(.postid-14744,.postid-14746) .wap-cut-options .wap-option { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; padding:6px 3px; }
body:is(.postid-14744,.postid-14746) .wap-cut-options .wap-cut-icon { display:none; }
body:is(.postid-14744,.postid-14746) .wap-cut-options .wap-option::before { content:''; display:block; width:100%; aspect-ratio:4/5; background:var(--hybrido-cut-photo) center / contain no-repeat; }
body:is(.postid-14744,.postid-14746) .wap-cut-options .wap-option[data-value="normal"] { --hybrido-cut-photo:url("https://i0.wp.com/sockswhip.com/wp-content/uploads/2026/11/hybrido-oversize-frente-normal-logo-bajo.jpg?w=160&quality=75&strip=all&ssl=1"); }
body:is(.postid-14744,.postid-14746) .wap-cut-options .wap-option[data-value="sin-mangas"] { --hybrido-cut-photo:url("https://i0.wp.com/sockswhip.com/wp-content/uploads/2026/11/hybrido-oversize-frente-sin-mangas-logo-bajo.jpg?w=160&quality=75&strip=all&ssl=1"); }
body:is(.postid-14744,.postid-14746) .wap-cut-options .wap-option[data-value="crop-top"] { --hybrido-cut-photo:url("https://i0.wp.com/sockswhip.com/wp-content/uploads/2026/11/hybrido-oversize-frente-crop-top-logo-bajo.jpg?w=160&quality=75&strip=all&ssl=1"); }
body:is(.postid-14744,.postid-14746) .wap-cut-options .wap-option[data-value="crop-top-tirantes"] { --hybrido-cut-photo:url("https://i0.wp.com/sockswhip.com/wp-content/uploads/2026/11/hybrido-oversize-frente-crop-top-tirantes-logo-bajo.jpg?w=160&quality=75&strip=all&ssl=1"); }
/* Portada de la categoría Hybrido */
body.term-hybrido .shop-container > .term-description {
  display:flex; flex-direction:column; justify-content:flex-end; min-height:clamp(285px,36vw,460px);
  margin:0 0 26px; padding:clamp(20px,4vw,46px); border-radius:18px; color:#fff;
  background:linear-gradient(0deg,rgba(17,17,13,.96),transparent 83%),linear-gradient(90deg,rgba(17,17,13,.78),transparent 75%),#171713 url('https://sockswhip.com/wp-content/uploads/2026/11/hybrido-enchufable-banner-portada.webp') right 27% / cover no-repeat;
}
body.term-hybrido .term-description p {margin:0 0 10px; max-width:390px;}
body.term-hybrido .term-description p:last-child {margin-bottom:0;}
body.term-hybrido .term-description strong {display:block;font-size:clamp(28px,4.4vw,62px);font-weight:900;line-height:.98;color:#f4d347;max-width:7.7em;}
body.term-hybrido .term-description a {display:inline-block;padding:9px 14px;border-radius:6px;background:#f4d347;color:#161610;font-weight:800;}
body.term-hybrido .term-description a:hover {background:#ffe573;}
body.term-hybrido .shop-container > .whip-pack-progress {display:none;}
body.term-hybrido #whip-pack-products {display:block;scroll-margin-top:115px;}
body.term-hybrido .shop-container > .products {row-gap:10px;}
body.term-hybrido .shop-container > .products > .product-small .col-inner {height:100%;border:1px solid #e6e6e1;border-radius:14px;overflow:hidden;background:#fff;}
body.term-hybrido .shop-container > .products .box-text {padding:12px 12px 15px;}
body.term-hybrido .shop-container > .products .name a {font-weight:700;line-height:1.3;}
@media (min-width:850px) {body.term-hybrido .shop-container > .products > .product-small {flex-basis:33.3333%;max-width:33.3333%;}}
@media (max-width:849px) {body.term-hybrido .shop-container > .products > .product-small {flex-basis:50%;max-width:50%;}}

/* Categoría Mochilas Whip Tactical */
body.term-whip-tactical .shop-container > .term-description {
  display:flex; flex-direction:column; justify-content:flex-end; min-height:clamp(295px,37vw,455px);
  padding:clamp(21px,4vw,48px); margin:0 0 26px; border-radius:18px; color:#fff;
  background:linear-gradient(0deg,rgba(15,16,13,.92),transparent 71%),linear-gradient(90deg,rgba(15,16,13,.86),transparent 82%),#272a21 url('https://sockswhip.com/wp-content/uploads/2026/11/mochilas-whip-tactical-portada.webp') right 48% / cover no-repeat;
}
body.term-whip-tactical .term-description h1 {font-size:clamp(32px,4.5vw,60px);line-height:1.02;font-weight:900;color:#fff;max-width:9em;margin:0 0 10px;}
body.term-whip-tactical .term-description p {color:#f6f3ec;max-width:360px;margin:0 0 12px;}
body.term-whip-tactical .term-description p:last-child {margin-bottom:0;}
body.term-whip-tactical .term-description a {display:inline-block;padding:9px 16px;border-radius:7px;background:#ece2bd;color:#24261d;font-weight:800;}
body.term-whip-tactical .term-description a:hover {background:#fff5d5;}
body.term-whip-tactical .shop-container > .whip-pack-progress {display:none;}
body.term-whip-tactical #whip-pack-products {display:block;scroll-margin-top:115px;}
body.term-whip-tactical .shop-container > .products {row-gap:6px;}
body.term-whip-tactical .shop-container > .products > .product-small > .col-inner {height:100%;border:1px solid #e7e8e2;border-radius:14px;overflow:hidden;background:#fff;}
body.term-whip-tactical .shop-container > .products .box-image {padding:10px;}
body.term-whip-tactical .shop-container > .products .box-text {padding:12px 13px 15px;}
body.term-whip-tactical .shop-container > .products .name a {font-weight:750;line-height:1.3;color:#24261d;}
body.term-whip-tactical .shop-container > .products .out-of-stock-label {top:10px;left:10px;right:auto;width:auto;padding:4px 8px;border-radius:100px;background:#282a23;color:#fff;font-size:.69rem;text-transform:none;}
@media (min-width:850px) {body.term-whip-tactical .shop-container > .products > .product-small {flex-basis:33.3333%;max-width:33.3333%;}}
@media (max-width:849px) {body.term-whip-tactical .shop-container > .products > .product-small {flex-basis:50%;max-width:50%;}}

/* Marca Mil-Tec en la cabecera de Mochilas */
body.term-whip-tactical .shop-container > .term-description::before {content:url('https://sockswhip.com/wp-content/uploads/2026/11/logo-mil-tec-oficial.png') / 'Mil-Tec';display:block;align-self:flex-start;line-height:0;padding:8px 10px;margin:0 0 12px;border-radius:6px;background:#fff;}

/* Reserva espacio para las fotos de Mochilas */
body.term-whip-tactical .shop-container > .products .box-image {position:relative;padding:0;aspect-ratio:5 / 4;}
body.term-whip-tactical .shop-container > .products .box-image img {object-fit:contain;}

body.term-whip-tactical .shop-container > .products .box-image img {width:100%;height:100%;max-height:100%;object-fit:contain;}

/* Cabecera Mil-Tec en el box */
body.term-whip-tactical .shop-container > .term-description {
  background-image:linear-gradient(0deg,rgba(15,16,13,.88),transparent 72%),linear-gradient(90deg,rgba(15,16,13,.76),transparent 81%),url('https://sockswhip.com/wp-content/uploads/2026/11/mochilas-miltec-parche-bordado-otra-tienda.webp');
}
body.term-whip-tactical .shop-container > .term-description::before {
  content:'' / 'MIL-TEC®';display:block;width:clamp(125px,16vw,185px);aspect-ratio:641 / 112;padding:0;margin:0 0 12px;border-radius:0;
  background:transparent url('https://sockswhip.com/wp-content/uploads/2026/11/logo-mil-tec-blanco.png') left center / contain no-repeat;
}

/* Cabecera compacta de packs en la portada */
body.home .whip-packs .whip-packs-intro {display:block;min-height:0;padding:0;margin:0 0 14px;text-align:center;}
body.home .whip-packs-intro .whip-pack-mascot,body.home .whip-packs-intro .whip-packs-eyebrow,body.home .whip-packs-intro > div > p,body.home .whip-packs-intro h2 br {display:none;}
body.home .whip-packs-intro h2 {margin:0 0 7px;font-size:clamp(23px,3vw,34px);line-height:1.15;}
body.home .whip-packs-intro h2 span {display:inline-block;margin-inline-start:.24em;}

/* Categoría Parches Whipsocks */
body.term-whip-parches .shop-container > .term-description {display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(290px,36vw,450px);padding:clamp(20px,4vw,46px);margin:0 0 25px;border-radius:18px;color:#fff;background:linear-gradient(0deg,rgba(18,17,17,.9),transparent 77%),linear-gradient(90deg,#171616d9,transparent 78%),#171616 url('https://sockswhip.com/wp-content/uploads/2026/11/parches-whipsocks-portada-lloreria-azul.webp') right center / cover no-repeat;}
body.term-whip-parches .term-description h1 {max-width:9em;margin:0 0 10px;color:#fff;font-size:clamp(32px,5vw,62px);line-height:1;font-weight:900;}
body.term-whip-parches .term-description p {max-width:325px;margin:0 0 12px;color:#fff;}
body.term-whip-parches .term-description p:last-child {margin-bottom:0;}
body.term-whip-parches .term-description a {display:inline-block;padding:9px 16px;border-radius:7px;background:#fff;color:#151515;font-weight:800;}
body.term-whip-parches .term-description a:hover {background:#e8eeec;}
body.term-whip-parches .shop-container > .whip-pack-progress {display:none;}
body.term-whip-parches #whip-pack-products {display:block;scroll-margin-top:115px;}
body.term-whip-parches .shop-container > .products {row-gap:7px;}
body.term-whip-parches .shop-container > .products > .product-small > .col-inner {height:100%;border:1px solid #e6e6e3;border-radius:13px;overflow:hidden;background:#fff;}
body.term-whip-parches .shop-container > .products > .product-small .box-image {aspect-ratio:5 / 4;position:relative;padding:0;}
body.term-whip-parches .shop-container > .products > .product-small .box-image img {object-fit:contain;}
body.term-whip-parches .shop-container > .products > .product-small .box-text {padding:12px 12px 15px;}
body.term-whip-parches .shop-container > .products > .product-small .name a {color:#242424;font-weight:750;line-height:1.3;}
body.term-whip-parches .shop-container > .products > .product-small .out-of-stock-label {top:10px;left:10px;right:auto;width:auto;padding:4px 8px;border-radius:30px;background:#252523;color:#fff;font-size:.69rem;text-transform:none;}
@media (min-width:850px) {body.term-whip-parches .shop-container > .products > .product-small {flex-basis:33.3333%;max-width:33.3333%;}}
@media (max-width:849px) {body.term-whip-parches .shop-container > .products > .product-small {flex-basis:50%;max-width:50%;}}

body.term-whip-parches .term-description > p:first-child > strong {display:block;max-width:9em;color:#fff;font-size:clamp(32px,5vw,62px);line-height:1;font-weight:900;}

/* Encuadre de las fotos originales de Parches */
body.term-whip-parches .shop-container > .products > .product-small .box-image {overflow:hidden;background:#fff;}
body.term-whip-parches .shop-container > .products > .product-small .box-image img {object-fit:contain;transform:scale(var(--whip-patch-photo-scale,1));transform-origin:center;}
body.term-whip-parches .shop-container > .products > .product-small:is(.post-5938,.post-5957,.post-5992,.post-5993,.post-5994,.post-5995,.post-5996,.post-6483,.post-7426) {--whip-patch-photo-scale:1.13;}
body.term-whip-parches .shop-container > .products > .product-small:is(.post-10235,.post-10236,.post-6328,.post-6442,.post-6503,.post-7758,.post-7837,.post-7842,.post-8421,.post-8824) {--whip-patch-photo-scale:1.42;}
body.term-whip-parches .shop-container > .products > .product-small:is(.post-6530,.post-6536,.post-6537,.post-6538,.post-6678,.post-7046,.post-7047,.post-7048,.post-7051,.post-7361,.post-7509) {--whip-patch-photo-scale:1.58;}
/* Las nuevas fotos de bordado ya vienen encuadradas */
body.term-whip-parches .shop-container > .products > .product-small .box-image img[src*="parche-bordado-catalogo-"] {transform:none;}

/* Catálogos de Parches y Mochilas a todo el ancho */
body:is(.term-whip-parches,.term-whip-tactical) .category-page-row > .col:has(#shop-sidebar) {display:none;}
body:is(.term-whip-parches,.term-whip-tactical) .category-page-row > .col:has(> .shop-container) {flex:0 0 100%;max-width:100%;}
body:is(.term-whip-parches,.term-whip-tactical) .category-filtering {display:none;}

/* Selecciones de portada: solo productos con existencias */
body.home .whip-home-instock > .row > .product-small:not(.instock),
body.home .whip-home-instock > .row > .product-small.instock:has(.out-of-stock-label),
body.home .whip-home-instock.whip-home-four > .row > .product-small:nth-child(n+5 of .product-small.instock:not(:has(.out-of-stock-label))),
body.home .whip-home-instock.whip-home-two > .row > .product-small:nth-child(n+3 of .product-small.instock:not(:has(.out-of-stock-label))) {display:none!important;}

.tax-product_cat.term-whip-tactical .post-5998 .box-image::after { content: "IMPERMEABLE"; position: absolute; bottom: 16px; right: 5px; transform: rotate(-15deg); z-index: 2; background: #ffdc29; color: #171717; border: 1px solid #171717; border-radius: 5px; padding: 5px 7px; font-size: clamp(10px, 1.4vw, 13px); font-weight: 900; line-height: 1.2; box-shadow: 0 2px 5px #0004; pointer-events: none; }
