/* Engagement page uses the same psl-* product card system as sections/product-section.php.
   Keep this file limited to page hero + filter + listing wrapper styles. */
.eg1-page-main {
    padding-top: 0;
    background: #fffaf7;
}

.eg1-hero {
    padding: 46px 0 22px;
    background: linear-gradient(135deg, rgba(255, 245, 238, 0.96), rgba(255, 255, 255, 0.98));
}

.eg1-hero-inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.eg1-eyebrow,
.eg1-listing-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9b6a4d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eg1-page-title {
    margin: 10px 0 10px;
    color: #201714;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.05;
}

.eg1-page-copy {
    margin: 0 auto;
    max-width: 680px;
    color: #755f56;
    font-size: 15px;
    line-height: 1.7;
}

.eg1-filter-section {
    padding: 22px 0 12px;
    background: #fffaf7;
    position: relative;
    z-index: 4;
}

.eg1-filter-wrap {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, .75fr) minmax(260px, 1.3fr) minmax(180px, .65fr);
    gap: 16px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(89, 48, 34, .11);
    border-radius: 26px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 50px rgba(54, 30, 21, .08);
    backdrop-filter: blur(10px);
}

.eg1-filter-group {
    min-width: 0;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 247, 242, .78);
}

.eg1-filter-title,
.eg1-sort-label {
    display: block;
    margin: 0 0 10px;
    color: #5b392d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eg1-shape-list,
.eg1-metal-list,
.eg1-style-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.eg1-shape-btn,
.eg1-metal-btn,
.eg1-style-btn,
.eg1-sort-select {
    border: 1px solid rgba(104, 62, 45, .14);
    background: #fff;
    color: #39231b;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.eg1-shape-btn,
.eg1-metal-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.eg1-style-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.eg1-shape-btn:hover,
.eg1-metal-btn:hover,
.eg1-style-btn:hover,
.eg1-shape-btn.is-active,
.eg1-metal-btn.is-active,
.eg1-style-btn.is-active {
    transform: translateY(-2px);
    border-color: rgba(132, 79, 54, .42);
    background: #fff7f0;
    box-shadow: 0 10px 24px rgba(63, 35, 24, .12);
}

.eg1-shape-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #8b5a42;
    display: block;
}

.eg1-shape-round { border-radius: 50%; }
.eg1-shape-princess { border-radius: 4px; transform: rotate(45deg) scale(.82); }
.eg1-shape-cushion { border-radius: 7px; }
.eg1-shape-oval { width: 16px; height: 23px; border-radius: 50%; }
.eg1-shape-emerald { width: 16px; height: 23px; border-radius: 2px; }
.eg1-shape-radiant { border-radius: 3px; transform: rotate(45deg) scale(.9); }
.eg1-shape-pear { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.eg1-shape-heart { width: 18px; height: 18px; border: 0; background: #8b5a42; transform: rotate(-45deg); position: relative; }
.eg1-shape-heart:before,
.eg1-shape-heart:after { content: ''; position: absolute; width: 18px; height: 18px; background: #8b5a42; border-radius: 50%; }
.eg1-shape-heart:before { top: -9px; left: 0; }
.eg1-shape-heart:after { top: 0; left: 9px; }
.eg1-shape-marquise { width: 24px; height: 14px; border-radius: 50% 0 50% 0; transform: rotate(45deg); }
.eg1-shape-asscher { border-radius: 3px; outline: 1px solid rgba(139,90,66,.5); outline-offset: -5px; }

.eg1-metal-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .8), inset 0 -2px 4px rgba(0, 0, 0, .08);
}

.eg1-metal-all { background: linear-gradient(135deg, #f1c76a, #e9e9e9 45%, #d99b8b); }
.eg1-metal-silver { background: linear-gradient(135deg, #f8f8f8, #bfc5ca); }
.eg1-metal-gold { background: linear-gradient(135deg, #ffe29a, #c99827); }
.eg1-metal-rose { background: linear-gradient(135deg, #ffd1c2, #b86b5c); }
.eg1-metal-platinum { background: linear-gradient(135deg, #f3f5f8, #9ea9b5); }

.eg1-style-icon {
    color: #9b6a4d;
    font-size: 13px;
}

.eg1-sort-box {
    position: relative;
}

.eg1-sort-select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.eg1-listing-section {
    padding: 22px 0 68px;
}

.eg1-listing-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.eg1-listing-title {
    margin: 5px 0 0;
    color: #201714;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.12;
}

.eg1-result-count {
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: #6f5145;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(54, 30, 21, .08);
    white-space: nowrap;
}

.eg1-product-card.eg1-filter-hidden {
    display: none !important;
}

.eg1-empty-state {
    margin-top: 30px;
}

.eg1-empty-state[hidden] {
    display: none !important;
}

.eg1-empty-box {
    max-width: 460px;
    margin: 0 auto;
    padding: 34px 24px;
    text-align: center;
    border-radius: 26px;
    background: #fff;
    color: #6f5145;
    box-shadow: 0 18px 50px rgba(54, 30, 21, .09);
}

.eg1-empty-box i {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #fff3ea;
    color: #9b6a4d;
    font-size: 22px;
}

.eg1-empty-box h3 {
    margin: 0 0 8px;
    color: #2d1d17;
    font-size: 22px;
}

.eg1-empty-box p {
    margin: 0;
    color: #7a6258;
}

@media (max-width: 1180px) {
    .eg1-filter-wrap {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .eg1-hero {
        padding-top: 30px;
    }

    .eg1-filter-wrap {
        grid-template-columns: 1fr;
        padding: 12px;
        border-radius: 22px;
    }

    .eg1-filter-group {
        padding: 10px;
    }

    .eg1-listing-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .eg1-result-count {
        width: 100%;
        text-align: center;
    }
}

.eg1-dynamic-showcase {
    padding-top: 22px;
}

.eg1-dynamic-showcase .eg1-listing-top--dynamic {
    margin-top: 0;
}

.eg1-dynamic-showcase .psl-showcase-head + .eg1-listing-top--dynamic {
    margin-top: -6px;
}
