/*
Theme Name: King Store Panamá
Theme URI: https://kingstorepanama.com
Author: King Store Panamá
Author URI: https://kingstorepanama.com
Description: Tema oficial de King Store Panamá para WooCommerce. Idéntico al diseño moderno oscuro con acentos verde lima de la tienda: hero cinematográfico con imagen, barra superior, menú con categorías, tarjetas de producto con badges de oferta y «Top ventas», bloque de 3 pasos contra entrega, historia, testimonios, pie de página completo y soporte para WooCommerce y HPOS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 9.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kingstore
Tags: e-commerce, woocommerce, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* --------------------------------------------------------------------------
   1. Variables de diseño idénticas a Next.js (Tailwind neutral-950 + brand lime)
   -------------------------------------------------------------------------- */
:root {
  --color-brand-50: #f2fee5;
  --color-brand-100: #e2fcc4;
  --color-brand-200: #c8f88d;
  --color-brand-300: #a8ef4e;
  --color-brand-400: #8de01f;
  --color-brand-500: #6fc208;
  --color-brand-600: #529a04;
  --color-brand-700: #3e7407;
  --color-brand-800: #335c0c;
  --color-brand-900: #2b4d0e;

  --ks-bg: #0a0a0a;
  --ks-surface: rgba(23, 23, 23, 0.6);
  --ks-surface-solid: #171717;
  --ks-surface-card: #141414;
  --ks-border: rgba(255, 255, 255, 0.1);
  --ks-border-hover: rgba(168, 239, 78, 0.4);
  --ks-text: #f5f5f5;
  --ks-text-muted: #a3a3a3;
  --ks-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ks-radius-card: 16px;
  --ks-radius-btn: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ks-bg);
  color: var(--ks-text);
  font-family: var(--ks-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-brand-300); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-brand-200); }
h1, h2, h3, h4, h5, h6 { color: #ffffff; line-height: 1.15; margin: 0 0 .5em; font-weight: 900; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
::selection { background: var(--color-brand-300); color: #0a0f06; }

.ks-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.ks-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--color-brand-300); color: #0a0a0a; padding: 10px 16px; font-weight: 700;
}
.ks-skip-link:focus { left: 12px; top: 12px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* Patrón de cuadrícula tenue como en Next.js */
.grid-pattern {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* --------------------------------------------------------------------------
   2. Barra de anuncio superior (verde lima sólida con texto negro)
   -------------------------------------------------------------------------- */
.ks-announcement {
  background-color: var(--color-brand-300);
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   3. Cabecera sticky con desenfoque de fondo y logo vectorial
   -------------------------------------------------------------------------- */
.ks-header {
  position: sticky; top: 0; z-index: 50;
  background-color: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--ks-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ks-header-main {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0; min-height: 64px;
}
.ks-brand { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; text-decoration: none; }
.ks-brand:hover { color: #fff; }
.ks-brand svg { height: 44px; width: auto; display: block; }
.ks-brand img { max-height: 44px; width: auto; }

/* Navegación de escritorio */
.ks-nav { margin-left: 12px; display: flex; align-items: center; }
.ks-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.ks-nav li { position: relative; }
.ks-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: #d4d4d4; font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.ks-nav a:hover, .ks-nav .current-menu-item > a {
  background-color: rgba(255, 255, 255, 0.08); color: #ffffff;
}

/* Submenús */
.ks-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px; display: none;
  flex-direction: column; align-items: stretch; padding: 8px;
  background-color: #141414; border: 1px solid var(--ks-border); border-radius: 12px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .8);
}
.ks-nav li:hover > .sub-menu, .ks-nav li:focus-within > .sub-menu { display: flex; }
.ks-nav .sub-menu a { padding: 8px 12px; font-size: 13px; }

/* Buscador en cabecera */
.ks-header-search {
  margin-left: auto; max-width: 260px; width: 100%;
}
.ks-header-search form {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--ks-border); background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px; padding: 6px 12px;
}
.ks-header-search input[type="search"] {
  background: transparent; border: 0; outline: none; color: #fff;
  font-size: 13px; width: 100%; font-family: inherit;
}
.ks-header-search input::placeholder { color: #737373; }

/* Botón Carrito */
.ks-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ks-cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background-color: var(--color-brand-300); color: #0a0a0a;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 800;
  text-decoration: none; transition: background .15s ease;
}
.ks-cart-btn:hover { background-color: var(--color-brand-200); color: #0a0a0a; }
.ks-cart-count {
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background-color: #0a0a0a; color: var(--color-brand-300);
  font-size: 11px; font-weight: 900;
}
.ks-menu-toggle {
  display: none; background: transparent; border: 1px solid var(--ks-border);
  color: #fff; width: 38px; height: 38px; border-radius: 8px; font-size: 18px; cursor: pointer;
}

/* Sub-barra de categorías (chips de píldora con scroll horizontal) */
.ks-subnav {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 10px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.ks-subnav::-webkit-scrollbar { height: 4px; }
.ks-subnav::-webkit-scrollbar-thumb { background: #262626; border-radius: 999px; }
.ks-pill {
  white-space: nowrap; border-radius: 999px; border: 1px solid var(--ks-border);
  padding: 4px 12px; font-size: 12px; color: #d4d4d4; text-decoration: none;
  transition: border-color .15s ease, color .15s ease; flex-shrink: 0;
}
.ks-pill:hover { border-color: rgba(168, 239, 78, 0.6); color: var(--color-brand-200); }

/* Menú móvil desplegable */
.ks-mobile-drawer {
  display: none; border-top: 1px solid var(--ks-border); background-color: #0a0a0a;
  padding: 14px 20px;
}
.ks-mobile-drawer.is-open { display: block; }
.ks-mobile-drawer a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: #e5e5e5; font-size: 14px; font-weight: 500; text-decoration: none;
}
.ks-mobile-drawer a:hover { background-color: rgba(255, 255, 255, 0.05); }

/* --------------------------------------------------------------------------
   4. Hero cinematográfico con imagen, degradado oscuro y tarjeta de entrega
   -------------------------------------------------------------------------- */
.ks-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--ks-border);
  background-size: cover; background-position: center;
}
.ks-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, #0a0a0a 0%, rgba(10, 10, 10, 0.88) 55%, rgba(10, 10, 10, 0.35) 100%);
}
.ks-hero-pattern { position: absolute; inset: 0; opacity: 0.4; }
.ks-hero-grid {
  position: relative; display: grid; gap: 40px; align-items: center;
  padding: 68px 0 76px; grid-template-columns: 1.15fr 0.85fr;
}
.ks-badge-gold {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(168, 239, 78, 0.4); background-color: rgba(168, 239, 78, 0.1);
  color: var(--color-brand-200); font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.ks-hero h1 { margin: 18px 0 14px; color: #fff; }
.ks-hero h1 span.ks-highlight { color: var(--color-brand-300); }
.ks-hero p.ks-hero-sub { color: #d4d4d4; font-size: 17px; max-width: 580px; margin: 0 0 24px; }
.ks-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

/* Botones estilo Next.js */
.ks-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 800; font-size: 15px;
  border: 0; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.ks-btn:active { transform: scale(0.99); }
.ks-btn-primary { background-color: var(--color-brand-300); color: #0a0a0a; }
.ks-btn-primary:hover { background-color: var(--color-brand-200); color: #0a0a0a; }
.ks-btn-outline { border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; background: transparent; }
.ks-btn-outline:hover { background-color: rgba(255, 255, 255, 0.05); color: #ffffff; }

/* Estadísticas de confianza en el hero */
.ks-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 500px;
  padding-top: 22px; border-top: 1px solid var(--ks-border);
}
.ks-hero-stat strong { display: block; font-size: 1.8rem; font-weight: 900; color: var(--color-brand-300); line-height: 1; }
.ks-hero-stat span { font-size: 12px; color: var(--ks-text-muted); }

/* Tarjeta flotante de entrega a la derecha (desktop) */
.ks-delivery-summary {
  width: 100%; max-width: 360px; margin-left: auto;
  border: 1px solid var(--ks-border); background-color: rgba(23, 23, 23, 0.85);
  border-radius: var(--ks-radius-card); padding: 22px; backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.ks-delivery-summary h4 {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-brand-300); margin: 0 0 14px;
}
.ks-delivery-summary ul { list-style: none; margin: 0; padding: 0; }
.ks-delivery-summary li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #d4d4d4; padding: 6px 0;
}
.ks-delivery-summary li.ks-total {
  border-top: 1px solid var(--ks-border); padding-top: 12px; margin-top: 8px;
  font-size: 15px; font-weight: 900; color: #fff;
}
.ks-delivery-summary li.ks-total span:last-child { color: var(--color-brand-300); font-size: 18px; }
.ks-delivery-note {
  margin-top: 14px; background-color: rgba(255, 255, 255, 0.05); border-radius: 8px;
  padding: 10px 12px; font-size: 11px; color: var(--ks-text-muted); line-height: 1.45;
}

/* --------------------------------------------------------------------------
   5. Barra de beneficios (Trust bar)
   -------------------------------------------------------------------------- */
.ks-trust-bar {
  border-bottom: 1px solid var(--ks-border); background-color: rgba(23, 23, 23, 0.4);
  padding: 36px 0;
}
.ks-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ks-trust-item { display: flex; gap: 14px; align-items: flex-start; }
.ks-trust-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background-color: rgba(168, 239, 78, 0.15); font-size: 20px; flex-shrink: 0;
}
.ks-trust-item h3 { font-size: 14px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.ks-trust-item p { font-size: 12px; color: var(--ks-text-muted); margin: 0; line-height: 1.45; }

/* --------------------------------------------------------------------------
   6. Secciones generales y encabezados
   -------------------------------------------------------------------------- */
.ks-section { padding: 56px 0; }
.ks-section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 24px;
}
.ks-section-head h2 { margin: 0; color: #fff; }
.ks-section-head p { margin: 4px 0 0; color: var(--ks-text-muted); font-size: 14px; }
.ks-link-arrow { color: var(--color-brand-300); font-weight: 700; font-size: 13px; text-decoration: none; }
.ks-link-arrow:hover { color: var(--color-brand-200); }

/* --------------------------------------------------------------------------
   7. Rejilla de Departamentos (Suplementos, Tecnología, Herramientas, Belleza)
   -------------------------------------------------------------------------- */
.ks-departments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ks-dept-card {
  display: flex; flex-direction: column; padding: 22px; border-radius: var(--ks-radius-card);
  border: 1px solid var(--ks-border); background-color: var(--ks-surface);
  text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ks-dept-card:hover {
  transform: translateY(-2px); border-color: var(--ks-border-hover);
  background-color: #171717; box-shadow: 0 20px 40px -20px rgba(168, 239, 78, 0.25);
}
.ks-dept-emoji { font-size: 36px; line-height: 1; margin-bottom: 10px; }
.ks-dept-card h3 { font-size: 17px; font-weight: 900; color: #fff; margin: 0 0 4px; }
.ks-dept-card:hover h3 { color: var(--color-brand-200); }
.ks-dept-blurb { font-size: 12px; color: var(--ks-text-muted); margin: 0 0 12px; }
.ks-dept-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; margin-bottom: 12px; }
.ks-dept-chip {
  font-size: 11px; color: #d4d4d4; border: 1px solid var(--ks-border);
  border-radius: 999px; padding: 2px 8px; background-color: rgba(255, 255, 255, 0.03);
}
.ks-dept-footer { font-size: 11px; font-weight: 700; color: var(--color-brand-300); text-transform: uppercase; letter-spacing: .08em; }

/* --------------------------------------------------------------------------
   8. Tarjetas de Producto estilo Next.js (ProductCard)
   -------------------------------------------------------------------------- */
.woocommerce ul.products {
  display: grid !important; grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important; margin: 0 !important; padding: 0 !important; list-style: none !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product {
  width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important;
  background-color: var(--ks-surface) !important; border: 1px solid var(--ks-border) !important;
  border-radius: var(--ks-radius-card) !important; overflow: hidden !important;
  display: flex !important; flex-direction: column !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-2px) !important; border-color: var(--ks-border-hover) !important;
  box-shadow: 0 20px 50px -25px rgba(168, 239, 78, 0.35) !important;
}

/* Imagen de producto con zoom suave al hover */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: block; position: relative; overflow: hidden; background-color: #262626;
  text-decoration: none; aspect-ratio: 1 / 1;
}
.woocommerce ul.products li.product a img {
  width: 100% !important; height: 100% !important; object-fit: cover !important;
  margin: 0 !important; border-radius: 0 !important;
  transition: transform .5s cubic-bezier(.25, .8, .25, 1) !important;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.05) !important; }

/* Badges flotantes sobre la imagen */
.woocommerce span.onsale {
  position: absolute !important; top: 12px !important; left: 12px !important; right: auto !important;
  background-color: var(--color-brand-300) !important; color: #0a0a0a !important;
  font-size: 11px !important; font-weight: 900 !important; line-height: 1 !important;
  padding: 4px 8px !important; border-radius: 999px !important; min-height: 0 !important; min-width: 0 !important;
  margin: 0 !important; box-shadow: 0 4px 10px rgba(0, 0, 0, .4) !important;
}
.ks-tag-featured {
  position: absolute; top: 12px; left: 12px;
  background-color: rgba(10, 10, 10, 0.85); color: var(--color-brand-200);
  border: 1px solid rgba(168, 239, 78, 0.4); font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; line-height: 1; z-index: 2;
}
.woocommerce span.onsale + .ks-tag-featured { top: 38px; }

/* Contenido de la tarjeta de producto */
.ks-product-info {
  display: flex; flex-direction: column; flex: 1; padding: 16px; gap: 6px;
}
.ks-product-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #737373;
}
.ks-product-brand { color: var(--color-brand-300); font-weight: 700; }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #ffffff !important; font-size: 14px !important; font-weight: 700 !important;
  line-height: 1.35 !important; margin: 0 !important; padding: 0 !important;
  transition: color .15s ease;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title { color: var(--color-brand-200) !important; }

.ks-product-sub { font-size: 12px; color: var(--ks-text-muted); min-height: 18px; margin: 0; }

/* Precios */
.woocommerce ul.products li.product .price {
  color: #ffffff !important; font-size: 18px !important; font-weight: 900 !important;
  margin: 2px 0 0 !important; display: flex !important; align-items: baseline !important; gap: 8px !important;
}
.woocommerce ul.products li.product .price del { color: #737373 !important; font-size: 13px !important; font-weight: 500; }
.woocommerce ul.products li.product .price ins { text-decoration: none !important; color: #ffffff !important; font-weight: 900 !important; }

.ks-product-cod-badge {
  font-size: 11px; font-weight: 600; color: var(--color-brand-300); margin: 2px 0 6px;
}

/* Botón Añadir al carrito */
.woocommerce ul.products li.product .button {
  width: 100% !important; margin: auto 0 0 !important;
  background-color: var(--color-brand-300) !important; color: #0a0a0a !important;
  border-radius: var(--ks-radius-btn) !important; font-weight: 800 !important; font-size: 13px !important;
  padding: 10px 16px !important; text-align: center !important; text-decoration: none !important;
  transition: background .15s ease, transform .1s ease !important; border: 0 !important;
}
.woocommerce ul.products li.product .button:hover { background-color: var(--color-brand-200) !important; }
.woocommerce ul.products li.product .button:active { transform: scale(0.99) !important; }
.woocommerce ul.products li.product .added_to_cart {
  display: block; text-align: center; font-size: 12px; color: var(--color-brand-300); margin-top: 6px;
}

/* --------------------------------------------------------------------------
   9. Banner de 3 pasos contra entrega (degradado idéntico a Next.js)
   -------------------------------------------------------------------------- */
.ks-steps-banner {
  border-top: 1px solid var(--ks-border); border-bottom: 1px solid var(--ks-border);
  background: linear-gradient(135deg, rgba(43, 77, 14, 0.4) 0%, #171717 50%, #0a0a0a 100%);
  padding: 64px 0;
}
.ks-steps-head h2 { color: #fff; margin: 0 0 6px; }
.ks-steps-head p { color: #d4d4d4; font-size: 14px; max-width: 620px; margin: 0 0 28px; }
.ks-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ks-step-card {
  border: 1px solid var(--ks-border); background-color: rgba(10, 10, 10, 0.6);
  border-radius: var(--ks-radius-card); padding: 24px;
}
.ks-step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background-color: var(--color-brand-300); color: #0a0a0a; font-size: 18px; font-weight: 900;
  margin-bottom: 14px;
}
.ks-step-card h3 { font-size: 17px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.ks-step-card p { font-size: 13px; color: var(--ks-text-muted); margin: 0; line-height: 1.5; }

.ks-steps-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ks-steps-pill {
  border: 1px solid var(--ks-border); border-radius: 999px; padding: 5px 14px;
  font-size: 12px; color: #d4d4d4;
}
.ks-steps-pill.ks-pill-highlight {
  border-color: rgba(168, 239, 78, 0.4); background-color: rgba(168, 239, 78, 0.1);
  color: var(--color-brand-200); font-weight: 700;
}

/* --------------------------------------------------------------------------
   10. Tarjeta de Nuestra Historia
   -------------------------------------------------------------------------- */
.ks-story-card {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px;
  border: 1px solid var(--ks-border); background-color: var(--ks-surface);
  overflow: hidden;
}
.ks-story-photo {
  background-size: cover; background-position: center; min-height: 280px;
}
.ks-story-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.ks-story-badge { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--color-brand-300); }
.ks-story-body h2 { margin: 10px 0 14px; color: #fff; font-size: 1.8rem; }
.ks-story-body p { font-size: 14px; color: #d4d4d4; line-height: 1.6; margin: 0 0 20px; }

/* --------------------------------------------------------------------------
   11. Testimonios
   -------------------------------------------------------------------------- */
.ks-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.ks-review-card {
  border: 1px solid var(--ks-border); background-color: var(--ks-surface);
  border-radius: var(--ks-radius-card); padding: 24px;
}
.ks-stars { color: var(--color-brand-300); font-size: 14px; letter-spacing: 2px; }
.ks-stars-gray { color: #525252; }
.ks-review-card blockquote { margin: 12px 0 16px; font-size: 14px; color: #e5e5e5; line-height: 1.55; }
.ks-review-card figcaption { font-size: 12px; color: var(--ks-text-muted); }
.ks-review-card strong { color: #fff; }

/* --------------------------------------------------------------------------
   12. Banner final CTA
   -------------------------------------------------------------------------- */
.ks-cta-box {
  border-radius: 24px; border: 1px solid rgba(168, 239, 78, 0.3);
  background-color: rgba(168, 239, 78, 0.1); padding: 48px 24px; text-align: center;
}
.ks-cta-box h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: #fff; margin: 0 0 10px; }
.ks-cta-box p { font-size: 15px; color: #d4d4d4; max-width: 580px; margin: 0 auto 20px; }

/* --------------------------------------------------------------------------
   13. Pie de página idéntico a Next.js (6 columnas + legal)
   -------------------------------------------------------------------------- */
.ks-footer {
  margin-top: 80px; border-top: 1px solid var(--ks-border);
  background-color: rgba(23, 23, 23, 0.6);
}
.ks-footer-main {
  display: grid; gap: 32px; grid-template-columns: 1.8fr repeat(4, 1fr) 1.4fr;
  padding: 56px 0 40px;
}
.ks-footer-col h3 {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-brand-300); margin: 0 0 14px;
}
.ks-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ks-footer-col li { font-size: 13px; color: var(--ks-text-muted); margin-bottom: 8px; line-height: 1.45; }
.ks-footer-col a { color: #d4d4d4; text-decoration: none; }
.ks-footer-col a:hover { color: var(--color-brand-200); }

.ks-footer-brand p { font-size: 13px; color: var(--ks-text-muted); margin-top: 14px; max-width: 320px; }
.ks-open-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  border-radius: 999px; border: 1px solid var(--ks-border); background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 12px; color: var(--color-brand-200); margin-top: 10px;
}
.ks-open-dot { width: 8px; height: 8px; border-radius: 999px; background-color: var(--color-brand-300); }

/* Fila de legal y políticas */
.ks-footer-bottom {
  border-top: 1px solid var(--ks-border); padding: 24px 0 36px;
  text-align: center; font-size: 12px; color: #737373; line-height: 1.6;
}
.ks-footer-bottom a { color: #a3a3a3; text-decoration: underline; }
.ks-footer-bottom a:hover { color: var(--color-brand-200); }

.ks-payment-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ks-payment-chip {
  border: 1px solid var(--ks-border); background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 700; color: #e5e5e5;
}

/* --------------------------------------------------------------------------
   14. Botón flotante de WhatsApp verde oficial
   -------------------------------------------------------------------------- */
.ks-whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background-color: #25D366; color: #ffffff; border-radius: 999px;
  padding: 12px 18px; font-weight: 800; font-size: 14px; text-decoration: none;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.6);
  transition: transform .18s ease;
}
.ks-whatsapp-float:hover { color: #ffffff; transform: scale(1.04); }

/* --------------------------------------------------------------------------
   15. Estilos de WooCommerce (Ficha de producto, Carrito, Checkout, Tienda)
   -------------------------------------------------------------------------- */
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering {
  color: var(--ks-text-muted); font-size: 13px; margin-bottom: 20px;
}
.woocommerce .woocommerce-ordering select {
  background-color: var(--ks-surface-card); border: 1px solid var(--ks-border);
  color: #fff; border-radius: 8px; padding: 8px 12px; outline: none; font-family: inherit;
}

/* Ficha de producto individual */
.woocommerce div.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px;
}
.woocommerce div.product div.images { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { border-radius: var(--ks-radius-card); border: 1px solid var(--ks-border); }
.woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .product_title { font-size: 2rem; color: #fff; margin-bottom: 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: #fff !important; font-size: 2rem !important; font-weight: 900 !important;
}
.woocommerce div.product p.price del { color: #737373; font-size: 1.1rem; }
.woocommerce div.product p.price ins { color: var(--color-brand-300); text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description {
  color: #d4d4d4; font-size: 14px; line-height: 1.6; border-top: 1px solid var(--ks-border);
  border-bottom: 1px solid var(--ks-border); padding: 14px 0; margin: 18px 0;
}
.woocommerce div.product form.cart { display: flex; gap: 10px; align-items: stretch; margin-top: 20px; }
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce div.product form.cart .quantity input.qty {
  background-color: var(--ks-surface-card); border: 1px solid var(--ks-border);
  color: #fff; border-radius: 8px; padding: 10px; font-weight: 800; height: 100%;
}
.woocommerce div.product form.cart button.single_add_to_cart_button {
  background-color: var(--color-brand-300) !important; color: #0a0a0a !important;
  border-radius: 10px !important; font-weight: 800 !important; font-size: 15px !important;
  padding: 13px 26px !important; flex: 1; border: 0 !important; cursor: pointer;
}
.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
  background-color: var(--color-brand-200) !important;
}
.woocommerce div.product .product_meta {
  font-size: 12px; color: var(--ks-text-muted); margin-top: 20px;
}
.woocommerce div.product .product_meta a { color: var(--color-brand-300); }

/* Pestañas de producto */
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 40px; border-top: 1px solid var(--ks-border); padding-top: 30px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--ks-border) !important; display: flex !important; gap: 8px !important;
  list-style: none !important; margin: 0 0 20px !important; padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important; border: 0 !important; border-radius: 8px 8px 0 0 !important;
  margin: 0 !important; padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block; padding: 10px 16px; color: #a3a3a3 !important; font-weight: 700;
  font-size: 14px; text-decoration: none; border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--color-brand-300) !important; border-bottom-color: var(--color-brand-300);
}
.woocommerce div.product .woocommerce-tabs .panel { color: #d4d4d4; font-size: 14px; line-height: 1.6; }

/* Carrito y Checkout */
.woocommerce table.shop_table {
  background-color: var(--ks-surface); border: 1px solid var(--ks-border);
  border-radius: var(--ks-radius-card); color: var(--ks-text); border-collapse: separate;
  border-spacing: 0; width: 100%;
}
.woocommerce table.shop_table th {
  color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  padding: 14px; border-bottom: 1px solid var(--ks-border); background-color: rgba(255, 255, 255, 0.03);
}
.woocommerce table.shop_table td {
  padding: 14px; border-bottom: 1px solid var(--ks-border); color: #d4d4d4;
}
.woocommerce table.shop_table td.product-name a { color: #fff; font-weight: 700; }
.woocommerce .cart-collaterals .cart_totals {
  background-color: var(--ks-surface); border: 1px solid var(--ks-border);
  border-radius: var(--ks-radius-card); padding: 24px; color: #fff;
}
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 18px; margin: 0 0 16px; color: #fff; }

.woocommerce-checkout #order_review {
  background-color: var(--ks-surface); border: 1px solid var(--ks-border);
  border-radius: var(--ks-radius-card); padding: 24px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
  background-color: rgba(255, 255, 255, 0.05) !important; border: 1px solid var(--ks-border) !important;
  color: #ffffff !important; border-radius: 8px !important; padding: 11px 12px !important;
  font-family: inherit !important; outline: none !important;
}
.woocommerce form .form-row input:focus, .woocommerce form .form-row textarea:focus {
  border-color: rgba(168, 239, 78, 0.6) !important; background-color: rgba(255, 255, 255, 0.08) !important;
}
.woocommerce form .form-row label { color: #d4d4d4; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background-color: #171717 !important; border: 1px solid var(--ks-border) !important;
  border-left: 4px solid var(--color-brand-300) !important; border-radius: 10px; color: #fff !important;
}

/* --------------------------------------------------------------------------
   16. Adaptabilidad (Responsive)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .ks-departments-grid { grid-template-columns: repeat(2, 1fr); }
  .ks-footer-main { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .ks-hero-grid { grid-template-columns: 1fr; padding: 48px 0; }
  .ks-delivery-summary { display: none; }
  .ks-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .ks-steps-grid { grid-template-columns: 1fr; }
  .ks-story-card { grid-template-columns: 1fr; }
  .ks-reviews-grid { grid-template-columns: 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .ks-nav, .ks-header-search { display: none; }
  .ks-menu-toggle { display: grid; place-items: center; }
  .ks-footer-main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .ks-departments-grid { grid-template-columns: 1fr; }
  .ks-trust-grid { grid-template-columns: 1fr; }
  .ks-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ks-hero-stat strong { font-size: 1.3rem; }
  .ks-footer-main { grid-template-columns: 1fr; }
  .ks-story-body { padding: 24px; }
}
