/* Custom CSS for OFRA Cosmetics Website */

/* Import custom fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Base styles */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Performance optimizations */


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;

}

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

/* ULTIMATE FIX: Direct navigation targeting */
.desktop-navigation {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2rem !important;
    flex-wrap: nowrap !important;
}

.desktop-navigation > * {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.desktop-navigation a {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    padding: 0.5rem 0 !important;
    transition: color 0.2s ease !important;
    flex-shrink: 0 !important;
    margin-right: 15px !important;
}

.desktop-navigation .group {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

/* CRITICAL: Hide desktop navigation on mobile and tablet */
@media (max-width: 1030px) {
    .desktop-navigation {
        display: none !important;
    }
    
    /* Also hide the nav element with Tailwind classes */
    header nav.hidden.md\\:flex {
        display: none !important;
    }
    
    /* Ensure mobile toggle button is visible when desktop nav is hidden */
    .mobile-menu-toggle {
        display: block !important;
    }
}

/* Header layout fixes - Desktop only */
@media (min-width: 1031px) {
    header .container > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    /* Ensure proper spacing in header */
    header .container > div > * {
        flex-shrink: 0;
    }

    /* Logo positioning */
    header .text-2xl {
        flex-shrink: 0;
    }

    /* Navigation container */
    header nav.hidden.md\\:flex {
        flex: 1;
        justify-content: center;
        margin: 0 2rem;
    }

    /* Utility icons positioning */
    header .flex.items-center.space-x-4 {
        flex-shrink: 0;
    }
}

/* Hero section enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #fef3c7 0%, #92400e 50%, #1f2937 100%);
}

/* Product card hover effects */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

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

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #fff 100%);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Swiper customizations */
.swiper {
    width: 100%;
    height: 100%;
    /* Optimize for performance */
    will-change: transform;
    transform: translateZ(0);
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Optimize for performance */
    will-change: transform;
    transform: translateZ(0);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    max-width: 85%;
    background-color: white;
    z-index: 10000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu-overlay.active {
    display: block !important;
}

/* Prevent body scroll when mobile menu is active */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* Ensure mobile menu only shows on mobile/tablet */
@media (min-width: 1031px) {
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Hamburger Button Animation */
.mobile-menu-toggle.active .hamburger-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line-2 {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line-3 {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Items */
.mobile-menu-item {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-menu-item:hover {
    color: #000;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

/* Mobile Menu Sections */
.mobile-menu-section {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-section:last-child {
    border-bottom: none;
}

.mobile-menu-header {
    cursor: pointer;
    user-select: none;
}

.mobile-dropdown-icon {
    transition: transform 0.3s ease;
}

.mobile-menu-header.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

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

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

/* Footer Responsive Styles */
.footer-section-header {
    transition: all 0.3s ease;
    position: relative;
}

.footer-dropdown-icon {
    transition: opacity 0.3s ease, transform 0.3s ease 0.1s;
    opacity: 0;
    transform: rotate(0deg);
    pointer-events: none;
}

.footer-section-header.active .footer-dropdown-icon {
    opacity: 1;
    transform: rotate(180deg);
    pointer-events: auto;
}

/* Ensure icons are hidden on desktop */
@media (min-width: 1024px) {
    .footer-dropdown-icon {
        display: none !important;
    }
}

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

/* Ensure footer content is visible on desktop by default */
@media (min-width: 1024px) {
    .footer-section-content {
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }
}

.footer-section-content.active {
    max-height: 500px;
}

/* Ensure footer content is visible on desktop */
@media (min-width: 1024px) {
    .footer-section-content {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .desktop-footer-content {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Override any potential hidden states */
    .footer-section-content:not(.active) {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Force visibility for all footer content on desktop */
    footer .footer-section-content {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1030px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Show mobile menu button on tablet and mobile */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Ensure desktop navigation is hidden on tablet and mobile */
    header nav.hidden.md\\:flex {
        display: none !important;
    }
    
    /* Hide desktop navigation class */
    .desktop-navigation {
        display: none !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Product cards - make bigger on mobile */
    .product-card {
        min-height: 400px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .product-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
    
    .product-card h3 {
        font-size: 1.25rem;
        margin: 1rem 0 0.5rem 0;
    }
    
    .product-card p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .product-card .price {
        font-size: 1.125rem;
        font-weight: 600;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay.active {
        display: block !important;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    /* Footer mobile styles */
    .footer-section-content {
        display: none;
    }
    
    .footer-section-content.active {
        display: block;
        max-height: none;
    }
    
    /* Newsletter form mobile */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 0.5rem;
    }
    
    /* Subscription form enhancements */
    .newsletter-form input:focus,
    .newsletter-form button:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    }
    
    .newsletter-form button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }
    
    /* General subscription form styling */
    form input[type="email"]:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }
    
    form button[type="submit"]:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }
    
    /* Error state styling for subscription forms */
    form input[type="email"].error {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }
    
    form input[type="email"].error:focus {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    }
    
    /* Legal links mobile */
    .legal-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Ensure desktop navigation is hidden on mobile */
    .desktop-navigation {
        display: none !important;
    }
    
    header nav.hidden.md\\:flex {
        display: none !important;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Product cards - bigger on mobile */
    .product-card {
        min-height: 450px;
        padding: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .product-card img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        border-radius: 0.5rem;
    }
    
    .product-card h3 {
        font-size: 1.375rem;
        margin: 1.25rem 0 0.75rem 0;
        line-height: 1.4;
    }
    
    .product-card p {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }
    
    .product-card .price {
        font-size: 1.25rem;
        font-weight: 700;
    }
    
    /* Mobile menu width adjustment */
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
    
    /* Header padding adjustment */
    header .container > div {
        padding: 0.75rem 0;
    }
    
    /* Ensure mobile menu button is visible */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Ensure desktop navigation is hidden */
    header nav.hidden.md\\:flex {
        display: none !important;
    }
    
    .desktop-navigation {
        display: none !important;
    }
    
    /* Footer padding adjustment */
    footer {
        padding: 2rem 0;
    }
    
    /* Social icons mobile */
    .social-icon {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    /* Product cards - optimized for very small mobile */
    .product-card {
        min-height: 500px;
        padding: 2rem;
        margin-bottom: 2.5rem;
        border-radius: 1rem;
    }
    
    .product-card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: 0.75rem;
    }
    
    .product-card h3 {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem 0;
        line-height: 1.3;
    }
    
    .product-card p {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }
    
    .product-card .price {
        font-size: 1.375rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    
    /* Mobile menu item padding */
    .mobile-menu-item {
        padding: 0.75rem 0;
    }
    
    /* Footer section padding */
    .footer-section {
        margin-bottom: 1rem;
    }
    
    /* Newsletter form spacing */
    .newsletter-form {
        gap: 0.75rem;
    }
    
    /* Ensure desktop navigation is hidden */
    .desktop-navigation {
        display: none !important;
    }
}

/* Tablet specific styles */
@media (min-width: 641px) and (max-width: 1024px) {
    .mobile-menu {
        width: 400px;
        max-width: 80vw;
    }
    
    /* Tablet grid adjustments */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ensure mobile menu button is visible on tablet */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Ensure desktop navigation is hidden on tablet */
    header nav.hidden.md\\:flex {
        display: none !important;
    }
    
    .desktop-navigation {
        display: none !important;
    }
}

/* Desktop styles (1031px and above) */
@media (min-width: 1031px) {
    /* Ensure desktop navigation is visible */
    header nav.hidden.md\\:flex {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2rem !important;
        flex-wrap: nowrap !important;
        flex: 1 !important;
        margin: 0 2rem !important;
    }
    
    /* Hide mobile menu button on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Ensure proper header layout on desktop */
    header .container > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    /* Logo positioning on desktop */
    header .text-2xl {
        flex-shrink: 0;
    }
    
    /* Ensure all nav items are inline */
    header nav.hidden.md\\:flex > * {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* Utility icons positioning on desktop */
    header .flex.items-center.space-x-4 {
        flex-shrink: 0;
    }
}

/* Large tablet and small desktop */
@media (min-width: 1031px) and (max-width: 1280px) {
    .container {
        max-width: 1100px;
    }
    
    /* Adjust dropdown menu width */
    .dropdown-menu {
        width: 90vw;
        max-width: 1100px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images for high DPI */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .mobile-menu,
    .mobile-menu-content,
    .footer-section-content {
        transition: none;
    }
}

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

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-menu {
        height: 100vh;
        overflow-y: auto;
    }
    
    .mobile-menu-content {
        max-height: 300px;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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

/* Loading animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Sticky header enhancement */
.sticky-header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    will-change: transform;
    transform: translateZ(0);
    z-index: 999;
}

/* Product rating stars */
.star-rating {
    color: #fbbf24;
}

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

/* Custom gradients for sections */
.gradient-pink {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.gradient-gray {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

/* Dropdown menu styles */
.dropdown-menu {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    width: 100dvw;
    max-width: 100dvw;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0;
    margin-right: 0;
    /* Optimize for performance */
    will-change: transform, opacity;
    backface-visibility: hidden;
    /* Ensure dropdown is hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    /* Ensure content doesn't overflow */
    overflow: hidden;
    /* Ensure proper z-index and positioning */
    z-index: 1000;
    position: absolute;
    top: 100%;
}

/* SHOP button active state when dropdown is open */
.shop-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu when active */
.dropdown-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) scale(1) !important;
}

/* Initial state for dropdown */
.dropdown-menu {
    transform: translateX(-50%) scale(0.95);
}

/* Additional hover improvements for better UX */
.shop-button {
    position: relative;
    z-index: 10;
}

/* Ensure the dropdown container has proper positioning */
.group {
    position: relative;
}

/* Ensure smooth transitions */
.dropdown-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    /* Debug: Add a border to see the dropdown area */
    border: 2px solid transparent;
}

/* Debug: Show dropdown border when active */
.dropdown-menu.active {
    border-color: #3b82f6;
}

/* Dropdown arrow animation */
.dropdown-arrow {
    transition: transform 0.3s ease;
}

.shop-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu entrance animation - removed to prevent conflicts with JavaScript */
/* @keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu {
    animation: dropdownFadeIn 0.3s ease-out;
} */

/* Ensure dropdown content stays within bounds */
.dropdown-menu .py-8 {
    max-width: 100%;
    overflow: hidden;
}

.dropdown-menu .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Special offers section containment */
.dropdown-menu .bg-gradient-to-br {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.dropdown-menu .text-center {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure special offers content stays within bounds */
.dropdown-menu .bg-gradient-to-br .text-center {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.dropdown-menu .bg-gradient-to-br .text-center > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure the button in special offers doesn't overflow */
.dropdown-menu .bg-gradient-to-br .text-center a {
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Ensure grid items don't overflow */
.dropdown-menu .grid {
    max-width: 100%;
    box-sizing: border-box;
}

.dropdown-menu .grid > div {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Ensure grid columns don't overflow */
.dropdown-menu .lg\\:grid-cols-4 {
    max-width: 100%;
}

.dropdown-menu .lg\\:grid-cols-4 > div {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure the special offers column specifically doesn't overflow */
.dropdown-menu .lg\\:grid-cols-4 > div:last-child {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Dropdown menu item hover effects */
.dropdown-item {
    transition: transform 0.2s ease, background 0.2s ease;
    will-change: transform;
    transform: translateZ(0);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(5px) translateZ(0);
}

/* Dropdown category icons */
.dropdown-category-icon {
    transition: transform 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.dropdown-item:hover .dropdown-category-icon {
    transform: scale(1.1) translateZ(0);
}

/* Dropdown category images */
.dropdown-category-icon img {
    transition: transform 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.dropdown-item:hover .dropdown-category-icon img {
    transform: scale(1.05) translateZ(0);
}

/* Full-width dropdown positioning */
.group {
    position: relative;
}

/* Ensure the dropdown container doesn't cause horizontal overflow */
.group .dropdown-menu {
    max-width: 100dvw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Ensure the dropdown content container is properly constrained */
.group .dropdown-menu > div {
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive dropdown adjustments - only for mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        left: 0 !important;
        transform: none !important;
        width: 100dvw;
        max-width: 100dvw;
    }
    
    .dropdown-menu .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .dropdown-menu .py-8 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .dropdown-menu .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .dropdown-menu .grid {
        gap: 1rem;
    }
}

/* Ensure dropdown menu works properly on desktop */
@media (min-width: 1031px) {
    .dropdown-menu {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Product image placeholder styles */
.product-placeholder {
    background: linear-gradient(45deg, #f3f4f6 25%, transparent 25%), 
                linear-gradient(-45deg, #f3f4f6 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f3f4f6 75%), 
                linear-gradient(-45deg, transparent 75%, #f3f4f6 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Additional performance optimizations */
/* Optimize images for better performance */
img {
    max-width: 100%;
    height: auto;
    /* Enable hardware acceleration for images */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize sections for better scrolling */
section {
    /* Enable hardware acceleration for sections */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce repaints during scroll */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    /* Optimize for performance */
    transform: translateZ(0);
}


