/* ============================================
   CURATED FINDS - Affiliate Store Styles
   Palette: Copper & Slate
   ============================================ */

/* CSS Variables */
:root {
    /* Copper & Slate Palette */
    --color-primary: #B87333;
    --color-primary-light: #D4A574;
    --color-primary-dark: #8B5A2B;
    --color-slate: #2F3640;
    --color-slate-light: #4A5568;
    --color-slate-dark: #1A202C;
    --color-cream: #F5F0EB;
    --color-cream-dark: #E8E0D5;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Gambetta', Georgia, serif;
    --font-body: 'Synonym', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(47, 54, 64, 0.05);
    --shadow-md: 0 4px 12px rgba(47, 54, 64, 0.08);
    --shadow-lg: 0 8px 30px rgba(47, 54, 64, 0.12);
    --shadow-hover: 0 12px 40px rgba(47, 54, 64, 0.15);
}

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

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

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(47, 54, 64, 0.06);
    transition: var(--transition-base);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-slate);
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-light);
    letter-spacing: 0.02em;
    position: relative;
    transition: var(--transition-fast);
}

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

.nav-link:hover {
    color: var(--color-slate);
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    padding: 0.5rem 1rem;
    background: rgba(184, 115, 51, 0.1);
    border-radius: 100px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-slate);
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-slate-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    background: var(--color-slate);
    color: var(--color-cream);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 8px;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button::after {
    content: '→';
    transition: var(--transition-base);
}

.cta-button:hover::after {
    transform: translateX(4px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/5;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-primary-light) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B87333' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-image-placeholder span {
    font-size: 8rem;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--color-slate);
    letter-spacing: -0.02em;
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured-section {
    padding: var(--space-2xl) 0;
    background: var(--color-white);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: var(--space-2xl) 0;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-light);
    background: transparent;
    border: 1px solid var(--color-cream-dark);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-primary-light);
    color: var(--color-slate);
}

.filter-btn.active {
    background: var(--color-slate);
    color: var(--color-cream);
    border-color: var(--color-slate);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
}

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

.product-card.featured {
    grid-column: span 1;
}

.product-card.featured-large {
    grid-column: span 2;
    grid-row: span 2;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-cream);
}

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

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

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 100px;
}

.product-badge.featured {
    background: var(--color-slate);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(47, 54, 64, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-product {
    padding: 0.875rem 1.5rem;
    background: var(--color-white);
    color: var(--color-slate);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 8px;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.product-card:hover .view-product {
    transform: translateY(0);
}

.product-info {
    padding: var(--space-md);
}

.product-category {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-slate);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-slate);
}

.product-price .currency {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-slate-light);
    margin-right: 0.25rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: var(--space-xs);
}

.star {
    font-size: 0.875rem;
    color: var(--color-primary-light);
}

.star.filled {
    color: var(--color-primary);
}

.rating-count {
    font-size: 0.75rem;
    color: var(--color-slate-light);
    margin-left: 0.25rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: var(--space-2xl) 0;
    background: var(--color-slate);
    color: var(--color-cream);
}

.about-section .section-title {
    color: var(--color-cream);
}

.about-section .section-label {
    color: var(--color-primary-light);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(245, 240, 235, 0.8);
    margin-bottom: var(--space-xl);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-cream);
}

.badge-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    font-size: 0.75rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: var(--space-xl) 0;
    background: var(--color-slate-dark);
    border-top: 1px solid rgba(245, 240, 235, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.footer-brand .logo-icon {
    color: var(--color-primary-light);
}

.footer-brand .logo-text {
    color: var(--color-cream);
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: rgba(245, 240, 235, 0.6);
    margin-bottom: var(--space-xs);
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(245, 240, 235, 0.4);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem;
    background: var(--color-slate);
    color: var(--color-cream);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 200;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-visual {
        display: none;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .hero {
        padding-top: calc(72px + var(--space-xl));
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card.featured-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .filter-bar {
        gap: var(--space-xs);
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }