/* ============================================================
   Wittee Collection Experience - Frontend Styles
   ============================================================ */

/* - Active Filter Bar - */

#wce-filter-bar {
    position: fixed;
    top: 0;      /* overridden by JS to sit below the sticky header */
    left: 0;
    right: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 20px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    font-size: 13px;
    animation: wce-bar-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes wce-bar-slide-in {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.wce-filter-bar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wce-showing-label {
    color: #888;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wce-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wce-filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border: 1.5px solid #1a1a1a;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    background: transparent;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.wce-filter-bar-right {
    flex-shrink: 0;
}

.wce-change-fit-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    border: 1px solid rgba(0, 0, 0, 0.28);
    border-radius: 4px;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.wce-change-fit-btn:hover {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

.wce-change-fit-btn:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* - Popup Overlay - */

.wce-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
}

.wce-overlay--visible {
    background: rgba(0, 0, 0, 0.46);
}

/* - Popup Card - */

.wce-popup {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 38px 32px 28px;
    max-width: 420px;
    width: calc(100% - 40px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    transition:
        opacity  0.38s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.wce-popup--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Dismiss animation: fade + scale down */
.wce-popup--exit {
    opacity: 0 !important;
    transform: translateY(16px) scale(0.96) !important;
    transition:
        opacity  0.3s ease,
        transform 0.3s ease !important;
}

/* Filter-select animation: slide toward right edge + fade */
.wce-popup--exit-right {
    opacity: 0 !important;
    transform: translateX(42vw) scale(0.88) !important;
    transition:
        opacity  0.48s cubic-bezier(0.4, 0, 1, 1),
        transform 0.48s cubic-bezier(0.4, 0, 1, 1) !important;
}

/* - Close Button - */

.wce-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #bbb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    padding: 0;
}

.wce-popup-close:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.06);
}

.wce-popup-close:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* - Popup Header - */

.wce-popup-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 8px;
}

.wce-popup-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.02em;
    line-height: 1.25 !important;
}

.wce-popup-subtitle {
    font-size: 14px;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

/* - Filter Buttons - */

.wce-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.wce-filter-btn {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
    letter-spacing: 0.01em;
    transition:
        border-color 0.2s ease,
        background   0.2s ease,
        color        0.2s ease,
        transform    0.15s ease,
        box-shadow   0.2s ease;
}

.wce-filter-btn:hover {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.wce-filter-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.wce-filter-btn:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* "Show Everything" - softer, dashed style */
.wce-filter-btn--all {
    border-style: dashed;
    color: #888;
    font-size: 13px;
    text-align: center;
}

.wce-filter-btn--all:hover {
    border-style: solid;
    border-color: #888;
    background: #f5f5f5;
    color: #444;
    transform: none;
    box-shadow: none;
}

/* Hidden buttons (no matching WBW terms) */
.wce-filter-btn[hidden],
.wce-filter-btn.wce-hidden {
    display: none !important;
}

/* - Popup Footer - */

.wce-popup-footer {
    text-align: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.wce-popup-footer-text {
    font-size: 12px;
    color: #aaa;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* - Arrow Hint - */

.wce-arrow-hint {
    display: flex;
    justify-content: flex-end;
    padding-right: 2px;
}

.wce-arrow-pulse {
    display: inline-block;
    font-size: 30px;
    color: #ccc;
    animation: wce-pulse-right 1.5s ease-in-out infinite;
    line-height: 1;
}

@keyframes wce-pulse-right {
    0%, 100% { transform: translateX(0);    opacity: 0.4; }
    50%       { transform: translateX(10px); opacity: 1;   }
}

/* - Responsive - */

@media (max-width: 480px) {
    .wce-popup {
        padding: 30px 20px 22px;
        border-radius: 14px;
    }

    .wce-popup-title {
        font-size: 19px !important;
    }

    .wce-filter-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    #wce-filter-bar {
        padding: 7px 14px;
    }

    .wce-popup-title,
    .wce-popup-subt