/* Website Color Palette - Based on Logo */
:root {
    --primary-orange: #D97A2B;
    --secondary-dark-blue: #1A2D55;
    --neutral-light: #FFFFFF;
    --neutral-dark: #0A0A0A;
    --accent-light-orange: #F5C16C;
    --hover-orange: #C1681F;
}

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

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

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

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

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

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

/* Hero Slide Transitions */
.hero-slide {
    transition: opacity 1s ease-in-out;
}

/* Product Card Hover Effects */
.bg-white.rounded-lg.shadow-lg {
    transition: all 0.3s ease;
}

.bg-white.rounded-lg.shadow-lg:hover {
    transform: translateY(-5px);
}

/* Mobile Menu Animation */
#mobile-menu {
    z-index: 9999 !important;
}

#mobile-menu-panel {
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    z-index: 9999 !important;
    position: fixed !important;
    background: white !important;
}

#mobile-overlay {
    z-index: 9998 !important;
    position: fixed !important;
    background: rgba(26, 45, 85, 0.9) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#mobile-menu-btn {
    z-index: 50;
    position: relative;
}

/* Ensure menu content is visible */
#mobile-menu-panel {
    opacity: 1 !important;
    visibility: visible !important;
}

#mobile-menu-panel * {
    opacity: 1 !important;
    visibility: visible !important;
}

#mobile-menu-panel img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

#mobile-menu-panel span,
#mobile-menu-panel a,
#mobile-menu-panel button {
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
}

#mobile-menu-panel a {
    color: #1A2D55 !important;
}

#mobile-menu-panel .text-white {
    color: white !important;
}

#mobile-menu-panel .text-\[#1A2D55\] {
    color: #1A2D55 !important;
}

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

/* Button Hover Effects */
button, a[class*="bg-orange-500"] {
    transition: all 0.3s ease;
}

/* Logo Image Styling */
nav img {
    max-height: 56px;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Responsive Logo */
@media (max-width: 640px) {
    nav img {
        max-height: 40px;
    }
}

/* Navbar Scroll Effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar Link Animations */
.nav-link {
    position: relative;
}

.nav-link:hover {
    color: var(--primary-orange);
}

/* Mobile Nav Link Icons */
.mobile-nav-link svg {
    transition: all 0.3s ease;
}

.mobile-nav-link:hover svg {
    opacity: 1 !important;
    transform: translateX(5px);
}

/* Backdrop Blur Support */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-orange);
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Custom Color Classes */
.bg-primary-orange {
    background-color: var(--primary-orange);
}

.bg-primary-orange:hover {
    background-color: var(--hover-orange);
}

.text-primary-orange {
    color: var(--primary-orange);
}

.text-secondary-blue {
    color: var(--secondary-dark-blue);
}

.bg-secondary-blue {
    background-color: var(--secondary-dark-blue);
}

.text-accent-orange {
    color: var(--accent-light-orange);
}

.hover-accent:hover {
    color: var(--accent-light-orange);
    border-color: var(--accent-light-orange);
}

/* Hero Section Enhancements */
.hero-slide {
    min-height: auto;
}

/* Mobile Hero Section - Remove extra space */
@media (max-width: 768px) {
    .hero-slide {
        min-height: auto !important;
    }
    
    .hero-slide img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    section.relative.overflow-hidden {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Backdrop Blur Support */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Scrollbar Hide for Category Navigation */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

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

/* Print Styles */
@media print {
    nav,
    footer,
    .bg-orange-500,
    button {
        display: none !important;
    }
}

/* Hide Product Pricing on Homepage */
/* Hide main price and old price */
#new-arrivals .flex.items-baseline.space-x-2.mb-2,
#weekly-deals .flex.items-baseline.space-x-2.mb-2 {
    display: none !important;
}

/* Hide "Unit price" label */
#new-arrivals .text-xs.text-gray-500.mb-2:not(:has(+ .text-xs.text-gray-600)),
#weekly-deals .text-xs.text-gray-500.mb-2:not(:has(+ .text-xs.text-gray-600)) {
    display: none !important;
}

/* Hide unit price value */
#new-arrivals .text-xs.sm\:text-sm.text-gray-600.mb-3,
#weekly-deals .text-xs.sm\:text-sm.text-gray-600.mb-3 {
    display: none !important;
}

/* Alternative simpler approach - target by nth-child */
#new-arrivals .p-3 > div:nth-of-type(3),
#new-arrivals .p-3 > div:nth-of-type(4),
#new-arrivals .p-4 > div:nth-of-type(3),
#new-arrivals .p-4 > div:nth-of-type(4),
#weekly-deals .p-3 > div:nth-of-type(3),
#weekly-deals .p-3 > div:nth-of-type(4),
#weekly-deals .p-4 > div:nth-of-type(3),
#weekly-deals .p-4 > div:nth-of-type(4) {
    display: none !important;
}

/* Pagination Styles */
.product-item {
    display: none;
}

.product-item.page-1 {
    display: block;
}

/* Smooth transition for pagination */
.product-item {
    animation: fadeIn 0.3s ease-in-out;
}

/* Pagination Button Styles */
#prev-page-btn:disabled,
#next-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

#prev-page-btn:not(:disabled):hover,
#next-page-btn:not(:disabled):hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
    transition: all 0.2s ease;
}


