/* excire.com — Shop */

/* Hero: full-width photo, white title top-left; product boxes overlap it. */
.shop-hero {
    background-size: cover;
    background-position: center;
    min-height: 707px;                 /* measured on live */
    color: #fff;
}
.shop-hero .container { padding-block: 90px 0; }
.shop-hero__title { color: #fff; font-size: 62px; font-weight: 700; margin: 0; }

/* Product grid — halves pair up per row, full spans the row. Pulled up so the
   first product row starts ~307px from the hero top and protrudes deep into
   the photo (live: 400px overlap). The semi-transparent grey box lets the
   image show through. */
.shop { position: relative; z-index: 2; margin-top: -480px; padding-bottom: var(--space-5); }
.shop__grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.shop__product {
    background: rgba(243, 243, 243, .69);   /* measured on live */
    box-shadow: 0 0 10px rgba(0, 0, 0, .22);
    border-radius: 2px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.shop__product--half { width: calc(50% - 12px); }
/* Full-width box (Bundle): image beside the text, like live — so it stays a
   compact wide box rather than a tall centred one. */
.shop__product--full {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 45%) 1fr;
    grid-template-areas: "media head" "media body";
    grid-template-rows: auto 1fr;
    column-gap: 44px;
    align-items: start;
}
.shop__product--full .shop__product-media { grid-area: media; align-self: center; margin: 0; }
.shop__product--full .shop__product-media img { max-width: 100%; }
.shop__product--full .shop__product-head { grid-area: head; text-align: left; }
.shop__product--full .shop__product-body { grid-area: body; }

/* Bottom-align the name (+ optional subtitle) inside a fixed-height block so the
   divider sits at the same height on every card in a row, whether or not the
   product has a subtitle (matches live). */
.shop__product-head { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100px; text-align: center; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; margin-bottom: 24px; }
.shop__product-name { font-size: 34px; font-weight: var(--fw-medium); margin: 0; line-height: 1.2; }
.shop__product-name strong { font-weight: 700; }
.shop__product-sub { margin: 8px 0 0; font-size: 20px; font-weight: 700; color: var(--color-text); }

/* Flex-centre the photo — robust regardless of the img's display value
   (the global reset makes it block, so text-align alone would not centre it). */
.shop__product-media { display: flex; justify-content: center; margin-bottom: 24px; }
.shop__product-media img { max-width: 360px; width: 100%; height: auto; margin-inline: auto; }

.shop__product-body { display: flex; flex-direction: column; flex: 1; }

/* Price (filled by FastSpring SBL). Weights match live: current 500, struck 300
   (700 read as too bold). */
.shop__price { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; font-size: 40px; font-weight: 500; color: var(--color-black); }
.shop__price-old { color: var(--color-text-muted); font-weight: 300; font-size: 26px; }
.shop__price-old:empty { display: none; }
.shop__price-suffix { font-size: 22px; font-weight: 400; color: var(--color-text); }
.shop__savings { margin: 0 0 var(--space-3); font-size: 16px; color: var(--color-text-muted); }

.shop__bullets { list-style: none; margin: var(--space-3) 0; padding: 0; }
.shop__bullets li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 20px; line-height: 1.5; }
.shop__bullets li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #000; font-weight: 700; }

.shop__discount { margin: 0 0 var(--space-4); }
.shop__discount a strong { color: var(--color-link); }

.shop__buy { display: block; width: 100%; margin-top: auto; }
/* Plain uppercase text link like live — no button box. */
.shop__info {
    display: block; width: 100%; text-align: center; margin-top: 16px;
    background: none; border: 0; padding: 0;
    font-family: inherit; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
    font-weight: 500; color: #000; cursor: pointer;
}
.shop__info:hover { color: var(--color-primary); text-decoration: underline; }

/* "Welches Produkt ist das Richtige für mich?" — grey band flush with the
   product boxes (box edge to box edge), not full-bleed. */
.shop-compare { padding-block: var(--space-4); }
.shop-compare__inner { background: #ebebeb; padding: 48px; }
.shop-compare__title { font-size: var(--fs-h3); font-weight: var(--fw-bold); margin: 0 0 var(--space-5); }
.shop-compare__p { max-width: none; margin: 0 0 var(--space-4); line-height: 1.6; font-size: 18px; }
.shop-compare__p:last-child { margin-bottom: 0; }

/* Produktvergleich table */
.shop-table { padding-block: var(--space-5); }
.shop-table__title { font-size: var(--fs-h2); margin: 0 0 var(--space-5); text-align: center; }
.shop-table__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Keep the columns readable on small phones — the table scrolls horizontally
   inside its wrap instead of cramming the feature/product columns. */
.shop-table__wrap table { min-width: 620px; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.comparison-table th,
.comparison-table td { border: 1px solid #dcdcdc; padding: 12px 16px; text-align: left; vertical-align: middle; }
.comparison-table thead th { background: #fff; color: #000; font-weight: 700; text-align: center; }
.comparison-table thead th:first-child { text-align: left; }
/* Zebra rows (white / faint grey), like live. Category headers override below. */
.comparison-table tr:nth-child(even) td { background: rgba(128, 128, 128, .07); }
.comparison-table td.category-header { background: #ebebeb; font-weight: 700; text-align: left; }

/* Info / system-requirement modal */
.shop-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.shop-modal[hidden] { display: none; }
.shop-modal__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); }
.shop-modal__dialog {
    position: relative; z-index: 1; background: #fff; width: 100%; max-width: 720px;
    margin: auto; padding: 40px 44px 44px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.shop-modal__close {
    position: absolute; top: 14px; right: 18px; background: none; border: 0;
    font-size: 32px; line-height: 1; color: #888; cursor: pointer; padding: 4px 8px;
}
.shop-modal__close:hover { color: #222; }
.shop-modal__title { font-size: 30px; margin: 0 0 8px; }
.shop-modal__intro { margin: 0 0 var(--space-4); line-height: 1.6; }
.shop-modal__section { border-top: 1px solid var(--color-border); padding-top: 20px; margin-top: 20px; }
.shop-modal__section:first-of-type { border-top: 0; padding-top: 0; margin-top: 16px; }
.shop-modal__h { font-size: 20px; margin: 0 0 12px; }
.shop-modal__dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 20px; margin: 0; }
.shop-modal__dl dt { font-weight: 700; }
.shop-modal__dl dd { margin: 0; line-height: 1.55; }
.shop-modal__text { line-height: 1.7; }
.shop-modal__text p { margin: 0 0 6px; }
.shop-modal__text a, .shop-modal__dl a { color: var(--color-link); }

/* Responsive */
@media (max-width: 900px) {
    .shop-modal__dialog { padding: 36px 22px 28px; }
    .shop-modal__dl { grid-template-columns: 1fr; gap: 2px 0; }
    .shop-modal__dl dt { margin-top: 10px; }
    .shop { margin-top: -320px; }
    .shop-hero { min-height: 560px; }
    .shop-hero__title { font-size: 38px; }
    .shop__product--half { width: 100%; }
    .shop__product--full { display: flex; flex-direction: column; }
    .shop__product--full .shop__product-media { align-self: stretch; margin-bottom: 24px; }
    .shop__product--full .shop__product-head { text-align: center; }
    /* Cards stack on mobile — no cross-card divider to align, so drop the reserved height. */
    .shop__product-head { min-height: 0; }
    .shop__product-name { font-size: 28px; }
    .shop__bullets li { font-size: 18px; }
    .comparison-table { font-size: 14px; }
    .comparison-table th, .comparison-table td { padding: 8px 10px; }
}
