:root {
  --color-primary: #1A1A2E;
  --color-secondary: #2D2D44;
  --color-accent: #FF6B35;
}

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

body { 
  font-family: 'Nunito 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%;
}

/* Custom Background Patterns */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(255, 107, 53, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 107, 53, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 107, 53, 0.03) 10px,
    rgba(255, 107, 53, 0.03) 20px
  );
}

.decor-mesh {
  background-image: linear-gradient(45deg, rgba(255, 107, 53, 0.1) 25%, transparent 25%),
                    linear-gradient(-45deg, rgba(255, 107, 53, 0.1) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, rgba(255, 107, 53, 0.1) 75%),
                    linear-gradient(-45deg, transparent 75%, rgba(255, 107, 53, 0.1) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Decorative Elements */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, rgba(255, 107, 53, 0.1) 50%, transparent 50%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(255, 107, 53, 0.1) 50%, transparent 50%);
  pointer-events: none;
}

.decor-glow-element::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 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='60' height='60' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='rings' x='0' y='0' width='60' height='60' patternUnits='userSpaceOnUse'%3e%3ccircle cx='30' cy='30' r='20' fill='none' stroke='%23FF6B35' stroke-width='1' opacity='0.1'/%3e%3ccircle cx='30' cy='30' r='10' fill='none' stroke='%23FF6B35' stroke-width='1' opacity='0.1'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100%25' height='100%25' fill='url(%23rings)'/%3e%3c/svg%3e");
}

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

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

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

/* Fade In Animation */
.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.transition-opacity {
  transition-property: opacity;
}

.duration-500 {
  transition-duration: 500ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* FAQ Accordion */
.rotate-180 { 
  transform: rotate(180deg); 
}

/* Order Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.show {
  max-height: 400px;
}

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

.product-image:hover {
  transform: scale(1.05);
}

/* Star rating */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.star {
  width: 1rem;
  height: 1rem;
  color: #fbbf24;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-bestseller {
  background-color: #fef3c7;
  color: #d97706;
}

/* Testimonial styles */
.testimonial-card {
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--color-accent);
  position: absolute;
  top: -1rem;
  left: 0;
  font-family: serif;
  opacity: 0.3;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

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

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}