/* ==========================================================================
   ESTILOS GENERALES Y SISTEMA DE DISEÑO - TIENDA ROPA EUROPEA
   ========================================================================== */

:root {
  /* Paleta de Colores Inspirada en Moda Vintage y Europea */
  --color-primary: #1e293b;        /* Azul pizarra oscuro elegante */
  --color-primary-light: #334155;
  --color-accent: #c2410c;         /* Naranja terracota / óxido vintage */
  --color-accent-hover: #9a3412;
  --color-accent-soft: #ffedd5;    /* Fondo suave para badges */
  --color-success: #15803d;        /* Verde oliva / éxito */
  
  /* Tonos neutros */
  --bg-main: #f8fafc;              /* Fondo general limpio */
  --bg-surface: #ffffff;           /* Fondo de tarjetas y paneles */
  --bg-subtle: #f1f5f9;            /* Gris suave para bordes/fondos */
  --text-main: #0f172a;            /* Texto principal de alto contraste */
  --text-muted: #64748b;           /* Texto secundario */
  --text-light: #94a3b8;           /* Texto atenuado */
  --border-color: #e2e8f0;         /* Líneas divisorias finas */

  /* Tipografías y Espaciado */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Sombras suaves */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Transiciones */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reseteo básico y Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Contenedor centralizado */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Tipografía de Encabezados */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

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

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

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

/* Barra superior de anuncios (Top Bar) */
.top-bar {
  background-color: var(--color-primary);
  color: #f8fafc;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.top-bar span {
  color: #fdba74;
  font-weight: 700;
}

/* Cabecera Principal */
.header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.brand-badge {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

/* Buscador en la cabecera */
.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: none; /* Visible en pantallas medianas y grandes */
}

@media (min-width: 768px) {
  .search-box {
    display: block;
  }
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  background-color: var(--bg-surface);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Acciones de cabecera */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-button:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
}

.cart-counter {
  background-color: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pie de página (Footer) */
.footer {
  margin-top: auto;
  background-color: var(--color-primary);
  color: #cbd5e1;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  color: var(--text-light);
}
