/* Boutique - O'Crochet d'Amitie */

.boutique-wrapper {
  padding-bottom: 50px;
}

/* Categories filter */
.categories-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 90%;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid rgba(192, 57, 43, 0.3);
  border-radius: 25px;
  color: #333;
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: rgba(192, 57, 43, 0.1);
  border-color: rgba(192, 57, 43, 1);
}

.category-btn.active {
  background: rgba(192, 57, 43, 1);
  border-color: rgba(192, 57, 43, 1);
  color: white;
}

.category-btn i {
  font-size: 1rem;
}

/* Description */
.description {
  width: 80%;
  margin: 30px auto;
  text-align: center;
}

.description h1 {
  font-family: "Smooch Sans", serif;
  font-size: 3rem;
  color: rgba(192, 57, 43, 1);
}

.description p {
  font-family: "Titillium Web", sans-serif;
  font-weight: 200;
  font-size: 1.2em;
  color: #555;
}

.description p small {
  color: #888;
}

/* Products grid */
.container {
  margin: 30px auto;
  max-width: 80%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.item-link {
  text-decoration: none;
  color: inherit;
}

.item {
  background: white;
  border: solid 1px #ddd;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-shadow: 0px 2px 15px -3px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 25px -5px rgba(0, 0, 0, 0.2);
  border-color: rgba(192, 57, 43, 0.5);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.product-badge span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.badge-commande {
  background: rgba(142, 68, 173, 0.9);
  color: white;
}

.badge-limited {
  background: #e74c3c;
  color: white;
}

.badge-available {
  background: #27ae60;
  color: white;
}

.item img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.item:hover img {
  transform: scale(1.05);
}

.item div {
  width: 100%;
  text-align: center;
}

.item div h1 {
  font-family: "Smooch Sans", sans-serif;
  font-size: 1.3em;
  margin: 10px 0;
  color: #333;
}

.item div .text {
  font-family: "Titillium Web", sans-serif;
  font-weight: 200;
  font-size: 0.95em;
  color: #666;
  line-height: 1.4;
  margin-bottom: 10px;
}

.price {
  font-family: "Days One", sans-serif;
  font-size: 1.4em;
  color: rgba(192, 57, 43, 1);
  margin: 10px 0;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: rgba(192, 57, 43, 1);
  color: white;
  border: none;
  border-radius: 25px;
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-add-cart:hover {
  background: rgba(142, 68, 173, 1);
  transform: scale(1.05);
}

/* No products */
.no-products {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.no-products i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #ddd;
}

.no-products h3 {
  font-family: "Smooch Sans", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.no-products a {
  color: rgba(192, 57, 43, 1);
}

/* Product detail page */
.product-detail-wrapper {
  padding: 30px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  padding: 15px 5%;
  font-family: "Titillium Web", sans-serif;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: rgba(192, 57, 43, 1);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb i {
  margin: 0 10px;
  font-size: 0.7rem;
  color: #999;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-images .main-image {
  position: relative;
  margin-bottom: 15px;
}

.product-images .main-image img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  background: #f9f9f9;
}

.product-badge-detail {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(142, 68, 173, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

.thumbnail-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail-images img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
  border-color: rgba(192, 57, 43, 1);
}

.product-info-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(142, 68, 173, 0.1);
  color: rgba(142, 68, 173, 1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  width: fit-content;
}

.product-info-detail h1 {
  font-family: "Smooch Sans", sans-serif;
  font-size: 2rem;
  color: #333;
  margin: 0;
}

.product-price-detail .current-price {
  font-family: "Days One", sans-serif;
  font-size: 2rem;
  color: rgba(192, 57, 43, 1);
}

.product-description-detail h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}

.product-description-detail p {
  font-family: "Titillium Web", sans-serif;
  line-height: 1.6;
  color: #555;
}

/* Variants */
.product-variants {
  margin: 15px 0;
}

.variant-group {
  margin-bottom: 15px;
}

.variant-group label {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-btn:hover {
  border-color: rgba(192, 57, 43, 0.5);
}

.variant-btn.active {
  border-color: rgba(192, 57, 43, 1);
  background: rgba(192, 57, 43, 0.05);
}

.variant-btn img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
}

/* Quantity selector */
.quantity-selector {
  margin: 15px 0;
}

.quantity-selector label {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: rgba(192, 57, 43, 1);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: rgba(142, 68, 173, 1);
}

.qty-controls input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: "Days One", sans-serif;
}

/* Actions */
.product-actions-detail {
  margin: 20px 0;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: rgba(192, 57, 43, 1);
  color: white;
  border: none;
  border-radius: 30px;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary-large:hover {
  background: rgba(142, 68, 173, 1);
  transform: scale(1.02);
}

/* Features */
.product-shipping {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(39, 174, 96, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  font-family: "Titillium Web", sans-serif;
  font-size: 0.95rem;
  color: #27ae60;
  font-weight: 600;
}

.product-shipping i {
  font-size: 1.1rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Titillium Web", sans-serif;
  font-size: 0.9rem;
  color: #555;
}

.feature i {
  color: rgba(142, 68, 173, 1);
}

/* Notice commande */
.notice-commande {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(142, 68, 173, 0.1);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid rgba(142, 68, 173, 1);
}

.notice-commande i {
  color: rgba(142, 68, 173, 1);
  margin-top: 3px;
}

.notice-commande p {
  margin: 0;
  font-family: "Titillium Web", sans-serif;
  font-size: 0.9rem;
  color: #555;
}

/* Similar products */
.similar-products {
  margin-top: 50px;
}

.similar-products h2 {
  font-family: "Smooch Sans", sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.similar-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
    max-width: 90%;
  }

  .similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .categories-filter {
    gap: 8px;
  }

  .category-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .description h1 {
    font-size: 2rem;
  }

  .container {
    grid-template-columns: 1fr;
    max-width: 95%;
    gap: 15px;
  }

  .item {
    padding: 15px;
  }

  .item img {
    width: 150px;
    height: 150px;
  }

  .item div h1 {
    font-size: 1.1em;
  }

  .price {
    font-size: 1.2em;
  }

  .product-info-detail h1 {
    font-size: 1.5rem;
  }

  .product-price-detail .current-price {
    font-size: 1.5rem;
  }

  .btn-primary-large {
    width: 100%;
    justify-content: center;
  }

  .product-features {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .category-btn span {
    display: none;
  }

  .category-btn {
    padding: 10px;
  }

  .description {
    width: 95%;
  }

  .description h1 {
    font-size: 1.5rem;
  }

  .description p {
    font-size: 1em;
  }
}
