/* index.css */

        body { font-family: Arial, sans-serif; margin: 20px; background-color: #3d3d3d; color: #333; }
        h1 { color: #0056b3; }
        .controls { margin-bottom: 20px; background-color: #fff; padding: 15px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
        .controls label { font-weight: bold; margin-right: 5px; }
        .controls select, .controls input[type="text"] { padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
        /* Új gomb a kosár megtekintéséhez */
        .controls button.view-cart-button {
            padding: 10px 15px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.2s;
        }
        .controls button.view-cart-button:hover {
            background-color: #0056b3;
        }


        table { width: 100%; border-collapse: collapse; margin-top: 0px; background-color: #fff; box-shadow: 0 0 10px rgba(0,0,0,0.1); font-size: 0.9em; }
        th, td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
        th { background-color: #e2e2e2; cursor: pointer; }
        th:hover { background-color: #dcdcdc; }
        tr:nth-child(even) { background-color: #f9f9f9; }
        tr:hover { background-color: #f1f1f1; }

        td.clickable-model {
            cursor: pointer;
        }

        td.clickable-price {
            cursor: pointer;
            font-weight: bold;
        }
        td.clickable-price:hover {
            color: #0056b3;
        }


        .last-updated { margin-top: 20px; font-style: italic; color: #666; }
        .no-results { text-align: center; padding: 20px; color: #888; }
        .sticky-header {
            position: sticky;
            top: 0;
            background-color: #e2e2e2;
            z-index: 10;
        }

        /* Modal stílusok (általános) */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.7);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            position: relative;
            background-color: #fefefe;
            margin: auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 600px;
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
            animation-name: animatetop;
            animation-duration: 0.4s;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            text-align: center;
        }

        .modal-content img {
            max-width: 100%;
            max-height: 80vh;
            display: block;
            margin-bottom: 15px;
        }

        .modal-content p {
            font-size: 1.1em;
            word-break: break-word;
            margin-bottom: 15px;
        }

        /* Stílus az ár és darabszám sorhoz */
        .modal-controls-row {
            display: flex;
            align-items: center;
            justify-content: center; /* Középre igazítás */
            gap: 15px; /* Távolság az elemek között */
            margin-bottom: 15px;
            flex-wrap: wrap; /* Törje a sort kisebb képernyőn */
        }
        .modal-controls-row label {
            font-weight: bold;
            white-space: nowrap; /* Ne törje az "Ár:" szöveget */
        }
        .modal-controls-row span#modalPriceDisplay {
            font-weight: bold;
            color: #0056b3;
            font-size: 1.2em;
        }
        .modal-controls-row input[type="number"] {
            padding: 8px;
            width: 80px;
            text-align: center;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        .modal-controls-row button {
            padding: 10px 20px;
            background-color: #28a745;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.2s;
            white-space: nowrap; /* Ne törje a gomb szövegét */
        }
        .modal-controls-row button:hover {
            background-color: #218838;
        }


        .modal-message {
            margin-top: 10px;
            font-weight: bold;
        }
        .modal-message.success {
            color: green;
        }
        .modal-message.error {
            color: red;
        }

        /* Kosár modal specifikus stílusok */
        #cartModal .modal-content {
            max-width: 80%;
            align-items: stretch;
        }
        #cartModal h2 {
            color: #0056b3;
            margin-bottom: 15px;
        }
        #cartModal table {
            width: 100%;
            margin-bottom: 20px;
            border: 1px solid #ddd;
        }
        #cartModal th, #cartModal td {
            text-align: left;
            padding: 10px;
            border-bottom: 1px solid #eee;
        }
        #cartModal th {
            background-color: #f0f0f0;
        }
        #cartModal .cart-total {
            font-size: 1.2em;
            font-weight: bold;
            text-align: right;
            margin-top: 10px;
        }
        #cartModal .cart-actions {
            display: flex;
            justify-content: space-around;
            gap: 15px;
            margin-top: 20px;
        }
        #cartModal .cart-actions button {
            flex: 1;
            padding: 12px 20px;
            font-size: 1.1em;
        }
        #cartModal .cart-actions button.continue-shopping {
            background-color: #6c757d;
        }
        #cartModal .cart-actions button.continue-shopping:hover {
            background-color: #5a6268;
        }
        #cartModal .cart-actions button.checkout {
            background-color: #007bff;
        }
        #cartModal .cart-actions button.checkout:hover {
            background-color: #0056b3;
        }

        /* Animáció a modal megjelenéséhez */
        @keyframes animatetop {
            from {top: -300px; opacity: 0}
            to {top: 0; opacity: 1}
        }

        .close-button {
            color: #aaa;
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
        }

        .close-button:hover,
        .close-button:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

/* index.css */

        body { font-family: Arial, sans-serif; margin: 20px; background-color: #3d3d3d; color: #333; }
        h1 { color: #0056b3; }
        .controls { margin-bottom: 20px; background-color: #fff; padding: 15px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
        .controls label { font-weight: bold; margin-right: 5px; }
        .controls select, .controls input[type="text"] { padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
        /* Új gomb a kosár megtekintéséhez */
        .controls button.view-cart-button {
            padding: 10px 15px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.2s;
        }
        .controls button.view-cart-button:hover {
            background-color: #0056b3;
        }


        table { width: 100%; border-collapse: collapse; margin-top: 0px; background-color: #fff; box-shadow: 0 0 10px rgba(0,0,0,0.1); font-size: 0.9em; }
        th, td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
        th { background-color: #e2e2e2; cursor: pointer; }
        th:hover { background-color: #dcdcdc; }
        tr:nth-child(even) { background-color: #f9f9f9; }
        tr:hover { background-color: #f1f1f1; }

        td.clickable-model {
            cursor: pointer;
        }

        td.clickable-price {
            cursor: pointer;
            font-weight: bold;
        }
        td.clickable-price:hover {
            color: #0056b3;
        }


        .last-updated { margin-top: 20px; font-style: italic; color: #666; }
        .no-results { text-align: center; padding: 20px; color: #888; }
        .sticky-header {
            position: sticky;
            top: 0;
            background-color: #e2e2e2;
            z-index: 10;
        }

        /* Modal stílusok (általános) */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.7);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            position: relative;
            background-color: #fefefe;
            margin: auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 600px;
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
            animation-name: animatetop;
            animation-duration: 0.4s;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            text-align: center;
        }

        .modal-content img {
            max-width: 100%;
            max-height: 80vh;
            display: block;
            margin-bottom: 15px;
        }

        .modal-content p {
            font-size: 1.1em;
            word-break: break-word;
            margin-bottom: 15px;
        }

        /* Stílus az ár és darabszám sorhoz */
        .modal-controls-row {
            display: flex;
            align-items: center;
            justify-content: center; /* Középre igazítás */
            gap: 15px; /* Távolság az elemek között */
            margin-bottom: 15px;
            flex-wrap: wrap; /* Törje a sort kisebb képernyőn */
        }
        .modal-controls-row label {
            font-weight: bold;
            white-space: nowrap; /* Ne törje az "Ár:" szöveget */
        }
        .modal-controls-row span#modalPriceDisplay {
            font-weight: bold;
            color: #0056b3;
            font-size: 1.2em;
        }
        .modal-controls-row input[type="number"] {
            padding: 8px;
            width: 80px;
            text-align: center;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        .modal-controls-row button {
            padding: 10px 20px;
            background-color: #28a745;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.2s;
            white-space: nowrap; /* Ne törje a gomb szövegét */
        }
        .modal-controls-row button:hover {
            background-color: #218838;
        }


        .modal-message {
            margin-top: 10px;
            font-weight: bold;
        }
        .modal-message.success {
            color: green;
        }
        .modal-message.error {
            color: red;
        }

        /* Kosár modal specifikus stílusok */
        #cartModal .modal-content {
            max-width: 80%;
            align-items: stretch;
        }
        #cartModal h2 {
            color: #0056b3;
            margin-bottom: 15px;
        }
        #cartModal table {
            width: 100%;
            margin-bottom: 20px;
            border: 1px solid #ddd;
        }
        #cartModal th, #cartModal td {
            text-align: left;
            padding: 10px;
            border-bottom: 1px solid #eee;
        }
        #cartModal th {
            background-color: #f0f0f0;
        }
        #cartModal .cart-total {
            font-size: 1.2em;
            font-weight: bold;
            text-align: right;
            margin-top: 10px;
        }
        #cartModal .cart-actions {
            display: flex;
            justify-content: space-around;
            gap: 15px;
            margin-top: 20px;
        }
        #cartModal .cart-actions button {
            flex: 1;
            padding: 12px 20px;
            font-size: 1.1em;
        }
        #cartModal .cart-actions button.continue-shopping {
            background-color: #6c757d;
        }
        #cartModal .cart-actions button.continue-shopping:hover {
            background-color: #5a6268;
        }
        #cartModal .cart-actions button.checkout {
            background-color: #007bff;
        }
        #cartModal .cart-actions button.checkout:hover {
            background-color: #0056b3;
        }

        /* Animáció a modal megjelenéséhez */
        @keyframes animatetop {
            from {top: -300px; opacity: 0}
            to {top: 0; opacity: 1}
        }

        .close-button {
            color: #aaa;
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
        }

        .close-button:hover,
        .close-button:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        /* Futó szalag stílusa */
        .info-bar {
            background-color: #cd6565; /* Világos piros háttér */
            color: #ffffff; /* Sötét szöveg */
            padding: 10px;
            text-align: center;
            font-weight: bold;
            overflow: hidden;
            white-space: nowrap;
            position: relative;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .scrolling-text {
            display: inline-block;
            padding-left: 100%;
            animation: scroll-left 15s linear infinite;
            margin: 0;
        }

        @keyframes scroll-left {
            from {
                transform: translateX(0%);
            }
            to {
                transform: translateX(-100%);
            }
        }