/*
Theme Name: Arte Andino Bricks Child
Theme URI: https://panamahut24.de
Description: Child theme de Bricks con luxury design system Arte Andino. Brand kit + tipografía Cormorant Garamond + paleta tierra refinada.
Author: Arte Andino (Vlady + Claude)
Author URI: https://arte-andino.de
Template: bricks
Version: 2.0.0
License: Proprietary
Text Domain: bricks-child
*/

/* ━━━ Loaded by enqueue in functions.php ━━━ */

/* ═══════════════════════════════════════════════════════════════
   ARTE ANDINO · BRICKS CHILD THEME v2.0 (Luxury Edition)
   Aplica en: panamahut24.de · panamahat24.com · panamahut.eu · sombrero24.es · arte-andino.de
   Inspirado en: Hermès, Loro Piana, Borsalino, Mr Porter, Aquazzura
   ═══════════════════════════════════════════════════════════════ */

/* ─── Fonts ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Lato:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables · Luxury Earth Palette ──────────────────── */
:root {
  /* Primary */
  --aa-terracota:        #b86945;
  --aa-terracota-light:  #d4906f;
  --aa-rust:             #8e4d2e;
  --aa-verde-andino:     #6b8a4f;
  --aa-verde-andino-dk:  #4a6238;

  /* Earth & cream */
  --aa-cream:            #f7f2e9;
  --aa-cream-warm:       #f0e8d8;
  --aa-stone:            #ddd5c5;
  --aa-clay:             #c4a586;
  --aa-sand:             #c9c3a1;

  /* Texto */
  --aa-charcoal:         #2c2520;
  --aa-ink:              #1a1612;
  --aa-text-muted:       #6b6258;

  /* Accents premium */
  --aa-gold:             #b89968;
  --aa-gold-dark:        #8a7245;

  /* Semantic */
  --aa-success: #5a8a4f;
  --aa-warning: #d4906f;
  --aa-error:   #b85040;
  --aa-info:    #6b8a9c;

  /* Neutros */
  --aa-white:    #ffffff;
  --aa-grey-50:  #faf9f6;
  --aa-grey-100: #f5f2ec;
  --aa-grey-200: #e8e3d6;
  --aa-grey-400: #999188;
  --aa-grey-600: #5c554c;
  --aa-grey-800: #2c2520;

  /* Typography sizes (mobile-first clamp) */
  --aa-h1: clamp(2rem, 5vw, 4rem);
  --aa-h2: clamp(1.5rem, 3.5vw, 2.75rem);
  --aa-h3: clamp(1.25rem, 2.5vw, 1.875rem);
  --aa-h4: clamp(1.125rem, 2vw, 1.5rem);
  --aa-body: clamp(0.95rem, 1.2vw, 1.0625rem);
  --aa-small: 0.875rem;
  --aa-tiny:  0.75rem;

  /* Font weights */
  --aa-w-light:    300;
  --aa-w-regular:  400;
  --aa-w-medium:   500;
  --aa-w-semibold: 600;
  --aa-w-bold:     700;

  /* Line heights */
  --aa-lh-tight:   1.15;
  --aa-lh-snug:    1.4;
  --aa-lh-normal:  1.7;
  --aa-lh-relaxed: 1.85;

  /* Spacing scale (generous luxury) */
  --aa-space-2xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --aa-space-xs:  clamp(0.5rem, 1vw, 0.75rem);
  --aa-space-sm:  clamp(0.75rem, 1.5vw, 1rem);
  --aa-space-md:  clamp(1rem, 2vw, 1.5rem);
  --aa-space-lg:  clamp(1.5rem, 3vw, 2.5rem);
  --aa-space-xl:  clamp(2rem, 4vw, 4rem);
  --aa-space-2xl: clamp(4rem, 8vw, 8rem);
  --aa-space-3xl: clamp(6rem, 12vw, 12rem);

  /* Layout */
  --aa-container-max: 1280px;
  --aa-container-padding: clamp(1rem, 3vw, 2rem);

  /* Radius (luxury usa poco/nada radius — pero algunos sí) */
  --aa-radius-none: 0;
  --aa-radius-sm:   2px;
  --aa-radius-md:   4px;
  --aa-radius-lg:   8px;
  --aa-radius-pill: 999px;

  /* Shadows (sutiles, luxury) */
  --aa-shadow-sm: 0 1px 2px rgba(28,22,18,0.04);
  --aa-shadow-md: 0 4px 16px rgba(28,22,18,0.06);
  --aa-shadow-lg: 0 12px 40px rgba(28,22,18,0.10);
  --aa-shadow-xl: 0 24px 64px rgba(28,22,18,0.14);

  /* Touch (mobile usability) */
  --aa-touch-min: 44px;

  /* Transitions (slow & elegant) */
  --aa-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --aa-duration-fast:  150ms;
  --aa-duration-base:  300ms;
  --aa-duration-slow:  500ms;
  --aa-duration-slower: 800ms;

  /* Z-index scale */
  --aa-z-base:    1;
  --aa-z-dropdown: 50;
  --aa-z-sticky:  100;
  --aa-z-overlay: 500;
  --aa-z-modal:   1000;
  --aa-z-toast:   1500;
}

/* ─── Base typography ───────────────────────────────────────── */
body {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  font-weight: var(--aa-w-light);
  font-size: var(--aa-body);
  line-height: var(--aa-lh-normal);
  color: var(--aa-charcoal);
  background: var(--aa-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.aa-heading {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: var(--aa-w-regular);
  color: var(--aa-ink);
  line-height: var(--aa-lh-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--aa-space-md);
}
h1, .aa-h1 { font-size: var(--aa-h1); }
h2, .aa-h2 { font-size: var(--aa-h2); }
h3, .aa-h3 { font-size: var(--aa-h3); }
h4, .aa-h4 { font-size: var(--aa-h4); }

.aa-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: var(--aa-tiny);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: var(--aa-w-medium);
  color: var(--aa-terracota);
  margin-bottom: var(--aa-space-sm);
}

.aa-editorial {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: var(--aa-w-light);
  color: var(--aa-charcoal);
}

p { margin: 0 0 var(--aa-space-md); }

a {
  color: var(--aa-terracota);
  text-decoration: none;
  transition: color var(--aa-duration-base) var(--aa-ease);
}
a:hover { color: var(--aa-rust); }

/* ─── Layout container ──────────────────────────────────────── */
.aa-container {
  max-width: var(--aa-container-max);
  margin-inline: auto;
  padding-inline: var(--aa-container-padding);
}
.aa-container--narrow { max-width: 880px; }
.aa-container--wide   { max-width: 1440px; }

.aa-section {
  padding-block: var(--aa-space-2xl);
}
.aa-section--large {
  padding-block: var(--aa-space-3xl);
}

/* ─── Buttons (luxury minimal) ───────────────────────────────── */
.aa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--aa-touch-min);
  padding: 0.875rem 2rem;
  font-family: 'Lato', sans-serif;
  font-size: var(--aa-small);
  font-weight: var(--aa-w-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--aa-radius-sm);
  cursor: pointer;
  transition: all var(--aa-duration-base) var(--aa-ease);
}
.aa-btn--primary {
  background: var(--aa-ink);
  color: var(--aa-white);
  border-color: var(--aa-ink);
}
.aa-btn--primary:hover {
  background: var(--aa-terracota);
  border-color: var(--aa-terracota);
  color: var(--aa-white);
}
.aa-btn--outline {
  background: transparent;
  color: var(--aa-ink);
  border-color: var(--aa-ink);
}
.aa-btn--outline:hover {
  background: var(--aa-ink);
  color: var(--aa-white);
}
.aa-btn--ghost {
  background: transparent;
  color: var(--aa-terracota);
  border-color: transparent;
}
.aa-btn--ghost:hover {
  color: var(--aa-rust);
  text-decoration: underline;
}
.aa-btn--full {
  width: 100%;
}

/* ─── Header ─────────────────────────────────────────────────── */
.aa-header {
  position: sticky;
  top: 0;
  z-index: var(--aa-z-sticky);
  background: var(--aa-white);
  border-bottom: 1px solid var(--aa-stone);
  transition: padding var(--aa-duration-base) var(--aa-ease),
              box-shadow var(--aa-duration-base) var(--aa-ease);
}
.aa-header.aa-header--scrolled {
  box-shadow: var(--aa-shadow-md);
}
.aa-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--aa-space-md);
}
.aa-logo img {
  height: 48px;
  width: auto;
  transition: height var(--aa-duration-base) var(--aa-ease);
}
.aa-header--scrolled .aa-logo img { height: 40px; }

.aa-nav {
  display: none;
  gap: var(--aa-space-lg);
}
@media (min-width: 1024px) {
  .aa-nav { display: flex; }
}
.aa-nav__link {
  font-family: 'Lato', sans-serif;
  font-size: var(--aa-small);
  font-weight: var(--aa-w-medium);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--aa-charcoal);
  position: relative;
  padding: 0.5rem 0;
}
.aa-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--aa-terracota);
  transition: width var(--aa-duration-base) var(--aa-ease);
}
.aa-nav__link:hover::after,
.aa-nav__link[aria-current="page"]::after { width: 100%; }
.aa-nav__link--premium { color: var(--aa-gold); }
.aa-nav__link--premium::before {
  content: '★';
  margin-right: 0.25rem;
  font-size: 0.7em;
}

.aa-header__icons {
  display: flex;
  gap: var(--aa-space-sm);
  align-items: center;
}
.aa-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--aa-touch-min);
  height: var(--aa-touch-min);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--aa-charcoal);
  transition: color var(--aa-duration-fast) var(--aa-ease);
}
.aa-icon-btn:hover { color: var(--aa-terracota); }
.aa-icon-btn[data-count]::after {
  content: attr(data-count);
  position: absolute;
  top: 0;
  right: 0;
  background: var(--aa-terracota);
  color: var(--aa-white);
  font-size: 10px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: var(--aa-w-bold);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.aa-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--aa-space-2xl);
  background: var(--aa-stone);
  overflow: hidden;
}
.aa-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.aa-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 20s linear;
}
.aa-hero:hover .aa-hero__bg img {
  transform: scale(1.05);
}
.aa-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,22,18,0.6) 0%, rgba(28,22,18,0.1) 60%, transparent 100%);
  z-index: 2;
}
.aa-hero__content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  color: var(--aa-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.aa-hero__editorial {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--aa-w-light);
  line-height: 1.3;
}

/* ─── Product card (luxury) ─────────────────────────────────── */
.aa-product-card {
  background: var(--aa-white);
  border-radius: var(--aa-radius-md);
  overflow: hidden;
  transition: transform var(--aa-duration-base) var(--aa-ease),
              box-shadow var(--aa-duration-base) var(--aa-ease);
}
.aa-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--aa-shadow-lg);
}
.aa-product-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--aa-stone);
}
.aa-product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--aa-duration-slow) var(--aa-ease);
}
.aa-product-card__img--secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.aa-product-card:hover .aa-product-card__img--secondary { opacity: 1; }
.aa-product-card__quickview {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(28,22,18,0.85);
  color: var(--aa-white);
  text-align: center;
  padding: 0.75rem;
  font-size: var(--aa-tiny);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transform: translateY(100%);
  transition: transform var(--aa-duration-base) var(--aa-ease);
  cursor: pointer;
}
.aa-product-card:hover .aa-product-card__quickview { transform: translateY(0); }

.aa-product-card__body {
  padding: var(--aa-space-md);
  text-align: center;
}
.aa-product-card__category {
  font-size: var(--aa-tiny);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--aa-text-muted);
  margin-bottom: 0.25rem;
}
.aa-product-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: var(--aa-w-medium);
  margin: 0 0 0.5rem;
  color: var(--aa-ink);
}
.aa-product-card__price {
  font-family: 'Lato', sans-serif;
  font-size: var(--aa-body);
  font-weight: var(--aa-w-medium);
  color: var(--aa-ink);
}
.aa-product-card__price-sale {
  color: var(--aa-terracota);
}
.aa-product-card__price-old {
  color: var(--aa-text-muted);
  text-decoration: line-through;
  margin-right: 0.5rem;
}
.aa-product-card__swatches {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.aa-product-card__swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--aa-stone);
}

/* ─── Filter chips ──────────────────────────────────────────── */
.aa-filter-bar {
  position: sticky;
  top: 72px;
  background: var(--aa-cream);
  border-block: 1px solid var(--aa-stone);
  padding-block: var(--aa-space-md);
  z-index: 90;
}
.aa-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--aa-white);
  border: 1px solid var(--aa-stone);
  border-radius: var(--aa-radius-pill);
  padding: 0.5rem 1rem;
  font-size: var(--aa-small);
  cursor: pointer;
  transition: all var(--aa-duration-fast) var(--aa-ease);
  min-height: var(--aa-touch-min);
}
.aa-filter-chip:hover {
  border-color: var(--aa-terracota);
  color: var(--aa-terracota);
}
.aa-filter-chip--active {
  background: var(--aa-ink);
  color: var(--aa-white);
  border-color: var(--aa-ink);
}
.aa-filter-chip__close {
  font-size: 1.2em;
  line-height: 1;
}

/* ─── Color swatches (PDP) ──────────────────────────────────── */
.aa-swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--aa-space-md) 0;
}
.aa-swatch {
  width: var(--aa-touch-min);
  height: var(--aa-touch-min);
  border-radius: 50%;
  border: 2px solid var(--aa-stone);
  cursor: pointer;
  transition: transform var(--aa-duration-fast) var(--aa-ease),
              border-color var(--aa-duration-fast) var(--aa-ease),
              box-shadow var(--aa-duration-fast) var(--aa-ease);
  background-size: cover;
  background-position: center;
}
.aa-swatch:hover { transform: scale(1.1); }
.aa-swatch[aria-selected="true"] {
  border-color: var(--aa-terracota);
  box-shadow: 0 0 0 3px rgba(184,105,69,0.2);
}
.aa-swatch[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  position: relative;
}
.aa-swatch[aria-disabled="true"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 47%, var(--aa-ink) 48%, var(--aa-ink) 52%, transparent 53%);
}

/* ─── Size buttons ──────────────────────────────────────────── */
.aa-size-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--aa-space-md) 0;
}
.aa-size-btn {
  min-width: var(--aa-touch-min);
  height: var(--aa-touch-min);
  padding: 0 var(--aa-space-md);
  background: var(--aa-white);
  border: 1px solid var(--aa-stone);
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: var(--aa-small);
  font-weight: var(--aa-w-medium);
  color: var(--aa-charcoal);
  transition: all var(--aa-duration-fast) var(--aa-ease);
  border-radius: var(--aa-radius-sm);
}
.aa-size-btn:hover {
  border-color: var(--aa-ink);
}
.aa-size-btn[aria-selected="true"] {
  background: var(--aa-ink);
  color: var(--aa-white);
  border-color: var(--aa-ink);
}
.aa-size-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ─── Footer ────────────────────────────────────────────────── */
.aa-footer {
  background: var(--aa-ink);
  color: var(--aa-cream);
  padding-block: var(--aa-space-2xl) var(--aa-space-md);
  margin-top: var(--aa-space-3xl);
}
.aa-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--aa-space-xl);
}
@media (min-width: 768px) {
  .aa-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .aa-footer__grid { grid-template-columns: repeat(4, 1fr); }
}
.aa-footer__col-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--aa-white);
  margin-bottom: var(--aa-space-md);
  font-weight: var(--aa-w-medium);
}
.aa-footer__link {
  display: block;
  color: var(--aa-stone);
  font-size: var(--aa-small);
  padding: 0.375rem 0;
  text-decoration: none;
  transition: color var(--aa-duration-fast) var(--aa-ease);
}
.aa-footer__link:hover { color: var(--aa-cream-warm); }

.aa-footer__bottom {
  margin-top: var(--aa-space-2xl);
  padding-top: var(--aa-space-md);
  border-top: 1px solid rgba(247,242,233,0.1);
  display: flex;
  flex-direction: column;
  gap: var(--aa-space-sm);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .aa-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.aa-footer__copyright {
  font-size: var(--aa-tiny);
  color: var(--aa-grey-400);
}
.aa-footer__trust-badges img {
  height: 24px;
  filter: brightness(0) invert(1) opacity(0.7);
  transition: filter var(--aa-duration-fast) var(--aa-ease);
}
.aa-footer__trust-badges img:hover {
  filter: brightness(0) invert(1) opacity(1);
}

/* ─── Animations on scroll (subtle) ──────────────────────────── */
.aa-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--aa-duration-slower) var(--aa-ease),
              transform var(--aa-duration-slower) var(--aa-ease);
}
.aa-fade-in.aa-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile menu drawer ─────────────────────────────────────── */
@media (max-width: 1023px) {
  .aa-nav { display: none; }
  .aa-hamburger { display: inline-flex; }
}
@media (min-width: 1024px) {
  .aa-hamburger { display: none; }
}

/* ─── Accessibility ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--aa-terracota);
  outline-offset: 2px;
  border-radius: var(--aa-radius-sm);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
