/* =========================================================
   Needle Syndicate · Capa tienda ("oscuro clínico")
   Negro, hueso, bordes finos. Rojo SOLO en: botón de compra,
   precio en oferta y badges. Fotos sobre fondo limpio.
   ========================================================= */

/* Cabecera plana y fija, fuera de la escena 3D.
   En WordPress vive dentro de <header class="site-header"> (que es el sticky real,
   ver storefront-override.css); en los previews es sticky por sí misma. */
.ns-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 11, 10, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ns-line);
}
.ns-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--ns-space-4); min-height: 64px; }
.ns-header__brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.ns-header__mark { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 2px solid var(--ns-bone-30); display: grid; place-items: center; font: 700 11px var(--ns-font-body); letter-spacing: 0.04em; color: var(--ns-bone); }
.ns-header__logo { width: 34px; height: 34px; object-fit: contain; }
.ns-header__brand-name { font-family: var(--ns-font-display); font-size: 1.5rem; letter-spacing: 0.06em; color: #fff; white-space: nowrap; }
@media (max-width: 480px) { .ns-header__brand-name { font-size: 1.2rem; } }

.ns-header__nav { display: flex; }
.ns-header__menu { display: flex; gap: clamp(0.75rem, 2vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.ns-header__menu li { margin: 0; padding: 0; }
.ns-header__nav a { display: inline-block; font-size: var(--ns-text-xs); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ns-bone-60); padding: 0.5rem 0; border-bottom: 1px solid transparent; transition: color var(--ns-dur-fast), border-color var(--ns-dur-fast); }
.ns-header__nav a:hover, .ns-header__nav a[aria-current="page"], .ns-header__nav .current-menu-item > a { color: #fff; border-bottom-color: var(--ns-red); }

.ns-header__tools { display: flex; align-items: center; gap: var(--ns-space-3); }
.ns-header__cart { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; font-size: var(--ns-text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ns-bone); }
.ns-header__count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ns-red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0; }

/* Burger: solo en tablet y móvil. Las !important ganan al estilo de botón rojo de Storefront. */
.ns-header__burger { display: none; width: 44px; height: 44px; padding: 0; background: transparent !important; color: var(--ns-bone) !important; border: 1px solid var(--ns-bone-30) !important; border-radius: var(--ns-radius); box-shadow: none !important; cursor: pointer; }
.ns-header__burger-bar { position: relative; display: block; width: 18px; height: 2px; margin: 0 auto; background: currentColor; transition: background var(--ns-dur-fast); }
.ns-header__burger-bar::before, .ns-header__burger-bar::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform var(--ns-dur-fast) var(--ns-ease); }
.ns-header__burger-bar::before { top: -6px; }
.ns-header__burger-bar::after { top: 6px; }
.ns-header.is-open .ns-header__burger-bar { background: transparent; }
.ns-header.is-open .ns-header__burger-bar::before { transform: translateY(6px) rotate(45deg); }
.ns-header.is-open .ns-header__burger-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .ns-header__nav { display: none; }
  .ns-header__burger { display: inline-grid; place-items: center; }
  .ns-header.is-open .ns-header__nav { display: block; position: absolute; left: 0; right: 0; top: 100%; padding: var(--ns-space-2) var(--ns-gutter) var(--ns-space-4); background: var(--ns-black); border-bottom: 1px solid var(--ns-line); }
  .ns-header.is-open .ns-header__menu { flex-direction: column; gap: 0; }
  .ns-header.is-open .ns-header__nav a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--ns-line); }
}

/* Pie de página */
.ns-footer { padding-block: var(--ns-space-12) var(--ns-space-6); }
.ns-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--ns-space-8); }
.ns-footer__name { font-family: var(--ns-font-display); font-size: 1.6rem; letter-spacing: 0.06em; color: #fff; }
.ns-footer__tagline, .ns-footer__trust p { margin: 0.5rem 0 0; font-size: var(--ns-text-sm); color: var(--ns-bone-60); line-height: 1.5; }
.ns-footer__trust strong { color: var(--ns-bone); }
.ns-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ns-footer__menu li { margin: 0; }
.ns-footer__menu a { font-size: var(--ns-text-xs); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ns-bone-60); }
.ns-footer__menu a:hover { color: #fff; }
.ns-footer__legal { margin: var(--ns-space-8) 0 0; padding-top: var(--ns-space-4); border-top: 1px solid var(--ns-line); font-size: var(--ns-text-xs); color: var(--ns-bone-60); }
@media (max-width: 1023px) { .ns-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px)  { .ns-footer__grid { grid-template-columns: 1fr; gap: var(--ns-space-6); } }

/* Tarjetas de producto (WooCommerce ul.products) */
.ns-shelf ul.products, .woocommerce ul.products {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ns-space-4);
  margin: 0; padding: 0; list-style: none;
}
@media (max-width: 1023px) { .ns-shelf ul.products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .ns-shelf ul.products, .woocommerce ul.products { gap: var(--ns-space-3); } }

.ns-shelf ul.products li.product, .woocommerce ul.products li.product, .ns-card {
  width: auto !important; margin: 0 !important; float: none !important;
  background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: var(--ns-radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--ns-dur-fast), transform var(--ns-dur) var(--ns-ease), box-shadow var(--ns-dur);
}
.ns-shelf ul.products li.product:hover, .woocommerce ul.products li.product:hover, .ns-card:hover {
  border-color: var(--ns-bone-30); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.ns-card__media, .woocommerce ul.products li.product a img { aspect-ratio: 1; width: 100%; object-fit: cover; background: #0b0908; margin: 0; }
.ns-card__body, .woocommerce ul.products li.product .woocommerce-loop-product__title { padding: var(--ns-space-3) var(--ns-space-4) 0; }
.ns-card__name, .woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0; font: 500 var(--ns-text-sm) var(--ns-font-body); color: var(--ns-bone); }
.ns-card__price, .woocommerce ul.products li.product .price { display: block; padding: 0.25rem var(--ns-space-4) var(--ns-space-4); font-size: var(--ns-text-sm); color: var(--ns-bone-60); }
.woocommerce ul.products li.product .price ins { color: var(--ns-red); text-decoration: none; font-weight: 700; }
.ns-card__badge, .woocommerce ul.products li.product .onsale {
  position: absolute; top: 10px; left: 10px; margin: 0; min-height: 0; line-height: 1; padding: 0.35rem 0.5rem; border-radius: 2px;
  background: var(--ns-red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.ns-card { position: relative; }
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product .button, .ns-card .ns-btn { margin: 0 var(--ns-space-4) var(--ns-space-4); }
.woocommerce ul.products li.product .button { background: transparent; color: var(--ns-bone); border: 1px solid var(--ns-bone-30); border-radius: var(--ns-radius); font-size: var(--ns-text-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.woocommerce ul.products li.product .button:hover { border-color: var(--ns-red); color: #fff; }

/* Franja de confianza (fuera de la sala, solo verdades) */
.ns-trust { border-top: 1px solid var(--ns-line); border-bottom: 1px solid var(--ns-line); background: var(--ns-black); }
.ns-trust__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ns-space-4); padding-block: var(--ns-space-6); }
.ns-trust__item { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--ns-text-sm); color: var(--ns-bone-60); }
.ns-trust__item strong { display: block; color: var(--ns-bone); font-weight: 600; letter-spacing: 0.04em; }
.ns-trust__dot { flex: none; width: 8px; height: 8px; margin-top: 0.45rem; background: var(--ns-red); box-shadow: 0 0 10px rgba(255, 31, 74, 0.6); }
@media (max-width: 1023px) { .ns-trust__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .ns-trust__inner { grid-template-columns: 1fr; } }

/* Checkout: consentimiento de firma, legible y con foco claro */
.ns-signature-consent { margin: var(--ns-space-4) 0; padding: var(--ns-space-4); border: 1px solid var(--ns-red); border-radius: var(--ns-radius); background: rgba(200, 16, 46, 0.06); }
.ns-signature-consent label { font-size: var(--ns-text-sm); line-height: 1.5; }
.ns-signature-notice { padding: var(--ns-space-3) var(--ns-space-4); border-left: 3px solid var(--ns-red); background: var(--ns-surface); }
