.boutique-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.products-section {
  flex: 2;
  min-width: min(680px, 100%);
}

.cart-section {
  flex: 1;
  position: sticky;
  top: calc(var(--sticky-header-height, 0px) + 20px);
  height: fit-content;
  min-width: min(340px, 100%);
}

.cart-widget {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-height: calc(100vh - var(--sticky-header-height, 0px) - 40px);
  overflow: auto;
}

.cart-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.cart-count {
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: bold;
  font-size: 0.9rem;
}

.cart-item-details {
  font-size: 0.8rem;
  color: #666;
}

.cart-item-price {
  font-weight: bold;
  color: #e74c3c;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quantity-btn {
  background: #f8f9fa;
  border: 1px solid #ddd;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.quantity-btn:hover {
  background: #e9ecef;
}

.quantity-display {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
}

.cart-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #e74c3c;
  text-align: center;
}

.cart-total-amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e74c3c;
}

.product-options {
  margin: 1rem 0;
}

.boutique-grid {
  gap: 20px;
}

.produit-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.produit-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.option-group {
  margin-bottom: 1rem;
}

.option-label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.size-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-option {
  padding: 0.4rem 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.size-option:hover {
  border-color: #e74c3c;
}

.size-option.selected {
  border-color: #e74c3c;
  background: #e74c3c;
  color: white;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-add-to-cart {
  background: #27ae60;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: background 0.3s;
}

.btn-add-to-cart:hover {
  background: #219a52;
}

.btn-add-to-cart:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

.checkout-section {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  display: none;
}

.checkout-section.active {
  display: block;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.order-summary {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

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

.summary-total {
  font-size: 1.2rem;
  font-weight: bold;
  border-top: 2px solid #e74c3c;
  padding-top: 0.5rem;
  margin-top: 1rem;
}

.btn-checkout {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  width: 100%;
}

.btn-checkout:hover {
  background: #c0392b;
}

.empty-cart {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .boutique-container {
    flex-direction: column;
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-options {
    margin: 0.75rem 0;
  }

  .option-label {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
  }

  .size-options {
    gap: 0.35rem;
  }

  .size-option {
    padding: 0.3rem 0.55rem;
    font-size: 0.85rem;
    border-width: 1px;
  }

  .boutique-grid {
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .produit-image {
    height: 160px;
  }

  .produit-info {
    padding: 14px;
  }

  .produit-info h3 {
    font-size: 1.05rem;
  }

  .produit-description {
    font-size: 0.9rem;
  }

  .produit-prix {
    font-size: 1.05rem;
  }

  .cart-widget {
    padding: 1rem;
    max-height: none;
  }

  .cart-total-amount {
    font-size: 1.2rem;
  }

  .cart-section {
    position: static;
  }

  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .boutique-container {
    flex-direction: column;
  }

  .cart-section {
    position: static;
  }

  .cart-widget {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .boutique-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .boutique-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .option-label {
    font-size: 0.9rem;
  }

  .size-option {
    padding: 0.25rem 0.5rem;
    font-size: 0.82rem;
  }

  .produit-image {
    height: 140px;
  }

  .produit-info {
    padding: 12px;
  }

  .quantity-btn {
    width: 28px;
    height: 28px;
  }
}
