.favorite-nav {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(25, 52, 47, .18);
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
    background: #fffdf8;
}

.favorite-nav b {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #c7653d;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.favorite-card-wrap {
    position: relative;
    min-width: 0;
}

.favorite-toggle {
    margin: 0;
}

.favorite-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(25, 52, 47, .2);
    border-radius: 999px;
    background: #fffdf8;
    color: #19342f;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(23, 31, 48, .08);
}

.favorite-toggle button:hover {
    border-color: #c7653d;
    color: #a84225;
}

.favorite-toggle span[aria-hidden="true"] {
    font-size: 22px;
    line-height: 1;
}

.favorite-toggle.is-saved button {
    background: #fff1ec;
    border-color: #e2a38c;
    color: #b34224;
}

.favorite-toggle.is-saved span[aria-hidden="true"] {
    font-size: 0;
}

.favorite-toggle.is-saved span[aria-hidden="true"]::before {
    content: "♥";
    font-size: 22px;
}

.favorite-toggle.card-heart {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
}

.favorite-toggle.card-heart button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    background: rgba(255, 253, 248, .94);
    backdrop-filter: blur(8px);
}

.favorite-toggle.card-heart .favorite-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.favorite-toggle.detail-heart {
    margin: 12px 0 16px;
}

.favorite-toggle.detail-heart.compact button {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 13px;
}

.favorites-page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 92px;
}

.favorites-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
    gap: 24px;
    align-items: end;
    padding: clamp(28px, 5vw, 48px);
    background: linear-gradient(135deg, #fffdf8, #f3efe6);
    border: 1px solid #e3d4bf;
    border-left: 6px solid #c7653d;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(23, 31, 48, .07);
}

.favorites-hero h1 {
    margin: 6px 0 12px;
    color: #07182f;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.12;
}

.favorites-hero p {
    max-width: 820px;
    margin: 0;
    color: #4f5d56;
}

.favorite-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.favorite-stats span {
    padding: 14px;
    background: #fffaf2;
    border: 1px solid #e4d8c7;
    border-radius: 8px;
}

.favorite-stats small {
    display: block;
    color: #657268;
    font-size: .78rem;
}

.favorite-stats strong {
    display: block;
    margin-top: 6px;
    color: #07182f;
    font-size: 1.35rem;
}

.favorites-section {
    margin-top: 32px;
}

.favorite-empty {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
    background: #fffdf8;
    border: 1px solid #e3d4bf;
    border-radius: 8px;
}

.favorite-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.favorite-shop-card {
    position: relative;
    min-width: 0;
}

.favorite-shop-card > a {
    display: grid;
    gap: 10px;
    height: 100%;
    padding: 14px;
    background: #fffdf8;
    border: 1px solid #e3d4bf;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 31, 48, .05);
}

.favorite-shop-image {
    display: block;
    aspect-ratio: 16 / 9;
    background: #efe6d4;
    border-radius: 6px;
    overflow: hidden;
}

.favorite-shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-shop-card strong {
    color: #07182f;
    font-size: 1.12rem;
}

.favorite-shop-card small,
.favorite-shop-card p {
    color: #58645d;
}

.favorite-shop-card p {
    margin: 0;
}

.favorite-shop-card em {
    color: #b34224;
    font-style: normal;
    font-weight: 800;
}

.cookie-consent {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: #20252a;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .24);
}

.cookie-consent[hidden],
.cookie-panel[hidden] {
    display: none;
}

.cookie-consent strong {
    display: block;
    margin-bottom: 4px;
}

.cookie-consent p {
    margin: 0;
    color: #d5dce1;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent .button.secondary,
.cookie-panel .button.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}

.cookie-panel {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(12, 18, 20, .5);
}

.cookie-panel form {
    width: min(560px, 100%);
    display: grid;
    gap: 14px;
    padding: 22px;
    background: #fffdf8;
    border-radius: 8px;
    color: #19342f;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.cookie-panel header,
.cookie-panel label {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.cookie-panel h2 {
    margin: 0;
}

.cookie-panel header button {
    width: 36px;
    height: 36px;
    border: 1px solid #d6c9b7;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.cookie-panel label {
    padding: 14px;
    border: 1px solid #e3d4bf;
    border-radius: 8px;
    background: #fffaf2;
}

.cookie-panel small {
    display: block;
    margin-top: 4px;
    color: #657268;
}

.cookie-panel input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #315f50;
}

.cookie-panel .button.secondary {
    border-color: #315f50;
    color: #315f50;
}

@media (max-width: 840px) {
    .favorite-shop-grid,
    .favorites-hero,
    .favorite-stats,
    .cookie-consent {
        grid-template-columns: 1fr;
    }

    .favorites-page {
        width: min(100% - 28px, 680px);
        padding-top: 36px;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions .button,
    .cookie-actions button {
        flex: 1 1 150px;
    }
}

.favorite-nav svg,
.favorite-icon {
    width: 21px;
    height: 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.favorite-nav {
    color: #102722;
}

.favorite-nav:hover {
    color: #c7653d;
    border-color: #c7653d;
}

.favorite-toggle button,
.favorite-toggle.detail-heart button,
.favorite-toggle.detail-heart.compact button {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    gap: 0;
    border-radius: 999px;
}

.favorite-toggle .favorite-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.favorite-toggle.card-heart button {
    width: 44px;
    height: 44px;
    min-height: 44px;
}

.favorite-toggle.detail-heart {
    margin: 10px 0 18px;
}

.favorite-toggle.is-saved button {
    background: #fff1ec;
    color: #d6422b;
}

.favorite-toggle.is-saved .favorite-icon {
    fill: currentColor;
    stroke: currentColor;
}

.legal-consent {
    display: grid;
    gap: 10px;
    margin: 6px 0 18px;
    padding: 14px;
    background: #fffaf2;
    border: 1px solid #e4d8c7;
    border-radius: 8px;
}

.legal-consent label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    color: #19342f;
    font-weight: 700;
    line-height: 1.55;
}

.legal-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #315f50;
}

.legal-consent a {
    color: #b84d24;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-header nav {
    gap: clamp(10px, 1.5vw, 22px);
}

.site-header .nav-text-link {
    white-space: nowrap;
}

.nav-action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-icon-link,
.nav-icon-form button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #102722;
}

.site-header nav a.nav-icon-link {
    display: inline-grid;
}

.site-header .nav-form.nav-icon-form {
    display: block;
}

.nav-icon-link:hover,
.nav-icon-form button:hover {
    border-color: #d9cbb9;
    background: #fff8ef;
    color: #b84d24;
    transform: translateY(-1px);
}

.nav-icon {
    width: 21px;
    height: 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-icon-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.nav-count,
.nav-icon-link b {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #d86b43;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.favorite-nav.nav-icon-link {
    border-color: #d9cbb9;
    background: #fffdf9;
}

.favorite-nav.nav-icon-link:hover {
    border-color: #c7653d;
    color: #c7653d;
}

.nav-icon-form {
    margin: 0;
}

.product-cover-trigger,
.product-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
}

.product-cover-trigger:hover,
.product-thumb:hover,
.product-thumb.is-active {
    transform: none;
}

.product-thumb {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
}

.product-thumb.is-active,
.product-thumb:hover {
    border-color: #c7653d;
}

.product-thumb img {
    display: block;
}

body.lightbox-open {
    overflow: hidden;
}

.product-lightbox[hidden] {
    display: none;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: stretch;
}

.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
    background: rgba(20, 21, 22, .78);
    cursor: zoom-out;
}

.product-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1440px);
    height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 140px;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 18px;
    padding: 34px 28px;
}

.product-lightbox-stage {
    grid-column: 2;
    display: grid;
    place-items: center;
    min-width: 0;
    max-height: calc(100vh - 68px);
    margin: 0;
}

.product-lightbox-stage img {
    max-width: 100%;
    max-height: calc(100vh - 68px);
    object-fit: contain;
    background: #f6f1e8;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.product-lightbox-close,
.product-lightbox-nav {
    position: absolute;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #102722;
    font: 700 28px/1 Georgia, serif;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.product-lightbox-close {
    top: 22px;
    right: 24px;
    font-family: Arial, sans-serif;
}

.product-lightbox-prev {
    left: 28px;
}

.product-lightbox-next {
    right: 188px;
}

.product-lightbox-thumbs {
    grid-column: 3;
    max-height: calc(100vh - 68px);
    display: grid;
    grid-auto-rows: min-content;
    gap: 10px;
    overflow: auto;
    padding: 4px 4px 4px 0;
}

.product-lightbox-thumbs button {
    width: 100%;
    aspect-ratio: 1;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 7px;
    background: rgba(255, 255, 255, .25);
    cursor: pointer;
}

.product-lightbox-thumbs button.is-active,
.product-lightbox-thumbs button:hover {
    border-color: #fff;
    background: #fff;
}

.product-lightbox-thumbs img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 980px) {
    .site-header nav {
        gap: 8px;
    }

    .site-header .nav-text-link {
        display: none;
    }

    .product-lightbox-dialog {
        grid-template-columns: 54px minmax(0, 1fr) 92px;
        gap: 12px;
        padding: 24px 14px;
    }

    .product-lightbox-next {
        right: 122px;
    }
}

@media (max-width: 650px) {
    .site-header nav > a.nav-icon-link,
    .site-header .nav-form.nav-icon-form {
        display: inline-grid;
    }

    .nav-action-group {
        gap: 5px;
    }

    .nav-icon-link,
    .nav-icon-form button {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .product-lightbox-dialog {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        padding: 62px 12px 18px;
    }

    .product-lightbox-stage {
        grid-column: 1;
        max-height: calc(100vh - 170px);
    }

    .product-lightbox-stage img {
        max-height: calc(100vh - 170px);
    }

    .product-lightbox-thumbs {
        grid-column: 1;
        grid-auto-flow: column;
        grid-auto-columns: 72px;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding: 0 4px 6px;
    }

    .product-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .product-lightbox-prev {
        left: 14px;
    }

    .product-lightbox-next {
        right: 14px;
    }
}
