/* Zasielkový obchod - Modern E-shop Design */

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

:root {
    /* Colors */
    --primary-blue: #1e40af;
    --primary-light: #3b82f6;
    --secondary-orange: #f97316;
    --accent-green: #10b981;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-light: #e2e8f0;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Navigation */
.nav {
    background: var(--bg-white);
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--bg-gray);
    color: var(--primary-blue);
}

/* Main Content */
.main {
    padding: var(--spacing-2xl) 0;
}

/* Section */
.section {
    margin-bottom: var(--spacing-2xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Banner */
.featured-banner {
    background: linear-gradient(135deg, var(--secondary-orange) 0%, #ea580c 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.featured-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.featured-content {
    position: relative;
    z-index: 2;
}

.featured-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

.featured-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Obsah produktu - flexbox layout pro širší karty */
.product-content {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.product-info {
    flex: 1;
}

.product-banner {
    flex: 0 0 300px;
    order: 2;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
}

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

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.product-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-sm);
    font-size: 1.5rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
}

.product-banner {
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-banner object {
    width: 100%;
    height: 250px;
    display: block;
    border: none;
    object-fit: contain;
}

/* Speciální styl pro hlavní Samsung/Apple banner */
.featured-banner .product-banner object {
    width: 100%;
    height: 210px;
    max-width: 970px;
    margin: 0 auto;
    display: block;
    border: none;
    object-fit: contain;
}

.product-description {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.product-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-gray);
    position: relative;
    padding-left: var(--spacing-md);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: var(--font-weight-bold);
}

.product-cta {
    background: linear-gradient(135deg, var(--secondary-orange), #ea580c);
    color: var(--bg-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.product-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

/* Trust Indicators */
.trust-section {
    background: var(--bg-white);
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-2xl) 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.trust-item {
    text-align: center;
    padding: var(--spacing-md);
}

.trust-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-green), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    font-size: 1.5rem;
    color: var(--bg-white);
}

.trust-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
}

.trust-description {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-card {
        padding: var(--spacing-md);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--bg-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }


/* Responzivní styly pro affiliate bannery */
@media (max-width: 768px) {
    .featured-banner .product-banner object {
        width: 100%;
        height: auto;
        min-height: 150px;
        max-width: 100%;
    }
    
    .product-banner object {
        width: 100%;
        height: auto;
        min-height: 200px;
        aspect-ratio: 1;
    }
}

@media (max-width: 480px) {
    .featured-banner .product-banner object {
        min-height: 120px;
    }
    
    .product-banner object {
        min-height: 180px;
    }
}

/* Fallback pro starší prohlížeče */
.product-banner object[data*="affil.alza.cz"] {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}


/* Responzivní styly pro single column layout */
@media (max-width: 768px) {
    .products-grid {
        max-width: 100%;
        gap: var(--spacing-lg);
    }
    
    .product-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .product-banner {
        order: 1;
        flex: none;
        align-self: center;
    }
    
    .product-info {
        order: 2;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: var(--spacing-md);
    }
    
    .product-content {
        gap: var(--spacing-sm);
    }
}

