/* Estilos específicos da página Produtos (produtos.html) */

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

/* SECTION HEADER */
.section-header {
  text-align: center;
 margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1.4rem 0;
  background: linear-gradient(135deg, rgba(111, 169, 96, 0.08) 0%, rgba(244, 184, 68, 0.08) 100%);
  border-radius: 12px;
  border-left: 5px solid var(--primary);
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* BARRA DE BUSCA */
.search-bar {
  position: sticky;
  margin-bottom: 1.3rem;
  top: 1.5rem; /* abaixo do header */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: rgba(15, 18, 25, 0.98);
  border-bottom: 1px solid rgba(111, 169, 96, 0.2);
  z-index: 90; /* menor que o header */
  backdrop-filter: blur(10px);
}


.search-input {
  width: 100%;
  max-width: 500px;
  padding: 0.9rem 1.2rem;
  border: 2px solid rgba(111, 169, 96, 0.3);
  background: rgba(15, 23, 42, 0.8);
  border-radius: 25px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 4px rgba(111, 169, 96, 0.15);
}

/* PRODUCTS */
.products {
 margin-top: 1rem;
  padding-top: 1.5rem;
}

/* CATEGORIA SECTION - Add margin top para acomodar sticky filters */
.category-section:first-of-type {
  margin-top: 2.5rem;
}

/* CONTAINER DOS FILTROS - STICKY */
.filters-container {
  position: sticky;
  top: 4.3rem; /* header + search */
  padding: 0.6rem 0;
  margin: 0;
   margin-bottom: 0.5rem;
  z-index: 80;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.96) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(111, 169, 96, 0.25);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.filters-container:hover {
  box-shadow: 0 4px 20px rgba(111, 169, 96, 0.1);
}

/* FILTROS DE CATEGORIA */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.category-btn {
  border: 2px solid var(--primary);
  background: var(--bg);
  color: var(--text);
  padding: 0.75rem 1.6rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(111, 169, 96, 0.1);
  white-space: nowrap;
}

.category-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), #7fb56e);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.category-btn:hover:not(.active) {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(111, 169, 96, 0.2);
  color: var(--primary);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary), #7fb56e);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(111, 169, 96, 0.3);
  transform: scale(1.05);
}

.category-btn.active::before {
  opacity: 1;
}

/* SEÇÕES DE CATEGORIA */
.category-section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.category-title {
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
}

/* GRID DE PRODUTOS */
.products__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.7rem;
}

/* CARTÃO DE PRODUTO */
.product-card {
  background: var(--bg-alt);
  border-radius: 8px;
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform-origin: center;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  animation: fadeInUp 0.7s ease-out;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(111, 169, 96, 0.15);
}

.product-card--bump {
  animation: bump 0.25s ease-out;
}

.product-card__image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--bg-alt), #262d3c);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.product-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 22, 0.9), transparent 45%);
}

.product-card__image--1 {
  background-image: url("https://images.pexels.com/photos/2529148/pexels-photo-2529148.jpeg?auto=compress&cs=tinysrgb&w=800");
}

.product-card__image--2 {
  background-image: url("https://images.pexels.com/photos/1908199/pexels-photo-1908199.jpeg?auto=compress&cs=tinysrgb&w=800");
}

.product-card__image--3 {
  background-image: url("https://images.pexels.com/photos/3747140/pexels-photo-3747140.jpeg?auto=compress&cs=tinysrgb&w=800");
}

.product-card__image--4 {
  background-image: url("https://images.pexels.com/photos/3394664/pexels-photo-3394664.jpeg?auto=compress&cs=tinysrgb&w=800");
}

.product-card__body {
  padding: 1.1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.product-card__title {
  margin: 0;
  font-size: 1rem;
}

.product-card__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card__price {
  font-weight: 600;
}

/* CARRINHO */
.cart {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

.cart__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  opacity: 0;
  transition: opacity var(--transition);
}

.cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100%;
  background: rgba(15, 18, 25, 0.97);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
}

.cart--open {
  pointer-events: auto;
}

.cart--open .cart__overlay {
  opacity: 1;
}

.cart--open .cart__panel {
  transform: translateX(0);
}

.cart__header {
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.cart__header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cart__close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.cart__close:hover {
  color: var(--text);
  transform: rotate(4deg);
}

.cart__items {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cart__empty {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.cart-item {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 161, 178, 0.25);
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.cart-item__info {
  flex: 1;
}

.cart-item__info h3 {
  margin: 0 0 0.1rem;
  font-size: 0.9rem;
}

.cart-item__info span {
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.cart-item__qty {
  min-width: 1.3rem;
  text-align: center;
  font-size: 0.85rem;
}

.cart-item__btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 161, 178, 0.4);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), border-color var(--transition-fast);
}

.cart-item__btn--qty:hover {
  background: rgba(148, 161, 178, 0.2);
  transform: translateY(-1px);
}

.cart-item__btn--remove {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--muted);
}

.cart-item__btn--remove:hover {
  background: rgba(127, 90, 240, 0.1);
  border-color: rgba(127, 90, 240, 0.8);
  color: var(--primary);
}

.cart__footer {
  padding: 1rem 1.3rem 1.2rem;
  border-top: 1px solid rgba(148, 161, 178, 0.25);
  background: linear-gradient(to top, rgba(5, 8, 22, 0.95), transparent);
}

.cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.cart__note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.cart__section {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart__back {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}

.cart__back:hover {
  color: #7fb56e;
  transform: translateX(-2px);
}

.cart__address-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.3rem;
  overflow-y: auto;
}

.cart__address-form h3 {
  margin: 0 0 1.2rem;
  font-size: 1.1rem;
  color: var(--text);
}

.cart__address-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.cart__address-form .form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.cart__address-form .form-group input {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(148, 161, 178, 0.3);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  font-family: inherit;
}

.cart__address-form .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(111, 169, 96, 0.1);
}

.cart__address-form .form-group input::placeholder {
  color: var(--muted);
}

.cart__address-form .btn {
  margin-top: auto;
}
.footer__column img {
  width: 300px;   /* ajuste o valor */
  height: auto;
}
/* --- ANIMAÇÕES SUTIS --- */

/* Efeito de "pulso" no Card */
@keyframes card-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.product-card--bump {
  animation: card-bump 0.3s ease-out;
}

/* Efeito no contador do Carrinho */
@keyframes badge-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cart-toggle__count--bump {
  animation: badge-bump 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Estado de Sucesso do Botão */
.btn--success {
  background: #28a745 !important; /* Verde Sucesso */
  border-color: #28a745 !important;
  color: white !important;
}

/* RESPONSIVO */
/* Tablets - 1024px e abaixo */
@media (max-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .section-header p {
    font-size: 0.95rem;
  }
  
  .category-title {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }
  
  .product-card__image {
  }
  
  .product-card__body {
    padding: 0.9rem;
    gap: 0.6rem;
  }
  
  .product-card__title {
    font-size: 0.95rem;
  }
  
  .product-card__desc {
    font-size: 0.85rem;
  }
  
  .product-card__price {
    font-size: 1.1rem;
  }
}

/* Tablets pequenos e paisagem - 768px e abaixo */
@media (max-width: 768px) {
  .products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }
  
  .filters-container {
    padding: 0.8rem 0;
  }
  
  .search-bar {
    padding: 0.4rem 0;
  }
  
  .search-input {
    max-width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .category-filters {
    gap: 0.8rem;
  }
  
  .category-btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 16px;
  }
  
  .section-header {
    margin-bottom: 1.2rem;
    padding: 1.2rem 0;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
  }
  
  .section-header p {
    font-size: 0.9rem;
  }
  
  .category-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
  }
  
  .product-card {
    border-radius: 6px;
  }
  
  .product-card__image {
    font-size: 1.6rem;
  }
  
  .product-card__body {
    padding: 0.8rem;
  }
  
  .product-card__title {
    font-size: 0.9rem;
  }
  
  .product-card__desc {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  .product-card__price {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Celulares - 640px e abaixo */
@media (max-width: 640px) {
  .products {
    padding: 1rem 0 2.5rem;
  }
  
  .products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  
  .filters-container {
    padding: 0.7rem 0;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-bottom: 1px solid rgba(111, 169, 96, 0.15);
  }
  
  .search-bar {
    padding: 0.3rem 0;
    margin: 0;
  }
  
  .search-input {
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
  }
  
  .category-filters {
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0.5rem 0 0;
  }
  
  .category-btn {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    border-radius: 16px;
  }
  
  .category-btn.active {
    transform: scale(1.02);
  }
  
  .section-header {
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-radius: 8px;
  }
  
  .section-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
  }
  
  .section-header p {
    font-size: 0.85rem;
  }
  
  .category-section:first-of-type {
    margin-top: 0;
  }
  
  .category-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom-width: 2px;
  }
  
  .product-card {
    border-radius: 6px;
  }
  
  .product-card__image {
    font-size: 1.4rem;
  }
  
  .product-card__body {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .product-card__title {
    font-size: 0.85rem;
    margin: 0;
  }
  
  .product-card__desc {
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--muted);
  }
  
  .product-card__footer {
    gap: 0.4rem;
  }
  
  .product-card__price {
    font-size: 0.95rem;
    font-weight: 600;
  }
  
  .btn {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
  }
}

/* Celulares muito pequenos - 480px e abaixo */
@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, 100%);
  }
  
  .products {
    padding: 0.8rem 0 2rem;
  }
  
  .section-header {
    margin-bottom: 0.8rem;
    padding: 0.8rem 0;
  }
  
  .section-header h2 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }
  
  .section-header p {
    font-size: 0.8rem;
  }
  
  .filters-container {
    padding: 0.6rem 0;
  }
  
  .search-input {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }
  
  .category-filters {
    gap: 0.4rem;
  }
  
  .category-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.7rem;
  }
  
  .category-title {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }
  
  .product-card__image {
    font-size: 1.2rem;
  }
  
  .product-card__body {
    padding: 0.6rem;
  }
  
  .product-card__title {
    font-size: 0.8rem;
  }
  
  .product-card__desc {
    font-size: 0.7rem;
  }
  
  .product-card__price {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
  }
}
