/*
Theme Name:  Fastty
Theme URI:   https://fastty.pe
Author:      Franco Alarcón
Author URI:  https://agenciadiv.com
Description: Tema a medida para Fastty — marketplace multi-vendor sobre WooCommerce + Dokan Pro. Desarrollado por Huella Agencia Digital.
Version:     3.1.6
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
WC requires at least: 8.0
WC tested up to: 11.2
License:     Propietario — todos los derechos reservados, Huella Agencia Digital
Text Domain: fastty
Tags:        woocommerce, dokan, marketplace, multivendor, custom
*/

/* ============================================================
   VARIABLES GLOBALES — paleta, tipografía, espaciado
   ============================================================ */
:root {
  /* ── Paleta principal Fastty ───────────────────────────── */
  /* Primario: Azul/Violeta Eléctrico */
  --color-primary:        #4D12F1;
  --color-primary-dark:   #3810E2;
  --color-primary-light:  #EDE8FE;
  --color-primary-xlight: #F5F2FF;

  /* Secundario: Amarillo Vibrante */
  --color-secondary:      #FFD000;
  --color-secondary-dark: #FFB800;

  /* Acento: Naranja Cítrico */
  --color-accent:         #FF7A00;

  /* Texto y fondos */
  --color-text:           #0B0F26;
  --color-text-secondary: #3D4166;
  --color-text-deep:      #0F172A;   /* S6 — Deep Navy */
  --color-surface:        #F8F9FA;   /* S6 — Surface Gray */
  --color-border:         #E0E2EF;
  --color-white:          #ffffff;
  --color-bg:             #F8F9FD;

  /* Estados */
  --color-error:          #c0392b;
  --color-success:        #1A8552;
  --color-warning:        #FF7A00;

  /* Tipografía */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Escala tipográfica */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 0.9375rem; /* S6 — 15px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  1.875rem;  /* 30px */
  --text-3xl:  2.25rem;   /* 36px */
  --text-4xl:  3rem;      /* 48px */
  --text-5xl:  3.75rem;   /* 60px */

  /* Espaciado */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Layout */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;
  --container-2xl: 1440px;

  /* Bordes y sombras */
  --radius-sm:  0.25rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(77, 18, 241, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(77, 18, 241, 0.10), 0 2px 4px -1px rgba(77, 18, 241, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(77, 18, 241, 0.10), 0 4px 6px -2px rgba(77, 18, 241, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(77, 18, 241, 0.10), 0 10px 10px -5px rgba(77, 18, 241, 0.04);

  /* Transiciones */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Header (mobile: solo main bar sin topbar) */
  --header-height: 72px;
}

/* En desktop ≥1024px el header completo incluye main bar + nav (topbar oculta) */
@media (min-width: 1024px) {
  :root {
    --header-height: 114px;
  }
}

/* ============================================================
   DARK MODE — override de variables
   ============================================================ */
/* ============================================================
   RESET Y BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  font-weight: 600;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
