:root {
  --color-primary: #1C1917;
  --color-secondary: #2C2825;
  --color-accent: #D4B896;
}

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 5rem; 
}

body { 
  font-family: 'Work Sans', system-ui, sans-serif; 
}

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rotate-180 { 
  transform: rotate(180deg); 
}

/* Decorative Elements */
.decor-grid-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(212, 184, 150, 0.3) 1px, transparent 0);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(212, 184, 150, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(212, 184, 150, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(212, 184, 150, 0.05),
    rgba(212, 184, 150, 0.05) 10px,
    transparent 10px,
    transparent 20px
  );
}

.decor-mesh {
  background: radial-gradient(ellipse at top, rgba(212, 184, 150, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at bottom, rgba(28, 25, 23, 0.1) 0%, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(212, 184, 150, 0.2), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(-45deg, rgba(212, 184, 150, 0.1), transparent);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(212, 184, 150, 0.1), transparent);
  pointer-events: none;
}

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 184, 150, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='rings' patternUnits='userSpaceOnUse' width='100' height='100'%3e%3ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(212, 184, 150, 0.1)' stroke-width='1'/%3e%3ccircle cx='50' cy='50' r='35' fill='none' stroke='rgba(212, 184, 150, 0.05)' stroke-width='1'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100' height='100' fill='url(%23rings)'/%3e%3c/svg%3e");
  background-size: 100px 100px;
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.3; }
.decor-moderate { opacity: 0.6; }
.decor-bold { opacity: 1; }

/* Order form styling */
.order-form {
  background: linear-gradient(135deg, #FDFCFB 0%, #F9F5F0 100%);
  border: 2px solid #D4B896;
}

.form-input {
  border: 2px solid #E5E7EB;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #D4B896;
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Rating stars */
.rating-stars {
  color: #FCD34D;
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease;
}

#mobile-menu.show {
  animation: slideDown 0.3s ease-out;
}

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

/* Smooth scrolling header */
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header.scrolled a {
  color: #1F2937;
}

header.scrolled a:hover {
  color: #D4B896;
}

/* Testimonial slider */
.testimonial-slider {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonial-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-slide {
  scroll-snap-align: start;
  min-width: 300px;
}

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content.open {
  max-height: 200px;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #D4B896;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Success/error messages */
.message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.message.success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.message.error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}