/**
 * InformatiCH WooCommerce product presentation.
 *
 * Ownership: registered START and SCALE product-page layouts only.
 * Neutral WooCommerce fallback, cart, checkout, notices and transactional
 * screens remain owned by main.css.
 *
 * Lotto 12: extracted from main.css without intentional visual changes.
 */

/* ==========================================================================
   v0.22.76 — WooCommerce START master product template
   Dedicated product hero, purchase layout, product details and commerce UI.
   ========================================================================== */

.ich-commerce-product {
    background: #ffffff;
}

.ich-product-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    display: grid;
    align-items: stretch;
    background: #031426;
    color: #ffffff;
}

.ich-product-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 17, 32, 0.98) 0%, rgba(2, 17, 32, 0.9) 40%, rgba(2, 17, 32, 0.28) 70%, rgba(2, 17, 32, 0.05) 100%),
        linear-gradient(180deg, rgba(2, 17, 32, 0.18), rgba(2, 17, 32, 0.62));
    pointer-events: none;
}

.ich-product-hero__media {
    position: absolute;
    inset: 0;
    margin: 0;
}

.ich-product-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.ich-product-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(42px, 7vw, 82px);
}

.ich-product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: clamp(42px, 6vw, 70px);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.ich-product-breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
}

.ich-product-breadcrumb a:hover,
.ich-product-breadcrumb a:focus-visible {
    color: #ffffff;
}

.ich-product-hero__copy {
    width: min(100%, 670px);
}

.ich-product-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #77A9D1;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ich-product-hero h1 {
    max-width: 13ch;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(3.2rem, 6.5vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.ich-product-hero__lead {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.02rem, 1.7vw, 1.24rem);
    line-height: 1.65;
}

.ich-product-hero__lead p:last-child,
.ich-product-purchase__intro p:last-child {
    margin-bottom: 0;
}

.ich-product-hero__benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(100%, 720px);
    margin-top: clamp(34px, 5vw, 52px);
}

.ich-product-hero__benefits > span {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 0 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
}

.ich-product-hero__benefits > span:first-child {
    padding-left: 0;
    border-left: 0;
}

.ich-product-hero__benefits svg {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #77A9D1;
}

.ich-product-hero__benefits strong {
    font-size: 0.86rem;
    line-height: 1.35;
}

.ich-product-purchase {
    padding: clamp(66px, 9vw, 116px) 0;
    background: #ffffff;
}

.ich-product-purchase__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: clamp(42px, 7vw, 92px);
}

.ich-product-purchase__visual {
    position: sticky;
    top: 112px;
    min-width: 0;
}

.ich-product-purchase__visual a {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #061729;
    box-shadow: 0 28px 70px rgba(13, 27, 42, 0.16);
}

.ich-product-purchase__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 280ms ease;
}

.ich-product-purchase__visual a:hover .ich-product-purchase__image {
    transform: scale(1.012);
}

.ich-product-purchase__summary {
    min-width: 0;
    padding-top: 10px;
}

.ich-product-purchase__summary h2 {
    max-width: 14ch;
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 4.2vw, 4.1rem);
}

.ich-product-price {
    margin-bottom: 22px;
    color: #2F78B7;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 850;
    letter-spacing: -0.045em;
}

.ich-product-price .woocommerce-Price-currencySymbol {
    margin-right: 0.16em;
}

.ich-product-purchase__intro {
    max-width: 650px;
    margin-bottom: 30px;
    color: #394d60;
    font-size: 1.08rem;
    line-height: 1.7;
}

.ich-product-cart-form {
    padding: 24px;
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-radius: 14px;
    background: #F5F9FC;
}

.ich-product-cart-form form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.ich-product-cart-form .quantity {
    margin: 0 !important;
}

.ich-product-cart-form .quantity input.qty {
    min-height: 52px;
    border: 1px solid rgba(13, 27, 42, 0.18);
    border-radius: 8px;
    background: #ffffff;
}

.ich-product-cart-form .single_add_to_cart_button {
    min-height: 52px;
    margin: 0 !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #0D1B2A !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.ich-product-cart-form .single_add_to_cart_button:hover,
.ich-product-cart-form .single_add_to_cart_button:focus-visible {
    background: #2F78B7 !important;
}

.ich-product-meta {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    color: #516170;
    font-size: 0.9rem;
}

.ich-product-meta > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ich-product-meta dt {
    font-weight: 800;
    color: #0D1B2A;
}

.ich-product-meta dd {
    margin: 0;
}

.ich-product-meta a {
    color: #2F78B7;
    font-weight: 750;
}

.ich-product-assurances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid rgba(13, 27, 42, 0.12);
}

.ich-product-assurances article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

.ich-product-assurances article > span {
    color: #2F78B7;
}

.ich-product-assurances svg {
    width: 32px;
    height: 32px;
}

.ich-product-assurances h3 {
    margin-bottom: 6px;
    font-size: 0.95rem;
    letter-spacing: -0.015em;
}

.ich-product-assurances p {
    margin: 0;
    color: #5F7182;
    font-size: 0.82rem;
    line-height: 1.55;
}

.ich-product-details {
    padding: clamp(64px, 8vw, 104px) 0;
    background: #F2F7FB;
}

.ich-product-details__grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
    align-items: start;
    gap: clamp(42px, 7vw, 94px);
}

.ich-product-details h2 {
    max-width: 10ch;
    font-size: clamp(2.5rem, 4.5vw, 4.3rem);
}

.ich-product-description {
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(13, 27, 42, 0.06);
}

.ich-product-description h2,
.ich-product-description h3 {
    max-width: none;
    margin-top: 1.7em;
    font-size: 1.3rem;
}

.ich-product-description h2:first-child,
.ich-product-description h3:first-child {
    margin-top: 0;
}

.ich-product-description ul {
    margin: 0 0 1.35rem;
    padding-left: 1.2rem;
}

.ich-product-description li {
    margin-bottom: 0.5rem;
}

.ich-product-next-step {
    padding: 48px 0;
    background: #ffffff;
}

.ich-product-next-step__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 20px;
    background: #0D1B2A;
    color: #ffffff;
}

.ich-product-next-step h2 {
    max-width: none;
    margin-bottom: 10px;
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.ich-product-next-step p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.ich-product-next-step .button {
    flex: 0 0 auto;
    background: #77A9D1;
    color: #0D1B2A;
}

.ich-product-next-step .button:hover,
.ich-product-next-step .button:focus-visible {
    background: #ffffff;
}

@media (max-width: 980px) {
    .ich-product-hero {
        min-height: 540px;
    }

    .ich-product-hero::after {
        background:
            linear-gradient(90deg, rgba(2, 17, 32, 0.98) 0%, rgba(2, 17, 32, 0.9) 55%, rgba(2, 17, 32, 0.42) 100%),
            linear-gradient(180deg, rgba(2, 17, 32, 0.1), rgba(2, 17, 32, 0.7));
    }

    .ich-product-hero__media img {
        object-position: 68% center;
    }

    .ich-product-hero__copy {
        width: min(100%, 620px);
    }

    .ich-product-hero__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
    }

    .ich-product-hero__benefits > span:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .ich-product-purchase__grid,
.ich-product-details__grid {
        grid-template-columns: 1fr;
    }

    .ich-product-purchase__visual {
        position: static;
        width: min(100%, 720px);
        margin-inline: auto;
    }

    .ich-product-details h2 {
        max-width: 14ch;
    }
}

@media (max-width: 680px) {
    .ich-product-hero {
        min-height: 610px;
    }

    .ich-product-hero::after {
        background:
            linear-gradient(180deg, rgba(2, 17, 32, 0.9) 0%, rgba(2, 17, 32, 0.94) 62%, rgba(2, 17, 32, 0.98) 100%),
            linear-gradient(90deg, rgba(2, 17, 32, 0.8), rgba(2, 17, 32, 0.42));
    }

    .ich-product-hero__media img {
        object-position: 72% center;
        opacity: 0.72;
    }

    .ich-product-hero__inner {
        justify-content: flex-end;
        padding-block: 30px 42px;
    }

    .ich-product-breadcrumb {
        margin-bottom: 54px;
        font-size: 0.75rem;
    }

    .ich-product-hero h1 {
        max-width: 11ch;
        font-size: clamp(2.8rem, 13vw, 4.1rem);
    }

    .ich-product-hero__lead {
        font-size: 0.98rem;
        line-height: 1.58;
    }

    .ich-product-hero__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 30px;
    }

    .ich-product-hero__benefits > span {
        padding: 0 10px;
    }

    .ich-product-hero__benefits svg {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .ich-product-hero__benefits strong {
        font-size: 0.75rem;
    }

    .ich-product-purchase {
        padding: 48px 0 60px;
    }

    .ich-product-purchase__grid {
        gap: 34px;
    }

    .ich-product-purchase__summary h2 {
        font-size: 2.5rem;
    }

    .ich-product-price {
        font-size: 2.2rem;
    }

    .ich-product-cart-form {
        padding: 18px;
    }

    .ich-product-cart-form form.cart,
.ich-product-cart-form .single_add_to_cart_button {
        width: 100%;
    }

    .ich-product-cart-form .single_add_to_cart_button {
        justify-content: center;
    }

    .ich-product-assurances {
        grid-template-columns: 1fr;
    }

    .ich-product-details {
        padding: 52px 0;
    }

    .ich-product-description {
        padding: 24px 20px;
    }

    .ich-product-next-step__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 22px;
    }

    .ich-product-next-step .button {
        width: 100%;
    }
}

/* ==========================================================================
   v0.22.78 — SCALE quote workflow and product presentation
   ========================================================================== */

.ich-commerce-product--scale .ich-product-hero::after {
    background: linear-gradient(90deg, rgba(3, 18, 35, 0.94) 0%, rgba(3, 18, 35, 0.78) 44%, rgba(3, 18, 35, 0.18) 100%);
}

.ich-product-price-note {
    max-width: 48ch;
    margin: -10px 0 24px;
    color: var(--color-text-muted, #5f7182);
    font-size: 0.92rem;
    line-height: 1.55;
}

.ich-product-quote-action {
    display: grid;
    gap: 12px;
    margin: 28px 0;
    padding: 22px;
    border: 1px solid rgba(47, 120, 183, 0.2);
    border-radius: 16px;
    background: #f4f8fb;
}

.ich-product-quote-action .button {
    width: fit-content;
    min-width: min(100%, 280px);
    justify-content: center;
}

.ich-product-quote-action p {
    max-width: 58ch;
    margin: 0;
    color: var(--color-text-muted, #5f7182);
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 560px) {
    .ich-product-quote-action {
        padding: 18px;
    }

    .ich-product-quote-action .button {
        width: 100%;
    }
}

/* ==========================================================================
   v0.23.0-rc2 — generic OperationCH product presentation
   ========================================================================== */

.ich-product-recurring-price {
    max-width: 48ch;
    margin: -12px 0 20px;
    color: #0d1b2a;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.ich-commerce-product--managed .ich-product-hero::after {
    background: linear-gradient(90deg, rgba(3, 18, 35, 0.95) 0%, rgba(3, 18, 35, 0.8) 46%, rgba(3, 18, 35, 0.24) 100%);
}

.ich-commerce-product--managed .ich-product-quote-action {
    border-color: rgba(13, 27, 42, 0.18);
    background: #eef4f8;
}
