/**
 * Babour Theme Custom Styles
 * Premium Vanilla CSS Styling System
 */

/* 1. Global System Tokens */
:root {
    --primary: #FFA500;
    --primary-hover: #e09200;
    --secondary: #E44D26;
    --secondary-hover: #c93b1a;
    --blue: #1040dcf7;
    --red: #f75e5e;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 8px;
}

/* 2. Base Resets */
body {
    font-family: var(--font-sans);
    color: var(--gray-700);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gray-900);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar Hide Helper */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Utility Flex Alignments */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

/* Margins & Paddings */
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-9 { padding-left: 2.25rem; padding-right: 2.25rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.mb-0 { margin-bottom: 0px; }
.mb-0.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-2.5 { margin-top: 0.625rem; }
.mt-12 { margin-top: 3rem; }
.space-x-1\.5 > * + * { margin-left: 0.375rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-5 > * + * { margin-left: 1.25rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.gap-1.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-4.5 { gap: 1.125rem; }
.gap-6 { gap: 1.5rem; }

/* Grid systems */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Sizing & Positions */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; position: -webkit-sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }

/* Custom elements display */
.hidden { display: none !important; }
.rounded-md { border-radius: 6px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-900 { background-color: var(--gray-900); }
.text-white { color: var(--white); }
.text-black { color: #000000; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.text-center { text-align: center; }

/* Transitions & Effects */
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-all { transition: var(--transition); }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.overflow-hidden { overflow: hidden; }

/* SVG Iconsax Styles */
svg.icon-black {
    stroke: #000;
}
svg.icon-dark {
    stroke: var(--gray-900);
}
svg.icon-gray {
    stroke: var(--gray-500);
}

/* 3. Sliding Subheader Texts */
.sliding-text-item {
    opacity: 0;
    transform: translateX(50px);
    pointer-events: none;
}
.sliding-text-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* 4. Hero Carousel Slide styles */
.hero-carousel-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}
.hero-carousel-wrapper {
    width: 100%;
}
.hero-slide-item {
    width: 100vw;
}
.hero-slide-content {
    height: 520px;
    width: 100%;
}
.bg-container {
    filter: brightness(0.95);
}
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
}

/* Auto slide progress animation */
.indicator-progress.active-progress {
    width: 100% !important;
    transition: width 3s linear;
}

/* 5. Product Card component layout */
.product-card-container {
    transition: var(--transition);
}
.product-image-box {
    position: relative;
    overflow: hidden;
}
.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card-container:hover .product-image-box img {
    transform: scale(1.03);
}

/* Wishlist state bindings */
.wishlist-toggle-btn .wishlist-icon-filled svg {
    fill: #ef4444;
    stroke: #ef4444;
}

/* Grid vs List layout modes on Product grid section */
.products-layout-wrapper.list-view {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
}
.products-layout-wrapper.list-view .product-card-container {
    flex-direction: row !important;
    width: 100% !important;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 1.25rem;
}
.products-layout-wrapper.list-view .product-image-box {
    width: 120px !important;
    height: 144px !important;
    flex-shrink: 0;
}
.products-layout-wrapper.list-view .product-info-box {
    text-align: left !important;
    padding-left: 1.5rem;
    flex-grow: 1;
}
.products-layout-wrapper.list-view .price-container {
    justify-content: flex-start !important;
}
.products-layout-wrapper.list-view .product-color-options {
    justify-content: flex-start !important;
}

/* 6. Brand Category Slider */
.brand-slide-item {
    width: 100%;
}
.horizontal-brand-scroll, .horizontal-product-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 7. Drawers & Overlays */
.side-menu-overlay, .profile-sheet-overlay {
    transition: opacity 0.3s ease;
}
.side-menu-overlay.show, .profile-sheet-overlay.show {
    display: block !important;
    opacity: 1;
}

.side-menu-drawer {
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
}
.side-menu-drawer.open {
    transform: translateX(0) !important;
}

.profile-sheet-content.open {
    transform: translateY(0) !important;
}

/* Customizer Top Alert customization */
.top-promo-bar {
    animation: pulseAlert 2.5s infinite;
}
@keyframes pulseAlert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}
