/* ============================================================================
   THREADS - Demo Storefront Styles
   ============================================================================ */

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    --color-border: #e5e5e5;
    --color-accent: #1a1a1a;
    --color-accent-hover: #333333;
    
    --color-success: #059669;
    --color-warning: #d97706;
    --color-info: #2563eb;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   Navigation
   ============================================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-decoration: none;
    color: var(--color-text);
}

.launcher-toggle-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 101;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.launcher-toggle-btn:hover {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
    box-shadow: var(--shadow-md);
}

.launcher-toggle-btn:active {
    transform: scale(0.95);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon {
    color: var(--color-text);
    transition: opacity 0.2s;
}

.nav-icon:hover {
    opacity: 0.6;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-text);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 64px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 6rem;
}

.hero-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 400px;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.hero-image {
    background: linear-gradient(135deg, #e8e4df 0%, #d4cfc8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-placeholder {
    width: 80%;
    height: 70%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: rgba(0,0,0,0.15);
}

/* ============================================================================
   Products Section
   ============================================================================ */

.products-section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
}

.section-subtitle {
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.view-all {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.view-all:hover {
    color: var(--color-text);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    cursor: pointer;
    transition: transform 0.3s;
}

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

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #f0ebe6 0%, #e5dfd8 100%);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-text);
    color: white;
    border-radius: var(--radius-sm);
}

.product-badge.new {
    background: var(--color-success);
}

.product-info h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-colors {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================================================
   Orders Section
   ============================================================================ */

.orders-section {
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.demo-notice svg {
    flex-shrink: 0;
    color: var(--color-warning);
}

.demo-notice strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.demo-notice p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.order-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.order-id {
    font-family: monospace;
    font-size: 0.9375rem;
    font-weight: 600;
}

.order-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-shipped {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-delivered {
    background: #d1fae5;
    color: #047857;
}

.status-processing {
    background: #fef3c7;
    color: #b45309;
}

.status-return {
    background: #fee2e2;
    color: #dc2626;
}

.order-items {
    margin-bottom: 1rem;
}

.order-items p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem;
}

.order-date {
    color: var(--color-text-light);
}

.order-total {
    font-weight: 600;
}

/* Demo Prompts */

.demo-prompts {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.demo-prompts > p {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prompt-chip {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-family: inherit;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-chip:hover {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
    background: var(--color-text);
    color: white;
    padding: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.4);
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 6rem 2rem;
        text-align: center;
        align-items: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .products-section,
    .orders-section {
        padding: 3rem 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

