/* Favorites and recently viewed: device-local, product data stays server-rendered. */
[hidden] { display: none !important; }

.product-card-media-wrap {
    position: relative;
}

.product-price ins,
.single-price ins {
    color: var(--ink);
    text-decoration: none;
}

.favorite-toggle {
    display: inline-grid;
    padding: 0;
    place-items: center;
    border: 1px solid #cbd7db;
    background: rgba(255,255,255,.94);
    color: #21343b;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.favorite-toggle svg {
    width: 20px;
    height: 20px;
    fill: transparent;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: fill .18s ease, transform .18s ease;
}

.favorite-toggle:hover {
    transform: translateY(-1px);
    border-color: #0aaec7;
    color: #007f94;
}

.favorite-toggle.is-favorite {
    border-color: #08aec7;
    background: #08aec7;
    color: #001b21;
}

.favorite-toggle.is-favorite svg {
    fill: currentColor;
    transform: scale(.94);
}

.favorite-card-button {
    position: absolute;
    z-index: 6;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(7,21,27,.1);
}

.product-card-media-wrap .sale-badge {
    top: 58px;
}

.favorite-single-button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.favorite-header-button {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--light-line);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
}

.favorite-header-button:hover {
    border-color: #5e7780;
}

.favorite-header-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.favorite-header-button [data-favorite-count] {
    position: absolute;
    top: -5px;
    right: -5px;
    display: none;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--blue);
    color: #00232a;
    font-size: 8px;
    font-weight: 900;
}

.favorite-header-button [data-favorite-count].has-items {
    display: grid;
}

.footer-column [data-favorite-count],
.mobile-bottom-nav [data-favorite-count],
.mobile-menu [data-favorite-count] {
    display: none;
}

.footer-column [data-favorite-count].has-items,
.mobile-bottom-nav [data-favorite-count].has-items,
.mobile-menu [data-favorite-count].has-items {
    display: inline-grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #00232a;
    font-size: 8px;
    font-weight: 900;
}

.mobile-bottom-nav .mobile-favorite-icon {
    font-family: Arial, sans-serif;
    font-size: 27px;
    line-height: .8;
}

.mobile-bottom-nav a.is-current-personal {
    color: #008da3;
}

body.page-template-template-favorites .mobile-bottom-nav a[href*="/favorites/"] {
    color: #008da3;
}

.personal-product-library {
    display: none !important;
}

.personal-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.personal-product-grid > .product-card {
    display: none;
}

.personal-product-grid > .product-card.is-personal-visible {
    display: flex;
}

.personal-empty {
    display: grid;
    min-height: 360px;
    place-items: center;
    align-content: center;
    padding: 45px 20px;
    border: 1px solid var(--light-line);
    background: #f6f8f8;
    text-align: center;
}

.personal-empty svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: #8a9ba1;
    stroke-width: 1.2;
}

.personal-empty h2 {
    margin: 18px 0 5px;
    color: var(--ink);
    font-size: 30px;
    letter-spacing: -.05em;
}

.personal-empty p {
    margin: 0 0 22px;
    color: var(--ink-soft);
    font-size: 12px;
}

.favorites-page {
    min-height: 70vh;
    padding: 54px 0 95px;
    background: #fff;
    color: var(--ink);
}

.favorites-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.favorites-page-head span {
    color: #74868d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.favorites-page-head h1 {
    margin: 8px 0 0;
    font-size: clamp(48px, 7vw, 88px);
    letter-spacing: -.075em;
    line-height: .9;
}

.favorites-page-head > strong {
    color: #74868d;
    font-size: 11px;
    font-weight: 700;
}

.favorites-page-head > strong b {
    color: var(--ink);
    font-size: 22px;
}

@media (max-width: 900px) {
    .personal-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .favorite-header-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .favorite-card-button {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
    }

    .favorite-card-button svg {
        width: 18px;
        height: 18px;
    }

    .product-card-media-wrap .sale-badge {
        top: 48px;
    }

    .personal-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .favorites-page {
        padding: 32px 0 105px;
    }

    .favorites-page .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .favorites-page-head {
        margin-bottom: 22px;
    }

    .favorites-page-head h1 {
        font-size: 48px;
    }

    .favorites-page-head > strong {
        align-self: center;
    }

    .personal-empty {
        min-height: 310px;
    }
}

@media (max-width: 390px) {
    .favorite-header-button {
        width: 40px;
        height: 42px;
        flex-basis: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .favorite-toggle,
    .favorite-toggle svg {
        transition: none;
    }
}
.price-on-request {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    color: var(--ink);
    font-size: .82em;
    font-weight: 850;
    letter-spacing: -.015em;
}

.product-card-actions .mini-price-request {
    grid-column: 1 / -1;
}

.single-price .price-on-request {
    font-size: .78em;
}
