/* Premium Boutique Overhaul */
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

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

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

/* Staggered Fade-in (Premium Entrance) */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Zoom Effect (Product Page) */
.zoom-container {
    overflow: hidden;
    cursor: zoom-in;
}

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

.zoom-container:hover .zoom-image {
    transform: scale(1.15);
}

/* Glassmorphic Utilities */
.glass {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Seasonal Announcement Bar (Lightboard Style) */
.announcement-bar {
    background-color: #911111 !important; /* Premium Muted Red */
    color: #ffffff !important; /* Force Pure White */
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.marquee-wrapper {
    display: flex !important;
    white-space: nowrap !important;
    overflow: hidden;
    user-select: none;
    width: 100%;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    min-width: 100%;
    align-items: center;
    justify-content: space-around;
    animation: scroll-marquee 25s linear infinite;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap !important;
    color: #ffffff !important;
}

/* Ensure animation works for both LTR and RTL */
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

[dir="rtl"] .marquee-content {
    animation: scroll-marquee-rtl 25s linear infinite;
}

@keyframes scroll-marquee-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* Custom Scrollbar */
input, select, button {
    outline: none !important;
}

select {
    color: #000;
}

select option {
    background-color: #fff;
    color: #000;
}
select option[disabled] {
    color: #aaa;
}

/* Autocomplete background transparent fix for Chrome/Webkit */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #000000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Base Safe-Area & Optimization */
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

/* Floating Label Refinement to prevent overlap */
.peer:placeholder-shown ~ label {
    top: 0.75rem !important;
}
.peer:focus ~ label,
.peer:not(:placeholder-shown) ~ label {
    top: -0.875rem !important;
    font-size: 10px !important;
}

/* Mobile Header Optimization */
@media (max-width: 767px) {
    #mainHeader {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    #mainHeader .flex-1 {
        gap: 0.25rem !important;
    }
    #langDropdownBtn {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Category Navigation Bar (Minimalist Tubes) */
.category-btn {
    white-space: nowrap;
    border-radius: 9999px;
    background-color: transparent;
    padding: 0.5rem 1.5rem !important;
    border: 1px solid #eeeeee;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    color: #666666;
}

/* Category Container Masking (The "Seamless" Swipe) */
.category-container {
    position: relative;
}

.category-container::before, 
.category-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.category-container::before {
    left: 0;
    background: linear-gradient(to right, white, rgba(255,255,255,0));
}

.category-container::after {
    right: 0;
    background: linear-gradient(to left, white, rgba(255,255,255,0));
}

.category-container.at-start::before { opacity: 0; }
.category-container.at-end::after { opacity: 0; }

#langDropdownWrapper.active-menu #langDropdownMenu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Category Container Masking (The "Seamless" Swipe) */
.category-container {
    position: relative;
    overflow: hidden;
}

.category-container::before, 
.category-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.category-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.category-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.category-container.at-start::before { opacity: 0; }
.category-container.at-end::after { opacity: 0; }

.active-menu #langDropdownMenu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

@media (min-width: 768px) {
    .category-btn {
        font-size: 10px;
        padding: 0.6rem 2rem !important;
    }
}

.category-btn:hover {
    color: #000000;
    border-color: #000000;
}

.active-category {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f9f9f9;
}
::-webkit-scrollbar-thumb {
    background: #e5e7eb;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4AF37; /* Gold */
}
/* Professional Header Navigation (PC) */
@media (min-width: 768px) {
    header #mainHeader nav a {
        position: relative;
        padding-bottom: 4px;
    }
    header #mainHeader nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 1.5px;
        background-color: #D4AF37; /* Gold */
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        transform: translateX(-50%);
    }
    header #mainHeader nav a:hover::after {
        width: 100%;
    }
}

/* RTL Support for Header Nav */
html[dir="rtl"] header #mainHeader nav {
    flex-direction: row-reverse;
}

/* Category Navigation Bar (Professional Desktop Row) */
@media (min-width: 768px) {
    .category-btn {
        min-width: 140px; /* More substantial on PC */
        justify-content: center;
        display: flex;
        align-items: center;
    }
}
 
/* Utility for forcing LTR inside RTL contexts (e.g. Prices, Phone numbers) */
.force-ltr {
    direction: ltr !important;
    display: inline-block;
    unicode-bidi: isolate-override; /* Stronger override for price symbols */
}

