html.gr-popup-open,
body.gr-popup-open { overflow: hidden; }

.gr-popup-overlay {
    position: fixed; inset: 0; z-index: 999990; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(26, 25, 31, .62); opacity: 0; visibility: hidden;
    pointer-events: none; transition: opacity .18s ease-in, visibility 0s linear .18s;
}
.gr-popup-overlay.is-active {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .18s ease-out, visibility 0s linear 0s;
}
.gr-popup {
    position: relative; display: grid; grid-template-columns: minmax(360px, 48%) minmax(420px, 52%);
    width: min(980px, 100%); max-height: calc(100vh - 48px); overflow: hidden; border-radius: 12px;
    background: #fff; box-shadow: 0 26px 80px rgba(0, 0, 0, .3); color: #2f2d38;
    opacity: 0; transform: translateY(18px) scale(.965); will-change: transform, opacity;
    transition: transform .16s ease-in, opacity .13s ease-in;
}
.gr-popup-overlay.is-active .gr-popup {
    opacity: 1; transform: translateY(0) scale(1);
    transition: transform .3s cubic-bezier(.16, 1.16, .3, 1), opacity .18s ease-out;
}
.gr-popup__close {
    position: absolute; top: 18px; right: 18px; z-index: 3; width: 42px; height: 42px; padding: 0;
    border: 0; border-radius: 8px; background: transparent; color: #2f2d38; font: 300 34px/40px Arial, sans-serif; cursor: pointer;
}
.gr-popup__close:hover, .gr-popup__close:focus-visible { background: #f3f3f3; outline: none; }
.gr-popup__media {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px; min-height: 530px; background: #fff;
}
.gr-popup__image {
    display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; background: #f3f3f3;
    opacity: 0; transform: translateY(8px) scale(.96);
    transition: transform .15s ease-in, opacity .12s ease-in;
}
.gr-popup-overlay.is-active .gr-popup__image {
    opacity: 1; transform: translateY(0) scale(1);
    transition: transform .24s cubic-bezier(.16, 1, .3, 1), opacity .18s ease-out;
}
.gr-popup-overlay.is-active .gr-popup__image:nth-child(1) { transition-delay: .04s; }
.gr-popup-overlay.is-active .gr-popup__image:nth-child(2) { transition-delay: .08s; }
.gr-popup-overlay.is-active .gr-popup__image:nth-child(3) { transition-delay: .12s; }
.gr-popup-overlay.is-active .gr-popup__image:nth-child(4) { transition-delay: .16s; }
.gr-popup__content {
    display: flex; flex-direction: column; justify-content: center; padding: 56px 64px 48px 38px;
    opacity: 0; transform: translateY(10px);
    transition: transform .14s ease-in, opacity .11s ease-in;
}
.gr-popup-overlay.is-active .gr-popup__content {
    opacity: 1; transform: translateY(0);
    transition: transform .24s cubic-bezier(.16, 1, .3, 1) .07s, opacity .18s ease-out .07s;
}
.gr-popup__eyebrow { margin-bottom: 22px; color: #dd2a1b; font: 700 18px/1.2 "PFDinMedium", Arial, sans-serif; }
.gr-popup__title { margin: 0; color: #2f2d38; font: 700 clamp(34px, 3vw, 48px)/1.16 "PFDinMedium", Arial, sans-serif; }
.gr-popup__text { margin: 24px 0 0; color: #4c4955; font: 400 20px/1.4 "PFDinRegular", Arial, sans-serif; }
.gr-popup__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 38px; }
.gr-popup__primary {
    display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 14px 34px;
    border-radius: 4px; background: #dd2a1b; color: #fff !important; font: 700 18px/1.2 "PFDinMedium", Arial, sans-serif;
    text-align: center; text-decoration: none !important; transition: background .2s ease, transform .2s ease;
}
.gr-popup__primary:hover, .gr-popup__primary:focus-visible { background: #c52216; color: #fff !important; outline: none; transform: translateY(-1px); }
.gr-popup__secondary {
    padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #dd2a1b;
    font: 400 17px/1.3 "PFDinRegular", Arial, sans-serif; cursor: pointer;
}
.gr-popup__secondary:hover, .gr-popup__secondary:focus-visible { color: #a91f15; outline: none; }

/* One large product image with the same Granulos promo rhythm. */
.gr-popup-overlay--promo_image .gr-popup {
    grid-template-columns: minmax(380px, 52%) minmax(380px, 48%);
    width: min(940px, 100%);
}
.gr-popup-overlay--promo_image .gr-popup__media {
    display: block; min-height: 560px;
}
.gr-popup-overlay--promo_image .gr-popup__image { width: 100%; height: 100%; min-height: 560px; }

/* Compact copy-first popup. Images are intentionally ignored for this type. */
.gr-popup-overlay--text .gr-popup,
.gr-popup-overlay--no-media .gr-popup {
    display: block; width: min(640px, 100%);
}
.gr-popup-overlay--text .gr-popup__content,
.gr-popup-overlay--no-media .gr-popup__content {
    min-height: 0; padding: 64px 72px 58px;
}
.gr-popup-overlay--text .gr-popup__title,
.gr-popup-overlay--no-media .gr-popup__title { font-size: clamp(34px, 3.4vw, 46px); }
.gr-popup-overlay--text .gr-popup__actions,
.gr-popup-overlay--no-media .gr-popup__actions { margin-top: 32px; }

@media (max-width: 820px) {
    .gr-popup-overlay { align-items: flex-end; padding: 0; }
    .gr-popup { display: flex; width: 100%; max-height: calc(100vh - 56px); flex-direction: column; overflow-y: auto; border-radius: 22px 22px 0 0; transform: translateY(40px) scale(1); }
    .gr-popup::before { content: ""; display: block; width: 46px; height: 5px; flex: 0 0 auto; margin: 13px auto 0; border-radius: 99px; background: #c8c8cb; }
    .gr-popup__close { top: 18px; right: 14px; }
    .gr-popup__media { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr; gap: 2px; min-height: 0; height: clamp(145px, 25vh, 230px); margin: 56px 18px 0; border-radius: 10px; overflow: hidden; }
    .gr-popup__content { display: block; padding: 28px 22px 28px; }
    .gr-popup__eyebrow { margin-bottom: 18px; font-size: 17px; }
    .gr-popup__title { font-size: clamp(30px, 8.3vw, 42px); line-height: 1.13; }
    .gr-popup__text { margin-top: 18px; font-size: 19px; }
    .gr-popup__actions { align-items: stretch; gap: 20px; margin-top: 28px; text-align: center; }
    .gr-popup__primary { width: 100%; min-height: 58px; padding-inline: 18px; }
    .gr-popup__secondary { align-self: center; }
    .gr-popup-overlay--promo_image .gr-popup__media {
        display: block; height: clamp(190px, 32vh, 300px); min-height: 0;
    }
    .gr-popup-overlay--promo_image .gr-popup__image { height: 100%; min-height: 0; }
    .gr-popup-overlay--text .gr-popup__content,
    .gr-popup-overlay--no-media .gr-popup__content { padding: 42px 22px 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .gr-popup-overlay, .gr-popup, .gr-popup__image, .gr-popup__content, .gr-popup__primary {
        transition: none !important;
    }
    .gr-popup, .gr-popup__image, .gr-popup__content { transform: none !important; }
}
