/* Custom Dioko Brand Styles */

/* Logo Diamond Animation */
.diamond-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1) rotate(45deg);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #6B4E3D;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A0826D;
}

/* Product card hover effects */
.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #6B4E3D, #E67E22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6B4E3D;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal animations */
.modal-enter {
  animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Cart notification */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #6B4E3D;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-notification.show {
  transform: translateX(0);
}

/* Responsive images */
.product-image {
  aspect-ratio: 1;
  object-fit: cover;
}

/* Brand colors as CSS variables for easy access */
:root {
  --dioko-brown: #6B4E3D;
  --dioko-cream: #F5F1E8;
  --dioko-orange: #E67E22;
  --dioko-blue: #2C3E50;
  --dioko-light-brown: #A0826D;
}

/* Typography enhancements */
.font-dioko {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Custom bottle color classes */
.bottle-vanilla {
  background: linear-gradient(135deg, #F5F1E8, #E8E0D1);
}

.bottle-hazelnut {
  background: linear-gradient(135deg, #2C3E50, #34495E);
}

.bottle-caramel {
  background: linear-gradient(135deg, #E67E22, #F39C12);
}

/* Flavor accent colors */
.accent-vanilla {
  color: #6B4E3D;
}

.accent-hazelnut {
  color: #E67E22;
}

.accent-caramel {
  color: #FFFFFF;
}