/* Fear of God Style CSS - Modern & Interactive */

/* Typography Utilities */
.font-fog {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 400;
}

.font-fog-light {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 300;
}

.font-fog-bold {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 600;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 300;
}

h1 {
    font-weight: 300;
    letter-spacing: 0.1em;
}

h2 {
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Body Text */
body, p, span, div, a, button, input, textarea, select {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 3px;
}

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

/* Color utility classes */
.bg-primary { background-color: #000000 !important; }
.text-primary { color: #000000 !important; }
.bg-secondary { background-color: #ffffff !important; }
.text-secondary { color: #ffffff !important; }

.hover\:bg-black:hover { background-color: #000000 !important; }
.hover\:text-black:hover { color: #000000 !important; }
.hover\:bg-white:hover { background-color: #ffffff !important; }
.hover\:text-white:hover { color: #ffffff !important; }

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

.product-card:hover {
    transform: translateY(-4px);
}

/* Image zoom effect */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.3s ease;
}

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

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fear of God Style Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInDelay {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay2 {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    70% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Slideshow Specific Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInDelay 1.5s ease-out;
}

.animate-fade-in-delay-2 {
    animation: fadeInDelay2 2s ease-out;
}

/* Hero Slideshow Transitions */
.slide {
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide.inactive {
    opacity: 0;
    transform: scale(1.05);
}

/* Content fade transitions */
#heroTitle h1,
#heroSubtitle p,
#heroButtons {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Slide indicator animations */
.slide-indicator {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.slide-indicator:hover {
    transform: scale(1.2);
}

.slide-indicator.active {
    transform: scale(1.3);
}

/* Navigation arrow animations */
#prevSlide,
#nextSlide {
    transition: all 0.3s ease-in-out;
}

#prevSlide:hover,
#nextSlide:hover {
    transform: scale(1.1);
}

/* Interactive Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:grayscale-0 {
    filter: grayscale(0);
}

.group:hover .group-hover\:bg-opacity-20 {
    background-color: rgba(0, 0, 0, 0.2);
}

.group:hover .group-hover\:bg-opacity-30 {
    background-color: rgba(0, 0, 0, 0.3);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Form input focus effects */
.form-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Price tag styling */
.price-tag {
    position: relative;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #000000;
    color: #ffffff;
    border-radius: 0;
    font-weight: 400;
}

.price-tag::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #000000;
}

/* Badge styling */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-sale {
    background: #000000;
    color: white;
}

.badge-new {
    background: #000000;
    color: white;
}

.badge-featured {
    background: #000000;
    color: #ffffff;
}

/* Rating stars */
.rating-stars {
    display: inline-flex;
    align-items: center;
}

.rating-stars .star {
    color: #e5e7eb;
    transition: color 0.2s ease;
}

.rating-stars .star.filled {
    color: #000000;
}

.rating-stars .star.half {
    background: linear-gradient(90deg, #000000 50%, #e5e7eb 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Quantity selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0;
    overflow: hidden;
}

.quantity-selector button {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity-selector button:hover {
    background: #f3f4f6;
}

.quantity-selector input {
    width: 3rem;
    height: 2.5rem;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 400;
}

/* Color swatches */
.color-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 0;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch:hover {
    border-color: #000000;
    transform: scale(1.1);
}

.color-swatch.selected {
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Size selector */
.size-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-option {
    padding: 0.5rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
}

.size-option:hover {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.1);
}

.size-option.selected {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

/* Mobile menu animations */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Search suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-suggestion-item:hover {
    background: #f3f4f6;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #000000;
}

.toast-error {
    border-left: 4px solid #000000;
}

.toast-warning {
    border-left: 4px solid #000000;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #000000;
    transition: width 0.3s ease;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .text-responsive {
        font-size: 1rem;
    }
}

@media (min-width: 1025px) {
    .text-responsive {
        font-size: 1.125rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-black {
        background: #000000 !important;
        color: #ffffff !important;
    }
    
    .text-black {
        color: #000000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 

/* Accessibility improvements */
.text-black {
    color: #000000 !important;
}

.bg-black {
    background-color: #000000 !important;
}

/* Ensure sufficient contrast for text on black background */
.bg-black.text-white {
    color: #ffffff !important;
}

/* Improve focus indicators */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #000000 !important;
    outline-offset: 2px !important;
}

/* Ensure proper contrast for disabled elements */
button:disabled,
input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Improve link contrast */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Ensure proper contrast for form labels */
label {
    color: #000000 !important;
    font-weight: 400;
}

/* Improve button text contrast */
.btn-primary,
.bg-black {
    color: #ffffff !important;
    font-weight: 400;
}

/* Ensure proper contrast for price text */
.price-tag {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Improve badge contrast */
.badge-sale {
    background: #000000 !important;
    color: #ffffff !important;
}

.badge-new {
    background: #000000 !important;
    color: #ffffff !important;
}

.badge-featured {
    background: #000000 !important;
    color: #ffffff !important;
} 

/* Mobile Submenu Styles */
.submenu {
    border-left: 2px solid #e5e7eb;
    margin-left: 0.5rem;
}

.submenu li a {
    transition: all 0.2s ease;
    border-radius: 0;
    margin-left: 0.5rem;
}

.submenu li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    padding-left: 0.75rem;
}

/* Mobile Menu Enhancements */
.category-item button {
    transition: all 0.2s ease;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
}

.category-item button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.category-item button:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.15);
}

/* Chevron Animation */
[id^="chevron-"] {
    transition: transform 0.3s ease;
}

/* Mobile Menu Overlay Enhancements */
#mobileMenuOverlay {
    backdrop-filter: blur(4px);
}

#mobileMenu {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
} 

/* Product Cards */
.product-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.category-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.category-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.instagram-item {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
    position: relative;
}

.instagram-item.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Fear of God Design Enhancements */
.product-card {
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

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

.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* Typography */
.font-light {
    font-weight: 300;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

/* Buttons */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
}

/* Form Inputs */
input {
    transition: all 0.3s ease;
}

input:focus {
    transform: translateY(-1px);
}

/* Loading States */
.loading-minimal {
    position: relative;
    overflow: hidden;
}

.loading-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Grid Layouts */
.grid-minimal {
    display: grid;
    gap: 2rem;
}

/* Spacing */
.section-minimal {
    padding: 5rem 0;
}

/* Color Palette */
.text-minimal {
    color: #000000;
}

.bg-minimal {
    background-color: #ffffff;
}

.border-minimal {
    border-color: #e5e5e5;
}

/* Hover Effects */
.hover-minimal:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Focus States */
.focus-minimal:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-8xl {
        font-size: 4rem;
    }
    
    .section-minimal {
        padding: 3rem 0;
    }
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Fear of God inspired specific styles */
.hero-section {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.category-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.product-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

/* Clean typography */
.clean-text {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Minimal borders */
.minimal-border {
    border: 1px solid #e5e5e5;
}

.minimal-border-dark {
    border: 1px solid #000000;
}

/* Fixed header adjustments */
body {
    padding-top: 0;
}

/* Hero section behind fixed header */
.hero-behind-header {
    padding-top: 5rem; /* Account for fixed header on desktop */
}

@media (max-width: 768px) {
    .hero-behind-header {
        padding-top: 4rem; /* Smaller padding for mobile header */
    }
}

/* Clean buttons */
.clean-button {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.clean-button:hover {
    background: #333333;
    transform: translateY(-2px);
}

.clean-button-outline {
    background: transparent;
    color: #000000;
    border: 1px solid #000000;
    padding: 12px 24px;
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.clean-button-outline:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Enhanced Responsive Design */
@media (max-width: 640px) {
    /* Mobile-specific styles */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Ensure all sections stay within viewport */
    section {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Fix any elements that might extend beyond screen */
    * {
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Fix transform animations on mobile */
    .group:hover .scale-x-100 {
        transform: scaleX(1) !important;
        max-width: 100% !important;
    }
    
    /* Ensure buttons don't overflow */
    .group {
        overflow: hidden !important;
        max-width: 100% !important;
    }
    
    /* Header adjustments for mobile */
    header {
        padding: 0.5rem 0;
    }
    
    /* Body padding for fixed header */
    body {
        padding-top: 0 !important;
    }
    
    /* Hero section adjustments for fixed header */
    section.relative.min-h-screen {
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        margin-top: 0 !important;
        padding-top: 4rem; /* Account for fixed header */
    }
    
    /* Mobile menu improvements */
    #mobileMenu {
        width: 100%;
        max-width: 320px;
    }
    
    /* Search bar mobile optimization */
    input[type="text"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button touch targets */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Hero Section Mobile Fixes */
    section.relative.min-h-screen {
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
    }
    
    /* Hero content mobile spacing */
    #heroTitle h1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    #heroSubtitle p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem;
    }
    
    #heroButtons {
        gap: 0.75rem;
    }
    
    #heroButtons a {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Slide indicators mobile */
    .slide-indicator {
        width: 8px !important;
        height: 8px !important;
    }
    
    /* Navigation arrows mobile */
    #prevSlide, #nextSlide {
        font-size: 1rem !important;
        padding: 0.5rem !important;
    }
    
    /* Improved spacing for mobile */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Mobile grid adjustments */
    .grid {
        gap: 1rem;
    }
    
    /* Mobile text sizing */
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-8xl {
        font-size: 4rem;
    }
    
    /* Mobile image sizing */
    .h-96 {
        height: 16rem;
    }
    
    /* Mobile spacing */
    .space-y-6 > * + * {
        margin-top: 1.5rem;
    }
    
    .space-y-8 > * + * {
        margin-top: 2rem;
    }
    
    .space-y-12 > * + * {
        margin-top: 3rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    /* Tablet-specific styles */
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Tablet grid adjustments */
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    /* Tablet text sizing */
    .text-6xl {
        font-size: 4rem;
    }
    
    .text-8xl {
        font-size: 5rem;
    }
}

@media (min-width: 1025px) {
    /* Desktop-specific styles */
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Desktop grid adjustments */
    .grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    /* Desktop text sizing */
    .text-6xl {
        font-size: 5rem;
    }
    
    .text-8xl {
        font-size: 6rem;
    }
}

/* Mobile-first responsive utilities */
@media (max-width: 640px) {
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-block {
        display: block !important;
    }
    
    .mobile-flex {
        display: flex !important;
    }
    
    .mobile-grid {
        display: grid !important;
    }
}

@media (min-width: 641px) {
    .desktop-hidden {
        display: none !important;
    }
    
    .desktop-block {
        display: block !important;
    }
    
    .desktop-flex {
        display: flex !important;
    }
    
    .desktop-grid {
        display: grid !important;
    }
}

/* Improved mobile navigation */
@media (max-width: 640px) {
    /* Mobile menu improvements */
    #mobileMenuOverlay {
        z-index: 9999;
    }
    
    #mobileMenu {
        z-index: 10000;
    }
    
    /* Mobile header improvements */
    header {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile search improvements */
    .search-container {
        position: relative;
        width: 100%;
    }
    
    .search-container input {
        width: 100%;
        padding-right: 3rem;
    }
    
    .search-container button {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 3rem;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .hover\:scale-105:hover {
        transform: none;
    }
    
    .hover\:translateY-2:hover {
        transform: none;
    }
    
    /* Touch-friendly spacing */
    .space-y-4 > * + * {
        margin-top: 1rem;
    }
    
    .space-y-6 > * + * {
        margin-top: 1.5rem;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #ffffff !important;
    }
    
    .border-gray-200 {
        border-color: #000000 !important;
    }
    
    .text-gray-600 {
        color: #000000 !important;
    }
    
    .text-gray-700 {
        color: #000000 !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Print styles */
@media print {
    header, nav, .mobile-menu {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* Mobile Search Bar - No Borders */
#mobileSearchBar input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

#mobileSearchBar input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

#mobileSearchBar input:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
} 

/* Transparent Header Styles */
header {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

header * {
    background: transparent !important;
}

/* White text with black border for better visibility */
#mainHeader.text-white * {
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* Ensure icons also have the border */
#mainHeader.text-white i {
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* Apply to specific text elements for better control */
#mainHeader.text-white a,
#mainHeader.text-white button,
#mainHeader.text-white span {
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
} 