/* ============================================
   StyleVault - Luxury Affiliate Theme
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #C9A96E;
    --gold-light: #E8D5B0;
    --gold-dark: #A67C52;
    --black: #1A1A1A;
    --dark: #2D2D2D;
    --gray: #6B6B6B;
    --gray-light: #F5F3F0;
    --white: #FFFFFF;
    --cream: #FAF8F5;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201,169,110,0.15);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--gold);
    margin-right: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 40%, #3D3224 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(201,169,110,0.15), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,169,110,0.35);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-product {
    background: var(--black);
    color: var(--white);
    width: 100%;
    padding: 12px 24px;
}

.btn-product:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

/* ============ TRUST BAR ============ */
.trust-bar {
    background: var(--cream);
    padding: 20px 0;
    border-bottom: 1px solid rgba(201,169,110,0.1);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
}

.trust-icon {
    font-size: 1.1rem;
}

/* ============ SECTIONS ============ */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--black);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 48px;
}

/* ============ CATEGORIES ============ */
.categories {
    padding: 80px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-light);
    transition: var(--transition);
}

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

.category-info {
    padding: 24px;
    background: var(--white);
}

.category-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--black);
}

.category-info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.category-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
}

/* ============ PRODUCTS ============ */
.trending {
    padding: 80px 0;
    background: var(--cream);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.hot {
    background: #E74C3C;
}

.product-badge.new {
    background: #27AE60;
}

.product-image {
    height: 260px;
    overflow: hidden;
    background: var(--gray-light);
}

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

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

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 6px 0;
    color: var(--black);
    line-height: 1.3;
}

.product-desc {
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars {
    color: #F5A623;
    font-size: 0.85rem;
}

.rating-text {
    font-size: 0.78rem;
    color: var(--gray);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
}

.price-original {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.75rem;
    font-weight: 600;
    color: #E74C3C;
    background: #FDE8E8;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============ WHY US ============ */
.why-us {
    padding: 80px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.why-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    background: var(--cream);
    transition: var(--transition);
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.why-item h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.why-item p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ============ NEWSLETTER ============ */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #3D3224 100%);
}

.newsletter-content {
    text-align: center;
    max-width: 550px;
}

.newsletter h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--black);
    color: rgba(255,255,255,0.6);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer p {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

.affiliate-disclosure {
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* ============ PRODUCT PAGE ============ */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #3D3224 100%);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-breadcrumb {
    padding: 16px 0;
    font-size: 0.82rem;
    color: var(--gray);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-breadcrumb a {
    color: var(--gold);
}

.products-section {
    padding: 60px 0;
}

.products-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Buying guide section */
.buying-guide {
    padding: 60px 0;
    background: var(--cream);
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.guide-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 8px;
    color: var(--black);
}

.guide-content p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid,
    .category-grid,
    .products-page-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}
