/* 
 * JadeTheme Global Styles
 * Premium Jade & Emerald Jewelry Store
 */

:root {
    --theme-primary: #2e7d32;
    --theme-secondary: #495057;
    --theme-dark: #212529;
    --theme-light: #f8f9fa;
    --font-serif: 'Noto Serif SC', serif;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--theme-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.font-serif {
    font-family: var(--font-serif);
}

.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

/* Custom Scrollbar for elegant feel */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-dark);
    font-weight: 500;
}

a {
    color: var(--theme-primary);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: #1b5e20;
}

/* Header & Nav */
.jade-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-link {
    color: var(--theme-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--theme-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--theme-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.search-form input {
    border-color: #eaeaea;
    padding-left: 1.5rem;
}

.search-form input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Buttons */
.btn-success {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-success:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

.btn-outline-success {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-outline-success:hover {
    background-color: var(--theme-primary);
    color: white;
}

.btn-outline-dark:hover {
    background-color: var(--theme-dark);
}

/* Responsive Utilities */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .product-action-btns {
        bottom: 0 !important;
        opacity: 1 !important;
    }
}

@media (max-width: 767.98px) {
    .page-title {
        font-size: 2rem;
    }
    .main-image-container {
        height: 350px;
    }
    .hero-swiper {
        height: 60vh;
        min-height: 400px;
    }
}

/* Lazy Load Image Placeholder */
img[loading="lazy"] {
    background: #f8f9fa url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23e9ecef"><rect width="100" height="100"/></svg>') no-repeat center center;
}
