/* ==========================================================
   Lo que styles.css no cubre: tienda sin productos, galería de la
   ficha, y carrito, checkout y Mi cuenta de WooCommerce con los
   mismos colores y botones de la web.
   ========================================================== */

/* WordPress le pone ancho y alto a las fotos: aquí manda la proporción de styles.css. */
.card .media img { height: auto; }

/* Guía de tallas apagada en Ajustes NSPD: la sección de Ayuda y su botón no se muestran. */
.sin-guia-tallas #tallas,
.sin-guia-tallas .page-nav a[href="#tallas"] { display: none; }

/* Tienda o categoría sin productos */
.catalog-vacio { max-width: 520px; margin: 24px auto 64px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.catalog-vacio h2 { margin: 0; font-weight: 800; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -.01em; }
.catalog-vacio p { margin: 0; max-width: 42ch; }
.catalog-vacio-estrella { display: inline-flex; color: var(--accent, var(--nspd-primary)); }

/* Próximamente */
.proximamente { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.proximamente .brand-logos { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 16px; }
.proximamente .brand-logos img { width: auto; height: 96px; }
/* En celular los dos logos juntos no caben a 96 px: el de DarKocoa es muy ancho. */
@media (max-width: 480px) {
  .proximamente .brand-logos { gap: 16px; }
  .proximamente .brand-logos img { height: 64px; }
}

/* Ficha: varias fotos */
.product-galeria { min-width: 0; }
.product-fotos { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-block: 2px; }
.product-fotos button { flex: 0 0 72px; aspect-ratio: 3 / 4; padding: 0; border: 1px solid transparent; border-radius: 10px; background: none; overflow: hidden; cursor: pointer; }
.product-fotos button[aria-pressed="true"] { border-color: currentColor; }
.product-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-desc p { margin: 0 0 12px; }
.product-desc p:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .product-galeria { position: sticky; top: calc(var(--header-h) + 24px); }
  .product-galeria .product-media { position: relative; top: auto; }
}

/* Carrito, checkout y Mi cuenta */
.compra-page { max-width: 1100px; padding-block: 40px 96px; }
.compra-page > h1 { margin: 0 0 28px; font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.compra-page a:not(.btn) { color: inherit; }
.compra-page .wc-block-components-button:not(.is-link),
.compra-page .wc-block-cart__submit-button,
.compra-page .wc-block-components-checkout-place-order-button,
.compra-page .woocommerce-Button,
.compra-page button.button,
.compra-page a.button {
  min-height: 52px; padding: 12px 28px; border: 0; border-radius: 999px;
  background: var(--hub-accent); color: #fff; font-family: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s;
}
.compra-page .wc-block-components-button:not(.is-link):hover,
.compra-page button.button:hover,
.compra-page a.button:hover { background: var(--hub-accent-hover); color: #fff; }
.compra-page .wc-block-components-text-input input,
.compra-page .wc-block-components-textarea,
.compra-page .wc-block-components-combobox-control input,
.compra-page .wc-blocks-components-select__select,
.compra-page .woocommerce-Input,
.compra-page .input-text {
  border: 1px solid var(--hub-line); border-radius: 12px; background: #fff; color: var(--hub-ink); font-family: inherit;
}
.compra-page .wc-block-components-checkout-step__title,
.compra-page .wc-block-components-title { font-weight: 800; }

/* Página de gracias */
.gracias-whatsapp { margin: 0 0 28px; padding: 24px; border: 1px solid var(--hub-line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.gracias-whatsapp p { margin: 0; font-size: 17px; }
.woocommerce-order ul.order_details { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.woocommerce-order table { width: 100%; border-collapse: collapse; }
.woocommerce-order th, .woocommerce-order td { padding: 10px 8px; border-bottom: 1px solid var(--hub-line); text-align: left; }

/* Mi cuenta */
.password-input { display: block; }
.password-input input { width: 100%; }
.show-password-input { display: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 28px; }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 16px; border: 1px solid var(--hub-line); border-radius: 999px; text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--hub-accent); border-color: var(--hub-accent); color: #fff; }
.woocommerce-form-row, .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.woocommerce-form-row .input-text, .form-row .input-text { min-height: 48px; padding: 10px 14px; }
.woocommerce-error, .woocommerce-message, .woocommerce-info { list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--hub-line); }
