/*
 * Folha de estilos principal para o site Les Clutches.
 * Inspirado na estética sofisticada e minimalista da Isla, com tons neutros e detalhes dourados.
 */

/* Variáveis de cor para fácil customização */
:root {
  --primary-color: #5E548E;      /* roxo profundo elegante */
  --secondary-color: #9E8FB2;    /* roxo claro para detalhes */
  --accent-color: #CDA34F;       /* dourado suave */
  --background-color: #FAF9F8;   /* quase branco */
  --text-color: #333333;         /* cinza escuro para alta legibilidade */
  --light-text-color: #666666;
  --border-radius: 4px;
  --transition-speed: 0.3s;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--accent-color);
}

header {
  background-color: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header nav ul li {
  font-size: 1rem;
}

main {
  padding: 2rem 2rem 4rem;
}

/* Hero section */
.hero {
  background-image: url('assets/images/bag4.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .cta-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Product grid */
.filter-bar {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.filter-bar select, .filter-bar input[type="text"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: white;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-speed);
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .card-content {
  padding: 1rem;
  flex-grow: 1;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-card p.price {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.product-card .tags {
  font-size: 0.8rem;
  color: var(--light-text-color);
  margin-bottom: 0.5rem;
}

/* Botões dentro dos cards de produto */
.product-card button,
.product-card .btn-card {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition-speed);
  font-size: 0.9rem;
}

.product-card button:hover,
.product-card .btn-card:hover {
  background-color: var(--primary-color);
}

/* Product detail */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.product-detail img {
  max-width: 400px;
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.product-detail .info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-detail .info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.product-detail .info p {
  margin-bottom: 1rem;
}

.product-detail .info .price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.product-detail .info button {
  align-self: flex-start;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.product-detail .info button:hover {
  background-color: var(--accent-color);
}

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cart-table th, .cart-table td {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.cart-table th {
  background-color: var(--secondary-color);
  color: white;
}

.cart-table td img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.cart-summary {
  max-width: 400px;
  margin-left: auto;
  border: 1px solid #e0e0e0;
  padding: 1rem;
  border-radius: var(--border-radius);
  background-color: white;
}

.cart-summary h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cart-summary .total {
  font-weight: bold;
  font-size: 1.2rem;
}

form.checkout-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form.checkout-form input, form.checkout-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

form.checkout-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

form.checkout-form button:hover {
  background-color: var(--accent-color);
}

/* Responsividade */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .product-detail {
    flex-direction: column;
  }
  .product-detail img {
    max-width: 100%;
  }
}