/* Snipcart Custom Styles for ExoticFlowersOnly */
/* Wholesale THCA E-commerce Theme */

/* Cart Button in Navigation */
.cart-menu-item {
  margin-left: auto;
}

.cart-button {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

.cart-button svg {
  width: 20px;
  height: 20px;
}

.snipcart-items-count {
  background: var(--gold);
  color: var(--primary-purple-dark);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.snipcart-items-count:empty::before {
  content: "0";
}

.snipcart-total-price {
  font-weight: bold;
  margin-left: 0.5rem;
}

/* Variant Selector Styles */
.variant-selector {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 2px solid var(--border-light);
  border-radius: 5px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.variant-selector:hover,
.variant-selector:focus {
  border-color: var(--primary-purple);
  outline: none;
}

.variant-selector-wrapper {
  margin: 1rem 0;
}

.variant-selector-wrapper label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

/* Contact for Price Button */
.contact-for-price {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.contact-for-price:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* Snipcart Theme Overrides */
#snipcart {
  /* Primary Colors */
  --color-default: var(--text-primary);
  --color-alt: var(--text-secondary);
  --color-icon: var(--primary-cyan);
  
  /* Button Colors */
  --color-buttonPrimary: white;
  --bgColor-buttonPrimary: var(--primary-purple);
  --bgColor-buttonPrimary-hover: var(--primary-purple-dark);
  
  --color-buttonSecondary: var(--primary-purple);
  --bgColor-buttonSecondary: transparent;
  --borderColor-buttonSecondary: var(--primary-purple);
  
  /* Input Colors */
  --bgColor-input: white;
  --borderColor-input: var(--border-light);
  --borderColor-input-hover: var(--primary-purple);
  --borderColor-input-focus: var(--primary-purple);
  
  /* Link Colors */
  --color-link: var(--primary-purple);
  --color-link-hover: var(--primary-purple-dark);
  
  /* Badge Colors */
  --bgColor-badge: var(--primary-purple);
  --color-badge: white;
  
  /* Modal Colors */
  --bgColor-modal: white;
  --bgColor-modalVeil: rgba(0, 0, 0, 0.7);
  
  /* Success/Error Colors */
  --color-success: #10b981;
  --color-error: #ef4444;
  
  /* Shadows */
  --shadow-default: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-tooltip: 0 10px 40px -15px rgba(0, 0, 0, 0.2);
}

/* Snipcart Cart Summary */
.snipcart-cart-summary {
  background: var(--card-gradient);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1rem;
}

/* Snipcart Checkout Button */
.snipcart-checkout {
  background: var(--primary-gradient) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 5px !important;
  transition: all 0.3s ease !important;
}

.snipcart-checkout:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 20px rgba(147, 51, 234, 0.3) !important;
}

/* Snipcart Add to Cart Button Enhancement */
.snipcart-add-item {
  position: relative;
  overflow: hidden;
}

.snipcart-add-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.snipcart-add-item:hover::before {
  width: 300px;
  height: 300px;
}

/* Product Card Enhancements for Snipcart */
.product-card {
  position: relative;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.15);
}

.product-card .variant-selector {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Wholesale Specific Styles */
.min-quantity-badge {
  background: var(--gold);
  color: var(--primary-purple-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  margin: 0.5rem 0;
}

.bulk-pricing-info {
  background: linear-gradient(135deg, #faf5ff, #ecfeff);
  border-left: 3px solid var(--primary-purple);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 5px 5px 0;
}

.bulk-pricing-info h4 {
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.bulk-pricing-tier {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

.bulk-pricing-tier:last-child {
  border-bottom: none;
}

/* Mobile Responsive Cart */
@media (max-width: 768px) {
  .cart-menu-item {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .cart-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  }
  
  .cart-button .snipcart-total-price {
    display: none;
  }
  
  .snipcart-items-count {
    position: absolute;
    top: -5px;
    right: -5px;
  }
  
  .variant-selector {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Loading State for Add to Cart */
.snipcart-add-item.loading {
  pointer-events: none;
  opacity: 0.7;
}

.snipcart-add-item.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

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

/* Success Animation */
.add-to-cart-success {
  animation: cartSuccess 0.6s ease;
}

@keyframes cartSuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    background: var(--color-success);
  }
  100% {
    transform: scale(1);
  }
}

/* Snipcart Modal Customization */
.snipcart-modal__container {
  max-width: 1200px;
}

.snipcart-cart-header {
  background: var(--primary-gradient);
  color: white;
}

.snipcart-item-line__container {
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.snipcart-item-line__image {
  border-radius: 5px;
  border: 1px solid var(--border-light);
}

/* Wholesale Minimum Notice */
.snipcart-item-quantity__quantity-input {
  min-width: 60px;
}

.wholesale-minimum-notice {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  color: #92400e;
  padding: 0.5rem;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 0.5rem;
}

/* Override Snipcart Default Font */
#snipcart * {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}