/* Modern Search Engine Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.top-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.nav-brand {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    color: #ff6b35;
    transform: scale(1.05);
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 0 0 0 15px;
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #4a7c59 0%, #2d5016 100%);
    min-height: 100vh;
    padding-top: 60px; /* Account for fixed top nav */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
    margin: 0;
}

header h1 a {
    color: white;
    text-decoration: none;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

header h1 a:hover {
    text-shadow: 0 6px 12px rgba(0,0,0,0.6);
    transform: translateY(-1px);
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin: 0;
}

.last-updated {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.last-updated p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.last-updated strong {
    color: white;
    font-weight: 600;
}


/* Search Container */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    gap: 1.5rem;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 700px;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.search-container form {
    width: 100%;
    max-width: 700px;
}

.search-form:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.search-container form:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.search-input {
    flex: 1;
    padding: 18px 24px;
    font-size: 17px;
    border: none;
    outline: none;
    background: transparent;
    color: #2c3e50;
    font-weight: 400;
}

.search-input::placeholder {
    color: #95a5a6;
}

.search-button {
    padding: 18px 32px;
    font-size: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-button:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e8851a 100%);
    transform: scale(1.05);
}

/* Results Container */
.results-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.results-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-section h2::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #4a7c59 0%, #6ba368 100%);
    border-radius: 2px;
}

/* Products Grid - Modern Responsive */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Product Cards - Modern Design */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #4a7c59, #ff6b35, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card.in-stock {
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.product-card.in-stock::before {
    background: linear-gradient(90deg, transparent, #28a745, #20c997, transparent);
}

.product-card.out-of-stock {
    border: 1px solid rgba(220, 53, 69, 0.2);
    opacity: 0.85;
}

.product-card.out-of-stock::before {
    background: linear-gradient(90deg, transparent, #dc3545, #fd7e14, transparent);
}

/* Standardized Product Images */
.product-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    /* Optimize full-size image loading */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-quality;
    /* Add smooth loading effect */
    opacity: 0;
    animation: fadeInImage 0.3s ease-in-out forwards;
}

.product-image img.loaded {
    opacity: 1;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.no-image {
    color: #adb5bd;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    opacity: 0.7;
}

/* Product Info */
.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-manufacturer {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.product-stock {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.in-stock .product-stock {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.out-of-stock .product-stock {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Welcome Section */
.welcome-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.welcome-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4a7c59 0%, #2d5016 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Quick Search */
.quick-search {
    margin-bottom: 2rem;
}

.quick-search h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.quick-search-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.quick-search-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.quick-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b 0%, #e8851a 100%);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Search Info and Help */
.search-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid #ff6b35;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 700px;
    width: 100%;
}

.search-help {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #6c757d;
    max-width: 700px;
    width: 100%;
}

.search-suggestions {
    margin-top: 1.5rem;
    text-align: left;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.search-suggestions li {
    padding: 0.5rem 0;
    color: #6c757d;
    font-weight: 500;
}

.search-suggestions li::before {
    content: "💡 ";
    margin-right: 0.5rem;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.show-more-btn {
    background: linear-gradient(135deg, #4a7c59 0%, #2d5016 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
    background: linear-gradient(135deg, #3d6b4a 0%, #1f3e0b 100%);
}

.show-more-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.show-more-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    background: #ccc;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    color: #6c757d;
}

.no-results h3 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Responsive Design */

/* Very Small Phones - Portrait */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    /* Navigation improvements for small screens */
    .top-nav-container {
        padding: 0 0.75rem;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-brand a {
        display: block;
        text-align: center;
        line-height: 1.2;
    }

    /* Header improvements */
    header {
        padding: 1.5rem 0 1rem;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    header h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .tagline {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    /* Search container fixes for very small screens */
    .search-container {
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }

    .search-form {
        border-radius: 20px;
        min-height: 50px;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 16px; /* Prevents iOS zoom */
        min-width: 0; /* Allows flexbox shrinking */
    }

    .search-button {
        padding: 12px 16px;
        font-size: 12px;
        min-width: 70px;
        white-space: nowrap;
    }

    /* Content sections */
    .welcome-section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .welcome-section h2 {
        font-size: 1.5rem;
    }

    .welcome-section p {
        font-size: 1rem;
    }

    .results-section {
        padding: 1rem;
        border-radius: 12px;
    }

    .results-section h2 {
        font-size: 1.3rem;
    }

    .products-grid {
        gap: 0.75rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.2rem;
    }
}

/* Small Phones and Large Phones - Portrait */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 2rem 0 1.5rem;
    }

    .logo-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .tagline {
        font-size: 1rem;
    }

    .last-updated {
        margin-top: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .last-updated p {
        font-size: 0.8rem;
        text-align: center;
    }

    .welcome-section {
        padding: 2rem 1.5rem;
    }

    .welcome-section h2 {
        font-size: 2rem;
    }

    .quick-search-buttons {
        flex-direction: column;
        align-items: center;
    }

    .quick-search-btn {
        width: 200px;
        text-align: center;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-container form {
        max-width: 100%;
        border-radius: 25px;
    }

    .search-input {
        padding: 15px 20px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .search-button {
        padding: 15px 20px;
        font-size: 14px;
        min-width: 80px;
    }

    .results-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .results-section h2 {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-info {
        padding: 1.25rem;
    }
}

/* Small Landscape Phones */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 480px) {
    header {
        padding: 1rem 0;
    }

    .logo-container {
        flex-direction: row;
        gap: 1rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .search-container {
        margin-bottom: 2rem;
    }
}

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

@media (min-width: 1025px) and (max-width: 1399px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus states for accessibility */
.search-input:focus,
.search-button:focus {
    outline: 2px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

/* Touch target improvements for mobile */
@media (max-width: 768px) {
    /* Ensure minimum 44px touch targets */
    .search-button,
    .quick-search-btn,
    .show-more-btn,
    .contact-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Hamburger menu touch target */
    .hamburger {
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    /* Navigation links touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Extreme small screens (iPhone SE, older Androids) */
@media (max-width: 375px) {
    .search-input::placeholder {
        font-size: 14px;
    }

    .search-button {
        font-size: 11px;
        padding: 12px 12px;
        min-width: 60px;
    }

    header h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .nav-brand {
        font-size: 0.9rem;
    }

    .container {
        padding: 8px;
    }
}

/* Fix for very wide screens in landscape */
@media (min-width: 1600px) {
    .search-container form {
        max-width: 800px;
    }

    .container {
        max-width: 1600px;
    }
}

/* Contact Page Styles */
.store-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    background: #f8f9fa;
}

.store-image {
    width: 100%;
    height: 150%; /* Scale up to allow cropping */
    object-fit: cover;
    object-position: center;
    transform: translateY(-12.5%); /* Crop 25% from top */
    filter: brightness(1.05) contrast(1.02);
    transition: all 0.3s ease;
}

.store-image-container:hover .store-image {
    transform: translateY(-12.5%) scale(1.05);
}

.page-header {
    text-align: center;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.contact-card.full-width {
    grid-column: 1 / -1;
}

.contact-card.store-image-card {
    grid-column: span 1;
}

.contact-card.hours-card {
    grid-row: span 2;
}

.contact-card h2 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.4rem;
}

.contact-info p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-info strong {
    color: #1a252f;
    font-weight: 600;
}

.contact-info a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Store Hours Styling */
.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(116, 124, 115, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.day:hover {
    background: rgba(116, 124, 115, 0.2);
}

.day.closed {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.day.closed:hover {
    background: rgba(220, 53, 69, 0.2);
}

.day-name {
    font-weight: 600;
    color: #2c3e50;
}

.hours {
    color: #6c757d;
    font-weight: 500;
}

.day.closed .day-name,
.day.closed .hours {
    color: #721c24;
}

/* Contact Action Buttons */
.contact-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b 0%, #e8851a 100%);
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .store-image-container {
        height: 100px;
    }

    .contact-card.store-image-card {
        grid-column: 1 / -1;
    }

    .page-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-btn {
        text-align: center;
        justify-content: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #000;
        color: #fff;
    }

    .results-section {
        background: #fff;
        color: #000;
    }

    .product-card {
        border: 2px solid #000;
    }
}

/* ================================
   LOADING PAGE STYLES
   ================================ */

/* Loading page specific body styling */
body.loading-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: linear-gradient(135deg, #4a7c59 0%, #2d5016 100%) !important;
    color: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    padding: 20px !important;
    margin: 0 !important;
    padding-top: 0 !important;
}

.loading-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 40px 30px;
    width: 100%;
    max-width: 500px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.loading-container .header {
    margin-bottom: 25px;
    text-align: center;
}

.loading-container .logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a7c59 0%, #6ba368 100%) !important;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.loading-container .logo img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
}

.loading-container .title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50 !important;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #4a7c59 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-container .subtitle {
    font-size: 16px;
    color: #2c3e50 !important;
    margin-bottom: 10px;
    font-weight: 500;
}

.loading-notice {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    margin: 15px 0 25px 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: pulse 2s ease-in-out infinite;
    text-align: center;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.funny-status-container {
    background: linear-gradient(135deg, #4a7c59 0%, #6ba368 100%) !important;
    color: white !important;
    border-radius: 15px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.2);
    border-left: 4px solid #ff6b35;
    text-align: center;
}

.funny-status {
    font-size: 14px;
    font-style: italic;
    font-weight: 500;
    transition: opacity 0.3s ease;
    line-height: 1.4;
    color: white !important;
}
}

.funny-status.fade {
    opacity: 0;
}

.loading-container .stages {
    margin: 20px 0;
}

.loading-container .stage {
    display: grid;
    grid-template-columns: 150px 1fr 80px;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;  /* Removed spacing between bars */
    padding: 4px 0;
    text-align: left;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.loading-container .stage.active {
    opacity: 1;
}

.loading-container .stage.completed {
    opacity: 0.8;
}

.loading-container .stage-name {
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50 !important;
    white-space: nowrap;
}

.loading-container .stage-status {
    font-size: 11px;
    font-weight: 500;
    color: #ff6b35 !important;
    text-transform: uppercase;
    text-align: right;
}

.loading-container .stage-status.active {
    color: #4a7c59 !important;
}

.loading-container .stage-status.completed {
    color: #6ba368 !important;
}

.loading-container .stage-status.error {
    color: #dc3545 !important;
}

.loading-container .progress-bar {
    width: 100%;
    height: 18px;  /* Increased height for better visibility */
    background: linear-gradient(135deg, #f8f5f0 0%, #ede4d3 100%);
    border-radius: 9px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.loading-container .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a7c59 0%, #ff6b35 50%, #f7931e 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.loading-container .progress-fill.completed {
    background: linear-gradient(90deg, #4a7c59 0%, #6ba368 100%);
}

.loading-container .progress-fill.error {
    background: linear-gradient(90deg, #dc3545 0%, #e55a2b 100%);
}

.loading-container .footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #8d6e63;
}

/* Loading page mobile optimization */
@media (max-width: 480px) {
    .loading-container {
        padding: 20px;
        margin: 10px;
    }

    .loading-container .header {
        margin-bottom: 15px;
    }

    .loading-container .title {
        font-size: 18px;
    }

    .loading-container .stage {
        grid-template-columns: 100px 1fr 60px;
        gap: 8px;
        padding: 3px 0;
    }

    .loading-container .stage-name {
        font-size: 11px;
    }

    .loading-container .stage-status {
        font-size: 10px;
    }

    .loading-container .progress-bar {
        height: 14px;
    }

    .funny-status-container {
        margin: 15px 0;
        padding: 10px;
    }

    .funny-status {
        font-size: 13px;
    }
}

/* Loading page dark mode support */
@media (prefers-color-scheme: dark) {
    .loading-page {
        background: linear-gradient(135deg, #4a7c59 0%, #2d5016 100%);
        color: #e9ecef;
    }

    .loading-container {
        background: linear-gradient(135deg, #2d3748 0%, #3a4f3a 100%);
        box-shadow: 0 4px 20px rgba(45, 80, 22, 0.4);
        border: 2px solid rgba(74, 124, 89, 0.3);
    }

    .loading-container .title {
        color: #f8f9fa;
    }

    .loading-container .stage-name {
        color: #e9ecef;
    }

    .loading-container .progress-bar {
        background: linear-gradient(135deg, #3a4f3a 0%, #2d3748 100%);
    }

    .funny-status-container {
        background: #4a5568;
        border-left-color: #6366f1;
    }

    .funny-status {
        color: #e9ecef;
    }
}

.hidden {
    display: none;
}

/* ================================
   INLINE LOADING OVERLAY STYLES
   ================================ */

/* Initial Loading Overlay (appears over main content) */
.initial-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a4635 0%, #0d5d42 50%, #10704f 100%);
    z-index: 9999;
    display: flex; /* Show by default for instant loading */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.initial-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.initial-loading-overlay .loading-header {
    text-align: center;
    margin-bottom: 2rem;
}

.initial-loading-overlay .loading-header .logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.initial-loading-overlay .loading-header .title {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.initial-loading-overlay .funny-status-container {
    margin-bottom: 2rem;
    text-align: center;
}

.initial-loading-overlay .funny-status {
    color: #98fb98;
    font-size: 1.1rem;
    min-height: 1.5rem;
    transition: opacity 0.3s ease;
}

.initial-loading-overlay .funny-status.fade {
    opacity: 0.3;
}

/* Mobile Responsive Styles for Loading Overlay */
@media (max-width: 768px) {
    .initial-loading-overlay {
        padding: 1rem;
    }
    
    .initial-loading-overlay .loading-header .logo img {
        width: 60px;
        height: 60px;
    }
    
    .initial-loading-overlay .loading-header .title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .initial-loading-overlay .loading-header {
        margin-bottom: 1.5rem;
    }
    
    .initial-loading-overlay .funny-status-container {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .initial-loading-overlay .funny-status {
        font-size: 1rem;
        line-height: 1.4;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .initial-loading-overlay {
        padding: 0.5rem;
    }
    
    .initial-loading-overlay .loading-header .logo img {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .initial-loading-overlay .loading-header .title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .initial-loading-overlay .loading-header {
        margin-bottom: 1rem;
    }
    
    .initial-loading-overlay .funny-status-container {
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .initial-loading-overlay .funny-status {
        font-size: 0.9rem;
        line-height: 1.3;
        padding: 0 0.5rem;
        word-wrap: break-word;
    }
}

