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

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        padding: 20px;
        min-height: 100vh;
    }

    .page {
        max-width: 1600px;
        margin: 0 auto;
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        overflow: hidden;
    }

    .header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 20px 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

    .logo {
        max-width: 300px;
        height: auto;
        background: white;
        padding: 15px 30px;
        border-radius: 15px;
        flex-shrink: 0;
    }

    .header-text {
        text-align: left;
        flex: 1;
    }

    .header h1 {
        color: white;
        font-size: 2.5em;
        margin-bottom: 10px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    }

    .header p {
        color: rgba(255,255,255,0.9);
        font-size: 1.1em;
    }

    .book-spread {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 40px;
    }

    .book-spread.desktop-four-products {
        grid-template-columns: 1fr;
    }

    .book-spread.desktop-four-products .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    @media (min-width: 1121px) {
        .book-spread.desktop-four-products .single-page {
            will-change: opacity, transform;
        }

        .book-spread.desktop-four-products.desktop-fade-out .single-page {
            animation: desktopFadeOut 140ms ease forwards;
        }

        .book-spread.desktop-four-products.desktop-fade-in .single-page {
            animation: desktopFadeIn 190ms ease forwards;
        }
    }

    @keyframes desktopFadeOut {
        0% {
            opacity: 1;
            transform: translateY(0);
        }
        100% {
            opacity: 0.35;
            transform: translateY(2px);
        }
    }

    @keyframes desktopFadeIn {
        0% {
            opacity: 0.35;
            transform: translateY(2px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .single-page {
        background: white;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

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

    .product-card {
        background: white;
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border: 2px solid #f0f0f0;
        display: flex;
        flex-direction: column;
    }

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        border-color: #667eea;
    }

    .badge-container {
        position: relative;
        height: 40px;
        margin-bottom: 15px;
    }

    .badge {
        position: absolute;
        top: 10px;
        padding: 8px 18px;
        border-radius: 25px;
        font-size: 0.9em;
        font-weight: bold;
        z-index: 1;
    }

    .badge-stock {
        background: #4CAF50;
        color: white;
        left: 10px;
    }

    .badge-sale {
        background: #E74C3C;
        color: white;
        right: 10px;
    }

    .badge-skladem {
        background: #27ae60;
        color: white;
    }

    .badge-neskladem {
        background: #e9e104;
        color: white;
    }

    .product-image {
        width: 100%;
        height: 220px;
        object-fit: contain;
        margin-bottom: 15px;
        border-radius: 1Opx;
        /* background: #f8f9fa; */
        /* padding: 15px; */
    }

    .product-media-wrap {
        position: relative;
    }

    .media-link-overlay {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: block;
        border-radius: 10px;
        cursor: pointer;
    }

    video.product-image {
        padding: 0;
        object-fit: contain;
    }

    iframe.product-image {
        padding: 0;
        background: transparent;
    }

    .product-iframe {
        height: 220px;
    }

    .product-video {
        display: block;
        border-radius: 10px;
    }

    .product-code {
        color: #666;
        font-size: 0.85em;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .product-title {
        color: #333;
        font-size: 1.4em;
        margin-bottom: 12px;
        font-weight: bold;
    }

    .product-description {
        color: #666;
        line-height: 1.5;
        margin-bottom: 15px;
        font-size: 0.9em;
        flex-grow: 1;
    }

    .price-section {
        margin-bottom: 15px;
        padding: 15px;
        background: white;
        border-radius: 10px;
    }

    .price {
        font-size: 1.8em;
        color: #667eea;
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
    }

    .original-price {
        font-size: 0.95em;
        color: #999;
        text-decoration: line-through;
    }

    .cta-button {
        display: block;
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        text-align: center;
        text-decoration: none;
        border-radius: 10px;
        font-size: 1em;
        font-weight: bold;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
    }

    .footer {
        background: #f8f9fa;
        padding: 8px 30px 14px;
        text-align: center;
    }

    .footer a {
        color: #667eea;
        text-decoration: none;
        font-size: 1.2em;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .footer a:hover {
        color: #764ba2;
    }

    .navigation {
        position: relative;
        margin-top: -6px;
        padding: 10px 40px;
        background: #f8f9fa;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-button {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 10px;
        font-size: 1.1em;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    .nav-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
    }

    .nav-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .page-indicator {
        font-size: 1.2em;
        font-weight: bold;
        color: #333;
    }

    /* Střední desktop - 1121px až 1399px */
    @media (max-width: 1399px) and (min-width: 1121px) {
        body {
            padding: 15px;
        }

        .book-spread {
            padding: 25px;
            gap: 20px;
        }

        .header {
            padding: 20px 30px;
        }

        .logo {
            max-width: 250px;
            padding: 12px 25px;
        }

        .header h1 {
            font-size: 2.2em;
        }

        .header p {
            font-size: 1em;
        }

        .product-card {
            padding: 20px;
        }

        .products-grid {
            gap: 20px;
        }
    }

    /* Tablet landscape - 769px až 1120px - JEDNA stránka */
    @media (max-width: 1120px) and (min-width: 769px) {
        body {
            padding: 10px;
        }

        .book-spread {
            display: block;
            padding: 15px;
            gap: 15px;
        }

        .single-page:nth-child(2) {
            display: none;
        }

        .header {
            padding: 15px 20px;
            gap: 20px;
        }

        .logo {
            max-width: 200px;
            padding: 10px 20px;
        }

        .header h1 {
            font-size: 2em;
        }

        .header p {
            font-size: 0.95em;
        }

        .product-card {
            padding: 15px;
        }

        .products-grid {
            gap: 15px;
        }

        .product-title {
            font-size: 1.6em;
        }

        .price {
            font-size: 2.2em;
        }

        .navigation {
            padding: 10px 15px;
        }
    }

    /* Tablet / Velký telefon - do 768px */
    @media (max-width: 768px) {
        body {
            padding: 10px;
        }
        
        .header {
            padding: 15px 15px;
            flex-direction: column;
            gap: 15px;
        }

        .header-text {
            text-align: center;
        }

        .logo {
            max-width: 200px;
            padding: 10px 20px;
        }
        
        .header h1 {
            font-size: 1.8em;
        }
        
        .header p {
            font-size: 1em;
        }

        .book-spread {
            display: block;
            padding: 15px;
        }

        .single-page {
            gap: 15px;
        }

        .single-page:nth-child(2) {
            display: none;
        }
        
        .products-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .product-card {
            padding: 20px;
        }
        
        .product-image {
            height: 250px;
        }

        .product-iframe {
            height: 250px;
        }
        
        .product-title {
            font-size: 1.5em;
        }
        
        .price {
            font-size: 2em;
        }

        .navigation {
            padding: 10px 15px;
            flex-direction: column;
            gap: 15px;
        }

        .nav-button {
            width: 100%;
            padding: 12px 20px;
            font-size: 1em;
        }

        .page-indicator {
            font-size: 1em;
        }
    }

    /* Malý telefon - do 480px */
    @media (max-width: 480px) {
        body {
            padding: 5px;
        }

        .header {
            padding: 10px;
            gap: 10px;
        }

        .logo {
            max-width: 150px;
            padding: 8px 15px;
        }

        .header h1 {
            font-size: 1.5em;
        }

        .header p {
            font-size: 0.9em;
        }

        .book-spread {
            padding: 10px;
        }

        .single-page {
            gap: 10px;
        }

        .product-card {
            padding: 15px;
        }

        .product-title {
            font-size: 1.3em;
        }

        .product-description {
            font-size: 0.9em;
        }

        .price {
            font-size: 1.8em;
        }

        .navigation {
            padding: 8px 10px;
        }

        .nav-button {
            padding: 10px 15px;
            font-size: 0.9em;
        }

        .page-indicator {
            font-size: 0.9em;
        }
    }