/**
 * Nuvarexion - Core Styles
 * Design-Driven Art Gallery
 * Primary: #1e3a5f (Deep Teal)
 * Secondary: #c9a66b (Warm Gold)
 * Background: #f5f1e8 (Ivory)
 */

/* ============================================
   FONT IMPORTS - Google Fonts CDN
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600;700&family=Work+Sans:wght@300;400;500;600&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --nx-primary: #1e3a5f;
    --nx-primary-dark: #152a47;
    --nx-primary-light: #2a4a73;
    --nx-secondary: #c9a66b;
    --nx-secondary-dark: #b08d52;
    --nx-secondary-light: #d4b87d;
    --nx-bg: #f5f1e8;
    --nx-bg-alt: #ebe6db;
    --nx-white: #ffffff;
    --nx-black: #1a1a1a;
    --nx-gray-100: #f8f6f3;
    --nx-gray-200: #e8e4db;
    --nx-gray-300: #d4cfc4;
    --nx-gray-400: #a8a299;
    --nx-gray-500: #7a756d;
    --nx-gray-600: #5c574f;
    --nx-gray-700: #3e3a35;
    --nx-gray-800: #2a2824;
    --nx-gray-900: #1a1917;
    
    /* Typography */
    --nx-font-heading: 'Crimson Pro', Georgia, serif;
    --nx-font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --nx-space-xs: 0.25rem;
    --nx-space-sm: 0.5rem;
    --nx-space-md: 1rem;
    --nx-space-lg: 1.5rem;
    --nx-space-xl: 2rem;
    --nx-space-2xl: 3rem;
    --nx-space-3xl: 4rem;
    --nx-space-4xl: 6rem;
    
    /* Layout */
    --nx-container: 1400px;
    --nx-header-height: 80px;
    
    /* Transitions */
    --nx-transition-fast: 0.15s ease;
    --nx-transition-base: 0.3s ease;
    --nx-transition-slow: 0.5s ease;
    
    /* Shadows */
    --nx-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --nx-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --nx-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --nx-shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--nx-font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--nx-gray-700);
    background-color: var(--nx-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--nx-transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.nx-container {
    width: 100%;
    max-width: var(--nx-container);
    margin: 0 auto;
    padding: 0 var(--nx-space-xl);
}

/* ============================================
   HEADER - H3: Transparent Floating
   ============================================ */
.nx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nx-header-height);
    background-color: var(--nx-bg);
    transition: background-color var(--nx-transition-base), 
                box-shadow var(--nx-transition-base);
}

.nx-header.scrolled {
    background-color: rgba(245, 241, 232, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--nx-shadow-sm);
}

.nx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--nx-container);
    margin: 0 auto;
    padding: 0 var(--nx-space-xl);
}

/* Logo */
.nx-logo {
    display: flex;
    align-items: center;
}

.nx-logo-svg {
    width: 160px;
    height: 36px;
}

.nx-logo-text {
    font-family: var(--nx-font-heading);
    font-size: 24px;
    font-weight: 600;
    fill: var(--nx-primary);
    letter-spacing: 2px;
}

/* Navigation */
.nx-nav {
    display: flex;
    align-items: center;
    gap: var(--nx-space-2xl);
}

.nx-nav-link {
    font-family: var(--nx-font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--nx-gray-700);
    padding: var(--nx-space-sm) 0;
    position: relative;
}

.nx-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--nx-secondary);
    transition: width var(--nx-transition-base);
}

.nx-nav-link:hover::after,
.nx-nav-link.active::after {
    width: 100%;
}

.nx-nav-link:hover,
.nx-nav-link.active {
    color: var(--nx-primary);
}

/* Header Actions */
.nx-header-actions {
    display: flex;
    align-items: center;
    gap: var(--nx-space-lg);
}

.nx-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--nx-gray-700);
    border-radius: 50%;
    transition: background-color var(--nx-transition-fast),
                color var(--nx-transition-fast);
    position: relative;
}

.nx-action-btn:hover {
    background-color: var(--nx-gray-200);
    color: var(--nx-primary);
}

.nx-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background-color: var(--nx-secondary);
    color: var(--nx-white);
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Currency Dropdown */
.nx-currency {
    position: relative;
}

.nx-currency-trigger {
    display: flex;
    align-items: center;
    gap: var(--nx-space-xs);
    font-size: 13px;
    font-weight: 500;
    color: var(--nx-gray-700);
    padding: var(--nx-space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nx-currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: var(--nx-white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(30, 58, 95, 0.15);
    border: 1px solid var(--nx-gray-200);
    padding: var(--nx-space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--nx-transition-base);
    margin-top: var(--nx-space-sm);
}

.nx-currency:hover .nx-currency-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nx-currency-option {
    display: block;
    padding: var(--nx-space-sm) var(--nx-space-lg);
    font-size: 13px;
    color: var(--nx-gray-700);
    transition: background-color var(--nx-transition-fast);
}

.nx-currency-option:hover,
.nx-currency-option.active {
    background-color: var(--nx-gray-100);
    color: var(--nx-primary);
}

/* Mobile Toggle */
.nx-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--nx-space-sm);
}

.nx-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--nx-gray-700);
    transition: all var(--nx-transition-base);
}

/* Mobile Navigation */
.nx-mobile-nav {
    display: none;
    position: fixed;
    top: var(--nx-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--nx-bg);
    z-index: 999;
    padding: var(--nx-space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--nx-transition-base);
}

.nx-mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.nx-mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-lg);
}

.nx-mobile-link {
    font-family: var(--nx-font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--nx-gray-700);
    padding: var(--nx-space-md) 0;
    border-bottom: 1px solid var(--nx-gray-200);
}

/* Search Overlay */
.nx-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(245, 241, 232, 0.98);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--nx-transition-base);
}

.nx-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nx-search-container {
    width: 100%;
    max-width: 700px;
    padding: var(--nx-space-xl);
    position: relative;
}

.nx-search-close {
    position: absolute;
    top: -60px;
    right: var(--nx-space-xl);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nx-gray-700);
    border-radius: 50%;
    transition: background-color var(--nx-transition-fast);
}

.nx-search-close:hover {
    background-color: var(--nx-gray-200);
}

.nx-search-form {
    display: flex;
    align-items: center;
    gap: var(--nx-space-md);
    border-bottom: 2px solid var(--nx-primary);
    padding-bottom: var(--nx-space-md);
}

.nx-search-input {
    flex: 1;
    font-family: var(--nx-font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--nx-primary);
    background: none;
    border: none;
    outline: none;
}

.nx-search-input::placeholder {
    color: var(--nx-gray-400);
}

.nx-search-submit {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nx-primary);
    border-radius: 50%;
    transition: background-color var(--nx-transition-fast);
}

.nx-search-submit:hover {
    background-color: var(--nx-gray-200);
}

/* ============================================
   FOOTER - F3: Magazine Style
   ============================================ */
.nx-footer {
    background-color: var(--nx-primary);
    color: var(--nx-gray-300);
}

/* Newsletter */
.nx-footer-newsletter {
    background-color: var(--nx-primary-dark);
    padding: var(--nx-space-4xl) 0;
    text-align: center;
}

.nx-newsletter-title {
    font-family: var(--nx-font-heading);
    font-size: 36px;
    font-weight: 500;
    color: var(--nx-white);
    margin-bottom: var(--nx-space-md);
}

.nx-newsletter-text {
    font-size: 16px;
    color: var(--nx-gray-400);
    margin-bottom: var(--nx-space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.nx-newsletter-form {
    display: flex;
    gap: var(--nx-space-md);
    max-width: 500px;
    margin: 0 auto;
}

.nx-newsletter-input {
    flex: 1;
    padding: var(--nx-space-md) var(--nx-space-lg);
    font-size: 15px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: var(--nx-white);
    outline: none;
    transition: border-color var(--nx-transition-fast);
}

.nx-newsletter-input::placeholder {
    color: var(--nx-gray-400);
}

.nx-newsletter-input:focus {
    border-color: var(--nx-secondary);
}

.nx-newsletter-btn {
    padding: var(--nx-space-md) var(--nx-space-xl);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--nx-secondary);
    color: var(--nx-white);
    border-radius: 4px;
    transition: background-color var(--nx-transition-fast);
}

.nx-newsletter-btn:hover {
    background-color: var(--nx-secondary-dark);
}

/* Main Footer */
.nx-footer-main {
    padding: var(--nx-space-4xl) 0;
}

.nx-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--nx-space-3xl);
}

.nx-footer-logo {
    width: 160px;
    height: 36px;
    margin-bottom: var(--nx-space-lg);
}

.nx-footer-logo-text {
    font-family: var(--nx-font-heading);
    font-size: 24px;
    font-weight: 600;
    fill: var(--nx-white);
    letter-spacing: 2px;
}

.nx-footer-tagline {
    font-family: var(--nx-font-heading);
    font-size: 18px;
    font-style: italic;
    color: var(--nx-secondary);
    margin-bottom: var(--nx-space-xl);
}

.nx-footer-social {
    display: flex;
    gap: var(--nx-space-md);
}

.nx-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nx-gray-400);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all var(--nx-transition-fast);
}

.nx-footer-social a:hover {
    color: var(--nx-white);
    border-color: var(--nx-secondary);
    background-color: rgba(201, 166, 107, 0.1);
}

.nx-footer-heading {
    font-family: var(--nx-font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--nx-white);
    margin-bottom: var(--nx-space-lg);
}

.nx-footer-links li {
    margin-bottom: var(--nx-space-sm);
}

.nx-footer-links a {
    font-size: 14px;
    color: var(--nx-gray-400);
    transition: color var(--nx-transition-fast);
}

.nx-footer-links a:hover {
    color: var(--nx-secondary);
}

/* Bottom Bar */
.nx-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--nx-space-xl) 0;
}

.nx-footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nx-copyright {
    font-size: 13px;
    color: var(--nx-gray-500);
}

.nx-payment-icons {
    display: flex;
    gap: var(--nx-space-sm);
}

/* Back to Top */
.nx-back-to-top {
    position: fixed;
    bottom: var(--nx-space-xl);
    right: var(--nx-space-xl);
    width: 48px;
    height: 48px;
    background-color: var(--nx-secondary);
    color: var(--nx-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--nx-transition-base);
    z-index: 999;
}

.nx-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nx-back-to-top:hover {
    background-color: var(--nx-secondary-dark);
    transform: translateY(-4px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nx-nav {
        display: none;
    }
    
    .nx-mobile-toggle {
        display: flex;
    }
    
    .nx-mobile-nav {
        display: block;
    }
    
    .nx-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--nx-space-2xl);
    }
}

@media (max-width: 768px) {
    :root {
        --nx-header-height: 64px;
    }
    
    .nx-container {
        padding: 0 var(--nx-space-lg);
    }
    
    .nx-header-inner {
        padding: 0 var(--nx-space-lg);
    }
    
    .nx-logo-svg {
        width: 120px;
        height: 28px;
    }
    
    .nx-search-input {
        font-size: 20px;
    }
    
    .nx-newsletter-form {
        flex-direction: column;
    }
    
    .nx-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nx-footer-social {
        justify-content: center;
    }
    
    .nx-footer-bottom-content {
        flex-direction: column;
        gap: var(--nx-space-md);
    }
}
