/* ====== CONTENEDOR PRINCIPAL DEL HEADER ====== */
.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: relative !important;
    min-height: 60px !important;
    gap: 15px !important;
    box-sizing: border-box !important;
}

/* ====== LOGO ====== */
.logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.logo-img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    display: block !important;
}

.brand-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.2rem !important;
    color: #000 !important;
    letter-spacing: 0.5px !important;
}

.brand-text .jeans {
    font-weight: 400 !important;
    font-size: 0.8rem !important;
    color: #8a1538 !important;
    margin-top: -2px !important;
}

/* ====== BOTÓN HAMBURGUESA ====== */
.hamburger {
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1001 !important;
    flex-shrink: 0 !important;
}

.hamburger-box {
    width: 24px !important;
    height: 18px !important;
    display: inline-block !important;
    position: relative !important;
}

.hamburger-inner {
    display: block !important;
    top: 50% !important;
    margin-top: -1px !important;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px !important;
    height: 2px !important;
    background-color: #333 !important;
    border-radius: 2px !important;
    position: absolute !important;
    transition: transform 0.15s ease !important;
}

.hamburger-inner::before {
    content: "" !important;
    top: -6px !important;
}

.hamburger-inner::after {
    content: "" !important;
    bottom: -6px !important;
}

/* Estado activo del hamburguesa */
.hamburger.active .hamburger-inner {
    transform: rotate(45deg) !important;
}

.hamburger.active .hamburger-inner::before {
    top: 0 !important;
    opacity: 0 !important;
}

.hamburger.active .hamburger-inner::after {
    bottom: 0 !important;
    transform: rotate(-90deg) !important;
}

/* ====== CONTENEDOR DERECHA (carrito, moneda, login) ====== */
.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-shrink: 0 !important;
}

/* ====== SELECTOR DE MONEDA ====== */
.currency-selector {
    position: relative !important;
    font-size: 0.85rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.currency-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #ddd !important;
    border-radius: 30px !important;
    padding: 6px 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    backdrop-filter: blur(10px) !important;
    white-space: nowrap !important;
    color: #333 !important;
    text-decoration: none !important;
}

.currency-btn:hover {
    background: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.currency-list {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    min-width: 180px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s !important;
    list-style: none !important;
    margin: 8px 0 0 !important;
    padding: 8px 0 !important;
    overflow: hidden !important;
    z-index: 1000 !important;
}

.currency-list.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.currency-list li {
    padding: 10px 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: background 0.2s !important;
}

.currency-list li:hover {
    background: #f8f9fa !important;
}

.currency-list li.selected {
    background: #8a1538 !important;
    color: white !important;
    font-weight: 700 !important;
}

.flag {
    font-size: 1.4em !important;
}

/* ====== CARRITO ====== */
.cart-icon {
    position: relative !important;
    font-size: 22px !important;
    color: #333 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    padding: 5px !important;
    transition: color 0.2s !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cart-icon:hover {
    color: #e2001a !important;
}

.cart-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #e2001a !important;
    color: white !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 0.7rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
}

/* ====== ÁREA DE CLIENTAS ====== */
#clubMedalloContainer {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#clubMedalloContainer img {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    transition: transform 0.2s !important;
}

#clubMedalloContainer img:hover {
    transform: scale(1.1) !important;
}

/* ====== RESPONSIVE ====== */

/* MÓVIL (768px o menos) */
@media (max-width: 768px) {
    .header-content {
        padding: 6px 12px !important;
        min-height: 56px !important;
        gap: 10px !important;
    }
    
    /* Mostrar hamburguesa en móvil */
    .hamburger {
        display: flex !important;
        order: 3 !important;
    }
    
    /* Mostrar elementos en móvil también */
    .header-right {
        display: flex !important;
        order: 2 !important;
        gap: 8px !important;
    }
    
   .logo {
    display: flex !important;
    align-items: center !important;
    flex: 0 1 auto !important; /* <- ajuste perfecto */
}
    
    .logo-img {
        width: 42px !important;
        height: 42px !important;
    }
    
    .brand-text {
        font-size: 1rem !important;
    }
    
    .brand-text .jeans {
        font-size: 0.75rem !important;
    }
    
    /* Ajustar tamaño de elementos en móvil */
    .currency-btn {
    padding: 4px 8px !important;
    gap: 4px !important;
    font-size: 0.7rem !important;
}
    
    .cart-icon {
        font-size: 20px !important;
    }
    
    #clubMedalloContainer img {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ESCRITORIO (más de 768px) */
@media (min-width: 769px) {
    /* Asegurar que hamburguesa esté oculta en desktop */
    .hamburger {
        display: none !important;
    }
    
    /* Asegurar que elementos derecha estén visibles */
    .header-right {
        display: flex !important;
        order: 2 !important;
    }
    
    .logo {
        order: 1 !important;
    }
}

/* RESPONSIVE EXTREMO (480px o menos) */
@media (max-width: 480px) {
    .header-content {
        padding: 4px 8px !important;
        gap: 5px !important;
    }
    
    .logo-img {
        width: 38px !important;
        height: 38px !important;
    }
    
    .brand-text {
        font-size: 0.9rem !important;
    }
    
    .brand-text .jeans {
        font-size: 0.7rem !important;
    }
    
    .header-right {
        gap: 6px !important;
    }
    
    /* Ocultar texto de moneda, solo mostrar bandera */
    .currency-btn .current-currency {
    display: inline-block !important;
}
    /* === ALINEACIÓN PERFECTA EN MÓVIL === */
@media (max-width: 768px) {

    /* El logo ocupa la izquierda y empuja el resto */
    .logo {
        flex: 1 1 auto !important;
    }

    /* La parte derecha se mantiene compacta y alineada */
    .header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        flex: 0 0 auto !important;
    }

    /* Selector de moneda más pequeño (no invade espacio) */
    .currency-btn {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        gap: 4px !important;
    }

    /* Bandera no demasiado grande */
    .currency-btn .flag {
        font-size: 1rem !important;
        line-height: 1 !important;
    }

    /* La moneda SIEMPRE visible pero más pequeña */
    .currency-btn .current-currency {
        display: inline-block !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
    }

    /* Icono área clientas */
    #clubMedalloContainer img {
        width: 22px !important;
        height: 22px !important;
    }
 .cart-count {
      position: absolute;
      top: -7px;
      right: -7px;
      background-color: #e2001a;
      color: white;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      font-size: 12px;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }
    /* Hamburguesa */
    .hamburger {
        width: 32px !important;
        height: 32px !important;
    }
}
    .header-content {
    gap: 4px !important; /* tamaño perfecto comprobado en móvil */
}
    
    .currency-btn {
        padding: 4px 6px !important;
    }
}
/* === ALINEACIÓN MILIMÉTRICA HEADER === */

/* Contenedor principal: todo centrado verticalmente */
.header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

/* Logo: ocupa solo lo necesario */
.logo {
  display: flex !important;
  align-items: center !important;
  flex: 0 1 auto !important;
}

/* Bloque derecha: todos en la misma línea y centrados */
.header-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

/* Selector de moneda perfectamente centrado */
.currency-selector {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.currency-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 6px 10px !important;
  line-height: 1 !important;
  
    margin-left: 10px;
}

/* Bandera y moneda en línea y centradas */
.currency-btn .flag {
  font-size: 1rem !important;
  line-height: 1 !important;
}

.currency-btn .current-currency {
  display: inline-block !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

/* Icono área clientas */
#clubMedalloContainer {
  display: flex !important;
  align-items: center !important;
    margin-left: 10px;
}

#clubMedalloContainer img {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
}

/* Carrito */
.cart-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
    margin-left: 4px !important;
}

/* Hamburguesa */
.hamburger {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
    margin-right: 20px !important;
}

/* Contenedor del botón flotante */
.float-whatsapp {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #ffffff;
    color: #0033a0;
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999999 !important;
}

.float-whatsapp i {
    font-size: 32px !important;
    color: #25D366 !important;
}

/* Ocultar por defecto SOLO en fichas de producto */
.product-page .float-whatsapp {
    opacity: 0;
    pointer-events: none;
}

/* Mostrar cuando activemos la clase visible */
.float-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}
 /* Made in Colombia badge */
    .made-in-colombia {
      font-family: 'Quicksand', sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
      color: #ffffff;
      background: #D2B48C;
      padding: 4px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      text-align: center;
      justify-content: center;
      margin: 10px auto;
      gap: 14px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.9);
      opacity: 0;
      transform: translateY(10px);
      animation: fadeInUp 1s ease forwards;
      transition: all 0.3s ease;
      width: fit-content;
      margin-left: auto;
  margin-right: auto;
  display: block; /* O mantener flex pero asegurar que ocupe el ancho */
  width: max-content;
    }
