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

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

body {
  font-family: 'DM 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 patterns */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(var(--color-accent) 1px, transparent 1px),
                    linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(45deg, 
    var(--color-accent) 0px, 
    var(--color-accent) 1px, 
    transparent 1px, 
    transparent 15px);
}

.decor-mesh {
  background: radial-gradient(ellipse at top, rgba(212, 184, 150, 0.1), transparent),
              radial-gradient(ellipse at bottom, rgba(212, 184, 150, 0.05), transparent);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 184, 150, 0.2), transparent);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(28, 25, 23, 0.1), transparent);
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.decor-glow-element {
  position: relative;
  z-index: 1;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(212, 184, 150, 0.2), rgba(212, 184, 150, 0.1), transparent);
  border-radius: 50%;
  z-index: -1;
  filter: blur(20px);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4B896' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* Intensity modifiers */
.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

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

.order-form input, .order-form select {
  background: white;
  border: 2px solid #E5E7EB;
  transition: border-color 0.3s ease;
}

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

.order-form .error {
  border-color: #EF4444;
}

/* Rating stars */
.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-stars .star {
  width: 16px;
  height: 16px;
  fill: #FCD34D;
}

/* Badge styling */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge.popular {
  background: #DBEAFE;
  color: #1E40AF;
}

.badge.bestseller {
  background: #FEF3C7;
  color: #D97706;
}

.badge.new {
  background: #D1FAE5;
  color: #059669;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.1;
  }
  
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}