/* Product page: hero summary, buy card, price insight, trust strip, details, mobile sticky CTA. Mobile-first. */

.product-hero { padding-top: 12px; padding-bottom: 24px; }

/* Gallery */
.product-gallery { padding: 12px; border-radius: 18px; background: #f5f6f3; }
.product-gallery .e-slide-singleProd { width: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: multiply; }
.product-gallery .c-slickThumbs { margin-top: 6px; }

/* Summary */
.product-summary { display: flex; flex-direction: column; gap: 14px; }
.product-summary__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .8rem; }
.product-shop-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 4px 10px 4px 4px;
    border: 1px solid #e5e8e4;
    border-radius: 999px;
    background: #fff;
    color: #26352e !important;
    font-weight: 600;
}
.product-shop-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; background: #fff; }
.product-meta-link { color: #5f6b65 !important; text-decoration: underline; text-decoration-color: #cfd5d1; text-underline-offset: 3px; }

.product-title { margin: 0; color: #1f2a24; font-size: 1.3rem; font-weight: 700; line-height: 1.3; }

.product-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.product-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f3f0;
    color: #3b4842;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Stock */
.product-stock { font-weight: 700; }
.product-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.product-stock--in { color: #1f8a4c; }
.product-chip.product-stock--in { background: #e7f6ed; }
.product-stock--backorder { color: #b7791f; }
.product-chip.product-stock--backorder { background: #fff4df; }
.product-stock--out { color: #c53030; }
.product-chip.product-stock--out { background: #fdeaea; }
.product-stock--unknown,
.product-stock--other { color: #6b7280; }

/* Buy card */
.product-buy-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e8e4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(32, 48, 40, .07);
}
.product-price-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.product-price { color: #1f2a24; font-size: 1.9rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.product-price-old { color: #8a8f8c; font-size: 1rem; }
.product-discount-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e53e3e;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
}
.product-save { margin-top: -6px; color: #1f8a4c; font-size: .88rem; font-weight: 700; }

.product-insight {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f1f5f2;
    color: #26352e;
    font-size: .82rem;
    line-height: 1.45;
}
.product-insight strong { display: block; font-weight: 700; }
.product-insight span:not(.product-insight__icon) { color: #5f6b65; }
.product-insight__icon { flex: 0 0 auto; margin-top: 2px; color: #4f7564; }
.product-insight--lowest { background: #e7f6ed; }
.product-insight--lowest .product-insight__icon { color: #1f8a4c; }
.product-insight--above_lowest { background: #fff4df; }
.product-insight--above_lowest .product-insight__icon { color: #b7791f; }

.product-buy-btn { padding: .9rem 1rem; border-radius: 12px; font-size: 1rem; font-weight: 700; }
.product-alarm-btn { padding: .7rem 1rem; border-radius: 12px; font-weight: 600; }

/* Trust */
.product-trust { display: grid; gap: 10px; margin: 0; padding: 0 4px; }
.product-trust li { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.4; }
.product-trust li > span { flex: 0 0 18px; margin-top: 2px; color: #4f7564; text-align: center; }
.product-trust strong { display: block; color: #26352e; }
.product-trust div span { color: #6b7570; }

/* Details */
.product-details { padding-top: 8px; padding-bottom: 32px; }
.product-details__grid { display: grid; gap: 16px; }
.product-details__text,
.product-details__facts,
.product-details__nutrition { padding: 18px; border: 1px solid #e5e8e4; border-radius: 18px; background: #fff; }
.product-details h2,
.product-section-title { margin: 0 0 12px; color: #1f2a24; font-size: 1.1rem; font-weight: 700; }
.product-details__text p,
.product-details__description { color: #4a5550; font-size: .9rem; line-height: 1.65; }
.product-details__description img { max-width: 100%; height: auto; }
.product-details__nutrition { margin-top: 16px; }
.product-facts { margin: 0; }
.product-facts > div { display: flex; gap: 12px; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eef0ed; font-size: .85rem; }
.product-facts > div:last-child { border-bottom: 0; }
.product-facts dt { color: #6b7570; font-weight: 500; }
.product-facts dd { margin: 0; color: #1f2a24; font-weight: 600; text-align: right; }

/* Mobile sticky CTA */
.product-sticky-cta { display: none; }

@media (max-width: 767.98px) {
    .product-sticky-cta {
        position: fixed;
        right: 10px;
        bottom: calc(var(--mobile-app-nav-height, 0px) + env(safe-area-inset-bottom) + 6px);
        left: 10px;
        z-index: 1035;
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 8px 8px 8px 10px;
        border: 1px solid #e5e8e4;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(32, 48, 40, .16);
        transform: translateY(calc(100% + 120px));
        transition: transform .2s ease;
    }
    .product-sticky-cta.is-visible { transform: none; }
    .product-sticky-cta img { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
    .product-sticky-cta__price { flex: 1 1 auto; min-width: 0; line-height: 1.2; }
    .product-sticky-cta__price strong { display: block; color: #26352e; font-size: 1rem; }
    .product-sticky-cta__price span { color: #8a8f8c; font-size: .75rem; white-space: nowrap; }
    .product-sticky-cta__price b { color: #e53e3e; }
    .product-sticky-cta .btn {
        flex: 0 1 auto;
        overflow: hidden;
        max-width: 55%;
        padding: .65rem .9rem;
        border-radius: 10px;
        font-size: .85rem;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.has-product-sticky-cta #myCookie { bottom: calc(var(--mobile-app-nav-height, 0px) + env(safe-area-inset-bottom) + 78px) !important; }
}

@media (min-width: 768px) {
    .product-details__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}

@media (min-width: 992px) {
    .product-hero { padding-top: 32px; padding-bottom: 40px; }
    .product-gallery { position: sticky; top: 90px; padding: 24px; }
    .product-gallery .e-slide-singleProd { max-height: 480px; }
    .product-summary { padding-left: 16px; }
    .product-title { font-size: 1.75rem; }
    .product-price { font-size: 2.3rem; }
    .product-buy-card { padding: 20px; }
}
