.site-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--epg-color-primary-dark);
}

.primary-menu,
.footer-menu {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
}

.primary-menu a,
.footer-menu a {
    color: var(--epg-color-text-soft);
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.primary-menu a:hover,
.footer-menu a:hover {
    color: var(--epg-color-primary);
}

.epg-section-heading {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
}

.epg-section-heading h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.epg-section-heading p {
    font-size: 1.02rem;
    max-width: 620px;
    margin-inline: auto;
}

/* CARDS */

.epg-product-card,
.epg-stack-card,
.epg-trust-card,
.epg-step-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98));
    border: 1px solid rgba(190, 205, 224, 0.82);
    border-radius: var(--epg-radius-lg);
    box-shadow:
        0 18px 42px rgba(18, 58, 120, 0.10),
        0 4px 14px rgba(18, 58, 120, 0.05),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.epg-product-card,
.epg-stack-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.epg-product-card:hover,
.epg-stack-card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 93, 168, 0.26);
    box-shadow:
        0 26px 64px rgba(18, 58, 120, 0.16),
        0 10px 28px rgba(18, 58, 120, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.95);
}

.epg-product-card__image,
.epg-stack-card__image {
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at top right, rgba(47, 93, 168, 0.18), transparent 38%),
        linear-gradient(145deg, #eef4fb 0%, #f8fbff 48%, #dde8f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border-bottom: 1px solid rgba(190, 205, 224, 0.72);
    position: relative;
    overflow: hidden;
}

.epg-product-card__image::after,
.epg-stack-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(47, 93, 168, 0.2), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0));
    opacity: 0.75;
    pointer-events: none;
}

.epg-product-card__content,
.epg-stack-card__content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 170px;
}

.epg-product-card__title,
.epg-stack-card__title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.epg-product-card__image img,
.epg-stack-card__image img {
    max-height: 160px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 16px 22px rgba(18, 58, 120, 0.13));
}

.epg-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--epg-color-primary);
    margin-bottom: 16px;
}

.epg-muted-label {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(18, 58, 120, 0.08);
    color: var(--epg-color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* TRUST STRIP */

.epg-trust-strip .epg-grid {
    align-items: stretch;
}

.epg-trust-card {
    position: relative;
    overflow: hidden;
    padding: 24px 20px 22px;
    text-align: left;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.epg-trust-card::before {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -54px;
    width: 128px;
    height: 128px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(47, 93, 168, 0.13), transparent 68%);
    pointer-events: none;
}

.epg-trust-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 93, 168, 0.24);
    box-shadow:
        0 22px 52px rgba(18, 58, 120, 0.13),
        0 8px 22px rgba(18, 58, 120, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.95);
}

.epg-trust-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background:
        linear-gradient(135deg, rgba(18, 58, 120, 0.95), rgba(47, 93, 168, 0.88));
    color: #fff;
    box-shadow:
        0 12px 24px rgba(18, 58, 120, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

.epg-trust-card__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epg-trust-card h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.epg-trust-card p {
    font-size: 0.92rem;
    margin-bottom: 0;
    color: var(--epg-color-text-soft);
}

/* HOW IT WORKS / STEP CARDS */

.epg-step-card {
    position: relative;
    overflow: hidden;
    padding: 26px 22px 24px;
}

.epg-step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(18, 58, 120, 0.95), rgba(47, 93, 168, 0.45));
}

.epg-step-card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.epg-step-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.epg-step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--epg-gradient-primary);
    color: #fff;
    font-weight: 800;
    margin-bottom: 14px;
    box-shadow: 0 10px 20px rgba(18, 58, 120, 0.16);
}

/* HERO */

.epg-hero-section .epg-glow-panel {
    position: relative;
    overflow: visible;
    border-radius: 28px;
    border: 1px solid rgba(190, 205, 224, 0.9);
    box-shadow:
        0 34px 84px rgba(18, 58, 120, 0.14),
        0 12px 32px rgba(18, 58, 120, 0.07),
        inset 0 1px 0 rgba(255,255,255,0.78);
    background:
        radial-gradient(circle at 80% 20%, rgba(47, 93, 168, 0.14), transparent 30%),
        rgba(255, 255, 255, 0.88);
}

.epg-hero-slider {
    position: relative;
    height: auto;
    overflow: hidden;
    transition: height 0.45s ease;
}

.epg-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(24px);
    transition:
        opacity 0.52s ease,
        transform 0.52s ease;
    pointer-events: none;
    z-index: 1;
}

.epg-hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 3;
}

.epg-hero-slide.is-leaving {
    opacity: 0;
    transform: translateX(-24px);
    pointer-events: none;
    z-index: 2;
}

.epg-hero-slide.is-entering-from-right {
    opacity: 0;
    transform: translateX(24px);
    z-index: 3;
}

.epg-hero-slide.is-entering-from-left {
    opacity: 0;
    transform: translateX(-24px);
    z-index: 3;
}

.epg-hero-slide .epg-grid {
    min-height: 0;
}

.epg-hero-section h1 {
    margin-bottom: 18px;
}

.epg-hero-section .epg-price {
    font-size: 1.15rem;
    margin-bottom: 0;
}

.epg-hero-section .epg-product-card {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
}

.epg-hero-section .epg-product-card:hover {
    transform: none;
    box-shadow: none;
}

.epg-hero-section .epg-product-card__image {
    min-height: 420px;
    border-radius: 24px;
    border: 1px solid rgba(190, 205, 224, 0.9);
    background:
        radial-gradient(circle at top, rgba(47, 93, 168, 0.18), transparent 35%),
        linear-gradient(145deg, #edf4fb 0%, #f8fbff 46%, #dce8f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.epg-hero-section .epg-product-card__image img {
    max-height: 280px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 28px rgba(18, 58, 120, 0.18));
}

.epg-hero-section .epg-product-card__content,
.epg-hero-section .epg-stack-card__content {
    min-height: 0;
}

.epg-hero-section .epg-muted-label {
    margin-bottom: 6px;
}

.epg-hero-slider__controls {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.epg-hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    opacity: 0.8;
}

.epg-hero-slider__dot + .epg-hero-slider__dot {
    margin-left: 10px;
}

.epg-hero-slider__dot.is-active {
    background: var(--epg-color-primary);
    opacity: 1;
}

.epg-hero-slider__arrow {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(190, 205, 224, 0.95);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,255,0.98));
    color: var(--epg-color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow:
        0 12px 28px rgba(18, 58, 120, 0.16),
        0 4px 10px rgba(18, 58, 120, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.epg-hero-slider__arrow--prev {
    left: -20px;
}

.epg-hero-slider__arrow--next {
    right: -20px;
}

.epg-hero-slider__arrow:hover {
    transform: translateY(-50%) scale(1.06);
    border-color: rgba(47, 93, 168, 0.38);
    box-shadow:
        0 16px 34px rgba(18, 58, 120, 0.2),
        0 6px 14px rgba(18, 58, 120, 0.08);
}

.epg-hero-slider__arrow:focus-visible {
    outline: 3px solid rgba(47, 93, 168, 0.26);
    outline-offset: 3px;
}

.epg-product-card,
.epg-stack-card {
    height: 100%;
}

.epg-product-card__content .epg-button,
.epg-stack-card__content .epg-button {
    margin-top: auto;
    align-self: flex-start;
}

.epg-stack-card__content p {
    margin-bottom: 16px;
}

.epg-grid.epg-grid-3:has(.epg-stack-card:only-child) {
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
}

/* PRODUCT BADGE */

.epg-product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--epg-color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(18, 58, 120, 0.16);
}

/* optional styles */

.epg-product-badge--secondary {
    background: #111827;
}

.epg-product-badge--accent {
    background: #dc2626;
}

/* HEADER CART / MINI CART */

.epg-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.epg-header-mini-cart {
    position: relative;
}

.epg-header-mini-cart summary {
    list-style: none;
}

.epg-header-mini-cart summary::-webkit-details-marker {
    display: none;
}

.epg-header-cart-button {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(190, 205, 224, 0.95);
    color: var(--epg-color-primary-dark);
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(18, 58, 120, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.epg-header-cart-button:hover,
.epg-header-mini-cart[open] .epg-header-cart-button {
    color: var(--epg-color-primary);
    border-color: rgba(47, 93, 168, 0.35);
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(18, 58, 120, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.epg-header-cart-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.epg-header-cart-button__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epg-header-cart-button__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--epg-color-primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(18, 58, 120, 0.18);
}

.epg-header-mini-cart__dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(360px, calc(100vw - 28px));
    z-index: 100;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,251,255,0.99));
    border: 1px solid rgba(190, 205, 224, 0.95);
    border-radius: 22px;
    box-shadow:
        0 24px 60px rgba(18, 58, 120, 0.18),
        0 8px 22px rgba(18, 58, 120, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    padding: 16px;
}

.epg-header-mini-cart__dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid rgba(190, 205, 224, 0.95);
    border-top: 1px solid rgba(190, 205, 224, 0.95);
    transform: rotate(45deg);
}

.epg-header-mini-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(217, 225, 234, 0.85);
    color: var(--epg-color-primary-dark);
}

.epg-header-mini-cart__header strong {
    font-size: 0.98rem;
}

.epg-header-mini-cart__header span {
    color: var(--epg-color-text-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.epg-header-mini-cart__body {
    color: var(--epg-color-text);
}

.epg-header-mini-cart__body .woocommerce-mini-cart {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

/* WooCommerce mini cart item markup:
   remove button + product link containing image/title + quantity */
.epg-header-mini-cart__body .woocommerce-mini-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 12px;
    align-items: start;
    padding: 0 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(217, 225, 234, 0.75);
}

.epg-header-mini-cart__body .woocommerce-mini-cart-item a:not(.remove_from_cart_button) {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--epg-color-primary-dark);
    font-weight: 800;
    text-decoration: none;
    line-height: 1.35;
    text-align: left;
}

.epg-header-mini-cart__body .woocommerce-mini-cart-item img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(47, 93, 168, 0.12), transparent 38%),
        linear-gradient(145deg, #eef4fb 0%, #f8fbff 48%, #dde8f4 100%);
    padding: 6px;
    margin: 0;
}

.epg-header-mini-cart__body .woocommerce-mini-cart-item a.remove_from_cart_button {
    grid-column: 2;
    grid-row: 1;
    position: static;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.06);
    color: var(--epg-color-text-soft) !important;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
}

.epg-header-mini-cart__body .woocommerce-mini-cart-item a.remove_from_cart_button:hover {
    background: rgba(47, 93, 168, 0.12);
    color: var(--epg-color-primary) !important;
}

.epg-header-mini-cart__body .woocommerce-mini-cart-item .quantity {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    margin: -2px 36px 0 70px;
    color: var(--epg-color-text-soft);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}

.epg-header-mini-cart__body .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 14px 0 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(217, 225, 234, 0.85);
    color: var(--epg-color-primary-dark);
    font-weight: 800;
    font-size: 0.98rem;
}

.epg-header-mini-cart__body .woocommerce-mini-cart__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
}

.epg-header-mini-cart__body .woocommerce-mini-cart__buttons .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.epg-header-mini-cart__body .woocommerce-mini-cart__empty-message {
    margin: 0;
    padding: 14px;
    text-align: center;
    color: var(--epg-color-text-soft);
    background: rgba(47, 93, 168, 0.06);
    border-radius: 16px;
}

/* FEATURED PRODUCTS / HOMEPAGE CATALOG */

.epg-featured-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.epg-featured-product-card__media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.epg-featured-products-grid .epg-product-card__title a {
    color: var(--epg-color-primary-dark);
    text-decoration: none;
}

.epg-featured-products-grid .epg-product-card__title a:hover {
    color: var(--epg-color-primary);
}

.epg-product-card__image img,
.epg-stack-card__image img,
.epg-featured-products-grid .epg-product-card__image img,
.epg-hero-section .epg-product-card__image img {
    max-width: 88%;
    height: auto;
}

/* MOBILE MENU DRAWER */

.epg-mobile-menu-button {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(190, 205, 224, 0.95);
    color: var(--epg-color-primary-dark);
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(18, 58, 120, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.epg-mobile-menu-button:hover,
.epg-mobile-menu-is-open .epg-mobile-menu-button {
    color: var(--epg-color-primary);
    border-color: rgba(47, 93, 168, 0.35);
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(18, 58, 120, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.epg-mobile-menu-button__icon,
.epg-mobile-menu-button__icon svg {
    width: 22px;
    height: 22px;
}

.epg-mobile-menu-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.epg-mobile-menu-button__icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.epg-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(8, 19, 36, 0.38);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.epg-mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: min(86vw, 360px);
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,250,255,0.99));
    border-left: 1px solid rgba(190, 205, 224, 0.95);
    box-shadow:
        -24px 0 60px rgba(18, 58, 120, 0.18),
        inset 1px 0 0 rgba(255,255,255,0.72);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

body.admin-bar .epg-mobile-menu-overlay,
body.admin-bar .epg-mobile-menu-drawer {
    top: 32px;
}

.epg-mobile-menu-is-open {
    overflow: hidden;
}

.epg-mobile-menu-is-open .epg-mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.epg-mobile-menu-is-open .epg-mobile-menu-drawer {
    transform: translateX(0);
    visibility: visible;
}

.epg-mobile-menu-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(217, 225, 234, 0.9);
}

.epg-mobile-menu-drawer__brand {
    display: grid;
    gap: 3px;
    color: var(--epg-color-primary-dark);
}

.epg-mobile-menu-drawer__brand strong {
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.epg-mobile-menu-drawer__eyebrow {
    color: var(--epg-color-primary);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.epg-mobile-menu-drawer__close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(190, 205, 224, 0.95);
    background: #ffffff;
    color: var(--epg-color-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(18, 58, 120, 0.08);
}

.epg-mobile-menu-drawer__close span {
    font-size: 1.5rem;
    line-height: 1;
    transform: translateY(-1px);
}

.epg-mobile-menu-drawer__nav {
    padding: 6px 0 16px;
}

.epg-mobile-drawer-menu {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
}

.epg-mobile-drawer-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(217, 225, 234, 0.78);
}

.epg-mobile-drawer-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 4px;
    color: var(--epg-color-primary-dark);
    font-size: 1rem;
    font-weight: 850;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.epg-mobile-drawer-menu a::after {
    content: "›";
    color: var(--epg-color-text-soft);
    font-size: 1.2rem;
    line-height: 1;
}

.epg-mobile-drawer-menu a:hover,
.epg-mobile-drawer-menu a:focus {
    color: var(--epg-color-primary);
}

.epg-mobile-menu-drawer__actions {
    margin-top: auto;
    padding-top: 18px;
    display: grid;
    gap: 10px;
}

.epg-mobile-menu-drawer__shop,
.epg-mobile-menu-drawer__cart {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
    text-decoration: none;
}

.epg-mobile-menu-drawer__cart {
    gap: 8px;
    color: var(--epg-color-primary-dark);
    background: #ffffff;
    border: 1px solid rgba(190, 205, 224, 0.95);
    box-shadow: 0 10px 22px rgba(18, 58, 120, 0.08);
}

.epg-mobile-menu-drawer__cart span {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--epg-color-primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
}

/* OVERFLOW SAFETY */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.site-main,
.epg-section,
.epg-hero-section,
.epg-hero-section .epg-glow-panel {
    max-width: 100%;
}


/* RESPONSIVE */

@media (max-width: 1100px) and (min-width: 768px) {
    .epg-hero-section {
        padding-top: 26px;
        padding-bottom: 34px;
    }

    .epg-hero-section .epg-glow-panel {
        padding: 32px !important;
        overflow: hidden;
    }

    .epg-hero-section .epg-grid-2 {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 340px) !important;
        gap: 28px !important;
    }

    .epg-hero-section h1 {
        font-size: clamp(2.2rem, 4vw, 3.15rem) !important;
        line-height: 1.02 !important;
        max-width: 520px !important;
    }

    .epg-hero-section p {
        font-size: 0.98rem !important;
        line-height: 1.6 !important;
        max-width: 500px !important;
    }

    .epg-hero-section .epg-product-card__image {
        min-height: 260px !important;
        padding: 14px !important;
    }

    .epg-hero-section .epg-product-card__image img {
        max-height: 190px !important;
        max-width: 84% !important;
    }

    .epg-hero-section .epg-grid-2 > div:nth-child(2) > .epg-card {
        padding: 16px !important;
    }

    .epg-hero-slider__arrow {
        top: 48%;
    }

    .epg-hero-slider__arrow--prev {
        left: 8px;
    }

    .epg-hero-slider__arrow--next {
        right: 8px;
    }
}

@media (max-width: 991px) {
    .epg-hero-slider__arrow {
        top: 42%;
    }

    .epg-hero-slider__arrow--prev {
        left: 8px;
    }

    .epg-hero-slider__arrow--next {
        right: 8px;
    }
}

@media (max-width: 767px) {
    .epg-hero-slider {
        height: auto !important;
        overflow: visible;
    }

    .epg-hero-slide {
        position: relative;
        inset: auto;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: opacity 0.35s ease;
        pointer-events: none;
        z-index: 1;
    }

    .epg-hero-slide.is-active {
        opacity: 1;
        max-height: none;
        overflow: visible;
        pointer-events: auto;
        z-index: 3;
    }

    .epg-hero-slide.is-leaving,
    .epg-hero-slide.is-entering-from-right,
    .epg-hero-slide.is-entering-from-left {
        transform: none;
    }

    .site-header .epg-header-inner {
        grid-template-columns: auto auto !important;
        justify-content: space-between !important;
        justify-items: stretch !important;
        min-height: 64px !important;
        padding: 8px 0 !important;
        gap: 10px !important;
    }

    .site-header .site-navigation {
        display: none !important;
    }

    .site-header .epg-header-actions {
        justify-self: end !important;
        gap: 8px;
    }

    .site-header .custom-logo,
    .site-header img.custom-logo {
        max-height: 46px !important;
        width: auto !important;
    }

    .epg-mobile-menu-button {
        display: inline-flex;
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .epg-header-cart-button {
        width: 40px;
        height: 40px;
    }

    .epg-mobile-menu-button__icon,
    .epg-mobile-menu-button__icon svg,
    .epg-header-cart-button__icon,
    .epg-header-cart-button__icon svg {
        width: 20px;
        height: 20px;
    }

    .epg-header-cart-button__count {
        min-width: 18px;
        height: 18px;
        font-size: 0.66rem;
    }

    .epg-header-mini-cart__dropdown {
        right: -46px;
        width: min(340px, calc(100vw - 24px));
    }

    .epg-header-mini-cart__dropdown::before {
        right: 64px;
    }

    .epg-header-mini-cart__body .woocommerce-mini-cart__buttons {
        grid-template-columns: 1fr;
    }

    .epg-header-mini-cart__body .woocommerce-mini-cart-item a:not(.remove_from_cart_button) {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
    }

    .epg-header-mini-cart__body .woocommerce-mini-cart-item img {
        width: 52px;
        height: 52px;
    }

    .epg-header-mini-cart__body .woocommerce-mini-cart-item .quantity {
        margin-left: 62px;
    }

    .site-header .epg-button--header {
        min-height: 38px;
        padding: 0 14px;
        font-size: 0.8rem;
    }

    .epg-hero-section {
        padding-top: 14px !important;
        padding-bottom: 18px !important;
        overflow-x: hidden;
    }

    .epg-hero-section .epg-glow-panel {
        padding: 16px !important;
        border-radius: 22px !important;
        overflow: hidden;
    }

    .epg-hero-section .epg-hero-slide .epg-grid,
    .epg-hero-section .epg-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .epg-hero-section h1 {
        font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
        line-height: 1 !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        max-width: 100% !important;
    }

    .epg-hero-section p {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .epg-hero-section .epg-price {
        font-size: 0.95rem !important;
        margin-top: 10px !important;
    }

    .epg-hero-section .epg-button {
        min-height: 38px;
        padding: 0 14px;
        font-size: 0.82rem;
    }

    .epg-hero-section .epg-product-card__image {
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        padding: 14px !important;
        border-radius: 18px !important;
        overflow: hidden;
    }

    .epg-hero-section .epg-product-card__image img {
        max-height: 124px !important;
        max-width: 78% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .epg-hero-section .epg-grid-2 > div:nth-child(2) > .epg-card {
        max-width: 260px;
        margin: 0 auto;
        padding: 12px !important;
        border-radius: 20px;
    }

    .epg-hero-section .epg-grid-2 > div:nth-child(2) > .epg-card > div:last-child {
        display: none !important;
    }

    .epg-hero-slider__controls {
        margin-top: 12px !important;
    }

    .epg-hero-slider__arrow {
        top: 52%;
        width: 30px;
        height: 30px;
    }

    .epg-hero-slider__arrow--prev {
        left: 6px;
    }

    .epg-hero-slider__arrow--next {
        right: 6px;
    }

    .epg-section:not(:first-child)::before {
        display: none;
    }

    .epg-featured-products-section {
        padding-top: 18px !important;
        padding-bottom: 34px !important;
        overflow-x: hidden;
    }

    .epg-featured-products-section .epg-section-heading {
        text-align: left;
        margin-bottom: 16px;
    }

    .epg-featured-products-section .epg-section-heading h2 {
        font-size: 1.55rem;
        margin-bottom: 4px;
    }

    .epg-featured-products-section .epg-section-heading p {
        display: none;
    }

    .epg-featured-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .epg-featured-products-grid .epg-product-card {
        border-radius: 16px;
        box-shadow:
            0 12px 28px rgba(18, 58, 120, 0.08),
            0 3px 10px rgba(18, 58, 120, 0.04),
            inset 0 1px 0 rgba(255,255,255,0.9);
    }

    .epg-featured-products-grid .epg-product-card:hover {
        transform: translateY(-2px);
    }

    .epg-featured-products-grid .epg-product-card__image {
        aspect-ratio: 1 / 1;
        min-height: 0;
        padding: 14px;
        overflow: hidden;
    }

    .epg-featured-products-grid .epg-product-card__image img {
        max-height: 100px;
        max-width: 74%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .epg-featured-products-grid .epg-product-card__content {
        min-height: 128px;
        padding: 12px;
    }

    .epg-featured-products-grid .epg-product-card__title {
        font-size: 0.86rem;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .epg-featured-products-grid .epg-price {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }

    .epg-featured-products-grid .epg-button {
        width: 100%;
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.75rem;
        text-align: center;
    }

    .epg-featured-products-grid .epg-product-badge {
        top: 8px;
        left: 8px;
        padding: 4px 7px;
        font-size: 0.58rem;
    }

    .epg-trust-strip {
        padding-top: 28px !important;
    }

    .epg-trust-strip .epg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .epg-trust-card {
        padding: 16px;
        border-radius: 16px;
        text-align: left;
    }

    .epg-trust-card__icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .epg-trust-card__icon svg {
        width: 18px;
        height: 18px;
    }

    .epg-trust-card h3 {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .epg-trust-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

@media (max-width: 782px) {
    body.admin-bar .epg-mobile-menu-overlay,
    body.admin-bar .epg-mobile-menu-drawer {
        top: 46px;
    }
}

@media (max-width: 420px) {
    .site-header .epg-button--header {
        padding: 0 12px;
        font-size: 0.76rem;
    }

    .epg-mobile-menu-button,
    .epg-header-cart-button {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 380px) {
    .epg-featured-products-grid {
        gap: 10px !important;
    }

    .epg-featured-products-grid .epg-product-card__image img {
        max-height: 92px;
        max-width: 72%;
    }

    .epg-featured-products-grid .epg-product-card__content {
        padding: 10px;
    }

    .epg-featured-products-grid .epg-product-card__title {
        font-size: 0.8rem;
    }

    .epg-featured-products-grid .epg-button {
        font-size: 0.7rem;
    }
}

/* MOBILE DRAWER VIEWPORT FIX
   The drawer is now rendered outside the sticky/blurred header so fixed positioning can use the viewport correctly. */
.epg-mobile-menu-overlay,
.epg-mobile-menu-drawer {
    z-index: 99999;
}

.epg-mobile-menu-drawer {
    height: 100dvh;
    max-height: 100dvh;
}

body.admin-bar .epg-mobile-menu-drawer {
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
    body.admin-bar .epg-mobile-menu-overlay,
    body.admin-bar .epg-mobile-menu-drawer {
        top: 46px;
    }

    body.admin-bar .epg-mobile-menu-drawer {
        height: calc(100dvh - 46px);
        max-height: calc(100dvh - 46px);
    }
}

/* FEATURED PRODUCT VIAL IMAGE FIX */

.epg-featured-products-grid .epg-product-card__image {
    overflow: visible;
}

.epg-featured-products-grid .epg-product-card__image::after {
    pointer-events: none;
}

.epg-featured-products-grid .epg-product-card__image img {
    width: auto !important;
    height: auto !important;
    max-width: 82% !important;
    max-height: 82% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

@media (max-width: 767px) {
    .epg-featured-products-grid .epg-product-card__image {
        min-height: 150px !important;
        padding: 16px !important;
    }

    .epg-featured-products-grid .epg-product-card__image img {
        max-width: 86% !important;
        max-height: 120px !important;
    }
}

@media (max-width: 380px) {
    .epg-featured-products-grid .epg-product-card__image {
        min-height: 140px !important;
    }

    .epg-featured-products-grid .epg-product-card__image img {
        max-height: 110px !important;
    }
}

/* =========================================
   MOBILE HERO SLIDER ARROWS FIX
   Uses the theme's actual arrow classes, not Swiper classes.
   Moves arrows down to the product image/vial area on mobile.
   ========================================= */

@media (max-width: 767px) {
    .epg-hero-section .epg-glow-panel {
        position: relative;
        overflow: hidden;
    }

    .epg-hero-slider__arrow {
        top: 74% !important;
        transform: translateY(-50%) !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 999px !important;
        background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,255,0.98)) !important;
        border: 1px solid rgba(190, 205, 224, 0.95) !important;
        color: var(--epg-color-primary-dark) !important;
        box-shadow:
            0 10px 22px rgba(18, 58, 120, 0.14),
            inset 0 1px 0 rgba(255,255,255,0.9) !important;
        z-index: 30 !important;
    }

    .epg-hero-slider__arrow:hover,
    .epg-hero-slider__arrow:focus-visible {
        transform: translateY(-50%) scale(1.04) !important;
    }

    .epg-hero-slider__arrow--prev {
        left: 12px !important;
    }

    .epg-hero-slider__arrow--next {
        right: 12px !important;
    }
}

@media (max-width: 420px) {
    .epg-hero-slider__arrow {
        top: 75% !important;
        width: 32px !important;
        height: 32px !important;
    }

    .epg-hero-slider__arrow--prev {
        left: 10px !important;
    }

    .epg-hero-slider__arrow--next {
        right: 10px !important;
    }
}

/* Mid-size screens / tablet portrait: keep arrows closer to the visual card. */
@media (min-width: 768px) and (max-width: 1024px) {
    .epg-hero-slider__arrow {
        top: 58% !important;
        transform: translateY(-50%) !important;
        z-index: 30 !important;
    }

    .epg-hero-slider__arrow:hover,
    .epg-hero-slider__arrow:focus-visible {
        transform: translateY(-50%) scale(1.04) !important;
    }

    .epg-hero-slider__arrow--prev {
        left: 12px !important;
    }

    .epg-hero-slider__arrow--next {
        right: 12px !important;
    }
}

/* STATIC HERO BANNER MODE */

.epg-hero-section--static {
    padding-top: 34px;
    padding-bottom: 28px;
}

.epg-hero-static-banner {
    position: relative;
    overflow: hidden;
    min-height: clamp(280px, 34vw, 520px);
    border-radius: 30px;
    border: 1px solid rgba(190, 205, 224, 0.9);
    background:
        radial-gradient(circle at top right, rgba(47, 93, 168, 0.16), transparent 38%),
        linear-gradient(145deg, #eef4fb 0%, #f8fbff 48%, #dde8f4 100%);
    box-shadow:
        0 34px 84px rgba(18, 58, 120, 0.14),
        0 12px 32px rgba(18, 58, 120, 0.07),
        inset 0 1px 0 rgba(255,255,255,0.78);
}

.epg-hero-static-banner__picture,
.epg-hero-static-banner__image {
    display: block;
    width: 100%;
    height: 100%;
}

.epg-hero-static-banner__picture {
    position: absolute;
    inset: 0;
}

.epg-hero-static-banner__image {
    object-fit: cover;
    object-position: center center;
}

.epg-hero-static-banner.has-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 24, 48, 0.58), rgba(8, 24, 48, 0.24) 44%, rgba(8, 24, 48, 0.04));
    pointer-events: none;
}

.epg-hero-static-banner__overlay {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding: clamp(26px, 5vw, 62px);
}

.epg-hero-static-banner__content {
    max-width: 620px;
    color: #ffffff;
}

.epg-hero-static-banner__content .epg-muted-label {
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.24);
}

.epg-hero-static-banner__content h1 {
    margin: 16px 0 14px;
    color: #ffffff;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 34px rgba(0,0,0,0.28);
}

.epg-hero-static-banner__content p {
    max-width: 560px;
    margin: 0 0 26px;
    color: rgba(255,255,255,0.9);
    font-size: 1.06rem;
    line-height: 1.7;
    text-shadow: 0 8px 24px rgba(0,0,0,0.24);
}

.epg-hero-static-banner__placeholder {
    min-height: inherit;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 40px 24px;
    text-align: center;
}

.epg-hero-static-banner__placeholder p {
    max-width: 520px;
    margin: 0;
    color: var(--epg-color-text-soft);
}

@media (max-width: 767px) {
    .epg-hero-section--static {
        padding-top: 14px !important;
        padding-bottom: 18px !important;
    }

    .epg-hero-static-banner {
        min-height: 220px;
        border-radius: 22px;
    }

    .epg-hero-static-banner.has-content {
        min-height: 320px;
    }

    .epg-hero-static-banner.has-content::after {
        background:
            linear-gradient(180deg, rgba(8, 24, 48, 0.12), rgba(8, 24, 48, 0.66));
    }

    .epg-hero-static-banner__image {
        object-position: center center;
    }

    .epg-hero-static-banner__overlay {
        align-items: flex-end;
        padding: 20px;
    }

    .epg-hero-static-banner__content h1 {
        margin: 10px 0 8px;
        font-size: clamp(1.85rem, 8vw, 2.45rem);
        line-height: 1;
    }

    .epg-hero-static-banner__content p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 16px;
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .epg-hero-static-banner__content .epg-button {
        min-height: 38px;
        padding: 0 14px;
        font-size: 0.82rem;
    }
}

/* FULL-WIDTH FLUSH STATIC HERO BANNER
   Applies only when Homepage Hero mode is set to Static Image Banner.
   Keeps the old product slider layout unchanged. */

.epg-hero-section--static {
    padding-top: 0 !important;
    padding-bottom: 34px !important;
    margin-top: 0 !important;
}

.epg-hero-section--static .epg-container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.epg-hero-section--static .epg-hero-static-banner {
    width: 100%;
    min-height: clamp(320px, 42vw, 620px);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow:
        0 24px 70px rgba(18, 58, 120, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.72);
}

.epg-hero-section--static .epg-hero-static-banner__image {
    object-fit: cover;
    object-position: center center;
}

.epg-hero-section--static .epg-hero-static-banner__overlay {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .epg-hero-section--static {
        padding-top: 0 !important;
        padding-bottom: 22px !important;
    }

    .epg-hero-section--static .epg-hero-static-banner {
        min-height: 240px;
        border-radius: 0;
    }

    .epg-hero-section--static .epg-hero-static-banner.has-content {
        min-height: 340px;
    }

    .epg-hero-section--static .epg-hero-static-banner__overlay {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* STATIC HERO BANNER NATURAL IMAGE HEIGHT
   Prevents the uploaded static banner from being cropped.
   The banner container now follows the image's real aspect ratio. */

.epg-hero-section--static .epg-hero-static-banner {
    min-height: 0 !important;
    height: auto !important;
}

.epg-hero-section--static .epg-hero-static-banner__picture {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

.epg-hero-section--static .epg-hero-static-banner__image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Keep optional overlay text usable later without forcing image cropping. */
.epg-hero-section--static .epg-hero-static-banner.has-content .epg-hero-static-banner__picture {
    position: relative !important;
}

.epg-hero-section--static .epg-hero-static-banner.has-content .epg-hero-static-banner__overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    min-height: 0 !important;
}

.epg-hero-section--static .epg-hero-static-banner.has-content::after {
    z-index: 1;
}

.epg-hero-section--static .epg-hero-static-banner__placeholder {
    min-height: 320px;
}

@media (max-width: 767px) {
    .epg-hero-section--static .epg-hero-static-banner {
        min-height: 0 !important;
        height: auto !important;
    }

    .epg-hero-section--static .epg-hero-static-banner.has-content {
        min-height: 0 !important;
    }

    .epg-hero-section--static .epg-hero-static-banner__overlay {
        padding: 18px !important;
    }

    .epg-hero-section--static .epg-hero-static-banner__placeholder {
        min-height: 220px;
    }
}

/* ANNOUNCEMENT / PROMO BAR */

.epg-announcement-bar {
    position: relative;
    z-index: 10000;
    width: 100%;
    background:
        linear-gradient(90deg, #0f2f62 0%, #1f57a8 50%, #0f2f62 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 20px rgba(18, 58, 120, 0.12);
}

.epg-announcement-bar__inner {
    position: relative;
    min-height: 38px;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.epg-announcement-bar__content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 7px 0;
    text-align: center;
}

.epg-announcement-bar__text,
.epg-announcement-bar__item {
    font-size: 0.84rem;
    font-weight: 850;
    letter-spacing: 0.025em;
    line-height: 1.35;
}

.epg-announcement-bar__link,
.epg-announcement-bar__item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #123a78;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.epg-announcement-bar__link:hover,
.epg-announcement-bar__item a:hover {
    background: #ffffff;
    color: #0f2f62;
}

.epg-announcement-bar__marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
}

.epg-announcement-bar__track {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    min-width: max-content;
    white-space: nowrap;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-animation: epg-announcement-marquee var(--epg-announcement-speed, 26s) linear infinite;
    animation: epg-announcement-marquee var(--epg-announcement-speed, 26s) linear infinite;
    will-change: -webkit-transform, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Pause only on real mouse/trackpad hover.
   This avoids Safari/iOS touch hover from accidentally freezing the marquee. */
@media (hover: hover) and (pointer: fine) {
    .epg-announcement-bar:hover .epg-announcement-bar__track {
        -webkit-animation-play-state: paused;
        animation-play-state: paused;
    }
}

.epg-announcement-bar__item {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    padding-right: 56px;
    color: #ffffff;
    text-transform: uppercase;
}

.epg-announcement-bar__item::before {
    content: "•";
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1;
}

.epg-announcement-bar__close {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
}

.epg-announcement-bar__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.epg-announcement-bar__close span {
    font-size: 1.15rem;
    line-height: 1;
    transform: translateY(-1px);
}

.epg-announcement-bar.is-hidden {
    display: none;
}

@-webkit-keyframes epg-announcement-marquee {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes epg-announcement-marquee {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 767px) {
    .epg-announcement-bar__inner {
        min-height: 34px;
    }

    .epg-announcement-bar__content {
        width: min(100% - 48px, 100%);
        min-height: 34px;
        gap: 8px;
        padding: 6px 0;
    }

    .epg-announcement-bar__text,
    .epg-announcement-bar__item {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    .epg-announcement-bar__item {
        gap: 9px;
        padding-right: 34px;
    }

    .epg-announcement-bar__link,
    .epg-announcement-bar__item a {
        min-height: 22px;
        padding: 0 8px;
        font-size: 0.66rem;
    }

    .epg-announcement-bar__close {
        right: 8px;
        width: 24px;
        height: 24px;
    }
}


/* PROMO POPUP */

.epg-promo-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.epg-promo-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.epg-promo-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 19, 36, 0.62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.epg-promo-popup__dialog {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: min(96vw, 1120px);
    max-height: min(86vh, 720px);
    border-radius: 24px;
    background: transparent;
    box-shadow:
        0 34px 96px rgba(8, 19, 36, 0.34),
        0 10px 32px rgba(8, 19, 36, 0.16);
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}

.epg-promo-popup.is-visible .epg-promo-popup__dialog {
    transform: translateY(0) scale(1);
}

.epg-promo-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(8, 19, 36, 0.72);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(8, 19, 36, 0.18);
}

.epg-promo-popup__close:hover,
.epg-promo-popup__close:focus-visible {
    background: rgba(8, 19, 36, 0.9);
}

.epg-promo-popup__close span {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
    transform: translateY(-1px);
}

.epg-promo-popup__image-link,
.epg-promo-popup__image {
    display: block;
}

.epg-promo-popup__image {
    display: block;
    width: auto;
    max-width: min(96vw, 1120px);
    height: auto;
    max-height: min(86vh, 720px);
    object-fit: contain;
    background: transparent;
}

.epg-promo-popup-is-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .epg-promo-popup {
        padding: 14px;
        align-items: center;
    }

	.epg-promo-popup__dialog {
		width: auto;
		max-width: 96vw;
		border-radius: 18px;
		max-height: 82vh;
	}

    .epg-promo-popup__image {
        max-height: 82vh;
    }

	.epg-promo-popup__image {
		width: auto;
		max-width: 96vw;
		max-height: 82vh;
	}

    .epg-promo-popup__close span {
        font-size: 1.45rem;
    }
}
