/* ========================================
   HEADER MOBILE
   CONTROLE DE EXIBIÇÃO
======================================== */
:root {
  --mobile-header-height: 72px;
}

/* Desktop por padrão */
.mobile-header,
.mobile-menu,
.mobile-overlay,
.mobile-search-bar {
  display: none;
}



/* ========================================
   MOBILE HEADER
======================================== */

@media (max-width:768px) {
  
  
  /* Esconde desktop */
  
  .desktop-header {
    display: none;
  }
  
  
  /* Mostra header mobile */
  
.mobile-header {
  
  display: flex;
  
  align-items: center;
  
  justify-content: space-between;
  
  height: 72px;
  
  padding: 0 15px;
  
  background: #030712;
  
  border-bottom: 1px solid rgba(255, 255, 255, .03);
  
  position: fixed;
  
  top: 0;
  left: 0;
  
  width: 100%;
  
  gap: 18px;
  
  z-index: 1000;
  
  transition: transform .3s ease;
  
}

.mobile-header::after {

  content:"";

  position:absolute;

  bottom:-1px;

  left:0;

  width:100%;

  height:2px;

  background:linear-gradient(
    90deg,
    transparent,
    #2563eb,
    #60a5fa,
    #2563eb,
    transparent
  );

  background-size:200% 100%;

  animation: neonHeader 3s linear infinite;

  box-shadow:
    0 0 8px #2563eb,
    0 0 18px rgba(37,99,235,.8),
    0 0 35px rgba(37,99,235,.45);

}


@keyframes neonHeader {

  0% {

    background-position:200% 0;

  }


  100% {

    background-position:-200% 0;

  }

}
.mobile-header.hide {
  
  transform: translateY(-100%);
  
}
  
  
  
  /* Logo */
  
  .mobile-logo {
    
    display: flex;
    
    align-items: center;
    
    gap: 8px;
    
    text-decoration: none;
    margin-right:auto;
    
  }
  
  
  
  .mobile-logo img {
    
    width: 36px;
    
    height: 36px;
    
    object-fit: contain;
    
  }
  
  
  
  .mobile-logo span {
    
    color: #fff;
    
    font-size: 17px;
    
    font-weight: 700;
    
  }
  
  
  
  /* Botão menu */
  
  .menu-toggle {
    
    background: none;
    
    border: none;
    
    color: #fff;
    
    font-size: 22px;
    
    cursor: pointer;
    
  }
  
  
  
  /* Ações */
  
  .mobile-actions {
    margin-right:2px;
    display: flex;
    
    align-items: center;
    transform:translateX(-5px);
    gap: 18px;
    
  }
  
  
  
  .mobile-actions a,
  .mobile-actions button {
    
    background: none;
    
    border: none;
    
    color: #fff;
    
    text-decoration: none;
    
    font-size: 20px;
    
    cursor: pointer;
    
    position: relative;
    
  }
  
  
  
  /* Carrinho */
  
  .mobile-cart {
    
    position: relative;
    
  }
  
  
  
  .mobile-cart .cart-count {
    
    top: -8px;
    
    right: -10px;
    
  }
  
}


/* ========================================
   MENU LATERAL MOBILE
======================================== */


@media (max-width:768px) {


/* Overlay */

.mobile-overlay {

    display:block;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(4px);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:1900;

}



.mobile-overlay.active {

    opacity:1;

    visibility:visible;

}



/* Menu */

.mobile-menu {

    display:flex;

    flex-direction:column;

    position:fixed;

    top:0;

    left:-300px;

    width:280px;

    height:100vh;

    background:#111827;

    box-shadow:10px 0 35px rgba(0,0,0,.35);

    transition:left .35s ease;

    z-index:1999;

    overflow-y:auto;

}



.mobile-menu.active {

    left:0;

}



/* Cabeçalho do menu */

.mobile-menu-header {

    position:relative;

    display:flex;

    justify-content:center;

    padding:30px 24px;

    border-bottom:1px solid rgba(255,255,255,.08);

}



/* Botão fechar */

.close-menu {

    position:absolute;

    top:20px;

    right:20px;


    width:42px;

    height:42px;


    border:none;

    border-radius:12px;


    background:#1f2937;

    color:#fff;


    cursor:pointer;

    font-size:18px;

}



/* Usuário */

.mobile-user {

    display:flex;

    flex-direction:column;

    align-items:center;

    text-align:center;

}



.mobile-user-avatar {


    width:72px;

    height:72px;


    border-radius:50%;


    background:linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );


    display:flex;

    align-items:center;

    justify-content:center;


    color:#fff;

    font-size:30px;


    margin-bottom:18px;

}



.mobile-user-avatar img {

    width:100%;

    height:100%;

    object-fit:cover;

    border-radius:50%;

}



.mobile-user h3 {

    color:#fff;

    font-size:24px;

    margin-bottom:8px;

}



.mobile-user p {

    color:#94a3b8;

    font-size:14px;

    line-height:1.5;

    max-width:220px;

    margin-bottom:22px;

}



/* Links de login */

.user-links {

    display:flex;

    justify-content:center;

    gap:10px;

}



.user-links a {

    color:#3b82f6;

    text-decoration:none;

    font-weight:600;

}



/* Botão login */

.login-btn {

    display:flex;

    align-items:center;

    justify-content:center;


    width:170px;

    height:46px;


    border-radius:14px;


    background:#2563eb;

    color:#fff;


    text-decoration:none;

    font-weight:600;

}



.login-btn:hover {

    background:#3b82f6;

}



}

/* ========================================
   NAVEGAÇÃO MENU MOBILE
======================================== */


@media(max-width:768px) {
  
  
  
  /* Área dos links */
  
  .mobile-nav {
    
    padding: 24px;
    
    display: flex;
    
    flex-direction: column;
    
  }
  
  
  
  /* Títulos */
  
  .menu-title {
    
    display: block;
    
    margin: 10px 0 18px;
    
    
    color: #6b7280;
    
    font-size: 11px;
    
    font-weight: 700;
    
    letter-spacing: 2px;
    
    text-transform: uppercase;
    
  }
  
  
  
  /* Links */
  
  .mobile-nav a {
    
    display: flex;
    
    align-items: center;
    
    gap: 14px;
    
    
    height: 52px;
    
    padding: 0 14px;
    
    
    color: #f8fafc;
    
    
    text-decoration: none;
    
    
    border-radius: 12px;
    
    
    font-size: 16px;
    
    font-weight: 500;
    
    
    opacity: 0;
    
    transform: translateX(-25px);
    
    
    transition:
    
      opacity .35s ease,
      
      transform .35s ease,
      
      background .25s ease;
    
  }
  
  
  
  /* Animação quando abre */
  
  .mobile-menu.active .mobile-nav a {
    
    opacity: 1;
    
    transform: translateX(0);
    
  }
  
  
  
  /* Delays */
  
  .mobile-nav a:nth-child(2) {
    transition-delay: .05s;
  }
  
  .mobile-nav a:nth-child(3) {
    transition-delay: .08s;
  }
  
  .mobile-nav a:nth-child(4) {
    transition-delay: .11s;
  }
  
  .mobile-nav a:nth-child(5) {
    transition-delay: .14s;
  }
  
  .mobile-nav a:nth-child(6) {
    transition-delay: .17s;
  }
  
  .mobile-nav a:nth-child(7) {
    transition-delay: .20s;
  }
  
  .mobile-nav a:nth-child(10) {
    transition-delay: .23s;
  }
  
  .mobile-nav a:nth-child(11) {
    transition-delay: .26s;
  }
  
  
  
  /* Hover */
  
  .mobile-nav a:hover {
    
    background: #1d2b45;
    
  }
  
  
  
  /* Primeiro ícone */
  
  .mobile-nav a i:first-child {
    
    width: 22px;
    
    text-align: center;
    
    
    color: #60a5fa;
    
    font-size: 20px;
    
  }
  
  
  
  /* Texto */
  
  .mobile-nav a span {
    
    flex: 1;
    
    
    font-size: 18px;
    
    font-weight: 500;
    
  }
  
  
  
  /* Seta */
  
  .mobile-nav a .fa-chevron-right {
    
    color: #64748b;
    
    font-size: 14px;
    
  }
  
  
  
  /* Separadores */
  
  .mobile-nav hr {
    
    margin: 24px 0;
    
    
    border: none;
    
    
    border-top:
    
      1px solid rgba(255, 255, 255, .08);
    
  }
  
  
  
}
/* ========================================
   BUSCA MOBILE
======================================== */


@media(max-width:768px) {
  
  
  
  .mobile-search-bar {
    
    display: flex;
    
    position: fixed;
    
    
    top: 0;
    
    left: 0;
    
    
    width: 100%;
    
    height: 72px;
    
    
    background: #0f172a;
    
    
    align-items: center;
    
    
    gap: 12px;
    
    
    padding: 0 16px;
    
    
    transform: translateX(100%);
    
    
    opacity: 0;
    
    
    z-index: 2001;
    
    
    transition:
    
      transform .28s ease,
      
      opacity .28s ease;
    
  }
  
  
  
  .mobile-search-bar.active {
    
    transform: translateX(0);
    
    opacity: 1;
    
  }
  
  
  
  .mobile-search-bar input {
    
    
    flex: 1;
    
    
    height: 48px;
    
    
    border: none;
    
    
    outline: none;
    
    
    border-radius: 16px;
    
    
    background: #111827;
    
    
    color: #fff;
    
    
    padding: 0 18px;
    
    
    font-size: 15px;
    
    
    transform: scale(.95);
    
    
    transition: .25s;
    
  }
  
  
  
  .mobile-search-bar.active input {
    
    transform: scale(1);
    
  }
  
  
  
  .mobile-search-bar input:focus {
    
    box-shadow: 0 0 0 2px #2563eb;
    
  }
  
  
  
  /* Botões */
  
  .mobile-search-bar button {
    
    
    width: 42px;
    
    height: 42px;
    
    
    border: none;
    
    
    background: none;
    
    
    color: #fff;
    
    
    font-size: 22px;
    
  }
  
  
  
  /* Botão pesquisar */
  
  .search-btn {
    
    
    width: 46px !important;
    
    height: 46px !important;
    
    
    border-radius: 14px !important;
    
    
    background: #2563eb !important;
    
    
    transition: .25s;
    
  }
  
  
  
  .search-btn:hover {
    
    transform: scale(1.05);
    
  }
  
  
  
  .close-search {
    
    width: 44px !important;
    
    height: 44px !important;
    
    
    border-radius: 14px !important;
    
    
    background: #1f2937 !important;
    
  }
  
  
  
  .close-search:hover {
    
    background: #2563eb !important;
    
  }
  
  
  
}
@media (max-width:768px) {
  
  body {
    
    padding-top: var(--mobile-header-height);
    
  }
  
}