/* ============ CSS Variables & Reset ============ */
:root {
    --bg-primary: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-light: #fef3c7;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1280px;
    --header-height: 64px;
}

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

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

/* ============ Header ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.desktop-nav {
    display: flex;
    gap: 24px;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: var(--accent);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: background 0.2s;
    color: var(--text-primary);
}

.icon-btn:hover {
    background: var(--accent-light);
}

/* ============ Hero Section ============ */
.hero-section {
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
    padding: 80px 24px 60px;
    text-align: center;
    margin-top: var(--header-height);
}

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

.hero-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-hover);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Search */
.search-container {
    max-width: 600px;
    margin: 0 auto 32px;
}

.search-box {
    display: flex;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.search-icon {
    padding: 16px;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-family);
}

.search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px 32px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: var(--font-family);
}

.search-btn:hover {
    background: var(--accent-hover);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============ Filters ============ */
.filters-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: white;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.filter-pill:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.filter-pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ============ Product Grid ============ */
.products-section, .deals-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
}

.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.product-grid, .deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

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

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.product-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
}

.badge-featured {
    background: var(--accent);
    color: white;
}

.badge-trending {
    background: #ef4444;
    color: white;
}

.badge-deal {
    background: #10b981;
    color: white;
}

.product-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card-review {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.stars {
    color: var(--accent);
    display: flex;
}

.product-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0px 20px 10px;
}

.buy-btn {
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.buy-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.country-flag {
    font-size: 1.5rem;
}

/* ============ Trust Badges ============ */
.trust-section {
    background: white;
    padding: 60px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-badges {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.trust-badge {
    text-align: center;
    padding: 24px;
}

.trust-badge .material-symbols-outlined {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 16px;
}

.trust-badge h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.trust-badge p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============ Newsletter ============ */
.newsletter-section {
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 24px;
}

.newsletter-content {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: var(--font-family);
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-color: var(--accent);
}

.newsletter-btn {
    padding: 14px 32px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background 0.3s;
}

.newsletter-btn:hover {
    background: #1e293b;
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    margin-top: 12px;
}

/* ============ Footer ============ */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 48px 24px 24px;
    margin-top: 60px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.amazon-disclosure {
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-top: 16px;
    border-left: 3px solid var(--accent);
}

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

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ============ Mobile Nav ============ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 8px 16px;
    z-index: 1000;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 8px;
}

.mobile-nav-item.active {
    color: var(--accent);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--border);
    }
    
    .desktop-nav.mobile-menu-open {
        display: flex;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .product-grid, .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .product-grid, .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-pills {
        gap: 4px;
    }
    
    .filter-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

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

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

/* ============ Generic Page Styles (About / Privacy) ============ */
.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--header-height) + 40px) 24px 80px;
}

.page-header {
    margin-bottom: 48px;
    max-width: 800px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.sidebar-nav {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.sidebar-nav h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.sidebar-nav a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: color 0.2s;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--accent);
    font-weight: 700;
}

.bento-card {
    background: var(--bg-white);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.content-section {
    margin-bottom: 48px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.content-section h2 .material-symbols-outlined {
    color: var(--accent);
    font-size: 32px;
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.content-section p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-section ul {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.content-section ul li {
    margin-bottom: 12px;
}

.content-section ul li strong {
    color: var(--accent);
}

.content-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

.info-box {
    background: var(--accent-light);
    padding: 24px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: 32px 0;
}

.info-box p {
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

.info-box-alt {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin: 32px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-box-alt .material-symbols-outlined {
    color: var(--accent);
    font-size: 28px;
}

.info-box-alt h4 {
    margin-bottom: 8px;
}

.info-box-alt p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-box {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.feature-box .material-symbols-outlined {
    color: var(--accent);
    font-size: 32px;
}

.feature-box h4 {
    font-size: 1.1rem;
    margin: 16px 0 8px;
}

.feature-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.ordered-list-custom {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.list-item-custom {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.list-number {
    background: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.list-content h4 {
    margin-bottom: 4px;
}

.list-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.text-accent {
    color: var(--accent);
}

/* Responsive Overrides for Generic Pages */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-nav {
        position: static;
        margin-bottom: 32px;
    }
    
    .bento-card {
        padding: 24px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
}