/* NutHaven Custom Styles */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Line Clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth Transitions */
.transition {
    transition: all 0.3s ease;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e87425;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Card Hover Effect */
.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Quantity Input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(232, 116, 37, 0.2);
}

/* Button States */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Image Aspect Ratio */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Prose - Typography for rich content */
.prose {
    line-height: 1.75;
    color: #374151;
}
.prose p {
    margin-top: 1em;
    margin-bottom: 1em;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #111827;
}
.prose h1 { font-size: 2em; }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.25em; }
.prose h4 { font-size: 1.125em; }
.prose ul, .prose ol {
    padding-left: 1.5em;
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}
.prose a {
    color: #e87425;
    text-decoration: underline;
}
.prose a:hover {
    color: #d95a1b;
}
.prose blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    font-style: italic;
    color: #6b7280;
    margin: 1em 0;
}
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.prose th, .prose td {
    border: 1px solid #e5e7eb;
    padding: 0.5em 0.75em;
    text-align: left;
}
.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}
.prose code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
}
.prose pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}
.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.prose hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}
