/* ============================================
   DVOC Template - Common Styles
   ============================================ */

* {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Gradient background */
.gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

/* Navigation links */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #1e3a8a;
    background-color: #eff6ff;
    border-radius: 0.375rem;
}

.nav-link.active {
    color: #1e3a8a;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: #1e3a8a;
    border-radius: 1px;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    max-height: 500px;
}

/* Accordion */
.accordion-header {
    cursor: pointer;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 1000px;
}

/* Tabs */
.tab {
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-bottom: 2px solid transparent;
}

.tab.active {
    border-bottom-color: #1e3a8a;
    color: #1e3a8a;
    font-weight: 600;
}

/* Quantity counter buttons (product order form) */
.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    background-color: white;
    cursor: pointer;
    font-size: 1.25rem;
}

.quantity-btn:hover {
    background-color: #f3f4f6;
}

/* Filter buttons */
.filter-btn.active {
    background-color: #1e3a8a;
    color: white;
}

/* ============================================
   Mobile & responsive
   ============================================ */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Logo in header */
.site-logo {
    height: 2.5rem;
    width: auto;
    max-height: 48px;
    object-fit: contain;
}

@media (min-width: 640px) {
    .site-logo {
        height: 2.75rem;
    }
}

/* Header mobile improvements */
@media (max-width: 1023px) {
    .nav-desktop {
        display: none;
    }
}

/* Mobile menu - larger touch targets */
@media (max-width: 1023px) {
    .mobile-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
    }
}

/* Responsive container padding */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Breadcrumbs - prevent overflow on small screens */
@media (max-width: 640px) {
    .bg-gray-50.py-4 nav {
        flex-wrap: wrap;
        word-break: break-word;
    }
}

/* Touch-friendly buttons and links */
@media (max-width: 1023px) {
    .gradient-bg,
    .bg-primary {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Prevent horizontal overflow on tables */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
}
