/* ========== VARIÁVEIS E RESET ========== */
/* Fonte carregada via Google Fonts no HTML para melhor performance */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family:
    'Albert Sans',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #fff;
  touch-action: manipulation; /* Previne zoom double-tap */
  max-width: 100vw;
  width: 100%;
}

body::-webkit-scrollbar {
  display: none;
}

h2 {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.is-hidden {
  display: none;
}

.wrapper {
  padding-inline: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
}

main {
  padding-bottom: 6rem;
}
/* ========== TOPBAR ========== */
.topbar {
  padding-block: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent;
}

.topbar-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.logo {
  background: transparent;
  color: white;
  padding: 0;
  text-align: center;
  flex-shrink: 0;
}

.logo img {
  height: 42px;
  width: auto;
}

.topbar-row .right {
  display: flex;
  justify-content: right;
  gap: 0.25rem;
  align-items: center;
}

/* Store Status Badge */
.store-status {
  display: flex;
  align-items: center;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
  position: relative;
}

.status-badge.online {
  background: #b7e900;
  color: white;
}

.status-badge.closed {
  background: #ef4444;
  color: white;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  position: relative;
}

.status-badge.online .pulse-dot {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Tooltip removido - não é mais necessário */
.status-tooltip {
  display: none;
}

.atendimento-btn {
  background: #a1c812;
  font-weight: 300;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.atendimento-btn:hover {
  background: #8fb310;
}

.cart-icon {
  background: transparent;
  color: #000;
  padding: 0.5rem;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon img {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ea5b0c;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(234, 91, 12, 0.5);
  animation: pulse-badge 1.5s infinite;
}

@keyframes pulse-badge {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 91, 12, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(234, 91, 12, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 91, 12, 0);
  }
}

.search-form {
  width: 100%;
  display: none; /* Esconder no mobile */
  border-radius: 16px;
}

.search {
  background: var(--search-bg-color, #f5f5f5);
  color: var(--search-text-color, #848484);
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border: none;
  width: 100%;
  text-align: left;
  border-radius: 16px;
  outline: none;
}

.search::placeholder {
  color: var(--search-text-color, #848484);
  opacity: 0.6;
}

@media (min-width: 768px) {
  .topbar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: 'logo search status cart';
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
  }

  .topbar-row {
    display: contents;
  }

  .logo {
    grid-area: logo;
  }
  .search-form {
    display: block; /* Mostrar no desktop */
    grid-area: search;
  }
  .search {
    width: 100%;
  }
  .atendimento-btn {
    grid-area: status;
    font-weight: 300;
  }
  .cart-icon {
    grid-area: cart;
  }
}

/* ========== STORE H1 (SEO) ========== */
.store-h1 {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted, #9ca3af);
  text-align: center;
  padding: 0.25rem 1rem;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ========== BANNERS ========== */
.banners {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 1rem;
}

.banner-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
}

.banner-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 16px;
  height: 240px;
  background: #f0f0f0;
  gap: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.banner-slider::-webkit-scrollbar {
  display: none;
}

.banner-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  max-height: 100%;
  background: #f0f0f0;
}

/* Dots de navegação */
.banner-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 0 0;
  height: 28px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.banner-dot.active {
  width: 24px;
  background: var(--accent, #333);
}

/* Setas de navegação */
.banner-controls {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.banner-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4a4a4a;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}

.banner-arrow:hover {
  background: #4a4a4a72;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Conteúdo sobre o banner */
.banner-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  color: white;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.banner-tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin: 0;
  width: fit-content;
}

.banner-content h2 {
  font-size: 1.75rem;
  font-weight: 200;
  margin: 0.5rem 0 0.25rem 0;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.banner-description {
  font-size: 1rem;
  margin: 0;
  opacity: 0.95;
  line-height: 1.3;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 60%;
  color: #fff;
}

.banner-price {
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
  margin: 0;
  align-self: flex-end;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .banner-content {
    padding: 2rem;
  }

  .banner-tag {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .banner-content h2 {
    font-size: 2rem;
    font-weight: 100;
    margin: 0.75rem 0 0.5rem 0;
  }

  .banner-description {
    font-size: 0.875rem;
    max-width: 50%;
  }

  .banner-price {
    font-size: 2.25rem;
  }
}

.banner-placeholder {
  background: #f0f0f0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-side {
  display: none;
}

.side-banner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.side-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  max-height: 100%;
  background: #f0f0f0;
}

/* Conteúdo sobre o banner lateral (texto menor) */
.side-banner .banner-content {
  padding: 1rem;
}

.side-banner .banner-tag {
  font-size: 0.5rem;
  padding: 0.25rem 0.5rem;
}

.side-banner .banner-content h2 {
  font-size: 1rem;
  margin: 0.35rem 0 0.25rem 0;
}

.side-banner .banner-description {
  font-size: 0.625rem;
  max-width: 70%;
}

.side-banner .banner-price {
  font-size: 1rem;
}

/* Desktop: side banner como slide fica oculto */
@media (min-width: 769px) {
  .banner-slide.mobile-only {
    display: none;
  }
}

@media (min-width: 768px) {
  .banners {
    flex-direction: row;
  }

  .banner-main {
    flex: 2;
  }

  .banner-slider {
    height: 300px;
  }

  .banner-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    height: 300px !important;
  }

  .side-banner {
    flex: 1;
    min-height: 0;
  }
}

/* ========== CATEGORIAS ========== */
.categories-wrap {
  display: flex;
  align-items: center;
  padding-inline: 1rem;
}

.cats-arrow {
  display: none;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #333;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.15s;
  z-index: 2;
}

.cats-arrow:hover {
  opacity: 0.7;
}
.cats-arrow-left {
  margin-right: 8px;
}
.cats-arrow-right {
  margin-left: 8px;
}

@media (min-width: 768px) {
  .cats-arrow.visible {
    display: flex;
  }
}

.categories {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-block: 1rem;
  scroll-snap-type: x mandatory;
  flex: 1;
}

.categories::-webkit-scrollbar {
  display: none;
}

.category {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-align: center;
  cursor: pointer;
}

.thumb {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #333;
}

@media (min-width: 768px) {
  .categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    /* Remove o vaza no desktop */
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* ========== SESSÃO PRODUTOS ========== */
.section {
  width: 100%;
  overflow: hidden;
  margin: 1rem 0 1rem;
}

.section-header {
  background: transparent;
  color: var(--title-color, #000);
  border-radius: 12px;
  margin-block: 1rem;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header a {
  color: var(--title-color, #000);
  font-size: 0.9rem;
}

.products-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-inline: 1rem;
}

.products-scroll::-webkit-scrollbar {
  display: none;
}

.products {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  width: max-content;
}

.products-scroll-wrap {
  display: flex;
  align-items: center;
}

.prod-arrow {
  display: none;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #333;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.15s;
  z-index: 2;
}
.prod-arrow:hover {
  opacity: 0.7;
}
.prod-arrow-left {
  margin-right: 8px;
}
.prod-arrow-right {
  margin-left: 8px;
}

.products-scroll-horizontal {
  overflow-x: auto;
  flex: 1;
  scroll-snap-type: none;
}

.products-horizontal {
  display: flex;
  width: max-content;
}

.products-grid-custom {
  grid-template-columns: repeat(var(--cards-mobile, 2), minmax(0, 1fr));
}

.products-grid-custom .product-image,
.products-horizontal-custom .product-image {
  height: var(--card-image-height-mobile, 150px);
}

.products-grid-custom.has-card-image-ratio .product-image,
.products-horizontal-custom.has-card-image-ratio .product-image {
  height: auto;
  aspect-ratio: var(--card-image-aspect-ratio, auto);
}

.products-horizontal-custom {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--cards-mobile, 2) - 1) * 1rem) / var(--cards-mobile, 2));
  gap: 1rem;
  width: 100%;
}

.products-horizontal-custom .product-card {
  width: 100%;
  min-width: 0;
}

/* Grid para páginas de categoria e busca */
.products-grid-wrapper {
  width: 100%;
  overflow: hidden; /* Evita overflow horizontal */
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  width: 100%;
}

.product-card {
  width: 160px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: transparent;
  border-radius: 12px;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

/* Para cards no grid, ocupar toda a largura */
.products-grid .product-card {
  width: 100%;
}

.product-image {
  height: 150px;
  border-radius: 16px;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Container do botão de adicionar rápido */
.quick-add-container {
  position: absolute;
  bottom: 8px;
  right: 8px;
  border-radius: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  z-index: 2;
}

/* Botão de adicionar rápido */
.quick-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  flex-shrink: 0;
}

.quick-add-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

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

.quick-add-btn svg,
.quick-add-btn img {
  flex-shrink: 0;
}

/* Botão inicial (apenas +) */
.quick-add-initial {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Container das opções Meia/Inteira */
.quick-add-options {
  display: none;
  gap: 8px;
  align-items: center;
}

.quick-add-options.hidden {
  display: none !important;
}

/* Botões de meia e inteira pizza */
.quick-add-half,
.quick-add-whole {
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 20px;
  width: auto;
  height: 36px;
  font-weight: normal;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.2);
}

.quick-add-half:hover,
.quick-add-whole:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #848484;
  padding: 0.5rem 0 0.5rem 0.5rem;
}

.product-info p,
.product-info h3,
.product-info h4 {
  margin: 0;
}

.product-info h3,
.product-info h4 {
  font-weight: 400;
  font-size: 1rem;
  color: var(--product-title-color, var(--title-color, #333));
}

.product-info p {
  font-weight: bold;
  color: var(--product-price-color, var(--price-color, #000));
}

@media (min-width: 768px) {
  .section-header {
    justify-content: left;
    gap: 1rem;
  }

  .products-scroll {
    overflow: unset;
    /* Remove o vaza no desktop */
    margin-inline: 0;
    padding-inline: 0;
  }

  .products {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-scroll-horizontal {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-inline: 1rem;
    scroll-snap-type: none;
  }

  .prod-arrow.visible {
    display: flex;
  }

  .products-horizontal {
    display: flex;
    width: max-content;
  }

  .products-grid-custom {
    grid-template-columns: repeat(var(--cards-desktop, 4), minmax(0, 1fr));
  }

  .products-grid-custom .product-image,
  .products-horizontal-custom .product-image {
    height: var(--card-image-height, 150px);
  }

  .products-grid-custom.has-card-image-ratio .product-image,
  .products-horizontal-custom.has-card-image-ratio .product-image {
    height: auto;
  }

  .products-horizontal-custom {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(
      (100% - (var(--cards-desktop, 4) - 1) * 1rem) / var(--cards-desktop, 4)
    );
    gap: 1rem;
    width: 100%;
  }

  .products-horizontal .product-card {
    width: 160px;
    flex-shrink: 0;
  }

  .products-horizontal-custom .product-card {
    width: 100%;
    flex-shrink: 1;
  }

  .product-card {
    width: 100%;
  }
}

/* ========== RODAPÉ MOBILE ========== */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  background: #f5f5f5;
  color: var(--text-color, #111827);
  padding: 1rem;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
  border-radius: 32px;
  z-index: 100;
  align-items: center;
}

.bottom-nav img {
  width: 24px;
  height: 24px;
}

.bottom-nav .search-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.bottom-nav .cart-icon {
  padding: 0;
  position: relative;
}

.bottom-nav .cart-badge {
  top: -8px;
  right: -8px;
}

/* Popover de Busca */
.search-popover {
  border: none;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 90vw;
  width: 350px;
  margin: auto;
}

.search-popover::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.search-popover-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-popover-form input {
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 16px;
  outline: none;
  background: var(--search-bg-color, #fff);
  color: var(--search-text-color, #1f2937);
}

.search-popover-form input::placeholder {
  color: var(--search-text-color, #1f2937);
  opacity: 0.6;
}

.search-popover-form input:focus {
  border-color: #288542;
}

.search-popover-form button {
  padding: 1rem;
  background: #288542;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.search-popover-form button:hover {
  background: #1f6b34;
}
#search-suggestions {
  display: flex;
  flex-direction: column;
}
#search-suggestions .suggestion-item {
  padding: 10px 16px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #eee;
}
#search-suggestions .suggestion-item:hover {
  background: #f3f4f6;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }

  .search-popover {
    display: none;
  }
}

/* ========== BOTÃO FLUTUANTE WHATSAPP (desktop) ========== */
.whatsapp-float {
  display: none;
}

@media (min-width: 768px) {
  .whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    z-index: 200;
    transition: transform 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .whatsapp-float:hover {
    transform: scale(1.1);
  }

  .whatsapp-float img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
  }
}

/* ========== RODAPÉ DESKTOP ========== */
.site-footer {
  background: var(--background-color, #f9fafb);
  border-top: 1px solid #e5e7eb;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 80px; /* Espaço para o bottom-nav no mobile */
}

@media (min-width: 768px) {
  .site-footer {
    margin-bottom: 0; /* Remove espaço extra no desktop */
  }
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 1.1rem;
  color: var(--title-color, #111827);
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-color, #6b7280);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-tiker-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.footer-tiker-link:hover {
  opacity: 0.7;
}

.footer-tiker-logo {
  vertical-align: middle;
}

/* ========== CORES DO ÍCONE DO CARRINHO ========== */
.cart-icon-header img {
  filter: var(--cart-icon-header-filter, none);
}

.cart-icon-footer img {
  filter: var(--cart-icon-footer-filter, none);
}

/* ========== PRODUTO - DETALHES ========== */
.product-details h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.product-details p.description {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.product-price-highlight {
  color: var(--item-price-color, #10b981);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 1rem 0;
}

.product-price-highlight-text {
  color: var(--item-price-color, #10b981);
}

.product-action-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.product-action-half-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
}

.product-action-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 1.2rem 0;
}

.product-action-split {
  flex: 1;
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #f5f5f5;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-qty-input {
  width: 48px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px;
  font-size: 1rem;
}

.product-skeleton-tall {
  height: 300px;
}

.product-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.buy-button {
  width: 100%;
  background: #288542;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  padding: 1.3rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.buy-button:hover {
  background: #1f6a34;
}

/* ========== PRODUTO - LAYOUT UNIFICADO ========== */

/* Mobile: Esconde header quando estiver em página de produto */
body:has(.product-wrapper) .topbar {
  display: none !important;
}

.product-page {
  display: block;
}

.product-image-container {
  position: relative;
  width: 100vw;
  margin-left: -1rem; /* Compensa padding do wrapper */
  margin-bottom: 1.5rem;
  background: transparent;
}

.product-image-main {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.product-image-fit-contain {
  object-fit: contain;
}

.product-image-fit-cover {
  object-fit: cover;
}

.product-top-icons {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.product-top-icons a,
.product-top-icons button {
  background: #ffffff7a;
  border-radius: 100px;
  padding: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-top-icons img {
  width: 24px;
  height: 24px;
  display: block;
  padding: 2px;
}

/* Setas de navegação da imagem principal do produto */
.product-img-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff7a;
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s;
}

.product-img-arrow:hover {
  background: #ffffffcc;
}

.product-img-arrow-left {
  left: 0.75rem;
}
.product-img-arrow-right {
  right: 0.75rem;
}

.thumbnail-img.thumb-active {
  border-color: #288542;
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
}

.thumbnail-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.thumbnail-img:hover {
  border-color: #288542;
}

.product-details {
  padding: 0 1rem 2rem;
}

/* ========== PRODUTO - DESKTOP ========== */
@media (min-width: 768px) {
  /* Desktop: Mostra header normalmente */
  body:has(.product-wrapper) .topbar {
    display: grid !important;
  }

  .product-top-icons {
    display: none; /* Esconde ícones no desktop */
  }

  .product-page {
    display: flex;
    padding: 2rem;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
  }

  .product-image-container {
    flex: 1;
    width: auto;
    margin-left: 0;
    margin-bottom: 0;
  }

  .product-image-main {
    height: 100%;
  }

  .product-thumbnails {
    justify-content: flex-start;
    padding: 0;
    margin-top: 1rem;
  }

  .product-details {
    flex: 1;
    padding: 0;
  }
}

/* ===== MENSAGENS DE FEEDBACK ===== */
.success {
  color: #059669;
  background-color: #d1fae5;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: 500;
  border-left: 4px solid #059669;
}

.error {
  color: #dc2626;
  background-color: #fee2e2;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: 500;
  border-left: 4px solid #dc2626;
}

/* ========== SKELETON LOADING ========== */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  backdrop-filter: brightness(0.95);
  background-color: rgba(0, 0, 0, 0.05);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 180px;
}

.skeleton-card-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  margin-bottom: 8px;
}

.skeleton-card-title {
  height: 16px;
  width: 80%;
  margin-bottom: 6px;
  border-radius: 4px;
}

.skeleton-card-price {
  height: 14px;
  width: 50%;
  border-radius: 4px;
}

/* Skeleton temporário durante carregamento de imagens */
.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-wrapper .skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.image-wrapper img {
  position: relative;
  z-index: 2;
  opacity: 0;
  filter: blur(10px);
  transition:
    opacity 0.3s ease,
    filter 0.4s ease;
  width: 100%;
  height: 100%;
}

.image-wrapper img.loaded {
  opacity: 1;
  filter: blur(0);
}

.image-wrapper img.loaded ~ .skeleton {
  display: none;
}

/* Image wrapper na página de produto */
.product-image-container .image-wrapper {
  height: var(--product-image-height, 400px);
  overflow: hidden;
}

.product-image-container .image-wrapper .skeleton {
  border-radius: 0;
  height: var(--product-image-height, 400px);
}

.product-image-container .image-wrapper img.loaded ~ .skeleton {
  display: none;
}

@media (max-width: 768px) {
  .product-image-container .image-wrapper {
    height: var(--product-image-height-mobile, 300px);
  }

  .product-image-container .image-wrapper .skeleton {
    height: var(--product-image-height-mobile, 300px);
  }
}

.product-wrapper.has-product-image-ratio .product-image-container .image-wrapper {
  height: auto;
  aspect-ratio: var(--product-image-aspect-ratio, auto);
  overflow: hidden;
}

.product-wrapper.has-product-image-ratio .product-image-container .image-wrapper .skeleton {
  height: 100%;
}

/* Toast CSS → /static/css/toast.css */

/* ========== CHECKOUT FOOTER (fixo acima do menu mobile) ========== */
/* Checkout Footer - REMOVIDO (substituído por cart-badge com pulse) */
.checkout-footer {
  display: none !important;
}

@media (min-width: 768px) {
  .checkout-footer {
    display: none !important;
  }
}
