.ebe-store {
    width: 100%;
}

.ebe-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 0.8fr)) minmax(280px, 1.2fr);
    align-items: end;
    gap: 18px;
    margin: 8px 0 52px;
    padding: 22px 24px;
    background: #f7f8fa;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
}

.ebe-filter__quick {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e1e5ea;
}

.ebe-filter__quick a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    color: #3d4755;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #d7dce3;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(16, 24, 40, 0.04);
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ebe-filter__quick a:hover,
.ebe-filter__quick a:focus,
.ebe-filter__quick a:active,
.ebe-filter__quick a:visited {
    text-decoration: none !important;
}

.ebe-filter__quick a:hover {
    transform: translateY(-2px);
}

.ebe-filter__quick-all:hover,
.ebe-filter__quick-all.is-active {
    color: #fff;
    background: var(--ebe-accent);
    border-color: var(--ebe-accent);
    box-shadow: 0 7px 16px color-mix(in srgb, var(--ebe-accent) 28%, transparent);
}

.ebe-filter__quick-new {
    color: #0f6f67 !important;
    background: linear-gradient(135deg, #ecfdf8 0%, #ccfbef 100%) !important;
    border-color: #84e1d0 !important;
}

.ebe-filter__quick-new:hover,
.ebe-filter__quick-new.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, #0f766e 0%, #14a394 100%) !important;
    border-color: #0f766e !important;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
}

.ebe-filter__quick-best {
    overflow: hidden;
    color: #805308 !important;
    background: linear-gradient(135deg, #fffaf0 0%, #fff0bd 100%) !important;
    border-color: #e8bd55 !important;
}

.ebe-filter__quick-best:hover,
.ebe-filter__quick-best.is-active {
    color: #3f2a00 !important;
    background: linear-gradient(135deg, #e0a62f 0%, #f7d778 48%, #d5961f 100%) !important;
    border-color: #c88b16 !important;
    box-shadow: 0 8px 20px rgba(190, 129, 18, 0.3);
}

.ebe-filter__quick-best::after {
    position: absolute;
    top: -70%;
    left: -35%;
    width: 22%;
    height: 240%;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    transform: rotate(18deg);
}

.ebe-filter__quick-best:hover::after {
    animation: ebe-gold-shine 750ms ease-out;
}

@keyframes ebe-gold-shine {
    from {
        left: -35%;
    }

    to {
        left: 125%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ebe-filter__quick a {
        transition: none;
    }

    .ebe-filter__quick-best:hover::after {
        animation: none;
    }
}

.ebe-filter__field label {
    display: block;
    margin: 0 0 7px;
    color: #202938;
    font-size: 14px;
    font-weight: 700;
}

.ebe-filter select,
.ebe-filter input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    color: #202938;
    font: inherit;
    background: #fff;
    border: 1px solid #cbd1da;
    border-radius: 9px;
    outline: none;
}

.ebe-filter select:focus,
.ebe-filter input[type="search"]:focus {
    border-color: var(--ebe-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ebe-accent) 18%, transparent);
}

.ebe-filter__search-row {
    display: flex;
    gap: 8px;
}

.ebe-filter__search-row button {
    min-height: 48px;
    padding: 10px 18px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    background: var(--ebe-accent);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.ebe-filter__search-row button:hover {
    background: var(--ebe-accent-hover);
}

.ebe-filter__reset {
    align-self: center;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ebe-products .edd_downloads_list {
    display: grid !important;
    grid-template-columns: repeat(var(--ebe-columns), minmax(0, 1fr));
    gap: 36px 28px;
    margin: 0 !important;
}

.ebe-products .edd_download {
    float: none !important;
    box-sizing: border-box;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ebe-products .edd_download_inner {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    padding: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: var(--ebe-radius);
    box-shadow: 0 5px 22px rgba(20, 30, 50, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ebe-product-badge {
    position: absolute;
    z-index: 2;
    top: 30px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #0f766e;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.24);
}

.ebe-products .edd_download_inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(20, 30, 50, 0.13);
}

.ebe-products .edd_download_image {
    aspect-ratio: var(--ebe-ratio-width) / var(--ebe-ratio-height);
    margin: 0 0 20px !important;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: max(8px, calc(var(--ebe-radius) - 5px));
}

.ebe-products .edd_download_image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ebe-products .edd_download_image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center;
}

.ebe-products .edd_download_title {
    margin: 0 0 12px !important;
    color: #182230;
    font-size: clamp(18px, 1.5vw, 21px) !important;
    font-weight: 750;
    line-height: 1.32;
}

.ebe-products .edd_download_title a {
    color: inherit;
    text-decoration: none;
}

.ebe-products .edd_download_title a:hover {
    color: var(--ebe-accent);
}

.ebe-products .edd_download_excerpt {
    margin: 0 0 16px;
    color: #535d6d;
    font-size: 15px;
    line-height: 1.65;
}

.ebe-products .edd_download_excerpt p {
    margin: 0;
}

.ebe-products .edd_download_price,
.ebe-products .edd_download_full_content {
    display: none !important;
}

.ebe-products .edd_download_buy_button {
    margin-top: auto;
    padding-top: 10px;
}

.ebe-products .edd_download_buy_button form,
.ebe-products .edd_download_buy_button .edd_download_purchase_form {
    margin: 0;
}

.ebe-products .edd_purchase_submit_wrapper {
    position: static !important;
}

.ebe-products .edd-cart-ajax-alert {
    display: block;
    width: 100%;
}

.ebe-products .edd-cart-added-alert {
    position: static !important;
    box-sizing: border-box;
    width: 100%;
    margin-top: 10px;
    padding: 9px 12px;
    color: #166534;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
}

.ebe-products .edd-cart-added-alert:not([style*="display: none"]) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ebe-products .edd-cart-added-alert .edd-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ebe-products .edd-submit.button,
.ebe-products .edd-add-to-cart,
.ebe-products .edd_go_to_checkout {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 18px !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    background: var(--ebe-accent) !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition: background 160ms ease, transform 160ms ease;
}

.ebe-products .edd-submit.button:hover,
.ebe-products .edd-add-to-cart:hover,
.ebe-products .edd_go_to_checkout:hover {
    color: #fff !important;
    background: var(--ebe-accent-hover) !important;
    transform: translateY(-1px);
}

.ebe-products .edd_pagination {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.ebe-paper-cta {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    margin-top: 58px;
    padding: 28px 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff8ec 0%, #f7efe0 52%, #eef7f5 100%);
    border: 1px solid #eadcc5;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(74, 57, 32, 0.08);
}

.ebe-paper-cta::before {
    position: absolute;
    top: -80px;
    right: 16%;
    width: 180px;
    height: 180px;
    content: "";
    pointer-events: none;
    background: rgba(217, 166, 79, 0.13);
    border-radius: 50%;
}

.ebe-paper-cta__icon {
    position: relative;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    font-size: 31px;
    line-height: 1;
    background: #fff;
    border: 1px solid rgba(183, 134, 49, 0.2);
    border-radius: 16px;
    box-shadow: 0 7px 18px rgba(74, 57, 32, 0.1);
}

.ebe-paper-cta__content {
    position: relative;
}

.ebe-paper-cta__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #8a5b13;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ebe-paper-cta h2 {
    margin: 0 !important;
    color: #202938;
    font-size: clamp(22px, 2.5vw, 30px) !important;
    font-weight: 800;
    line-height: 1.2;
}

.ebe-paper-cta__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 19px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    background: #203f52;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 7px 16px rgba(32, 63, 82, 0.2);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ebe-paper-cta__button:hover,
.ebe-paper-cta__button:focus {
    color: #fff !important;
    text-decoration: none !important;
    background: #0f766e;
    box-shadow: 0 9px 20px rgba(15, 118, 110, 0.25);
    transform: translateY(-2px);
}

.ebe-admin-warning {
    padding: 14px 16px;
    color: #7a271a;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 8px;
}

@media (max-width: 920px) {
    .ebe-filter {
        grid-template-columns: 1fr 1fr;
    }

    .ebe-filter__reset {
        grid-column: 1 / -1;
    }

    .ebe-products .edd_downloads_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ebe-filter {
        grid-template-columns: 1fr;
        margin-bottom: 36px;
        padding: 18px;
    }

    .ebe-filter__search-row {
        flex-direction: column;
    }

    .ebe-filter__quick {
        flex-direction: column;
    }

    .ebe-filter__quick a {
        justify-content: center;
    }

    .ebe-filter__reset {
        grid-column: auto;
    }

    .ebe-products .edd_downloads_list {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .ebe-paper-cta {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
        margin-top: 40px;
        padding: 25px 20px;
        text-align: center;
    }

    .ebe-paper-cta__button {
        width: 100%;
    }
}
