/* Custom styles to complement Tailwind CSS */

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

/* Custom transitions */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Custom button hover effects */
.btn-primary {
    @apply bg-green-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-green-700 transition-colors inline-flex items-center justify-center;
}

.btn-secondary {
    @apply border-2 border-green-600 text-green-600 px-6 py-3 rounded-lg font-semibold hover:bg-green-600 hover:text-white transition-colors inline-flex items-center justify-center;
}

/* Card hover effects */
.card {
    @apply bg-white rounded-lg shadow-md overflow-hidden hover:shadow-lg transition-shadow;
}

/* Product grid responsive adjustments */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Form styling */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500 transition-colors;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500 transition-colors resize-none;
    min-height: 120px;
}

/* Breadcrumb styling */
.breadcrumb {
    @apply flex items-center space-x-2 text-sm text-gray-600;
}

.breadcrumb a {
    @apply hover:text-green-600 transition-colors;
}

.breadcrumb-separator {
    @apply text-gray-400;
}

/* Product quantity selector */
.quantity-selector {
    @apply flex items-center border border-gray-300 rounded-lg overflow-hidden;
}

.quantity-btn {
    @apply px-3 py-2 bg-gray-100 hover:bg-gray-200 text-gray-700 border-none cursor-pointer transition-colors;
}

.quantity-input {
    @apply w-16 text-center border-none bg-white py-2 focus:outline-none;
}

/* Blog post content styling */
.blog-content h2 {
    @apply text-2xl font-bold text-gray-900 mt-8 mb-4;
}

.blog-content h3 {
    @apply text-xl font-semibold text-gray-900 mt-6 mb-3;
}

.blog-content p {
    @apply text-gray-700 leading-relaxed mb-4;
}

.blog-content ul,
.blog-content ol {
    @apply ml-6 mb-4 space-y-2;
}

.blog-content li {
    @apply text-gray-700;
}

.blog-content blockquote {
    @apply border-l-4 border-green-500 pl-6 py-2 my-6 bg-green-50 italic text-gray-800;
}

.blog-content a {
    @apply text-green-600 hover:text-green-700 underline transition-colors;
}

/* Loading states */
.loading {
    @apply opacity-50 pointer-events-none;
}

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

.mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

.mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

/* Utility classes */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}
