/*
Theme Name: Tienda TCG Child
Template: astra
Version: 1.0.1
Description: Tema hijo para la tienda de cartas
*/

:root {
  --pk-bg: #0f1226;
  --pk-card: #1a1f3d;
  --pk-yellow: #ffcb05;
  --pk-blue: #3b4cca;
  --pk-text: #e8eaf6;
  --pk-muted: #9aa0c3;
  --pk-line: rgba(255, 255, 255, 0.1);
}

/* ---------- Base ---------- */
body,
.ast-separate-container,
.ast-page-builder-template {
  background: var(--pk-bg) !important;
  color: var(--pk-text);
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .woocommerce-loop-product__title {
  font-family: 'Rajdhani', sans-serif;
  color: #fff;
  letter-spacing: 0.5px;
}

a { color: var(--pk-yellow); }
a:hover { color: #fff; }

/* ---------- Cabecera y pie ---------- */
.site-header,
.main-header-bar,
.ast-primary-header-bar {
  background: var(--pk-card) !important;
  border-bottom: 3px solid var(--pk-yellow) !important;
}

.site-title a,
.main-header-menu a,
.ast-site-identity a { color: #fff !important; }

.main-header-menu a:hover,
.main-header-menu .current-menu-item > a { color: var(--pk-yellow) !important; }

.site-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; }

.site-footer,
.site-below-footer-wrap,
.site-primary-footer-wrap {
  background: var(--pk-card) !important;
  color: var(--pk-muted);
  border-top: 1px solid var(--pk-line);
}

/* ---------- Botones ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.wp-block-button__link,
button.single_add_to_cart_button {
  background: var(--pk-yellow) !important;
  color: #1a1a1a !important;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wp-block-button__link:hover,
button.single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 203, 5, 0.35);
}

/* ---------- Formularios ---------- */
select,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
textarea {
  background: var(--pk-card) !important;
  color: var(--pk-text) !important;
  border: 1px solid var(--pk-line) !important;
  border-radius: 8px;
}

/* ---------- Tarjetas de producto ---------- */
.woocommerce ul.products li.product {
  position: relative;
  overflow: hidden;
  background: var(--pk-card);
  border: 1px solid var(--pk-line);
  border-radius: 16px;
  padding: 14px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-8px);
  border-color: var(--pk-yellow);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

/* Efecto holográfico */
.woocommerce ul.products li.product::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 0, 150, 0.35) 35%,
    rgba(0, 200, 255, 0.35) 50%,
    rgba(255, 230, 0, 0.35) 65%,
    transparent 80%
  );
  background-size: 250% 250%;
  background-position: 100% 0;
  mix-blend-mode: color-dodge;
  transition: opacity 0.3s, background-position 0.7s;
}

.woocommerce ul.products li.product:hover::after {
  opacity: 1;
  background-position: 0 100%;
}

.woocommerce ul.products li.product img {
  border-radius: 10px;
  background: #fff;
}

.woocommerce-loop-product__title {
  font-size: 1.1rem !important;
  min-height: 2.6em;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
  color: var(--pk-yellow) !important;
  font-weight: 700;
  font-size: 1.15rem;
}

.ast-woo-product-category { color: var(--pk-muted) !important; }

/* ---------- Insignias de origen ---------- */
.badge-origen {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.badge-espana { background: #c60b1e; }
.badge-japon  { background: #bc002d; border: 1px solid #fff; }
.badge-corea  { background: #003478; }

/* ---------- Varios ---------- */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.woocommerce-result-count { color: var(--pk-muted) !important; }

.woocommerce span.onsale {
  background: var(--pk-blue);
  color: #fff;
  border-radius: 999px;
}
/* ---------- Portada ---------- */
.wp-block-cover {
  border-bottom: 3px solid var(--pk-yellow);
}

.wp-block-cover h1,
.wp-block-cover p {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.tarjeta-acceso {
  background: var(--pk-card);
  border: 1px solid var(--pk-line);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tarjeta-acceso:hover {
  transform: translateY(-6px);
  border-color: var(--pk-yellow);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.cuenta-atras {
  max-width: 700px;
  margin: 40px auto;
  padding: 28px;
  text-align: center;
  background: linear-gradient(135deg, var(--pk-blue), var(--pk-card));
  border: 2px solid var(--pk-yellow);
  border-radius: 20px;
}

.cuenta-atras h3 { margin-top: 0; }

#contador {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  color: #fff;
}

#contador span {
  display: inline-block;
  min-width: 2ch;
  margin-left: 12px;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pk-yellow);
}
