/* buy-gnss-receiver.css — Buy a GNSS Receiver page */

/* ── Hero ── */
.buy-hero {
    position: relative;
    padding: 3rem 0;
    background-color: #0d2818;
    background-image: url('/static/images/buy-gnss-header.webp?v=2'), url('/static/images/buy-gnss-header.jpg?v=2');
    background-position: 75% center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    text-align: left;
}

/* Dark gradient behind the text side so white copy stays readable */
.buy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 12, 0.72);
    pointer-events: none;
}

.buy-hero .container {
    position: relative;
    z-index: 1;
}

.buy-hero h1 {
    margin-bottom: var(--spacing-md);
    font-size: 1.9rem;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.buy-hero h1 small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.55em;
    font-weight: 400;
    opacity: 0.95;
}

.buy-hero__lead {
    max-width: 560px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ── Layout ── */
.buy-content {
    padding: var(--spacing-xl) 0;
}

.buy-content .container {
    max-width: 960px;
}

.buy-section {
    margin-bottom: var(--spacing-xl);
}

.buy-section h2,
.buy-disclosure h2,
.buy-next h2 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
    color: var(--color-primary);
}

.buy-section p,
.buy-disclosure p,
.buy-next p {
    line-height: 1.7;
    color: #444;
}

/* ── Product cards ── */
.buy-products {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.buy-product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    background: #fff;
}

.buy-product__img {
    background: var(--color-bg-light);
}

.buy-product__img img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.buy-product__caption {
    margin: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    color: #666;
    text-align: center;
}

.buy-product__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
}

.buy-product__tag {
    align-self: flex-start;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: var(--color-primary);
    color: #fff;
}

.buy-product h3 {
    margin: 0.25rem 0 0;
    font-size: 1.15rem;
}

.buy-product p {
    margin: 0;
}

.buy-product__variant {
    padding: 0.5rem 0.75rem;
    border-left: 4px solid var(--color-accent);
    background: #fef9ef;
    font-size: 0.95rem;
}

.buy-product__specs {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #444;
}

.buy-steps {
    margin: var(--spacing-sm) 0 0;
    padding-left: 1.4rem;
    list-style: decimal;
    line-height: 1.7;
    color: #444;
}

.buy-steps li {
    margin-bottom: 0.35rem;
}

.buy-faq__item {
    margin-top: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: #fff;
}

.buy-faq__item summary {
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
}

.buy-faq__item p {
    margin: 0;
    padding: 0 1rem 1rem;
}

.buy-product__price {
    margin-top: 0.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.buy-product__price span {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
}

/* ── Buttons ── */
.buy-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.7rem 1.4rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    color: var(--color-primary);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.buy-btn:hover {
    background: rgba(26, 86, 50, 0.06);
    transform: translateY(-1px);
}

.buy-btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.buy-btn--primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* ── Cart screenshot ── */
.buy-cart {
    margin: var(--spacing-md) 0 0;
}

.buy-cart img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.buy-cart figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* ── Cost table ── */
.buy-cost {
    width: 100%;
    margin-top: var(--spacing-md);
    border-collapse: collapse;
    font-size: 0.95rem;
}

.buy-cost th,
.buy-cost td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.buy-cost th:nth-child(n+2),
.buy-cost td:nth-child(n+2) {
    width: 5.5rem;
    text-align: right;
}

.buy-cost thead th {
    background: var(--color-bg-light);
}

.buy-cost__total td {
    border-bottom: 2px solid var(--color-primary);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-primary);
}

.buy-note {
    margin-top: var(--spacing-md);
    font-size: 0.88rem;
}

/* ── Disclosure + next steps ── */
.buy-disclosure {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
    background: var(--color-bg-light);
}

.buy-next {
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.buy-next .buy-btn {
    align-self: auto;
}

/* ── Desktop ── */
@media (min-width: 720px) {
    .buy-hero {
        display: flex;
        align-items: center;
        min-height: clamp(260px, 22vw, 420px);
        padding: 3rem 0;
        background-position: 75% 30%;
    }

    .buy-hero .container {
        width: 100%;
    }

    .buy-hero::before {
        background: linear-gradient(90deg, rgba(8, 22, 12, 0.88) 0%, rgba(8, 22, 12, 0.7) 45%, rgba(8, 22, 12, 0.05) 75%);
    }

    .buy-hero h1 {
        font-size: 2.4rem;
    }

    .buy-product {
        flex-direction: row;
    }

    .buy-product__img {
        flex: 0 0 38%;
    }

    .buy-product__img img {
        max-height: 380px;
    }
}
