* {
    box-sizing: border-box;
}

:root {
    --page-bg: #ffff00;
    --ink: #1f3753;
    --placeholder: #33495b;
    --accent: #d83c3c;
    --btn: #1f3753;
    --btn-hover: #16293d;
    --white: #ffffff;
    --soft-panel: rgba(255, 255, 255, 0.16);
    --line: rgba(31, 55, 83, 0.22);
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--page-bg);
    color: var(--ink);
}

/* =========================
   HOME PAGE
========================= */

body.frontend-home.fixed-layout-page {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.home-fixed-canvas {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 20px 36px;
}

.home-header {
    width: 100%;
}

.home-title {
    margin: 0;
    text-align: center;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--ink);
}

.home-meta-row {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--ink);
}

.meta-label,
.meta-value {
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
}

.home-main {
    padding-top: 32px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 36px;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.product-box {
    text-align: center;
    min-width: 0;
}

.product-box-c {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.product-title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    color: var(--ink);
}

.product-number {
	font-size:28px;
}

.image-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--placeholder);
    border: 0px dashed #3468ff;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.image-frame.no-image {
    background: var(--placeholder);
}

.image-frame.no-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--placeholder);
}

.view-results-area {
    text-align: center;
    padding-top: 52px;
    padding-bottom: 12px;
}

.view-results-link {
    display: inline-block;
    text-decoration: none;
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 0 6px 5px;
    line-height: 1;
    transition: all 0.2s ease;
}

.view-results-link:hover {
    color: var(--btn-hover);
    border-bottom-color: var(--btn-hover);
}

/* =========================
   RESULTS PAGE
========================= */

body.results-page {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.results-page-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 45px;
}

.results-header {
    text-align: center;
    margin-bottom: 28px;
}

.results-title {
    margin: 0;
    font-size: 60px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--ink);
}

.results-subtitle {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--ink);
}

.filter-panel {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 26px;
    padding: 24px;
    background: var(--soft-panel);
    border: 2px solid var(--line);
    border-radius: 10px;
}

.filter-form {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 18px;
    flex-wrap: wrap;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-field label {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--ink);
}

.filter-field input[type="date"] {
    width: 250px;
    height: 50px;
    border: 2px solid var(--ink);
    border-radius: 6px;
    background: #fff8c7;
    color: var(--ink);
    padding: 0 14px;
    font-size: 18px;
    font-weight: 700;
}

.check-results-button {
    height: 50px;
    min-width: 220px;
    border: none;
    border-radius: 6px;
    background: var(--btn);
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 0 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.check-results-button:hover {
    background: var(--btn-hover);
}

.back-home-wrap {
    margin-top: 18px;
    text-align: center;
}

.back-home-button {
    display: inline-block;
    text-decoration: none;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.back-home-button:hover {
    color: var(--btn-hover);
}

.message-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 22px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
}

.error-message {
    background: #fde4e4;
    color: #982727;
    border: 1px solid #dfaaaa;
}

.info-message {
    background: #e2eff9;
    color: #285173;
    border: 1px solid #a7c2d7;
}

.results-panel {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.selected-date-heading {
    margin-bottom: 12px;
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--ink);
}

.selected-date-heading span {
    color: var(--accent);
}

.cutoff-note {
    margin-bottom: 18px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.results-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff8c8;
    border: 2px solid var(--ink);
}

.results-table th,
.results-table td {
    border: 1px solid var(--ink);
    padding: 14px 16px;
    text-align: center;
    font-size: 17px;
}

.results-table th {
    background: var(--ink);
    color: var(--white);
    font-weight: 900;
    text-transform: uppercase;
}

.results-table td {
    color: var(--ink);
    font-weight: 700;
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {
    .home-fixed-canvas {
        padding: 20px 16px 30px;
    }

    .home-title {
        font-size: 50px;
    }

    .meta-label,
    .meta-value {
        font-size: 26px;
    }

    .home-main {
        padding-top: 26px;
    }

    .product-grid {
        gap: 28px 24px;
    }

    .product-title {
        font-size: 22px;
    }

    .view-results-area {
        padding-top: 40px;
    }

    .view-results-link {
        font-size: 28px;
    }

    .results-title {
        font-size: 46px;
    }

    .results-subtitle {
        font-size: 22px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
    .home-fixed-canvas {
        padding: 16px 12px 26px;
    }

    .home-title {
        font-size: 34px;
    }

    .home-meta-row {
        margin-top: 18px;
        gap: 10px;
    }

    .meta-label,
    .meta-value {
        font-size: 16px;
    }

    .home-main {
        padding-top: 20px;
    }

    .product-grid {
        gap: 18px 14px;
    }

    .product-box-c {
        max-width: 52%;
    }

    .product-title {
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.2;
    }

    .view-results-area {
        padding-top: 28px;
    }

    .view-results-link {
        font-size: 20px;
        border-bottom-width: 2px;
        padding-bottom: 4px;
    }

    .results-page-wrap {
        padding: 20px 12px 32px;
    }

    .results-title {
        font-size: 34px;
    }

    .results-subtitle {
        font-size: 18px;
    }

    .filter-panel {
        padding: 16px;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .filter-field input[type="date"] {
        width: 100%;
    }

    .check-results-button {
        width: 100%;
        min-width: 100%;
    }

    .selected-date-heading {
        font-size: 22px;
    }

    .cutoff-note {
        font-size: 14px;
    }

    .results-table th,
    .results-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
}