/* 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: #934f46 !important; /* Premium Rosewood */
    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 !important;
    padding: 0.5rem 1.5rem !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* 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;
    display: none !important;
}

.category-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(92, 26, 46, 1), rgba(92, 26, 46, 0)) !important;
}

.category-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(92, 26, 46, 1), rgba(92, 26, 46, 0)) !important;
}

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

/* Responsive Layout Safeguards */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 480px) {
    #mainHeader span {
        font-size: 1.4rem !important; /* Scale logo text on smaller screens */
    }
}
@media (max-width: 360px) {
    #mainHeader span {
        font-size: 1.2rem !important; /* Scale logo text on tiny screens */
    }
}

.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: #1a1a1a !important;
    background-color: rgba(255,255,255,0.9) !important;
    border-color: rgba(255,255,255,1) !important;
    text-shadow: none;
}

.active-category {
    background-color: rgba(255,255,255,0.95) !important;
    color: #1a1a1a !important;
    border-color: rgba(255,255,255,1) !important;
    text-shadow: none;
}

.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: #b8685e; /* Rosewood */
}
/* 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: #b8685e; /* Rosewood */
        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 */
}

/* Color Swatches */
.swatch-btn {
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.swatch-btn.active-variation {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #b8685e; /* Rosewood ring */
}

/* Main Image Transition */
#mainProductImage {
    transition: opacity 0.3s ease-in-out, transform 0.5s ease-out;
}

