/** Shopify CDN: Minification failed

Line 12:0 Unexpected "{"
Line 12:1 Expected identifier but found "%"
Line 14:30 Unexpected bad string token
Line 14:51 Unterminated string token
Line 15:1 Expected identifier but found "%"
Line 17:0 Unexpected "<"
Line 440:0 Unexpected "<"

**/
{% comment %}
  FIXED PROFESSIONAL ADD TO CART STYLES FOR DAWN THEME
  This version works with Dawn's existing structure
{% endcomment %}

<style>
/* ============================================
   FIX QUANTITY SELECTOR (Don't break existing)
   ============================================ */
.quantity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quantity__button {
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
  background-color: #ffffff !important;
  color: #374151 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.quantity__button:hover {
  background-color: #f9fafb !important;
  border-color: #9ca3af !important;
  transform: scale(1.05) !important;
}

.quantity__button:active {
  transform: scale(0.95) !important;
}

.quantity__input {
  width: 70px !important;
  height: 44px !important;
  text-align: center !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
}

.quantity__input:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* ============================================
   ENHANCED ADD TO CART BUTTON
   ============================================ */
.product-form__submit {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

button[name="add"],
.product-form__submit button {
  position: relative !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 1rem 1.5rem !important;
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #000000 0%, #1f2937 100%) !important;
  border: none !important;
  border-radius: 0.625rem !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

button[name="add"]::before,
.product-form__submit button::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  transition: left 0.5s ease !important;
}

button[name="add"]:hover::before,
.product-form__submit button:hover::before {
  left: 100% !important;
}

button[name="add"]:not([disabled]):hover,
.product-form__submit button:not([disabled]):hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08) !important;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
}

button[name="add"]:not([disabled]):active,
.product-form__submit button:not([disabled]):active {
  transform: translateY(-1px) !important;
}

button[name="add"][disabled],
.product-form__submit button[disabled] {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
}

/* Success state */
button[name="add"].added,
.product-form__submit button.added {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  animation: successPulse 0.6s ease !important;
}

/* ============================================
   VARIANT SELECTOR ENHANCEMENTS
   ============================================ */
.product-form__input {
  margin-bottom: 1.25rem !important;
}

.product-form__input label {
  display: block !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-bottom: 0.625rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.01em !important;
}

/* Select dropdowns */
.product-form__input select,
.select__select {
  width: 100% !important;
  padding: 0.875rem 1rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #374151 !important;
  background-color: #ffffff !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.product-form__input select:hover,
.select__select:hover {
  border-color: #9ca3af !important;
  background-color: #f9fafb !important;
}

.product-form__input select:focus,
.select__select:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  background-color: #ffffff !important;
}

/* Radio buttons / Variant pills */
.product-form__input input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.product-form__input input[type="radio"] + label {
  display: inline-block !important;
  padding: 0.625rem 1.125rem !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  background-color: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-right: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.product-form__input input[type="radio"] + label:hover {
  border-color: #9ca3af !important;
  background-color: #f9fafb !important;
  transform: translateY(-1px) !important;
}

.product-form__input input[type="radio"]:checked + label {
  border-color: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   TRUST BADGES & ADDITIONAL INFO
   ============================================ */
.product__info-container::after {
  content: '';
  display: block;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Add trust badges container if it doesn't exist */
.product-form + .trust-badges,
.product-form__submit + .trust-badges {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem !important;
  padding: 1.25rem !important;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
  border-radius: 0.625rem !important;
  margin-top: 1.25rem !important;
  border: 1px solid #e5e7eb !important;
}

.trust-badges > div {
  text-align: center !important;
  transition: transform 0.2s ease !important;
}

.trust-badges > div:hover {
  transform: translateY(-2px) !important;
}

.trust-badges svg {
  width: 1.75rem !important;
  height: 1.75rem !important;
  margin: 0 auto 0.5rem !important;
  color: #10b981 !important;
}

.trust-badges div > div {
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  color: #374151 !important;
}

/* ============================================
   PRICE ENHANCEMENTS
   ============================================ */
.price {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
  margin-bottom: 1rem !important;
}

.price--on-sale .price__sale {
  color: #dc2626 !important;
}

.price__regular {
  color: #6b7280 !important;
  text-decoration: line-through !important;
  font-size: 1.25rem !important;
  margin-left: 0.5rem !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */
@media screen and (max-width: 749px) {
  button[name="add"],
  .product-form__submit button {
    font-size: 0.9375rem !important;
    min-height: 52px !important;
    padding: 0.875rem 1.25rem !important;
  }

  .quantity__button {
    width: 40px !important;
    height: 40px !important;
  }

  .quantity__input {
    width: 60px !important;
    height: 40px !important;
  }

  .trust-badges {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
  }

  .trust-badges > div {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-align: left !important;
  }

  .trust-badges svg {
    margin: 0 !important;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
button[name="add"]:focus-visible,
.product-form__submit button:focus-visible,
.quantity__button:focus-visible,
.product-form__input select:focus-visible {
  outline: 3px solid #3b82f6 !important;
  outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   LOADING STATE
   ============================================ */
button[name="add"].loading,
.product-form__submit button.loading {
  pointer-events: none !important;
  position: relative !important;
}

button[name="add"].loading::after,
.product-form__submit button.loading::after {
  content: '' !important;
  position: absolute !important;
  width: 20px !important;
  height: 20px !important;
  top: 50% !important;
  left: 50% !important;
  margin-left: -10px !important;
  margin-top: -10px !important;
  border: 3px solid rgba(255, 255, 255, 0.3) !important;
  border-top-color: #ffffff !important;
  border-radius: 50% !important;
  animation: spin 0.6s linear infinite !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   SHOPIFY PAY BUTTON STYLING
   ============================================ */
.shopify-payment-button {
  margin-top: 1rem !important;
}

.shopify-payment-button__button {
  border-radius: 0.625rem !important;
  min-height: 52px !important;
}

.shopify-payment-button__button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   SOLD OUT BADGE
   ============================================ */
.product__badge {
  position: absolute !important;
  top: 1rem !important;
  left: 1rem !important;
  padding: 0.5rem 1rem !important;
  background: #dc2626 !important;
  color: white !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  border-radius: 0.375rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  z-index: 10 !important;
}

.product__badge--sale {
  background: #10b981 !important;
}
</style>
