/* Panier - O'Crochet d'Amitie */

.panier-wrapper {
  padding-bottom: 50px;
}

.panier-wrapper .description {
  width: 80%;
  margin: 30px auto;
  text-align: center;
}

.panier-wrapper .description h1 {
  font-family: "Smooch Sans", serif;
  font-size: 2.5rem;
  color: rgba(192, 57, 43, 1);
}

.panier-wrapper .description h1 i {
  margin-right: 15px;
}

/* Cart container */
.cart-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Empty cart */
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-cart i {
  font-size: 5rem;
  color: #ddd;
  margin-bottom: 25px;
}

.empty-cart h2 {
  font-family: "Smooch Sans", sans-serif;
  font-size: 1.8rem;
  color: #555;
  margin-bottom: 10px;
}

.empty-cart p {
  font-family: "Titillium Web", sans-serif;
  color: #888;
  margin-bottom: 30px;
}

.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: rgba(192, 57, 43, 1);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-continue:hover {
  background: rgba(142, 68, 173, 1);
  transform: scale(1.02);
}

/* Cart content */
.cart-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

.cart-items-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.cart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.cart-header-row h2 {
  font-family: "Smooch Sans", sans-serif;
  font-size: 1.4rem;
  color: #333;
}

.btn-clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  border-radius: 20px;
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear:hover {
  background: #e74c3c;
  color: white;
}

/* Cart item */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: #f9f9f9;
}

.item-details h3 {
  font-family: "Smooch Sans", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.item-details h3 a {
  color: #333;
  text-decoration: none;
}

.item-details h3 a:hover {
  color: rgba(192, 57, 43, 1);
}

.item-variants {
  margin-top: 5px;
}

.item-variant {
  display: inline-block;
  font-size: 0.85rem;
  color: #888;
  margin-right: 10px;
}

.item-price {
  font-family: "Titillium Web", sans-serif;
  color: #888;
  font-size: 0.95rem;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 5px;
}

.item-quantity .qty-btn {
  width: 32px;
  height: 32px;
  background: rgba(192, 57, 43, 1);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.item-quantity .qty-btn:hover {
  background: rgba(142, 68, 173, 1);
}

.item-quantity input {
  width: 45px;
  height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}

.item-total {
  font-family: "Days One", sans-serif;
  font-size: 1.1rem;
  color: rgba(192, 57, 43, 1);
  min-width: 80px;
  text-align: right;
}

.item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
}

.item-remove:hover {
  color: #e74c3c;
}

/* Cart summary */
.cart-summary {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cart-summary h3 {
  font-family: "Smooch Sans", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: #333;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: "Titillium Web", sans-serif;
  color: #555;
}

.summary-divider {
  height: 1px;
  background: #eee;
  margin: 15px 0;
}

.total-row {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.total-price {
  font-family: "Days One", sans-serif;
  color: rgba(192, 57, 43, 1);
  font-size: 1.3rem;
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: rgba(192, 57, 43, 1);
  color: white;
  border: none;
  border-radius: 30px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-checkout:hover {
  background: rgba(142, 68, 173, 1);
  transform: scale(1.02);
}

.login-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(142, 68, 173, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.login-notice i {
  color: rgba(142, 68, 173, 1);
}

.login-notice p {
  margin: 0;
  font-family: "Titillium Web", sans-serif;
  font-size: 0.9rem;
  color: #555;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-family: "Titillium Web", sans-serif;
  color: rgba(192, 57, 43, 1);
  text-decoration: none;
}

.continue-shopping:hover {
  text-decoration: underline;
}

/* Download badge for tutorials */
.download-badge {
  display: inline-block;
  background: rgba(39, 174, 96, 0.12);
  color: #27ae60;
  font-size: 0.75rem;
  font-family: "Oswald", sans-serif;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 3px;
}

.download-badge i {
  margin-right: 3px;
  font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 900px) {
  .cart-content {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 15px;
  }

  .item-image img {
    width: 60px;
    height: 60px;
  }

  .item-quantity,
  .item-total,
  .item-remove {
    grid-column: 2;
  }

  .item-quantity {
    margin-top: 10px;
  }

  .cart-header-row {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .panier-wrapper .description h1 {
    font-size: 1.8rem;
  }
}
