/**
 * RESPONSIVE STYLES
 * Melhorias de responsividade para o site
 */

/* ============================================================================
   GERAL
   ============================================================================ */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  /* Header */
  header#topo .cover {
    height: 200px;
  }
  
  header#topo .info h1 {
    font-size: 24px;
  }
  
  header#topo .info .detalhe {
    font-size: 13px;
  }
  
  /* Produtos */
  main#lista .produtos {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  main#lista .produtos .item {
    margin-bottom: 0;
  }
  
  main#lista .produtos .item .texto h3 {
    font-size: 16px;
  }
  
  main#lista .produtos .item .texto .preco {
    font-size: 20px;
  }
  
  /* Categorias */
  #menuCategorias .categorias {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  #menuCategorias .categorias a {
    font-size: 13px;
    padding: 8px 15px;
  }
  
  /* Alertas */
  .alert {
    padding: 15px;
    font-size: 14px;
  }
  
  /* Countdown */
  .countdown {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }
  
  .countdown .box {
    min-width: 60px;
  }
  
  .countdown .box span {
    font-size: 24px;
  }
  
  .countdown .box p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  /* Header */
  header#topo .cover {
    height: 180px;
  }
  
  header#topo .info h1 {
    font-size: 20px;
  }
  
  header#topo .info .icones {
    gap: 10px;
  }
  
  header#topo .info .icones a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  /* Produtos */
  main#lista .produtos .item .fotoProduto {
    width: 80px;
    height: 80px;
  }
  
  main#lista .produtos .item .fotoProduto img {
    width: 80px;
    height: 80px;
  }
  
  main#lista .produtos .item .texto {
    padding: 10px;
  }
  
  main#lista .produtos .item .texto h3 {
    font-size: 14px;
    line-height: 1.3;
  }
  
  main#lista .produtos .item .texto span {
    font-size: 12px;
  }
  
  main#lista .produtos .item .texto .preco {
    font-size: 18px;
  }
  
  main#lista .produtos .item .texto .precoPromocao {
    font-size: 12px;
  }
  
  /* Categorias */
  #menuCategorias {
    padding: 10px 0;
  }
  
  #menuCategorias .categorias a {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  /* Alertas */
  .alert {
    padding: 12px;
    font-size: 13px;
  }
  
  /* Avaliações */
  .item .avaliacao h3 {
    font-size: 14px;
  }
  
  .item .avaliacao p {
    font-size: 13px;
  }
  
  .item .fotoProduto {
    width: 60px;
    height: 60px;
  }
  
  /* Countdown */
  .countdown .box {
    min-width: 50px;
    padding: 10px;
  }
  
  .countdown .box span {
    font-size: 20px;
  }
  
  .countdown .box p {
    font-size: 10px;
  }
}

/* ============================================================================
   PÁGINA DE PRODUTO
   ============================================================================ */
@media (max-width: 768px) {
  .product-content {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .product-info h1 {
    font-size: 22px;
  }
  
  .price-current {
    font-size: 28px;
  }
  
  .option-group {
    padding: 15px;
  }
  
  .option-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .option-item-quantity {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .product-container {
    padding: 15px;
  }
  
  .product-content {
    padding: 15px;
  }
  
  .product-info h1 {
    font-size: 20px;
  }
  
  .price-current {
    font-size: 24px;
  }
  
  .option-group {
    padding: 12px;
  }
  
  .option-group-title {
    font-size: 14px;
  }
  
  .option-group-subtitle {
    font-size: 12px;
  }
}

/* ============================================================================
   CHECKOUT
   ============================================================================ */
@media (max-width: 768px) {
  .checkout-content {
    grid-template-columns: 1fr;
  }
  
  .checkout-summary {
    position: static;
    margin-top: 30px;
  }
  
  .checkout-form {
    padding: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .checkout-container {
    padding: 15px;
  }
  
  .checkout-form {
    padding: 15px;
  }
  
  .checkout-summary {
    padding: 15px;
  }
  
  .checkout-steps {
    flex-direction: column;
    gap: 10px;
  }
  
  .checkout-step {
    padding: 8px 15px;
    font-size: 13px;
  }
}

/* ============================================================================
   SIDE CART
   ============================================================================ */
@media (max-width: 480px) {
  .side-cart {
    max-width: 100%;
  }
  
  .cart-item {
    flex-direction: column;
    gap: 10px;
  }
  
  .cart-item-image {
    width: 100%;
    height: 150px;
  }
  
  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================================
   SEÇÕES DE CATEGORIA
   ============================================================================ */
.categoria {
  position: relative;
  margin-bottom: 40px;
  padding-top: 20px;
  scroll-margin-top: 100px;
}

.categoria:first-of-type {
  margin-top: 20px;
}

.categoria h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

#pague-1-leve-2,
#hamburguer-artesanal {
  scroll-margin-top: 120px;
  padding-top: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .categoria {
    margin-bottom: 30px;
    padding-top: 15px;
    scroll-margin-top: 80px;
  }
  
  #pague-1-leve-2,
  #hamburguer-artesanal {
    scroll-margin-top: 100px;
    padding-top: 15px;
    margin-top: 15px;
  }
  
  .categoria h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .categoria {
    margin-bottom: 25px;
    padding-top: 10px;
    scroll-margin-top: 70px;
  }
  
  #pague-1-leve-2,
  #hamburguer-artesanal {
    scroll-margin-top: 90px;
    padding-top: 10px;
    margin-top: 10px;
  }
  
  .categoria h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
}

/* ============================================================================
   MELHORIAS GERAIS
   ============================================================================ */
/* Touch targets maiores em mobile */
@media (max-width: 768px) {
  button,
  a.btn,
  .cart-toggle,
  .side-cart-close {
    min-height: 44px;
    min-width: 44px;
  }
  
  input,
  select,
  textarea {
    font-size: 16px; /* Evita zoom no iOS */
  }
}

/* Melhor espaçamento em tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  
  main#lista .produtos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animações suaves */
@media (prefers-reduced-motion: no-preference) {
  * {
    transition: all 0.3s ease;
  }
}

/* Melhor contraste em modo escuro (se aplicável) */
@media (prefers-color-scheme: dark) {
  /* Manter tema claro por enquanto */
}

