/* Color Variables & Base Reset */
:root {
    --bg-base: #121212;
    --bg-section: #1a1a1a;
    --bg-card: #1e1e1e;
    --border-gold: #D4AF37;
    --text-light-grey: #b0b0b0;
    --hover-glow: #ffd700;
}

body {
    background-color: var(--bg-base);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.font-heading {
    font-family: 'Playfair Display', serif;
}

.gold-text {
    color: var(--border-gold) !important;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar.scrolled {
    background-color: #0b0b0b;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--border-gold) !important;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, #D4AF37, #aa8c2c);
    color: #000000;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ffd700, #D4AF37);
    color: #000000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--border-gold);
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--border-gold);
    color: #000000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    background-color: #000000;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(18,18,18,0.7), rgba(18,18,18,0.9));
}

.badge-custom {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--border-gold);
    color: var(--border-gold);
    padding: 6px 16px;
    border-radius: 50rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Cards & Dividers */
.product-card, .fabric-card, .tech-card, .testimonial-card, .review-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.product-card:hover, .fabric-card:hover, .tech-card:hover, .review-card:hover {
    border-color: var(--border-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
    transform: translateY(-5px);
}

.badge-premium {
    background-color: var(--border-gold);
    color: #000000;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 4px;
}

.gold-divider {
    width: 60px;
    height: 3px;
    background-color: var(--border-gold);
}

/* FIXED: Clean Scrollable Category Navigation Bar */
.category-nav-bar {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 1020;
}

.category-nav-bar::-webkit-scrollbar {
    display: none;
}

.category-nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 12px 20px;
    max-width: 1320px;
    margin: 0 auto;
    width: max-content;
}

@media (min-width: 992px) {
    .category-nav-container {
        justify-content: center;
        width: 100%;
    }
}

.category-btn {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: #ffffff;
    font-weight: 500;
    padding: 8px 20px;
    height: 40px;
    border-radius: 50px;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.category-btn:hover {
    color: var(--border-gold);
    border-color: var(--hover-glow);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.category-btn.active {
    background-color: var(--border-gold);
    color: #000000;
    border-color: var(--border-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Target Section Offset for Sticky Navbar */
.product-section-target {
    scroll-margin-top: 130px;
}

/* Swatches & Thumbnails */
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.color-swatch:hover {
    transform: scale(1.15);
    border-color: var(--hover-glow);
}
.thumbnail-img {
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}
.thumbnail-img:hover, .thumbnail-img.active {
    border-color: var(--border-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Footer & Floating CTAs */
.footer-link {
    color: var(--text-light-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: var(--border-gold);
}
.social-icon {
    width: 38px;
    height: 38px;
    background-color: var(--bg-base);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--border-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icon:hover {
    background-color: var(--border-gold);
    color: #000000;
}