          @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+Pro:wght@400;600;700&family=Inter:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #edd1d1;
    overflow-x: hidden;
}

:root {
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --scroll-speed: 0.6s;
}

/* Global smooth transitions */
*, *::before, *::after {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Remove transition from animations that should be instant */
button, input, select, textarea, a {
    transition: all 0.2s ease;
}

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

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

.source-sans-font {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
    color: #292b2c;
    font-style: normal;
}

.quicksand-font {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 20px;
    color: #ffffff;
    font-style: normal;
}

/* Hide scrollbar but keep scroll functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Fix navbar link click/hover shift issue */
nav {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

nav a,
nav button {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-rendering: geometricPrecision;
}

nav a:hover,
nav a:focus,
nav a:active,
nav a:visited {
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent dropdown flicker */
.group:hover .group-hover\:opacity-100 {
    transition-delay: 0.05s;
}

.hero-gradient {
    background: linear-gradient(180deg, rgba(54, 54, 54, 0.2), rgba(4, 4, 4, 0.65) 100%);
}

.btn-primary {
    background: #1c1c1c;
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid white;
    color: white;
    background: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
}

.btn-outline:hover {
    background: white;
    color: #1c1c1c;
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

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

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

.image-hover {
    transition: transform 0.5s ease;
}

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

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

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(101, 101, 81, 0.3);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(101, 101, 81, 0.5);
}

.shopping-bag-btn {
    background: rgba(128, 128, 128, 0.95);
}

/* Hide scrollbar */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Product hover image transition - Simple version */
.product-card-container {
    position: relative;
    overflow: hidden;
}

.product-card-container .main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-card-container .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
}

.product-card-container:hover .main-img {
    opacity: 0;
}

 .slider-container {
    position: relative;
    width: 100%;
}

.slider-item {
    display: none;
    position: relative;
    width: 100%;
    min-height: 450px;
}

.slider-item img {
    width: 100%;
    height: auto;
    min-height: 450px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .slider-item {
        min-height: 500px;
    }
    .slider-item img {
        min-height: 500px;
    }
}

@media (min-width: 1024px) {
    .slider-item {
        min-height: 600px;
    }
    .slider-item img {
        min-height: 600px;
    }
}

.slider-item.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.slider-item.active .text-center > * {
    animation: slideDown 1.0s ease-out forwards;
    opacity: 0;
}

/* Exit animations - FORWARD direction (next slide) */
.slider-item.exiting-forward .text-center > * {
    animation: slideUp 0.6s ease-in-out forwards;
    opacity: 1;
}

/* Exit animations - REVERSE direction (prev slide) */
.slider-item.exiting-reverse .text-center > * {
    animation: slideUp 0.6s ease-in-out forwards;
    opacity: 1;
}

.slider-item.active .text-center > *:nth-child(1) {
    animation-delay: 0.1s;
}

.slider-item.active .text-center > *:nth-child(2) {
    animation-delay: 0.1s;
}

.slider-item.active .text-center > *:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideFromLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Exit keyframes (explicit, so they reliably run when applied) */
@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

@keyframes slideToLeftOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100px);
        opacity: 0;
    }
}

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

.slider-dot.active {
    background-color: white !important;
}

/* Button animations */
.btn-slide-left,
.btn-slide-right {
    opacity: 1;
}

/* SLIDE IN when slide is active */
.slider-item.active .btn-slide-left {
    animation: slideFromLeft 0.5s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.slider-item.active .btn-slide-right {
    animation: slideFromRight 0.5s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* SLIDE OUT when slide exits */
.slider-item.exiting-forward .btn-slide-left {
    animation: slideToLeftOut 0.5s ease-in-out forwards;
    opacity: 1;
}

.slider-item.exiting-forward .btn-slide-right {
    animation: slideToRightOut 0.5s ease-in-out forwards;
    opacity: 1;
}

/* Override py-12 padding-bottom */
.py-12 {
    padding-top: 3rem;
    padding-bottom: 0 !important;
}

/* Mobile Menu Slide Animation - Left to Right */
#mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    z-index: 9999;
    transition: left 0.4s ease-in-out;
    overflow-y: auto;
}

#mobile-menu.show {
    left: 0;
}

/* Overlay for mobile menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}


/* ==========================================
   SPA Router Styles - No Page Reload
   ========================================== */

/* SPA Content Wrapper */
.spa-content-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.spa-content-wrapper.spa-loading {
    pointer-events: none;
}

/* Top Loading Bar */
#spa-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#spa-loader.active {
    opacity: 1;
}

.spa-loader-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1c1c1c, #4a4a4a, #1c1c1c);
    background-size: 200% 100%;
    animation: spa-loading 1.5s ease-in-out infinite;
}

#spa-loader.active .spa-loader-bar {
    animation: spa-progress 0.8s ease-out forwards, spa-loading 1.5s ease-in-out infinite;
}

@keyframes spa-progress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 90%; }
}

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

/* Page Transition Animations */
.spa-fade-enter {
    opacity: 0;
    transform: translateY(20px);
}

.spa-fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.spa-fade-exit {
    opacity: 1;
    transform: translateY(0);
}

.spa-fade-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* Prevent flash of unstyled content during navigation */
.spa-content-wrapper:empty {
    min-height: 50vh;
}

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

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

/* Disable transitions during page load for performance */
.spa-loading * {
    transition: none !important;
    animation: none !important;
}

/* Re-enable specific animations */
.spa-loading .spa-loader-bar {
    animation: spa-progress 0.8s ease-out forwards, spa-loading 1.5s ease-in-out infinite !important;
}


/* ==========================================
   Image Optimizer - Fast Loading Styles
   ========================================== */

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

@keyframes img-skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loaded image fade in */
.img-loaded {
    animation: img-fade-in 0.3s ease-out;
}

@keyframes img-fade-in {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Product image optimizations */
.product-image-container img {
    backface-visibility: hidden;
}

/* Product page image container - hover effect */
.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image-container .product-image-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-image-container .product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
}

.product-image-container:hover .product-image-main {
    opacity: 0;
}

/* Blur-up effect for progressive loading */
.img-blur-up {
    filter: blur(20px);
    transition: filter 0.3s ease;
}

.img-blur-up.img-loaded {
    filter: blur(0);
}

/* Low quality image placeholder */
.img-lqip {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optimize image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Native lazy loading support */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Connection-aware loading indicator */
.slow-connection-notice {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    z-index: 9999;
    animation: slide-up 0.3s ease;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* ==========================================
   Size & Color Button Fix - View Page
   ========================================== */

/* Ensure size buttons are clickable */
.size-btn {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.size-btn.bg-gray-800 {
    background-color: #1f2937 !important;
    color: white !important;
    border-color: #1f2937 !important;
}

/* Color button fix */
.color-btn {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.color-btn.border-gray-800 {
    border-color: #1f2937 !important;
}

.color-btn.bg-gray-100 {
    background-color: #f3f4f6 !important;
}

/* ===== IMAGE LOADING OPTIMIZATION ===== */
img {
    content-visibility: auto;
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[data-src].loaded,
img:not([data-src]) {
    opacity: 1;
}

/* Progressive image loading */
.product-image-main,
.product-image-hover {
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce layout shift */
.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image-container::before {
    content: '';
    display: block;
    padding-top: 133.33%; /* 3:4 aspect ratio */
}

.product-image-main,
.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optimize video performance */
video {
    will-change: transform;
    transform: translateZ(0);
}

/* Faster rendering */
.slider-item,
.product-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* YouTube embed - hide title/channel overlay */
#youtube-container iframe {
    transform: scale(1.08);
    transform-origin: center center;
}

#youtube-container:hover .pointer-events-none {
    opacity: 0;
    transition: opacity 0.3s ease;
}
