:root {
    --color-primary: #0F1729;
    --color-secondary: #1E293B;
    --color-accent: #3B82F6;
    --font-family: 'Source Sans 3', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-family);
}

/* 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;
    transition: all 0.3s ease;
}

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

/* Header scroll effect */
#main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#main-header.scrolled #logo-text {
    color: #0F1729;
}

#main-header.scrolled a:not(#logo-text) {
    color: rgba(15, 23, 41, 0.8);
}

#main-header.scrolled a:hover:not(#logo-text) {
    color: #0F1729;
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateX(-2rem);
    transition: all 0.6s ease-out;
}

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

/* Decorative elements */
.decor-grid-dots {
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

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

.decor-subtle {
    opacity: 0.05;
}

.decor-moderate {
    opacity: 0.1;
}

.decor-bold {
    opacity: 0.2;
}

.decor-gradient-blur::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #3B82F6, #60A5FA);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    z-index: -1;
}

.decor-corner-tr::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent 50%, rgba(59, 130, 246, 0.1) 50%);
    z-index: -1;
}

/* FAQ accordion */
[data-faq-toggle] {
    cursor: pointer;
}

[data-faq-content] {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

[data-faq-content].open {
    max-height: 500px;
}

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

.star-empty {
    color: #d1d5db;
}

/* Form styling */
.form-input {
    @apply w-full px-4 py-3 border border-gray-200 rounded-full focus:ring-2 focus:ring-accent focus:border-accent outline-none transition-all;
}

.form-select {
    @apply w-full px-4 py-3 border border-gray-200 rounded-full focus:ring-2 focus:ring-accent focus:border-accent outline-none transition-all bg-white;
}

.form-checkbox {
    @apply rounded border-gray-300 text-accent focus:ring-accent;
}

/* Utility classes */
.rotate-180 {
    transform: rotate(180deg);
}

.transition-all-300 {
    transition: all 0.3s ease;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
}

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

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

/* Success/Error messages */
.alert-success {
    @apply bg-green-50 border border-green-200 text-green-800 px-4 py-3 rounded-lg;
}

.alert-error {
    @apply bg-red-50 border border-red-200 text-red-800 px-4 py-3 rounded-lg;
}

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

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

/* Trust badges */
.trust-badge {
    @apply flex items-center gap-2 px-3 py-2 bg-gray-50 rounded-full text-sm text-gray-600;
}