* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    background-color: #fdfaf6;
    font-family: 'Lora', Georgia, serif;
    color: #3e2723;
    line-height: 1.7;
    margin: 0;
    padding: 15px;
}

header {
    background-color: #efeae2;
    padding: 30px;
    text-align: center;
    border-radius: 6px;
    border: 2px solid #5d4037;
    margin-bottom: 25px;
}

h1 {
    font-family: 'Cinzel', Georgia, serif;
    color: #4e342e;
    margin: 0;
    font-size: 2.6em;
    font-weight: 600;
}

nav {
    margin: 20px 0;
    background-color: #5d4037;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

nav a {
    display: block;
    padding: 14px 18px;
    margin: 0;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

nav a:focus {
    outline: 3px solid #ffb300;
    outline-offset: 2px;
}

nav a:hover {
    background-color: #d7ccc8;
    color: #1a0c00;
    text-decoration: none; 
}

section {
    margin: 0 auto 25px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #d7ccc8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

h2 {
    font-family: 'Cinzel', Georgia, serif;
    color: #5d4037;
    border-bottom: 2px solid #efeae2;
    padding-bottom: 8px;
    margin-top: 0;
    font-size: 1.6em;
}

ul, ol {
    padding-left: 22px;
}

li {
    margin-bottom: 10px;
}

section ul li,
section ol li {
    background-color: #fdfaf6;
    border: 1px solid #d7ccc8;
    border-left: 4px solid #5d4037;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 12px;
    list-style-type: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    justify-content: center;
    margin: 30px auto;
    max-width: 100%;
}

.product-image {
    width: 100%;
    height: auto;
    border: 4px solid #4e342e;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    margin: 0;
    background-color: #ffffff;
    object-fit: cover; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(78, 52, 46, 0.3);
    position: relative;
    z-index: 1;
}

img[src*="active-online.png"] {
    object-fit: contain;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #d7ccc8;
    color: #8d6e63;
}

footer p {
    margin: 5px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    display: block;
    overflow-x: auto;
    font-size: 0.95em;
    background-color: #ffffff;
    border: 1px solid #d7ccc8;
}
.data-table caption {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.2em;
    font-weight: bold;
    color: #4e342e;
    margin-bottom: 12px;
    text-align: left;
}
.data-table th, .data-table td {
    border: 1px solid #d7ccc8;
    padding: 12px;
    text-align: left;
}
.data-table tbody tr:nth-child(even) {
    background-color: #efeae2;
}
.data-table th {
    background-color: #5d4037;
    color: #ffffff;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: bold;
}

.chess-form {
    margin-top: 20px;
}

.form-group {
    background-color: #fdfaf6;
    border: 1px solid #d7ccc8;
    border-left: 4px solid #5d4037;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 22px;
}

.form-group legend {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: bold;
    font-size: 1.15em;
    color: #4e342e;
    padding: 0 8px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field > label,
.field-instruction {
    display: block;
    font-weight: bold;
    color: #3e2723;
    margin-bottom: 6px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px;
    font-family: 'Lora', Georgia, serif;
    font-size: 1em;
    color: #3e2723;
    background-color: #ffffff;
    border: 1px solid #bcaaa4;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 3px solid #ffb300;
    outline-offset: 1px;
    border-color: #5d4037;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.inline-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    padding: 6px 10px;
    background-color: #ffffff;
    border: 1px solid #efeae2;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.inline-option:hover {
    background-color: #efeae2;
}

.inline-option input[type="radio"],
.inline-option input[type="checkbox"] {
    accent-color: #5d4037;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background-color: #5d4037;
    color: #ffffff;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid #4e342e;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background-color: #d7ccc8;
    color: #1a0c00;
}

.submit-btn:focus {
    outline: 3px solid #ffb300;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    body {
        max-width: 800px;
        margin: 40px auto;
        padding: 0 20px;
    }

    nav {
        position: sticky;
        top: 0;
        z-index: 100;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    nav a {
        display: inline-block;
        padding: 10px 18px;
        margin: 5px 10px;
    }

    .product-image {
        flex: 1 1 30%;
        max-width: 320px;
        height: 240px;
    }

    .data-table {
        display: table;
    }

    .submit-btn {
        width: auto;
        min-width: 220px;
    }

}
