/* ─── WOOCOMMERCE — Overrides de marca Tecnophone ─── */

/* Botones */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt {
  background: var(--verde) !important;
  color: var(--negro) !important;
  font-family: var(--font-titulo) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all .22s ease !important;
  letter-spacing: 0.02em !important;
}
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover {
  background: var(--verde-suave) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(57,213,199,0.35) !important;
}

/* Precios */
.woocommerce .price,
.woocommerce .woocommerce-Price-amount {
  font-family: var(--font-titulo) !important;
  color: #1aada3 !important;
  font-weight: 800 !important;
}
.woocommerce del .woocommerce-Price-amount {
  color: #999 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}
.woocommerce ins {
  text-decoration: none !important;
}
.woocommerce del {
  opacity: 1 !important;
}

/* Cabeceras de páginas WC */
.woocommerce h1.entry-title,
.woocommerce h2.woocommerce-loop-product__title {
  font-family: var(--font-titulo) !important;
  font-weight: 800 !important;
  color: var(--negro) !important;
}

/* Mensajes de notificación */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--verde) !important;
}
.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--verde) !important;
}

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
  font-family: var(--font-titulo) !important;
  font-size: 0.78rem !important;
  color: var(--gris2) !important;
}

/* Star rating */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: var(--verde) !important;
}

/* Checkout fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  font-family: var(--font-cuerpo) !important;
  font-size: 0.9rem !important;
  transition: border-color .2s !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--verde) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(57,213,199,0.15) !important;
}

/* Order totals */
.woocommerce-checkout #payment {
  border-radius: 12px !important;
}
.woocommerce table.shop_table th {
  font-family: var(--font-titulo) !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

/* Single product */
.woocommerce div.product .product_title {
  font-family: var(--font-titulo) !important;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  font-weight: 800 !important;
  color: var(--negro) !important;
  line-height: 1.2 !important;
}
.woocommerce div.product p.price {
  font-size: 1.6rem !important;
}

/* Archive / shop grid */
.woocommerce ul.products li.product .woocommerce-product-gallery,
.woocommerce ul.products li.product .oferta-img,
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product a.woocommerce-loop-product__link img,
.woocommerce-placeholder,
img.woocommerce-placeholder {
  background: #222 !important;
  background-color: #222 !important;
}

/* Placeholder sin foto */
.woocommerce ul.products li.product a img.woocommerce-placeholder {
  filter: invert(0.8) opacity(0.3);
}

.woocommerce ul.products li.product {
  background: #1a1a1a !important;
  border: 1px solid rgba(57,213,199,0.15) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
  transition: all .25s !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
}
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════════════
   TIENDA MODERNA — buscador, filtros, toolbar
   ═══════════════════════════════════════════════════════════ */

.tcn-shop-page { padding-top: 72px; }

/* Cabecera */
.tcn-shop-hero { text-align: center; margin-bottom: 48px; }
.tcn-shop-subtitle {
  color: #888;
  font-size: 1rem;
  margin-top: 10px;
  font-family: var(--font-cuerpo);
}

/* ── Buscador ── */
.tcn-searchbar { margin-bottom: 28px; }
.tcn-searchbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: #161616;
  border: 1.5px solid rgba(57,213,199,0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.tcn-searchbar-inner:focus-within {
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(57,213,199,0.1);
}
.tcn-searchbar-icon {
  width: 20px;
  height: 20px;
  color: #555;
  flex-shrink: 0;
  margin-left: 20px;
}
.tcn-searchbar-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  padding: 18px 16px;
  min-width: 0;
}
.tcn-searchbar-input::placeholder { color: #555; }
.tcn-searchbar-input::-webkit-search-cancel-button { display: none; }
.tcn-searchbar-btn {
  background: var(--verde);
  border: none;
  width: 58px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.tcn-searchbar-btn svg { width: 20px; height: 20px; color: #000; }
.tcn-searchbar-btn:hover { background: #2ecec4; }

/* ── Pills de categoría ── */
.tcn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.tcn-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: #aaa;
  font-family: var(--font-titulo);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
}
.tcn-filter-pill:hover {
  border-color: var(--verde);
  color: var(--verde);
  background: rgba(57,213,199,0.07);
}
.tcn-filter-pill.active {
  background: var(--verde);
  border-color: var(--verde);
  color: #000;
}
.tcn-pill-icon { font-size: 0.88em; line-height: 1; }

/* ── Toolbar resultados + sort ── */
.tcn-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.tcn-toolbar-count {
  color: #666;
  font-size: 0.82rem;
  font-family: var(--font-titulo);
  letter-spacing: 0.02em;
}
/* Sort select estilizado */
.tcn-toolbar-sort form.woocommerce-ordering { margin: 0; }
.tcn-toolbar-sort select.orderby {
  background: #161616 !important;
  border: 1px solid rgba(57,213,199,0.2) !important;
  border-radius: 8px !important;
  color: #ccc !important;
  font-family: var(--font-titulo) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  padding: 9px 36px 9px 14px !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2339d5c7' d='M5 6L0 0h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  outline: none !important;
  transition: border-color .2s !important;
}
.tcn-toolbar-sort select.orderby:focus {
  border-color: var(--verde) !important;
  box-shadow: 0 0 0 3px rgba(57,213,199,0.12) !important;
}

/* ── Cards: estado Agotado ── */
.tcn-card-agotado .oferta-img { filter: grayscale(70%) opacity(0.55); }
.tcn-name-agotado { color: #777 !important; }
.tcn-precio-agotado { color: #666 !important; }
.tcn-badge-agotado {
  background: #3a3a3a !important;
  color: #888 !important;
  font-size: 0.72rem !important;
}
.tcn-badge-segunda {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
  font-size: 0.72rem !important;
}
.tcn-btn-consultar {
  background: transparent !important;
  border: 1px solid rgba(57,213,199,0.3) !important;
  color: var(--verde) !important;
  font-size: 0.78rem !important;
  padding: 8px 12px !important;
}
.tcn-btn-consultar:hover {
  background: rgba(57,213,199,0.08) !important;
  border-color: var(--verde) !important;
}

/* ── Paginación ── */
.tcn-pagination { text-align: center; margin-top: 40px; padding-bottom: 24px; }
.woocommerce nav.woocommerce-pagination ul {
  border: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: none !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: #1a1a1a !important;
  border: 1px solid rgba(57,213,199,0.15) !important;
  border-radius: 8px !important;
  color: #aaa !important;
  font-family: var(--font-titulo) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  min-width: 38px !important;
  transition: all .18s !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: rgba(57,213,199,0.08) !important;
  border-color: var(--verde) !important;
  color: var(--verde) !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--verde) !important;
  border-color: var(--verde) !important;
  color: #000 !important;
}

/* ── Sin resultados ── */
.tcn-no-results {
  text-align: center;
  padding: 80px 20px 120px;
  color: #777;
}
.tcn-no-results h3 {
  color: #ccc;
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  margin: 20px 0 8px;
}
.tcn-no-results p { margin-bottom: 24px; }
.tcn-no-results strong { color: var(--verde); }

/* ── Mobile ── */
@media (max-width: 640px) {
  .tcn-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(57,213,199,0.3) transparent;
  }
  .tcn-filters::-webkit-scrollbar { height: 3px; }
  .tcn-filters::-webkit-scrollbar-thumb { background: rgba(57,213,199,0.3); border-radius: 3px; }
  .tcn-searchbar-btn { width: 52px; min-height: 52px; }
  .tcn-toolbar { flex-direction: column; align-items: flex-start; }
}
