/* style-ecommerce.css - Estilos para loja e produtos */

:root {
  --bg: #f8fafb;
  --dark: #023b48;
  --teal: #00c4d7;
  --muted: #6b7a85;
  --card-shadow: 0 12px 30px rgba(2,27,34,0.08);
}

/* ============================
   FILTROS
============================ */
.filter-container {
  width: 100%;
  background: #fff;
  padding: 24px;
  margin: 30px 0;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0,0,15,0.08);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-input {
  padding: 12px 16px;
  border-radius: 12px;
  background: #f3f8ff;
  border: 2px solid #dce7f9;
  font-weight: 600;
  color: #0c2c5c;
  min-width: 180px;
  cursor: pointer;
  outline: none;
  transition: 0.2s;
  font-family: inherit;
  font-size: 15px;
}

.filter-input:hover {
  border-color: #4d9cff;
  background: #eaf3ff;
}

.filter-input:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 196, 215, 0.1);
}

.btn-clear {
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0066ff, #2cb4ff);
  color: white;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 6px 18px rgba(0,113,255,0.25);
  font-family: inherit;
  font-size: 15px;
}

.btn-clear:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,113,255,0.35);
}

/* ============================
   GRID DE PRODUTOS
============================ */
.products-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,86,203,0.12);
}

.product-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #f9fafb;
}

.product-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 18px;
}

.specs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.price {
  font-weight: 900;
  color: var(--dark);
  font-size: 22px;
  margin: auto 0 16px 0;
}

.btn-alugar {
  background: linear-gradient(135deg, #0056cb, var(--teal));
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  transition: 0.2s;
  box-shadow: 0 8px 24px rgba(2,55,120,0.12);
  display: inline-block;
}

.btn-alugar:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 12px 30px rgba(2,55,120,0.18);
}

/* ============================
   PÁGINA DO PRODUTO
============================ */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: #fff;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  max-width: 1200px;
  margin: 0 auto;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-main-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.thumb-img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

.thumb-img:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-info h1 {
  font-size: 32px;
  margin: 0 0 12px;
  color: var(--dark);
}

.product-specs {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 15px;
}

.product-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 24px;
}

.product-description {
  line-height: 1.7;
  color: #4a5b63;
  margin-bottom: 32px;
  font-size: 16px;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #00c853, #1de278);
  padding: 16px 28px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 200, 83, 0.3);
  transition: 0.2s;
  display: inline-block;
}

.whatsapp-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,200,83,0.45);
  filter: brightness(1.05);
}

/* ============================
   RESPONSIVIDADE
============================ */
@media (max-width: 980px) {
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-input,
  .btn-clear {
    width: 100%;
    min-width: unset;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .product-page {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
  }

  .product-info h1 {
    font-size: 26px;
  }

  .product-price {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .filter-container {
    padding: 20px 16px;
    margin: 20px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card-content {
    padding: 16px;
  }

  .product-card h3 {
    font-size: 17px;
  }

  .specs {
    font-size: 12px;
  }

  .price {
    font-size: 20px;
  }

  .product-page {
    padding: 20px 16px;
  }

  .product-info h1 {
    font-size: 22px;
  }

  .product-specs {
    font-size: 13px;
  }

  .product-price {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .product-description {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .thumbs {
    gap: 8px;
  }

  .thumb-img {
    width: 70px;
    height: 55px;
  }

  .whatsapp-btn {
    padding: 14px 20px;
    font-size: 16px;
  }
}