/*
Theme Name:   ZDPack Child
Theme URI:    https://zdpack.cl
Description:  Tema hijo de Blocksy para ZD Suministros — Joyería y Relojería
Author:       ZD Pack Distribución y Logística SpA
Author URI:   https://zdpack.cl
Template:     blocksy
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  zdpack-child
*/

/* ============================================================
   ZD SUMINISTROS — CHILD THEME STYLESHEET
   Blocksy Child · WooCommerce
   Fuentes: DM Serif Display (títulos) · Outfit (cuerpo)
   Paleta:  #9A7B3F (gold) · #0A0A0A (black) · #FFFFFF (white)
   Versión: 1.0.0 · Marzo 2026
============================================================ */

/* ── VARIABLES GLOBALES ────────────────────────────────── */
:root {
  --gold:          #9A7B3F;
  --gold-l:        #C4A265;
  --gold-pale:     rgba(154, 123, 63, .08);
  --gold-pale2:    rgba(154, 123, 63, .14);
  --zd-black:      #0A0A0A;
  --zd-ink:        #141414;
  --zd-g8:         #222222;
  --zd-g6:         #444444;
  --zd-g4:         #888888;
  --zd-g2:         #C8C8C8;
  --zd-g1:         #E8E8E8;
  --zd-g0:         #F5F5F5;
  --zd-white:      #FFFFFF;
  --zd-serif:      'DM Serif Display', Georgia, serif;
  --zd-sans:       'Outfit', system-ui, sans-serif;
  --zd-max:        1100px;
  --zd-rad:        14px;
  --zd-rad-lg:     20px;
  --zd-pad:        40px;
}

/* ── TIPOGRAFÍA BASE ───────────────────────────────────── */
body {
  font-family: var(--zd-sans);
  color: var(--zd-ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--zd-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h4, h5, h6 {
  font-family: var(--zd-sans);
  font-weight: 600;
  color: var(--zd-black);
}

p {
  font-family: var(--zd-sans);
  font-weight: 300;
  line-height: 1.8;
}

a {
  color: var(--gold);
  transition: color 0.18s ease;
}

a:hover {
  color: var(--gold-l);
}

/* ── BLOCKSY: OVERRIDE DE COLORES GLOBALES ─────────────── */
/* Estos sobreescriben las variables de Blocksy */
:root {
  --theme-palette-color-1: #9A7B3F;  /* gold — acento principal */
  --theme-palette-color-2: #0A0A0A;  /* black */
  --theme-palette-color-3: #C4A265;  /* gold claro */
  --theme-palette-color-4: #444444;  /* gris texto */
  --theme-palette-color-5: #888888;  /* gris medio */
  --theme-palette-color-6: #E8E8E8;  /* borde */
  --theme-palette-color-7: #F5F5F5;  /* fondo suave */
  --theme-palette-color-8: #FFFFFF;  /* blanco */
}

/* ── BLOCKSY: HEADER ───────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--zd-g1);
}

/* Logo en header */
.site-header .site-logo img {
  height: 36px;
  width: auto;
}

/* Nav links */
.ct-header-navigation .menu-item a {
  font-family: var(--zd-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--zd-g4);
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.ct-header-navigation .menu-item a:hover,
.ct-header-navigation .menu-item.current-menu-item > a {
  color: var(--zd-black);
}

/* Botón CTA del header */
.ct-header-navigation .menu-item.ct-button a,
.site-header .ct-button {
  font-family: var(--zd-sans);
  font-size: 12.5px;
  font-weight: 500;
  background: var(--zd-black);
  color: var(--zd-white);
  padding: 9px 22px;
  border-radius: 980px;
  border: none;
  transition: background 0.2s;
}

.ct-header-navigation .menu-item.ct-button a:hover,
.site-header .ct-button:hover {
  background: var(--gold);
  color: var(--zd-white);
}

/* ── BLOCKSY: FOOTER ───────────────────────────────────── */
.site-footer {
  background: #080808;
  color: rgba(255, 255, 255, 0.3);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.3);
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer .widget-title,
.site-footer h3 {
  font-family: var(--zd-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
}
/* ── FOOTER LINKS ── */
.ct-footer a,
.ct-footer .widget_nav_menu a,
.ct-footer .menu-item a,
.ct-footer li a {
  color: rgba(255,255,255,0.3) !important;
  text-decoration: none !important;
}

.ct-footer a:hover,
.ct-footer .widget_nav_menu a:hover,
.ct-footer .menu-item a:hover {
  color: rgba(255,255,255,0.8) !important;
}

.ct-footer p,
.ct-footer .textwidget,
.ct-footer .widget_text {
  color: rgba(255,255,255,0.3) !important;
}
.ct-footer .widget-title,
.ct-footer h3,
.ct-footer h4 {
  color: rgba(255,255,255,0.18) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-family: var(--zd-sans) !important;
}

/* ── WOOCOMMERCE: GENERAL ──────────────────────────────── */

/* Botones WooCommerce → estilo pill negro */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.woocommerce button.button.alt {
  font-family: var(--zd-sans);
  font-size: 13px;
  font-weight: 500;
  background: var(--zd-black);
  color: var(--zd-white);
  padding: 12px 28px;
  border-radius: 980px;
  border: none;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  text-decoration: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button.alt:hover {
  background: var(--gold);
  color: var(--zd-white);
}

/* Add to cart button */
.woocommerce .single_add_to_cart_button {
  font-size: 15px;
  padding: 16px 36px;
  width: 100%;
  text-align: center;
}

/* ── WOOCOMMERCE: FICHA DE PRODUCTO ────────────────────── */
.woocommerce div.product .product_title {
  font-family: var(--zd-serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--zd-black);
  margin-bottom: 12px;
}

/* Precio */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--zd-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--zd-black);
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  text-decoration: none;
  color: var(--zd-black);
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: var(--zd-g4);
  font-size: 22px;
}

/* Rating estrellas */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: var(--gold);
}

/* Tabs descripción / especificaciones */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--zd-g1);
  padding: 0;
  margin-bottom: 32px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--zd-black);
  background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--zd-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--zd-g4);
  padding: 14px 20px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--zd-black);
  font-weight: 500;
}

/* Tabla de atributos / especificaciones */
.woocommerce table.woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--zd-rad);
  overflow: hidden;
  border: 1px solid var(--zd-g1);
}

.woocommerce table.woocommerce-product-attributes th,
.woocommerce table.woocommerce-product-attributes td {
  font-family: var(--zd-sans);
  font-size: 13.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--zd-g1);
  vertical-align: middle;
}

.woocommerce table.woocommerce-product-attributes th {
  font-weight: 500;
  color: var(--zd-g6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 40%;
  background: var(--zd-g0);
}

.woocommerce table.woocommerce-product-attributes td {
  font-weight: 300;
  color: var(--zd-black);
}

.woocommerce table.woocommerce-product-attributes tr:last-child th,
.woocommerce table.woocommerce-product-attributes tr:last-child td {
  border-bottom: none;
}

/* Galería de imágenes */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  border-radius: var(--zd-rad);
  overflow: hidden;
  background: var(--zd-g0);
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: border-color 0.18s;
}

.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
  border-color: var(--gold);
}

/* ── WOOCOMMERCE: CARDS DE PRODUCTO (SHOP/CATEGORÍA) ───── */
.woocommerce ul.products li.product {
  background: var(--zd-white);
  border-radius: var(--zd-rad);
  border: 1px solid transparent;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.22s, box-shadow 0.22s;
}

.woocommerce ul.products li.product:hover {
  border-color: rgba(154, 123, 63, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link img {
  height: 200px;
  object-fit: cover;
  background: var(--zd-g0);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--zd-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--zd-black);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.woocommerce ul.products li.product .price {
  font-family: var(--zd-serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--zd-black);
}

/* Badge de venta */
.woocommerce ul.products li.product .onsale,
.woocommerce div.product span.onsale {
  font-family: var(--zd-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: white;
  border-radius: 980px;
  padding: 4px 12px;
  top: 12px;
  left: 12px;
  min-width: auto;
  min-height: auto;
  line-height: 1.4;
}

/* ── WOOCOMMERCE: CHECKOUT ─────────────────────────────── */
.woocommerce-checkout h3,
.woocommerce-checkout h2 {
  font-family: var(--zd-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  font-family: var(--zd-sans);
  font-size: 14px;
  font-weight: 400;
  border: 1.5px solid var(--zd-g1);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.18s;
  color: var(--zd-black);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(154, 123, 63, 0.1);
}

/* ── WOOCOMMERCE: CARRITO ──────────────────────────────── */
.woocommerce-cart table.cart th {
  font-family: var(--zd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zd-g4);
}

.woocommerce-cart .cart_totals h2 {
  font-family: var(--zd-serif);
  font-size: 22px;
  font-weight: 400;
}

/* ── WOOCOMMERCE: MENSAJES Y NOTIFICACIONES ────────────── */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--gold);
  font-family: var(--zd-sans);
}

.woocommerce-message::before {
  color: var(--gold);
}

/* ── UTILITARIOS GLOBALES ──────────────────────────────── */

/* Pill buttons reutilizables */
.zd-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--zd-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.zd-pill-dark { background: var(--zd-black); color: var(--zd-white); }
.zd-pill-dark:hover { background: var(--gold); color: var(--zd-white); }
.zd-pill-gold { background: var(--gold); color: var(--zd-white); }
.zd-pill-gold:hover { background: var(--gold-l); color: var(--zd-white); }
.zd-pill-ghost { background: transparent; color: var(--zd-g6); border: 1.5px solid var(--zd-g1); }
.zd-pill-ghost:hover { border-color: var(--zd-g4); color: var(--zd-black); }

/* WhatsApp flotante */
.zd-fwa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--zd-black);
  color: var(--zd-white);
  padding: 11px 20px 11px 12px;
  border-radius: 980px;
  font-family: var(--zd-sans);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  transition: all 0.22s;
}

.zd-fwa:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(154, 123, 63, 0.3);
}

.zd-fwa-icon {
  width: 28px;
  height: 28px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Trust ticker */
.zd-ticker {
  background: var(--gold);
  overflow: hidden;
  padding: 13px 0;
}

.zd-ticker-track {
  display: flex;
  animation: zd-ticker 28s linear infinite;
  width: max-content;
}

.zd-ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 40px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.zd-ticker-item:last-child { border-right: none; }
.zd-ticker-item strong { color: white; font-weight: 600; }

@keyframes zd-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sección eyebrow */
.zd-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --zd-pad: 20px; }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }

  .woocommerce div.product .product_title {
    font-size: 26px;
  }

  .woocommerce div.product p.price {
    font-size: 28px;
  }

  .zd-fwa span { display: none; }
  .zd-fwa {
    padding: 0;
    width: 52px;
    height: 52px;
    justify-content: center;
    border-radius: 50%;
  }
  .zd-fwa-icon {
    width: 52px;
    height: 52px;
  }
}
/* ── TICKER ── */
.zd-ticker-wrap {
  overflow: hidden;
  width: 100%;
  background: #9A7B3F;
  padding: 13px 0;
}

.zd-ticker-inner {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.zd-ticker-inner span {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: white;
  padding: 0 40px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.zd-ticker-inner span:last-child {
  border-right: none;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* ── TIENDA: CARDS ── */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--zd-sans) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--zd-black) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 10px 0 6px !important;
}

.woocommerce ul.products li.product .price {
  font-family: var(--zd-serif) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  color: var(--zd-black) !important;
  white-space: nowrap !important;
  display: block !important;
  position: static !important;
}

.woocommerce ul.products li.product {
  border-radius: 14px !important;
  border: 1px solid #E8E8E8 !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
  transition: transform .22s, box-shadow .22s !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 32px rgba(0,0,0,.07) !important;
  border-color: rgba(154,123,63,.25) !important;
}

.woocommerce ul.products li.product img {
  height: 200px !important;
  object-fit: contain !important;
  background: #F5F5F5 !important;
  padding: 16px !important;
}

.woocommerce ul.products li.product .button {
  font-family: 'Outfit', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  background: #0A0A0A !important;
  color: white !important;
  border-radius: 980px !important;
  padding: 9px 18px !important;
  border: none !important;
  transition: background .18s !important;
}

.woocommerce ul.products li.product .button:hover {
  background: #9A7B3F !important;
  color: white !important;
}

.woocommerce-products-header {
  padding: 32px 0 !important;
  min-height: auto !important;
}

.woocommerce-products-header__title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  color: #0A0A0A !important;
}