/* =========================================================
   IBA PRODUCT BLOCK
   Used by [product] in Standard V8
   ========================================================= */

.iba-product {
    --product-bg-opacity: 0.12;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    margin: 36px 0;
    background: #f7f5ef;
    isolation: isolate;
}

.iba-product-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.iba-product-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,calc(1 - var(--product-bg-opacity)));
}

.iba-product-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px;
}

.iba-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 52px;
    align-items: center;
}

.iba-product-content {
    min-width: 0;
}

.iba-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 0 0 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.iba-product-title {
    margin: 0 0 20px;
    line-height: 1.06;
}

.iba-product-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.iba-product-main-title {
    display: block;
    font-size: clamp(2.05rem, 4vw, 3.65rem);
    line-height: 1.04;
}

.iba-product-body {
    margin-top: 14px;
}

.iba-product-text {
    margin: 0 0 15px;
    font-size: 1.06rem;
    line-height: 1.72;
}

.iba-product-heading {
    margin: 24px 0 10px;
    font-size: 1.45rem;
    line-height: 1.25;
}

.iba-product-subheading {
    margin: 20px 0 8px;
    font-size: 1.12rem;
    line-height: 1.3;
}

.iba-product-list {
    margin: 14px 0 20px;
    padding-left: 1.25rem;
}

.iba-product-list li {
    margin: 8px 0;
    line-height: 1.55;
}

.iba-product-price-area {
    margin-top: 24px;
}

.iba-product-price-label {
    margin-bottom: 5px;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.iba-product-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.iba-product-old-price {
    font-size: 1.12rem;
    opacity: .58;
    text-decoration: line-through;
}

.iba-product-current-price {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
}

.iba-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.iba-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.iba-product-button:hover {
    transform: translateY(-1px);
}

.iba-product-button-primary {
    background: #173f35;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.iba-product-button-primary:hover {
    color: #fff;
}

.iba-product-button-secondary {
    background: transparent;
    color: #173f35;
    border: 1px solid currentColor;
}

.iba-product-note {
    margin-top: 16px;
    font-size: .9rem;
    line-height: 1.5;
    opacity: .72;
}

.iba-product-visual {
    min-width: 0;
}

.iba-product-image {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
    background: #fff;
}

.iba-product-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 900px) {
    .iba-product-inner {
        padding: 38px 30px;
    }

    .iba-product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .iba-product-visual {
        max-width: 680px;
    }
}

@media (max-width: 600px) {
    .iba-product {
        margin: 26px 0;
        border-radius: 16px;
    }

    .iba-product-inner {
        padding: 30px 20px;
    }

    .iba-product-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .iba-product-button {
        width: 100%;
    }
}
