/* Basana Frames - Core stylesheet (Modern Premium Design System) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0F172A;       /* Slate 900 */
    --secondary: #2563EB;     /* Blue 600 */
    --accent: #F97316;        /* Orange 500 */
    --background: #FFFFFF;
    --card-bg: #F8FAFC;
    --text-color: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary);
}

/* Premium Typography Updates */
.font-primary {
    font-family: var(--font-primary);
}

.font-secondary {
    font-family: var(--font-secondary);
}

/* Navbar customization */
.navbar-premium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.navbar-brand-logo {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand-logo span {
    color: var(--secondary);
}

.nav-link-premium {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color) !important;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link-premium:hover {
    color: var(--secondary) !important;
}

.nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link-premium:hover::after {
    width: 80%;
}

/* Mega Menu Styles */
.mega-menu {
    position: static;
}

.mega-menu-content {
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 2rem;
    animation: slideDown 0.3s ease-out forwards;
}

.mega-menu:hover .mega-menu-content {
    display: block;
}

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

/* Premium Buttons */
.btn-primary-premium {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.btn-primary-premium:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-premium {
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.btn-secondary-premium:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent-premium {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.btn-accent-premium:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Floating Card Animation & Design */
.card-premium {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    background-color: white;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.08);
}

/* Interactive Custom Frame Editor Styles */
.editor-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    background: var(--card-bg);
    transition: var(--transition-smooth);
}

.upload-zone:hover {
    border-color: var(--secondary);
    background: #eff6ff;
}

.editor-preview-panel {
    background: #e2e8f0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 20px;
}

/* Real-Time Frame Border Overlay Rendering */
.frame-preview-outer {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    display: inline-block;
    transition: all 0.3s ease;
    max-width: 90%;
    max-height: 90%;
    background: white;
    padding: 0;
    border-radius: 4px;
}

.frame-preview-inner {
    border: 24px solid #334155; /* Default Dark color */
    box-sizing: border-box;
    transition: all 0.3s ease;
    padding: 2px; /* Small separation gap */
    background: #f1f5f9;
}

.frame-preview-mat {
    border: 20px solid #f8fafc; /* Passepartout / Mount Board */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.frame-preview-image {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* Customizer option selectors */
.selector-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.selector-option:hover {
    border-color: var(--secondary);
    background: #eff6ff;
}

.selector-option.active {
    border-color: var(--secondary);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Animations */
.hover-scale {
    transition: var(--transition-smooth);
}

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

.ripple-effect {
    position: relative;
    overflow: hidden;
}

/* Swiper slider customized controls */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important;
    background: rgba(255,255,255,0.8);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.swiper-pagination-bullet-active {
    background: var(--secondary) !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* Footer layout styles */
.footer-premium {
    background-color: var(--primary);
    color: #94a3b8;
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-size: 0.95rem;
    border-top: 4px solid var(--accent);
}

.footer-premium h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-premium a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-premium a:hover {
    color: white;
    padding-left: 4px;
}

/* Customer dashboard layout */
.sidebar-dashboard {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.sidebar-dashboard .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    transition: var(--transition-smooth);
}

.sidebar-dashboard .nav-link:hover, .sidebar-dashboard .nav-link.active {
    background: var(--primary);
    color: white;
}

/* Admin layout custom sidebar */
.admin-sidebar {
    background: #0F172A;
    color: #94a3b8;
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #1e293b;
    transition: var(--transition-smooth);
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background: #1e293b;
    color: white;
}

/* Low stock alert badge animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.badge-low-stock {
    background: var(--accent);
    color: white;
    animation: blink 1.5s infinite;
}

/* ==========================================
   HOMEPAGE REDESIGN & LIVE PREVIEWER STYLES
   ========================================== */

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
}

.glass-panel-dark {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Hero text enhancements */
.hero-text-shadow {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Glowing Pulse Effect */
.glow-effect {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 30px rgba(37, 99, 235, 0.45); }
}

/* Floating Animations */
.float-animation {
    animation: floatElement 4s infinite ease-in-out;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Live Previewer Frame Overlays */
.preview-artwork-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

/* Frame Matting */
.preview-mat {
    padding: 2.5rem; /* default matting size */
    background: #ffffff;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 100%;
}

.preview-artwork {
    width: 100%;
    height: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

/* Frame Materials Border Styles */
.frame-border-display {
    border: 24px solid transparent;
    transition: var(--transition-smooth);
    width: 100%;
    height: 100%;
}

.preview-frame-walnut {
    border-color: #5c3a21;
    border-image: linear-gradient(to right, #4a2e1a, #6d4629, #4a2e1a) 24;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.25),
        inset 0 0 10px rgba(0, 0, 0, 0.6),
        inset 0 0 2px 2px rgba(255,255,255,0.1);
}

.preview-frame-black {
    border-color: #111827;
    border-image: linear-gradient(to right, #1f2937, #111827, #1f2937) 24;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.8),
        inset 0 0 1px 1px rgba(255,255,255,0.05);
}

.preview-frame-gold {
    border-color: #b89742;
    border-image: linear-gradient(135deg, #d4af37, #aa7c11, #ffd700, #aa7c11) 24;
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.28),
        inset 0 0 8px rgba(0, 0, 0, 0.5),
        0 2px 5px rgba(212, 175, 55, 0.4);
}

.preview-frame-silver {
    border-color: #94a3b8;
    border-image: linear-gradient(to right, #cbd5e1, #94a3b8, #e2e8f0, #64748b) 24;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 0 6px rgba(0, 0, 0, 0.4),
        inset 0 0 2px rgba(255,255,255,0.2);
}

/* Control buttons in previewer */
.preview-control-btn {
    border: 1px solid var(--border-color);
    background: white;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.preview-control-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.preview-control-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Step Card Styles */
.step-card {
    border: none;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    padding: 2.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -15px;
    right: -5px;
    font-size: 5.5rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.04);
    font-family: var(--font-primary);
    line-height: 1;
}

.step-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.step-card:hover .step-icon-wrapper {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

/* React homepage color variables and utility classes */
:root {
    --gold: #D4AF37;
    --wood: #8B5A2B;
    --cream: #FAF9F6;
    --charcoal: #1C1917;
}

.text-gold { color: var(--gold) !important; }
.text-wood { color: var(--wood) !important; }
.text-charcoal { color: var(--charcoal) !important; }

.bg-gold { background-color: var(--gold) !important; }
.bg-wood { background-color: var(--wood) !important; }
.bg-cream { background-color: var(--cream) !important; }
.bg-charcoal { background-color: var(--charcoal) !important; }

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

/* Aspect Ratios & Masonry Custom Grid */
.aspect-square {
    aspect-ratio: 1 / 1;
}
.aspect-portrait {
    aspect-ratio: 4 / 5;
}
.aspect-video {
    aspect-ratio: 16 / 9;
}
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Smooth Scale Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover\:scale-102:hover {
    transform: scale(1.02);
}

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

.hover\:translate-x-1:hover {
    transform: translateX(4px);
}

/* Featured / Spotlight text alignments */
.text-slate-500 { color: #64748b !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-zinc-200 { color: #e2e8f0 !important; }
.text-zinc-300 { color: #cbd5e1 !important; }
.text-zinc-400 { color: #94a3b8 !important; }
.text-zinc-500 { color: #71717a !important; }
.border-zinc-800 { border-color: #27272a !important; }
.bg-zinc-950 { background-color: #09090b !important; }
