/*
Theme Name: Bylali
Theme URI: https://example.com/bylali
Author: Ahmed Toma (aka k8ng)
Author URI: https://example.com
Description: A luxury headwear WordPress theme converted from React. Full responsive, Elementor & WooCommerce compatible.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bylali
Tags: luxury, fashion, responsive, woocommerce, elementor
*/

:root {
    --color-brand-gold: #D4AF37;
    --color-brand-cream: #F9F9F5;
    --color-brand-sand: #E8E4DC;
    --color-brand-onyx: #1A1A1A;
    --color-brand-charcoal: #4A4A4A;
    --color-brand-emerald: #2D4F43;
}

/* Base Styles */
body {
    color: var(--color-brand-onyx);
    background-color: var(--color-brand-cream);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.7s ease-out;
}

/* Components */
.logo-crop {
    display: block;
    overflow: hidden;
    position: relative;
    width: 6rem;
    height: 3rem;
}

/* Explicit constraint for logo to fix oversized image if Tailwind fails or loads late */
header img {
    max-height: 5rem;
    /* Matches h-20 */
    width: auto;
}

.logo-crop img {
    position: absolute;
    width: auto;
    height: 100%;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
}

.logo-sprite-container {
    overflow: hidden;
    position: relative;
}

.logo-sprite-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-brand-gold);
    border-radius: 20px;
}

/* RTL Support */
[dir="rtl"] body {
    font-family: 'Cairo', sans-serif !important;
}

[dir="rtl"] .tracking-widest,
[dir="rtl"] .tracking-wider,
[dir="rtl"] .tracking-wide {
    letter-spacing: 0 !important;
}