/* Custom CSS for Nordpol Bakehouse */

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

/* Category tab styles */
.category-tab {
    background-color: transparent;
    border: 2px solid #E8D5B7;
    color: #5C4433;
}

.category-tab:hover {
    background-color: #E8D5B7;
}

.category-tab.active {
    background-color: #C9A66B;
    border-color: #C9A66B;
    color: white;
}

/* Product card hover effects */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(61, 44, 30, 0.1);
}

/* Gallery item hover */
.gallery-item {
    transition: transform 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #C9A66B;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background-color: #C9A66B;
    color: white;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A66B;
    outline-offset: 2px;
}

/* Smooth page load animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main,
section {
    animation: fadeIn 0.6s ease-out;
}

/* Navbar background on scroll */
nav.scrolled {
    background-color: rgba(253, 248, 243, 0.98);
    box-shadow: 0 2px 20px rgba(61, 44, 30, 0.08);
}

/* Price tag styling */
.price-tag {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: #A67C4E;
}

/* Form input placeholder styling */
input::placeholder,
textarea::placeholder {
    color: #7A5D47;
    opacity: 0.6;
}

/* Badge for sold out items */
.sold-out-badge {
    background: linear-gradient(135deg, #A67C4E 0%, #7A5D47 100%);
}

/* Decorative wheat pattern */
.wheat-pattern {
    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%3Cpath d='M30 5c-2 4-2 8 0 12s4 6 0 10c-2-4-2-8 0-10s2-8 0-12zm0 28c-2 4-2 8 0 12s4 6 0 10c-2-4-2-8 0-10s2-8 0-12z' fill='%23E8D5B7' fill-opacity='0.3'/%3E%3C/svg%3E");
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Print styles */
@media print {
    nav,
    #enquiry,
    .mobile-menu-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
