/* ================================================================
   TERMINAL OVERVIEW
   Public comparison page at /terminaly.
   ================================================================ */

.terminal-overview-page {
    --terminal-red: #cf2030;
    --terminal-green: #159b5b;
}

.terminal-overview-hero .sales-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
}

.terminal-hero-product {
    position: relative;
    display: grid;
    min-height: 430px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(176, 205, 234, .8);
    border-radius: 30px;
    background:
        radial-gradient(circle at 70% 28%, rgba(75, 158, 244, .22), transparent 38%),
        rgba(255, 255, 255, .9);
    box-shadow: 0 28px 70px rgba(26, 67, 111, .15);
    color: var(--sales-navy);
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.terminal-hero-product:hover,
.terminal-hero-product:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 34px 76px rgba(26, 67, 111, .2);
}

.terminal-hero-product img {
    width: 100%;
    height: 300px;
    object-fit: contain;
}

.terminal-hero-label {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 8px 13px;
    border: 1px solid #c9ddf2;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #20538b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.terminal-hero-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid #dfebf6;
}

.terminal-hero-meta strong {
    font-size: 22px;
    line-height: 1.25;
}

.terminal-hero-meta span {
    flex: 0 0 auto;
    color: #526b86;
    font-size: 15px;
    font-weight: 800;
}

/* Product cards */
.terminal-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.terminal-product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid #d7e5f2;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(24, 65, 105, .09);
}

.terminal-product-card.is-highlighted {
    border-color: rgba(34, 183, 90, .55);
    box-shadow: 0 22px 54px rgba(21, 155, 91, .13);
}

.terminal-product-media {
    position: relative;
    min-height: 320px;
    padding: 30px;
    background:
        radial-gradient(circle at 50% 45%, rgba(64, 147, 235, .16), transparent 38%),
        #f7faff;
}

.terminal-product-media > a {
    display: grid;
    place-items: center;
    height: 100%;
}

.terminal-product-media img {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: contain;
    transition: transform .22s ease;
}

.terminal-product-media a:hover img,
.terminal-product-media a:focus-visible img {
    transform: scale(1.035);
}

.terminal-product-badges {
    position: absolute;
    z-index: 1;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    pointer-events: none;
}

.terminal-badge {
    padding: 7px 12px;
    border: 1px solid #bed6ee;
    border-radius: 999px;
    background: rgba(239, 247, 255, .96);
    color: #174c84;
    font-size: 14px;
    font-weight: 900;
}

.terminal-badge-red {
    border-color: #f0b4ba;
    background: rgba(255, 241, 242, .96);
    color: #c51d2d;
}

.terminal-product-content {
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.terminal-product-content h3 {
    margin: 0;
    color: var(--sales-navy);
    font-size: clamp(25px, 2.6vw, 32px);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.16;
}

.terminal-product-summary {
    margin-top: 13px;
    color: #536c86;
    font-size: 17px;
    line-height: 1.58;
}

.terminal-product-summary p {
    margin: 0;
}

.terminal-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.terminal-feature-tags span {
    padding: 7px 11px;
    border: 1px solid #c5e1d4;
    border-radius: 999px;
    background: #f0faf5;
    color: #147654;
    font-size: 14px;
    font-weight: 800;
}

.terminal-benefit-list {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    color: #2e4b68;
    font-size: 16px;
    line-height: 1.45;
    list-style: none;
}

.terminal-benefit-list li {
    display: flex;
    align-items: flex-start;
}

.terminal-benefit-list li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    margin: 1px 9px 0 0;
    border-radius: 50%;
    background: #dff7ea;
    color: #11874d;
    font-size: 12px;
    font-weight: 900;
}

.terminal-benefit-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.terminal-benefit-text strong,
.terminal-benefit-text b {
    color: #264b73;
    font-weight: 900;
}

.terminal-product-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 28px;
}

.terminal-price-block {
    display: grid;
    justify-items: start;
}

.terminal-price-block strong {
    color: var(--sales-navy);
    font-size: 33px;
    font-weight: 900;
    line-height: 1.12;
    white-space: nowrap;
}

.terminal-price-block small {
    margin-top: 5px;
    color: #64788e;
    font-size: 13px;
    font-weight: 700;
}

.terminal-original-price {
    color: #74859a;
    font-size: 18px;
    font-weight: 800;
    text-decoration: line-through;
}

.terminal-discount {
    margin: 3px 0 5px;
    color: var(--terminal-red);
    font-size: 17px;
    font-weight: 900;
}

.terminal-stock {
    position: relative;
    padding-left: 14px;
    color: #60758b;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.terminal-stock::before {
    content: "";
    position: absolute;
    top: .45em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a0adba;
}

.terminal-stock.is-available::before {
    background: var(--terminal-green);
}

.terminal-stock.is-unavailable::before {
    background: var(--terminal-red);
}

.terminal-product-actions {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 10px;
    margin-top: 22px;
}

.terminal-product-actions .sales-btn {
    padding-inline: 16px;
}

.terminal-empty-state {
    max-width: 720px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid #dce7f2;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 16px 42px rgba(25, 62, 101, .08);
}

.terminal-empty-state h3 {
    margin: 0;
    color: var(--sales-navy);
    font-size: 28px;
}

.terminal-empty-state p {
    margin: 12px 0 22px;
    color: var(--sales-muted);
    font-size: 17px;
}

/* Mobile-friendly comparison cards replace a wide table. */
.terminal-comparison-section {
    background: #102f55 !important;
}

.terminal-comparison-section .sales-kicker,
.terminal-comparison-section .sales-section-heading p {
    color: #c7ddf2;
}

.terminal-comparison-section .sales-section-heading h2 {
    color: #fff;
}

.terminal-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.terminal-comparison-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.terminal-comparison-card header {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.terminal-comparison-card header img {
    width: 82px;
    height: 72px;
    padding: 7px;
    border-radius: 13px;
    background: #fff;
    object-fit: contain;
}

.terminal-comparison-card h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
}

.terminal-comparison-card header strong {
    color: #7ee5aa;
    font-size: 16px;
}

.terminal-comparison-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.terminal-comparison-card dl > div {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.terminal-comparison-card dt {
    margin-bottom: 6px;
    color: #9fc6e8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.terminal-comparison-card dd {
    margin: 0;
    color: #eef7ff;
    font-size: 15px;
    line-height: 1.55;
}

.terminal-comparison-card dd ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
}

.terminal-comparison-card > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    color: #86eeb2;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
}

.terminal-comparison-card > a:hover,
.terminal-comparison-card > a:focus-visible {
    color: #fff;
}

.terminal-choice-guide .sales-card-icon {
    background: #e5f8ed;
    color: #148c50;
}

@media (max-width: 900px) {
    .terminal-overview-hero .sales-hero-grid,
    .terminal-product-grid,
    .terminal-comparison-grid {
        grid-template-columns: 1fr;
    }

    .terminal-hero-product {
        min-height: 360px;
    }

    .terminal-hero-product img {
        height: 245px;
    }
}

@media (max-width: 620px) {
    .terminal-overview-hero .sales-lead {
        font-size: 18px;
        line-height: 1.5;
    }

    .terminal-hero-product {
        min-height: 300px;
        padding: 20px;
        border-radius: 22px;
    }

    .terminal-hero-product img {
        height: 205px;
    }

    .terminal-hero-meta {
        display: grid;
        gap: 5px;
    }

    .terminal-product-media {
        min-height: 245px;
        padding: 20px;
    }

    .terminal-product-media img {
        height: 210px;
    }

    .terminal-product-content {
        padding: 22px 18px;
    }

    .terminal-product-summary {
        font-size: 16px;
    }

    .terminal-product-footer {
        display: grid;
        align-items: start;
        gap: 13px;
    }

    .terminal-stock {
        justify-self: start;
        text-align: left;
    }

    .terminal-product-actions {
        grid-template-columns: 1fr;
    }

    .terminal-comparison-card {
        padding: 20px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terminal-hero-product,
    .terminal-product-media img {
        transition: none;
    }
}
