body {
    font-family: Arial, sans-serif;
    margin: 1.25rem;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

.languageBar {
    width: 100%;
    text-align: right;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 0.3125rem;
    font-weight: bold;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
    border: 0.05rem solid #ccc;
    border-radius: 0.25rem;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

.helpText {
    padding: 1.25rem 0;
    color: #666;
    display: block;
}

button {
    height: 2.5rem;
    background-color: #007BFF;
    color: white;
    padding: 0;
    margin: 0;
    vertical-align: top;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1.125rem;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#results {
    margin-top: 1.25rem;
    border-top: 0.125rem solid #eee;
    padding-top: 1rem;
}

#resultTabs {
    display: flex;
}

.storeHeader {
    background: #f1f1f1;
    flex-basis: 100%;
    text-align: center;
    padding: 0.5rem;
    border: 0.01rem solid #888;
    margin: 0;
}

.storeHeader.selected {
    background: #00aa88 !important;
}

.productGroup {
    display: none;
    justify-content: center;
    width: 100%;
    gap: 2rem;
    flex-wrap: wrap;
}

.productGroup.selected {
    display: flex !important;
}

.productItem {
    display: flex;
    flex-wrap: wrap;
    flex: 10 10 30rem;
    gap: 1rem;
    padding: 1rem 0.5rem;
    border-bottom: 0.05rem solid #eee;
    align-items: center;
}

.productImage {
    margin: auto;
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    object-fit: contain;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.productText {
    flex: 10 10 20rem;
}

.productImage:hover {
    transform: scale(1.05);
}

.priceDiscount {
    color: #d9534f;
    font-weight: bold;
    font-size: 1.1em;
}

.priceRegular {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9em;
    margin-left: 0.5rem;
}

.error {
    color: #d9534f;
    background: #fdf7f7;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 0.05rem solid #d9534f;
}

.zoomOverlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.zoomOverlay.active {
    display: flex;
}

.zoomOverlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .container {
        background: #1e1e1e;
        box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.5);
    }

    input[type="text"],
    textarea {
        background-color: #2c2c2c;
        color: #e0e0e0;
        border-color: #444;
    }

    input[type="text"]::placeholder,
    textarea::placeholder {
        color: #888;
    }

    .helpText {
        color: #a0a0a0;
    }

    button:disabled {
        background-color: #444;
        color: #777;
    }

    #results {
        border-top-color: #333;
    }

    .storeHeader {
        background: #2d2d2d;
        color: #fff;
    }

    .productItem {
        border-bottom-color: #333;
    }

    .productImage {
        border-color: #444;
    }

    .priceRegular {
        color: #aaa;
    }

    .error {
        background: #3a1c1c;
        color: #ff8a80;
        border-color: #d9534f;
    }
}