/**
 * ============================================
 * BASE.CSS - Styles de base pour Angeline Magnetik
 * ============================================
 * 
 * Fichier consolidé contenant :
 * - common.css (styles généraux, header, footer)
 * - accessibility.css (accessibilité WCAG)
 * - messages.css (notifications)
 * 
 * Note : Les variables CSS sont dans core/variables.css
 * 
 * @version 2.0.0
 * @date 02/02/2026
 */

/* ============================================
   STYLES GÉNÉRAUX (de common.css)
   ============================================ */

html {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(160deg, #FDFCFB 0%, #F7F3F0 30%, #FBFAF8 55%, #F4F0ED 80%, #FAF8F6 100%);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  letter-spacing: 0.3px;
  position: relative;
  z-index: 0;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

header {
  /* Le header est en position fixed, donc il sort du flux normal */
}

main {
  padding-top: 100px;
  flex: 1 0 auto;
  box-sizing: border-box;
  /* Hérite du background du body pour éviter le canvas sombre en dark mode */
  background-color: inherit;
}

/* ============================================
   HEADER - STYLE ZEN
   ============================================ */

header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

.header_top {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--color-purple-light);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1001;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  max-width: 40px;
  height: auto;
  transition: var(--transition-gentle);
  filter: drop-shadow(0 2px 4px rgba(181, 124, 138, 0.15));
}

/* Shimmer bijou — reflet lumineux glissant sur le titre */
@keyframes shimmerJewel {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.logo-title {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-left: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition-gentle);

  /* Texte de base */
  color: var(--color-purple-dark);

  /* Shimmer : gradient glissant sur le texte */
  background: linear-gradient(
    105deg,
    var(--color-purple-dark) 0%,
    var(--color-purple-dark) 35%,
    #D4A0AC 42%,
    #F0D5DA 50%,
    #D4A0AC 58%,
    var(--color-purple-dark) 65%,
    var(--color-purple-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Animation lente et raffinée — 1 sweep toutes les 6s */
  animation: shimmerJewel 6s ease-in-out infinite;
  animation-delay: 2s;
}

/* Pause de l'animation pour accessibilité (réduction de mouvement) */
@media (prefers-reduced-motion: reduce) {
  .logo-title {
    animation: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--color-purple-dark);
    color: var(--color-purple-dark);
  }
}

/* Hover élégant sur le bloc logo */
.logo a:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 8px rgba(181, 124, 138, 0.3));
}

.logo a:hover .logo-title {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(
    105deg,
    #9A6070 0%,
    #9A6070 30%,
    #E8C1C9 45%,
    #FFF0F3 50%,
    #E8C1C9 55%,
    #9A6070 70%,
    #9A6070 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 0.8px;
  animation: shimmerJewel 3s ease-in-out infinite;
}

/* ============================================
   BARRE DE RECHERCHE
   ============================================ */

.search-bar {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
}

.search-bar form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.search-bar input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--color-silver-light);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  background-color: var(--color-white);
  color: var(--color-text);
}

.search-bar input::placeholder {
  color: var(--color-gray-soft);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 4px rgba(234, 208, 214, 0.12);
  background-color: var(--color-white);
}

.search-btn {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-medium) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  box-shadow: var(--shadow-subtle);
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--color-purple-medium) 0%, var(--color-purple-dark) 100%);
  box-shadow: var(--shadow-soft);
}

.search-btn:active {
  transform: scale(0.95);
}

/* ============================================
   NAVIGATION - ICÔNES
   ============================================ */

.nav-icons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-icons a {
  font-size: 1.3rem;
  color: var(--color-purple-dark);
  text-decoration: none;
  transition: var(--transition-gentle);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icons a:hover {
  color: var(--color-purple-medium);
  background-color: var(--color-purple-light);
}

/* Container pour l'icône du panier avec badge */
.cart-icon-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Badge du panier (pastille) */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #E8727E, #F09090);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  font-family: Arial, sans-serif;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none; /* Caché par défaut, affiché via JavaScript uniquement si count > 0 */
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(232, 114, 126, 0.35);
  animation: pulse 2s infinite;
}

/* Animation de pulsation pour le badge */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Badge mobile */
.cart-badge-mobile {
  background: linear-gradient(135deg, #E8727E, #F09090);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  font-family: Arial, sans-serif;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2px;
  margin-left: 8px;
  box-shadow: 0 2px 6px rgba(232, 114, 126, 0.35);
}

/* ============================================
   MENU BURGER (MOBILE)
   ============================================ */

.menu-burger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-purple-dark);
  padding: var(--space-xs);
  transition: var(--transition-gentle);
  border-radius: var(--radius-sm);
  margin-left: auto;
}

.menu-burger-btn:hover {
  color: var(--color-purple);
  background-color: var(--color-purple-light);
}

/* Menu mobile (overlay) */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(44, 44, 44, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  display: block;
  opacity: 1;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 242, 240, 0.98) 100%);
  backdrop-filter: blur(20px);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  border-left: 1px solid var(--color-purple-light);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-close {
  background: var(--color-white);
  border: 1px solid var(--color-silver-light);
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-purple-dark);
  padding: var(--space-xs);
  margin-bottom: var(--space-lg);
  transition: var(--transition-gentle);
  float: right;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
}

.mobile-menu-close:hover {
  color: var(--color-purple);
  background-color: var(--color-purple-light);
  border-color: var(--color-purple);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  clear: both;
  padding-top: var(--space-lg);
}

.mobile-menu-link {
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-silver-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  text-align: center;
  background-color: var(--color-white);
  box-shadow: var(--shadow-subtle);
}

.mobile-menu-link i {
  margin-right: 0.5rem;
}

/* Correction alignement icône panier dans menu mobile */
.mobile-menu-link.cart-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-link.cart-icon-container i {
  margin-right: 0.5rem;
}

.mobile-menu-link:hover {
  background-color: var(--color-purple-light);
  color: var(--color-purple-dark);
  border-color: var(--color-purple);
  transform: translateX(-4px);
  box-shadow: var(--shadow-soft);
}

.mobile-filter-select {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.mobile-filter-select label {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 600;
}

.mobile-filter-select select {
  padding: var(--space-md) var(--space-sm);
  border: 2px solid var(--color-silver-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background-color: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-gentle);
  box-shadow: var(--shadow-subtle);
}

.mobile-filter-select select:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 4px rgba(234, 208, 214, 0.12);
}

.menu-burger button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-purple-dark);
  padding: var(--space-xs);
  transition: var(--transition-gentle);
  border-radius: var(--radius-sm);
}

.menu-burger button:hover {
  color: var(--color-purple);
  background-color: var(--color-purple-light);
}

/* ============================================
   PROFIL & FILTRES
   ============================================ */

.profil-actions a {
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-xs) var(--space-md);
  border: 2px solid var(--color-silver-light);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  background-color: var(--color-white);
}

.profil-actions a:hover {
  background-color: var(--color-purple-light);
  color: var(--color-purple-dark);
  border-color: var(--color-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.filter-select select {
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-silver-light);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  background-color: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-gentle);
}

.filter-select select:hover {
  border-color: var(--color-purple);
}

.filter-select select:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 4px rgba(234, 208, 214, 0.12);
}

/* ============================================
   FOOTER - STYLE ZEN
   ============================================ */

footer {
  background: var(--color-white);
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0;
}

/* Bordure supérieure dégradée */
.footer-top-border {
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--color-purple-medium) 30%, var(--color-pink-accent) 50%, var(--color-purple-medium) 70%, transparent 95%);
  opacity: 0.5;
}

/* Zone principale 3 colonnes */
.footer-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
}

/* Colonne marque */
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-name {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-purple-dark);
  letter-spacing: 0.3px;
}

.footer-brand-tagline {
  font-size: 0.78rem;
  color: var(--color-text-gray);
  font-style: italic;
  margin: 0;
  letter-spacing: 0.2px;
}

/* Colonne liens */
.footer-nav {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--color-text-gray);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2px;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-gentle);
}

.footer-nav a:hover {
  color: var(--color-purple-dark);
  background: var(--color-purple-light);
}

/* Colonne réseaux */
.footer-social {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-purple-light);
  color: var(--color-purple-dark);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-gentle);
}

.footer-social-link:hover {
  background: var(--color-purple-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(181, 124, 138, 0.25);
}

/* Barre copyright */
.footer-bottom {
  border-top: 1px solid rgba(234, 208, 214, 0.3);
  padding: var(--space-sm) var(--space-xl);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: var(--color-text-gray);
  margin: 0;
  letter-spacing: 0.3px;
}

/* ============================================
   UTILITAIRES
   ============================================ */

.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

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

/* Améliorer le touch sur les appareils tactiles */
.is-touch a,
.is-touch button,
.is-touch .btn {
  -webkit-tap-highlight-color: rgba(181, 124, 138, 0.2);
  touch-action: manipulation;
}

/* ============================================
   ACCESSIBILITÉ (de accessibility.css)
   ============================================ */

/* Skip links (liens d'évitement) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-white);
  color: var(--color-black);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  z-index: 100000;
  border-radius: 0 0 4px 0;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-purple-dark);
  outline-offset: 2px;
}

/* Visually hidden (pour lecteurs d'écran) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible (navigation clavier) */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
  outline: 3px solid var(--color-purple-dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(181, 124, 138, 0.25);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-purple-dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(181, 124, 138, 0.25);
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.product-card:focus-within {
  outline: 2px solid var(--color-purple-dark);
  outline-offset: 4px;
  box-shadow: 0 4px 20px rgba(181, 124, 138, 0.25);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(234, 208, 214, 0.3);
}

nav a:focus,
.mobile-menu-link:focus {
  background-color: rgba(244, 233, 230, 0.5);
  outline: 2px solid var(--color-purple-dark);
  outline-offset: 2px;
}

.nav-icons a:focus {
  transform: scale(1.1);
  outline: 2px solid var(--color-purple-dark);
  outline-offset: 4px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  a {
    text-decoration: underline;
  }
  
  button {
    border: 2px solid currentColor;
  }
  
  .notification {
    border: 3px solid currentColor;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* États de bouton désactivé */
button:disabled,
button[aria-disabled="true"] {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
  position: relative;
}

button:disabled::after,
button[aria-disabled="true"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.05) 10px,
    rgba(0, 0, 0, 0.05) 20px
  );
  pointer-events: none;
}

/* Liens externes avec indicateur */
a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.8em;
  vertical-align: super;
  text-decoration: none;
}

a[target="_blank"]:has(> i:only-child)::after,
a[target="_blank"]:has(> .fa)::after {
  content: none;
}

/* Zone de clic étendue (touch targets) */
@media (pointer: coarse) {
  button,
  a,
  input[type="checkbox"],
  input[type="radio"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Champs en erreur */
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}

input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus {
  outline-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
}

.error-message,
[role="alert"].error {
  color: var(--color-error-dark);
  font-weight: bold;
  padding: 8px;
  border-left: 4px solid var(--color-error);
  background-color: var(--color-error-bg);
  margin-top: 4px;
}

/* Lisibilité */
p,
li,
td {
  line-height: var(--line-height-normal);
}

p + p {
  margin-top: 1em;
}

li + li {
  margin-top: 0.5em;
}

/* ============================================
   MESSAGES & NOTIFICATIONS (de messages.css)
   ============================================ */

/* Message de confirmation */
.success-message {
  background-color: var(--color-success-bg);
  color: #155724;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 1200px;
  border-radius: var(--radius-sm);
  border: 1px solid #c3e6cb;
  text-align: center;
  transition: opacity 0.5s ease-out;
}

.success-message.fade-out {
  opacity: 0;
}

/* Animations pour les notifications */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Style des notifications toast */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  color: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: var(--z-notification);
  font-size: 14px;
  font-weight: 500;
  max-width: 400px;
  word-wrap: break-word;
}

.notification.success {
  background: var(--color-success);
}

.notification.error {
  background: var(--color-error);
}

.notification.info {
  background: var(--color-info);
}

.notification.warning {
  background: var(--color-warning);
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */

/* Éviter le zoom sur les inputs sur iOS */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Desktop (min 769px) */
@media (min-width: 769px) {
  .menu-burger-btn {
    display: none !important;
  }

  .nav-icons {
    display: flex !important;
  }
}

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  body {
    padding-top: 10px;
  }
  
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  body {
    padding-top: 10px;
  }

  header {
    padding: 0;
    width: 100%;
  }

  .header_top {
    gap: 1rem;
    padding: 0.8rem 1rem;
    width: 100%;
  }

  .logo img {
    max-width: 35px;
  }

  .logo-title {
    display: none;
  }

  .search-bar {
    max-width: none;
  }

  .search-bar input {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }

  .search-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .nav-icons {
    display: none;
  }

  .menu-burger-btn {
    display: block;
    font-size: 1.5rem;
  }
  
  .footer-main {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-md);
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-nav a {
    font-size: 0.78rem;
  }
}

/* Mobile small (max 650px) */
@media (max-width: 650px) {
  .search-bar input {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  body {
    padding-top: 130px;
  }
}

/* Mobile extra small (max 480px) */
@media (max-width: 480px) {
  body {
    padding-top: 120px;
  }
  
  .header_top {
    gap: 0.8rem;
    padding: 0.6rem 1rem;
  }
  
  .logo img {
    max-width: 30px;
  }
  
  .search-bar input {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }
  
  .search-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .nav-icons a {
    font-size: 1.1rem;
  }
  
  .footer-main {
    padding: var(--space-md) var(--space-sm);
    gap: var(--space-md);
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.3rem;
  }

  .footer-brand-name {
    font-size: 1rem;
  }

  .footer-social-link {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .hide-mobile {
    display: none !important;
  }
  
  .show-mobile {
    display: block !important;
  }
}
