:root {
  --azul: #0f3bb3;
  --azul-hover: #1e40af;
  --azul-claro: #709cd5;
  --verde: #10b981;
  --verde-hover: #059669;
  --roxo: #8b5cf6;
  --roxo-claro: #ede9fe;
  --cinza-bg: #f8fafc;
  --cinza-texto: #111827;
  --cinza-medio: #6b7280;
  --cinza-borda: #e5e7eb;
  --branco: #ffffff;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: var(--cinza-bg);
  color: var(--cinza-texto);
}

button,
a {
  cursor: pointer;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #111827, #2f46c7, #4f6cff);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 6%;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  background: #111827;
}

.logo img {
  height: 65px;
  cursor: pointer;
  background: #111827;
}

/* BUSCA */
.search-box {
  flex: 1;
  position: relative;
  max-width: 620px;
}

.search-box input {
  width: 100%;
  padding: 15px 55px 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--cinza-borda);
  outline: none;
  font-size: 15px;
  background: #f9fafb;
  color: var(--cinza-texto);
}

.search-box input:focus {
  border-color: var(--azul);
  background: var(--branco);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.15);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--azul);
  color: var(--branco);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.search-box button:hover {
  background: var(--azul-hover);
}

/* SUGESTÕES */
.sugestoes-busca {
  display: none;
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  background: var(--branco);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.16);
  overflow: hidden;
  z-index: 999;
}

.sugestao-item {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.sugestao-item:hover {
  background: var(--roxo-claro);
}

/* BOTÕES HEADER */
.header-actions {
  display: flex;
  gap: 12px;
  
}

.header-actions button {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--cinza-texto);
  font-weight: 700;
}

.header-actions button:hover {
  background: var(--roxo-claro);
  color: var(--roxo);
}

.header-actions .btn-primary {
  background: var(--azul);
  color: var(--branco);
}

.header-actions .btn-primary:hover {
  background: var(--azul-hover);
  color: var(--branco);
}

/* HERO */
.hero {
  padding: 30px 6% 10px;
}

/* CARROSSEL */
.carousel {
  position: relative;
  width: 100%;
  height: 390px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
}

.slides {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  height: 390px;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--azul), var(--roxo));
  color: var(--branco);
  overflow: hidden;
}

.slide-2 {
  background: linear-gradient(135deg, var(--roxo), var(--verde));
}

.slide-3 {
  background: linear-gradient(135deg, var(--verde), var(--azul));
}

.slide-content {
  width: 100%;
  height: 100%;
  padding: 0px 90px;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  gap: 30px;
}

.slide-text {
  max-width: 620px;
  z-index: 2;
}

.slide-text span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: 700;
}

.slide-text h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.slide-text p {
  font-size: 18px;
  margin-bottom: 26px;
  opacity: 0.95;
}

.slide-text button,
.seller-banner button {
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--branco);
  color: var(--azul);
  font-weight: 800;
}

.slide-text button:hover,
.seller-banner button:hover {
  background: var(--roxo-claro);
  color: var(--roxo);
}

/* IMAGEM DO CARROSSEL */
.slide-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.slide-image img {
  width: 100%;
  max-width: 430px;
  max-height: 320px;
  object-fit: contain;
  object-position: center right;
  display: block;
  animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* BOTÕES CARROSSEL */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: var(--branco);
  font-size: 34px;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.38);
}

.prev {
  left: 18px;
}

.next {
  right: 18px;
}

/* INDICADORES */
.indicators {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.indicators span {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.indicators span.active {
  background: var(--branco);
  width: 28px;
  border-radius: 999px;
}

/* SEÇÕES */
.quick-menu,
.featured,
.stores {
  padding: 45px 6%;
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 30px;
  color: var(--cinza-texto);
}

.section-title p {
  color: var(--cinza-medio);
  margin-top: 6px;
}

/* CATEGORIAS */
.categories {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.categories button {
  border: 1px solid var(--cinza-borda);
  background: var(--branco);
  color: var(--cinza-texto);
  border-radius: 22px;
  padding: 20px 10px;
  font-size: 24px;
  transition: 0.3s;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.categories button span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
}

.categories button:hover,
.product-card:hover,
.store-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.13);
}

.categories button:hover {
  border-color: var(--azul);
  background: var(--roxo-claro);
}

/* PRODUTOS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card,
.store-card {
  background: var(--branco);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
  transition: 0.3s;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  
}

.card-body {
  padding: 18px;
}

.card-body small {
  color: var(--azul);
  font-weight: 700;
}

.card-body h3 {
  margin: 8px 0;
  font-size: 19px;
  color: var(--cinza-texto);
}

.card-body strong {
  display: block;
  color: var(--verde);
  font-size: 20px;
  margin-bottom: 14px;
}

.card-body a {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--verde);
  color: var(--branco);
  padding: 12px;
  border-radius: 999px;
  font-weight: 700;
}

.card-body a:hover {
  background: var(--verde-hover);
}

/* BOTÕES */
.center {
  text-align: center;
  margin-top: 30px;
}

.btn-outline {
  border: 1px solid var(--azul);
  color: var(--azul);
  background: var(--branco);
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
}

.btn-outline:hover {
  background: var(--azul);
  color: var(--branco);
}

.btn-outline.dark {
  border-color: var(--cinza-texto);
  color: var(--cinza-texto);
}

.btn-outline.dark:hover {
  background: var(--cinza-texto);
  color: var(--branco);
}

/* BANNER LOJISTA */
.seller-banner {
  margin: 35px 6%;
  padding: 44px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--azul), var(--azul-claro));
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.18);
}

.seller-banner span {
  color: var(--roxo-claro);
  font-weight: 800;
}

.seller-banner h2 {
  font-size: 32px;
  margin: 8px 0;
}

.seller-banner p {
  color: #dbeafe;
}

/* LOJAS */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.store-card {
  padding: 28px;
  text-align: center;
}

.store-card img {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 16px;
}

.store-card h3 {
  margin-bottom: 6px;
  color: var(--cinza-texto);
}

.store-card p {
  color: var(--cinza-medio);
  margin-bottom: 16px;
}

.store-card a {
  text-decoration: none;
  color: var(--azul);
  font-weight: 800;
}

.store-card a:hover {
  color: var(--roxo);
}


/* FOOTER */

.footer {
  background: var(--cinza-texto);
  color: var(--branco);
  padding: 25px 6% 10px;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}


.footer p {
  margin-top: 4px;
  line-height: 1.5;
}

.footer a:hover {
  color: var(--roxo-claro);
}

.footer-bottom {
  margin-top: 15px;
  padding-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* RESPONSIVO TABLET */
@media (max-width: 950px) {
  .header {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }

  .carousel {
    height: auto;
    min-height: 430px;
  }

  .slides {
    height: 100%;
  }

  .slide {
    height: auto;
    min-height: 430px;
  }

  .slide-content {
    padding: 45px 45px 65px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .slide-text {
    max-width: 100%;
  }

  .slide-image {
    justify-content: center;
  }

  .slide-image img {
    max-width: 300px;
    max-height: 210px;
  }

  .categories {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stores-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .seller-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* RESPONSIVO CELULAR */
@media (max-width: 600px) {
  .header {
    padding: 15px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions button {
    flex: 1;
  }

  .hero {
    padding: 20px 15px 5px;
  }

  .carousel {
    border-radius: 24px;
    min-height: 520px;
  }

  .slide {
    min-height: 520px;
  }

  .slide-content {
    padding: 35px 25px 70px;
    gap: 20px;
  }

  .slide-text h1 {
    font-size: 30px;
  }

  .slide-text p {
    font-size: 16px;
  }

  .slide-image img {
    max-width: 260px;
    max-height: 200px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .prev {
    left: 12px;
  }

  .next {
    right: 12px;
  }

  .categories {
    display: flex;
    overflow-x: auto;
  }

  .categories button {
    min-width: 105px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .quick-menu,
  .featured,
  .stores {
    padding: 35px 15px;
  }

  .seller-banner {
    margin: 25px 15px;
    padding: 30px;
  }
}

.area-logada {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nome-logado {
  font-weight: 700;
  color: #111827;
}

.btn-sair-topo {
  border: none;
  background: #ef4444;
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
}

.btn-sair-topo:hover {
  background: #dc2626;
}

.area-logada {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nome-logado {
  font-weight: 700;
  color: #f5f6f6;
}

.btn-sair-topo {
  border: none;
  background: #ef4444;
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
}

.btn-sair-topo:hover {
  background: #dc2626;
}

.btn-painel-topo {
  border: none;
 background: #082460;
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
}

.btn-painel-topo:hover {
  background: #1d4ed8;
}

.footer-aviso {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.1);

  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer a {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  text-decoration: none;
}