/* ===================================
   Shluchim Health - Main Stylesheet
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    /* Modern, sophisticated color palette - health & wellness focused */
    --primary-color: #0066CC;
    --primary-dark: #004A99;
    --primary-light: #3384D6;
    --secondary-color: #00A67E;
    --secondary-dark: #008563;
    --secondary-light: #33B894;
    --accent-color: #FF6B35;
    --accent-dark: #E85A2A;
    --dark-color: #1A1F36;
    --medium-dark: #2D3748;
    --text-color: #4A5568;
    --text-light: #718096;
    --light-color: #F7FAFC;
    --lighter-color: #EDF2F7;
    --white: #ffffff;
    --border-color: #E2E8F0;
    --success-color: #00A67E;
    --error-color: #E53E3E;

    /* Gradient definitions */
    --gradient-primary: linear-gradient(135deg, #0066CC 0%, #00A67E 100%);
    --gradient-secondary: linear-gradient(135deg, #00A67E 0%, #33B894 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FF8F6B 100%);
    --gradient-dark: linear-gradient(135deg, #1A1F36 0%, #2D3748 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 102, 204, 0.95) 0%, rgba(0, 166, 126, 0.95) 100%);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-sm: 8px;

    /* Shadows - modern, layered approach */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-colored: 0 10px 30px -5px rgba(0, 102, 204, 0.3);

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--dark-color);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15), 0 8px 40px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    opacity: 0.95;
    font-family: var(--font-sans);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-affiliate {
    background: var(--gradient-accent);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.btn-affiliate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.75rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark-color);
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Categories Grid */
.categories-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.category-card h3 {
    color: var(--dark-color);
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

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

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--lighter-color);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.product-info h3 a {
    color: var(--dark-color);
    transition: var(--transition-base);
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-info p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--primary-light);
}

.post-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--lighter-color);
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-image img {
    transform: scale(1.08);
}

.post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-content h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--dark-color);
    transition: var(--transition-base);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.post-meta span:not(:last-child)::after {
    content: '•';
    margin: 0 0.5rem;
    opacity: 0.5;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Info Section */
.info-section {
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 166, 126, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.info-section .container {
    position: relative;
    z-index: 1;
}

.info-section h2 {
    color: var(--white);
}

.info-section h2::after {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.info-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.info-card::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
}

.info-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-family: var(--font-display);
}

.info-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1rem;
}

/* Page Headers */
.page-header {
    background: var(--light-color);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

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

/* Product Page */
.product-page {
    padding: 2rem 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.product-image-large {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.product-image-large img {
    width: 100%;
    height: auto;
}

.product-sidebar h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product-description {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.product-tags {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--light-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-color);
}

.product-buy {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.product-buy h3 {
    margin-bottom: 1rem;
}

.buy-note {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-affiliate {
    justify-content: space-between;
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-text strong {
    font-size: 1rem;
}

.btn-text small {
    font-size: 0.75rem;
    opacity: 0.9;
}

.affiliate-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Blog & Post Pages */
.blog-page, .post-single, .page-single {
    padding: 2rem 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.featured-post:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.featured-image {
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Sidebar */
.blog-sidebar, .products-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-lg);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Post Single */
.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.post-featured-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.affiliate-disclaimer {
    background: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.post-share {
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Products Page */
.products-page {
    padding: 2rem 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-form input[type="text"] {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-info {
    color: var(--text-color);
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    margin-top: 6rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.375rem;
}

.footer-section p {
    opacity: 0.85;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.disclaimer {
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.6;
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.empty-state p {
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2.25rem;
    }

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

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a {
        display: block;
        padding: 1.25rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    section h2::after {
        bottom: -10px;
        width: 50px;
        height: 3px;
    }

    .hero {
        padding: 4rem 0;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .products-grid,
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail,
    .featured-post,
    .blog-layout,
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-main,
    .blog-main {
        order: 1 !important;
    }

    .products-sidebar,
    .blog-sidebar {
        order: 2 !important;
        position: static !important;
    }

    .sidebar-widget {
        position: static;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-card {
        padding: 2.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer {
        margin-top: 4rem;
        padding: 3rem 0 1.5rem;
    }
}
