/*
 * Legacy cart stylesheet now unified with the shared sidebar cart style.
 * All cart overlay/panel visuals come from components/cart-sidebar.css.
 */
@import url('./components/cart-sidebar.css');

/* Header icon styles are centralized in css/components/header.css */

/* Cart Button Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #d9534f;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  border: 2px solid white;
}

/* Add-to-Cart Button Styling (legacy pages) */
.add-to-cart-btn {
  padding: 15px 40px;
  background: linear-gradient(135deg, #c9a961 0%, #d4b27d 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.add-to-cart-btn:hover::before {
  left: 100%;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
  background: linear-gradient(135deg, #d4b27d 0%, #c9a961 100%);
}

.add-to-cart-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(201, 169, 97, 0.3);
}

.add-to-cart-btn:disabled {
  background: #d4d4d4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.add-to-cart-btn-icon {
  font-size: 1.2em;
}

/* Animation cart → voir assets/css/components/cart-animation.css */

/* Size Selection Modal */
.size-selection-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.size-selection-modal.active {
  opacity: 1;
  visibility: visible;
}

.size-selection-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.size-selection-modal.active .size-selection-content {
  transform: scale(1);
}

.size-selection-header {
  margin-bottom: 25px;
}

.size-selection-header h2 {
  font-family: var(--font-body);
  font-size: 1.8em;
  color: #5a5a5a;
  margin-bottom: 10px;
}

.size-selection-header p {
  color: #999;
  font-size: 0.95em;
}

.size-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.size-option-btn {
  padding: 20px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.size-option-btn:hover {
  border-color: #c9a961;
  background: #fefdfb;
  transform: translateX(5px);
}

.size-option-btn.selected {
  border-color: #c9a961;
  background: #fefdfb;
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.2);
}

.size-option-info {
  flex: 1;
}

.size-option-name {
  font-family: var(--font-body);
  font-size: 1.1em;
  color: #5a5a5a;
  font-weight: 600;
  margin-bottom: 5px;
}

.size-option-description {
  font-size: 0.9em;
  color: #999;
}

.size-option-price {
  font-size: 1.3em;
  color: #c9a961;
  font-weight: bold;
}

.size-selection-actions {
  display: flex;
  gap: 15px;
}

.size-selection-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-confirm-btn {
  background: #c9a961;
  color: white;
  border: none;
}

.size-confirm-btn:hover {
  background: #b8954f;
}

.size-confirm-btn:disabled {
  background: #d4d4d4;
  cursor: not-allowed;
}

.size-cancel-btn {
  background: white;
  color: #5a5a5a;
  border: 1px solid #e8e8e8;
}

.size-cancel-btn:hover {
  background: #f8f6f3;
}

@media (max-width: 768px) {
  .add-to-cart-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 1em;
  }

  .size-selection-content {
    padding: 30px 20px;
  }

  .size-option-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .size-option-price {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .add-to-cart-btn {
    min-width: auto;
  }

  .size-selection-header h2 {
    font-size: 1.5em;
  }

  .size-option-name {
    font-size: 1em;
  }
}
