/* =========================================================
   全葳通訊｜商品推薦頁
   Premium editorial storefront / LIFF friendly
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    --ink: #17201d;
    --ink-soft: #41504a;
    --muted: #74817c;
    --paper: #fffdf8;
    --surface: #ffffff;
    --canvas: #f5f4ef;
    --line: #dfE3dc;
    --line-strong: #c9d0c8;
    --accent: #ef6a45;
    --accent-dark: #cf4f2f;
    --accent-soft: #fff0e9;
    --accent-border-soft: #f2cbbf;
    --sage: #c9e0d2;
    --sage-dark: #305f4d;
    --header-height: 72px;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 15px;
    --shadow-card: 0 18px 55px rgba(23, 32, 29, .09);
    --shadow-float: 0 26px 90px rgba(18, 27, 24, .24);
    --header-surface: rgba(23, 32, 29, .94);
    --header-foreground: #fff;
    --header-muted: rgba(255, 255, 255, .58);
    --header-border: rgba(255, 255, 255, .08);
    --header-control-surface: rgba(255, 255, 255, .09);
    --header-control-hover: rgba(255, 255, 255, .16);
    --header-control-border: rgba(255, 255, 255, .18);
    --header-control-hover-border: rgba(255, 255, 255, .42);
    --header-filter-surface: rgba(255, 255, 255, .08);
    --header-filter-border: rgba(255, 255, 255, .14);
    --brand-mark-foreground: var(--ink);
    --brand-name-foreground: var(--header-foreground);
    --brand-logo-surface: #fff;
    --brand-logo-border: rgba(255, 255, 255, .14);
    --brand-logo-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    --brand-logo-radius: 13px;
    --brand-logo-mobile-radius: 12px;
    --brand-logo-mark-size: 42px;
    --brand-logo-mobile-mark-size: 38px;
    --brand-logo-size: 34px;
    --brand-logo-mobile-size: 31px;
    --brand-logo-fit: contain;
    --strong-surface: var(--ink);
    --strong-foreground: #fff;
    --hero-background:
        radial-gradient(circle at 72% 36%, rgba(201, 224, 210, .18), transparent 28%),
        linear-gradient(135deg, #17201d 0%, #202f2a 58%, #18221f 100%);
    --hero-foreground: #fff;
    --focus-ring: rgba(239, 106, 69, .1);
    --focus-ring-strong: rgba(239, 106, 69, .14);
    --accent-shadow: rgba(239, 106, 69, .2);
    --accent-decoration: rgba(239, 106, 69, .12);
    --error: #b9442e;
    --error-soft: #fff2ef;
    --page-width: 1280px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 999;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform .18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--header-height);
    border-bottom: 1px solid var(--header-border);
    background: var(--header-surface);
    color: var(--header-foreground);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(calc(100% - 40px), var(--page-width));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--header-foreground);
    text-decoration: none;
}

.brand__mark {
    width: var(--brand-logo-mark-size);
    height: var(--brand-logo-mark-size);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--brand-logo-border);
    border-radius: var(--brand-logo-radius);
    color: var(--brand-mark-foreground);
    background: var(--brand-logo-surface);
    box-shadow: var(--brand-logo-shadow);
    font-size: 16px;
    font-weight: 850;
}

.brand__mark img {
    display: block;
    width: var(--brand-logo-size);
    height: var(--brand-logo-size);
    object-fit: var(--brand-logo-fit);
    object-position: center;
}

html[data-header-brand-layout="centered-logo"] .site-header__inner {
    position: relative;
}

html[data-header-brand-layout="centered-logo"] .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

html[data-header-brand-layout="centered-logo"] .brand__copy {
    display: none;
}

.brand__copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__copy strong {
    color: var(--brand-name-foreground);
    font-size: 16px;
    letter-spacing: .08em;
}

.brand__copy small {
    margin-top: 5px;
    color: var(--header-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
}

.site-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-center-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--header-control-border);
    border-radius: 999px;
    background: var(--header-control-surface);
    color: var(--header-foreground);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    transition:
        border-color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}

.member-center-link[hidden] {
    display: none;
}

.member-center-link:hover,
.member-center-link:focus-visible {
    border-color: var(--header-control-hover-border);
    background: var(--header-control-hover);
    transform: translateY(-1px);
}

.header-promise {
    display: flex;
    align-items: center;
    gap: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.header-promise span {
    display: flex;
    align-items: center;
}

.header-promise span + span::before {
    content: "";
    width: 3px;
    height: 3px;
    margin: 0 14px;
    border-radius: 50%;
    background: var(--accent);
}

.header-filter-button {
    display: none;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--header-filter-border);
    border-radius: 12px;
    background: var(--header-filter-surface);
    color: var(--header-foreground);
    font-size: 13px;
    font-weight: 800;
}

/* Hero */

.catalog-hero {
    position: relative;
    overflow: hidden;
    min-height: 510px;
    background: var(--hero-background);
    color: var(--hero-foreground);
}

.catalog-hero::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.catalog-hero__inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 40px), var(--page-width));
    min-height: 510px;
    margin: 0 auto;
    padding: 68px 0 58px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(370px, .95fr);
    align-items: center;
    gap: 80px;
}

.catalog-hero__copy {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--sage);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .24em;
}

.eyebrow--dark {
    margin-bottom: 12px;
    color: var(--accent-dark);
}

.catalog-hero h1 {
    margin: 0;
    font-size: clamp(42px, 5.2vw, 72px);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1.06;
}

.catalog-hero__lead {
    max-width: 570px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 17px;
    line-height: 1.9;
}

.hero-assurances {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 700;
}

.hero-assurances span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-assurances b {
    color: var(--accent);
    font-size: 10px;
    letter-spacing: .08em;
}

.hero-showcase {
    position: relative;
    min-height: 380px;
}

.hero-showcase::before {
    content: "";
    position: absolute;
    top: 26px;
    right: 26px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--sage);
    opacity: .9;
    filter: blur(.2px);
}

.hero-phone {
    position: absolute;
    overflow: hidden;
    width: 190px;
    height: 360px;
    border: 7px solid #111714;
    border-radius: 38px;
    box-shadow: 0 35px 70px rgba(0, 0, 0, .34);
}

.hero-phone--back {
    top: 28px;
    right: 184px;
    z-index: 2;
    transform: rotate(-8deg);
    background: linear-gradient(145deg, #ebe4da, #bdb4aa);
}

.hero-phone--front {
    top: 0;
    right: 38px;
    z-index: 3;
    transform: rotate(7deg);
    background:
        radial-gradient(circle at 60% 34%, rgba(255, 255, 255, .6), transparent 15%),
        radial-gradient(circle at 35% 70%, var(--accent), transparent 32%),
        linear-gradient(150deg, #0b1110, #3b5a4f 56%, #12201b);
}

.hero-phone__camera {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 50px;
    height: 50px;
    border: 7px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    background: radial-gradient(circle, #111 0 38%, #4f5655 41% 55%, #111 58%);
    box-shadow: 0 4px 9px rgba(0, 0, 0, .22);
}

.hero-phone__camera--two {
    top: 75px;
    left: 70px;
}

.hero-phone__island {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 78px;
    height: 23px;
    border-radius: 20px;
    background: #060807;
    transform: translateX(-50%);
}

.hero-phone__shine {
    position: absolute;
    top: -70px;
    left: -55px;
    width: 120px;
    height: 520px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    transform: rotate(22deg);
}

.hero-price-note {
    position: absolute;
    right: 2px;
    bottom: 8px;
    z-index: 5;
    min-width: 152px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(23, 32, 29, .82);
    box-shadow: 0 20px 36px rgba(0, 0, 0, .2);
    backdrop-filter: blur(12px);
}

.hero-price-note small,
.hero-price-note strong {
    display: block;
}

.hero-price-note small {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, .52);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.hero-price-note strong {
    font-size: 14px;
}

.catalog-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.catalog-hero__glow--one {
    top: 100px;
    left: -80px;
    width: 190px;
    height: 190px;
    background: var(--accent-decoration);
}

.catalog-hero__glow--two {
    right: 25%;
    bottom: -70px;
    width: 170px;
    height: 170px;
    background: rgba(201, 224, 210, .1);
}

/* Catalog */

.catalog-section {
    width: min(calc(100% - 40px), var(--page-width));
    margin: 0 auto;
    padding: 54px 0 44px;
}

.reservation-access-gate {
    width: min(calc(100% - 40px), 760px);
    margin: 0 auto;
    padding: clamp(54px, 9vw, 110px) 0;
}

.reservation-access-gate__card {
    display: flex;
    min-height: 360px;
    padding: clamp(34px, 6vw, 62px);
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.reservation-access-gate__icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 24px;
    font-weight: 900;
}

.reservation-access-gate h1 {
    margin: 6px 0 12px;
    font-size: clamp(26px, 5vw, 38px);
    letter-spacing: -.04em;
}

.reservation-access-gate__card > p:not(.eyebrow) {
    max-width: 470px;
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.75;
}

.reservation-access-gate .button {
    min-width: 160px;
}

.header-filter-button:disabled {
    cursor: default;
    opacity: .45;
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.catalog-heading h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.catalog-heading > div > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

/* Filters */

.filter-scrim {
    display: none;
}

.filter-panel {
    position: sticky;
    top: calc(var(--header-height) + 22px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 14px 42px rgba(23, 32, 29, .055);
}

.filter-panel__header {
    padding: 22px 22px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--strong-surface);
    color: var(--strong-foreground);
}

.filter-panel__header h3 {
    margin: 5px 0 0;
    font-size: 20px;
}

.filter-panel__kicker {
    color: var(--sage);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .22em;
}

.filter-close {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.filter-block {
    padding: 22px;
}

.filter-block__heading {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-block__heading h4 {
    margin: 0;
    font-size: 14px;
}

.filter-block__heading span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.compact-search,
.product-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.compact-search:focus-within,
.product-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.compact-search {
    height: 42px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 12px;
    color: var(--muted);
}

.compact-search input,
.product-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.compact-search input {
    font-size: 13px;
}

.compact-search input::placeholder,
.product-search input::placeholder {
    color: #9aa49f;
}

.tag-list {
    max-height: 310px;
    margin-top: 14px;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.tag-list::-webkit-scrollbar {
    width: 6px;
}

.tag-list::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #d3d9d3;
}

.tag-option {
    min-height: 42px;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 11px;
    cursor: pointer;
    transition: background .15s ease;
}

.tag-option:hover {
    background: #f2f4f0;
}

.tag-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tag-option__box {
    position: relative;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border: 1.5px solid var(--line-strong);
    border-radius: 6px;
    background: #fff;
    transition: background .15s ease, border-color .15s ease;
}

.tag-option input:checked + .tag-option__box {
    border-color: var(--accent);
    background: var(--accent);
}

.tag-option input:checked + .tag-option__box::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.tag-option input:focus-visible + .tag-option__box {
    box-shadow: 0 0 0 4px var(--focus-ring-strong);
}

.tag-option__label {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.filter-empty {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.filter-divider {
    height: 1px;
    margin: 0 22px;
    background: var(--line);
}

.price-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 7px;
}

.price-inputs label {
    min-width: 0;
}

.price-inputs label span {
    display: block;
    margin: 0 0 7px 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.price-inputs input {
    width: 100%;
    height: 40px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
}

.price-inputs input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.price-divider {
    padding-bottom: 12px;
    color: var(--muted);
}

.filter-actions {
    padding: 0 22px 22px;
    display: grid;
    gap: 9px;
}

.button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button--primary {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px var(--accent-shadow);
}

.button--primary:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

.button--ghost {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
}

.button--ghost:hover {
    border-color: var(--line-strong);
    background: #fff;
}

/* Toolbar */

.product-area {
    min-width: 0;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-search {
    height: 52px;
    min-width: 0;
    flex: 1;
    gap: 11px;
    padding: 0 14px 0 16px;
    border-radius: 15px;
    box-shadow: 0 9px 28px rgba(23, 32, 29, .045);
}

.product-search__icon {
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
}

.product-search input {
    font-size: 14px;
}

.product-search button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef0ec;
    color: var(--muted);
    cursor: pointer;
}

.catalog-toolbar__controls {
    display: flex;
    gap: 10px;
}

.sort-select {
    position: relative;
}

.sort-select::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--muted);
    transform: translateY(-58%);
    pointer-events: none;
}

.sort-select select {
    height: 52px;
    min-width: 158px;
    padding: 0 38px 0 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    outline: 0;
    appearance: none;
    background: #fff;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.sort-select select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.mobile-filter-button {
    display: none;
    height: 52px;
    padding: 0 15px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.mobile-filter-button span {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
}

.catalog-status {
    min-height: 49px;
    padding: 16px 2px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.catalog-status > p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.active-filters button {
    min-height: 27px;
    padding: 4px 8px 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--accent-border-soft);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.active-filters button span {
    font-size: 14px;
    line-height: 1;
}

/* Product cards */

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

.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(23, 32, 29, .065);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

@media (hover: hover) {
    .product-card:hover {
        border-color: #ccd4cc;
        transform: translateY(-6px);
        box-shadow: var(--shadow-card);
    }
}

.product-card__media {
    position: relative;
    overflow: hidden;
    margin: 0;
    background:
        radial-gradient(circle at 50% 36%, #fff 0 18%, transparent 46%),
        #edf0eb;
}

.product-card__media::before {
    content: "";
    display: block;
    padding-top: 82%;
}

.product-card__media::after {
    content: "";
    position: absolute;
    right: -24%;
    bottom: -62%;
    width: 150%;
    height: 90%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .44);
    pointer-events: none;
}

.product-card__image {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    padding: 22px;
    transition: transform .35s ease;
}

@media (hover: hover) {
    .product-card:hover .product-card__image {
        transform: scale(1.035);
    }
}

.image-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    place-items: center;
    color: #9aa49f;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
    text-align: center;
}

.image-missing .image-fallback {
    display: grid;
}

.product-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    max-width: calc(100% - 28px);
    padding: 7px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 999px;
    background: rgba(23, 32, 29, .88);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.product-card__quick-view {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 10px;
    background: rgba(255, 255, 255, .88);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(23, 32, 29, .12);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
    backdrop-filter: blur(8px);
}

@media (hover: hover) {
    .product-card:hover .product-card__quick-view,
    .product-card__quick-view:focus-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: none) {
    .product-card__quick-view {
        opacity: 1;
        transform: none;
    }
}

.product-card__body {
    padding: 19px 18px 18px;
}

.product-card__heading h3 {
    min-height: 46px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.018em;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card__heading p {
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card__purchase {
    margin-top: 18px;
    padding-top: 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #ecefe9;
}

.product-card__purchase > div {
    min-width: 0;
}

.product-card__purchase small,
.product-card__purchase strong {
    display: block;
}

.product-card__purchase small {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.product-card__purchase strong {
    overflow: hidden;
    color: var(--accent-dark);
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reserve-button {
    height: 42px;
    padding: 0 12px 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--strong-surface);
    border-radius: 12px;
    background: var(--strong-surface);
    color: var(--strong-foreground);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .12s ease;
}

.reserve-button:hover {
    border-color: var(--accent);
    background: var(--accent);
    transform: translateY(-1px);
}

.reserve-button b {
    font-size: 15px;
    font-weight: 500;
}

.product-card--skeleton {
    min-height: 390px;
    border-color: #e8ebe6;
    background:
        linear-gradient(90deg, #eef0ec 25%, #f8f9f6 50%, #eef0ec 75%) 0 0 / 220% 100%;
    animation: skeleton-shimmer 1.25s infinite linear;
}

.product-card--skeleton::before,
.product-card--skeleton::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .68);
}

.product-card--skeleton::before {
    top: 68%;
    height: 18px;
}

.product-card--skeleton::after {
    top: 75%;
    right: 35%;
    height: 11px;
}

@keyframes skeleton-shimmer {
    to {
        background-position: -220% 0;
    }
}

.empty-state {
    grid-column: 1 / -1;
    min-height: 390px;
    padding: 48px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .62);
    text-align: center;
}

.empty-state > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 25px;
    font-weight: 900;
}

.empty-state h3 {
    margin: 18px 0 7px;
    font-size: 20px;
}

.empty-state p {
    max-width: 420px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.empty-state .button {
    min-width: 180px;
}

.empty-state--error > span {
    background: var(--error-soft);
    color: var(--error);
}

.catalog-note {
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

/* Product modal */

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.product-modal.is-open {
    display: flex;
}

.product-modal__scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(10, 15, 13, .72);
    backdrop-filter: blur(9px);
    cursor: default;
}

.product-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    height: min(680px, calc(100vh - 52px));
    max-height: min(680px, calc(100vh - 52px));
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-float);
    animation: modal-enter .2s ease-out;
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }
}

.product-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.product-modal__media {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, #fff 0 20%, transparent 48%),
        #edf0eb;
}

.product-modal__media::after {
    content: "";
    position: absolute;
    right: -20%;
    bottom: -35%;
    width: 130%;
    height: 70%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

.product-modal__media img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 42px;
    object-fit: contain;
}

.product-modal__content {
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 56px 46px 38px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-tag {
    display: inline-flex;
    max-width: 100%;
    padding: 7px 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-modal__content h2 {
    margin: 17px 0 0;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1.2;
}

.modal-product-id {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
}

.modal-price {
    display: block;
    margin-top: 24px;
    color: var(--accent-dark);
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -.035em;
}

.modal-divider {
    height: 1px;
    margin: 24px 0;
    background: var(--line);
}

.modal-description {
    min-height: 110px;
    max-height: 230px;
    padding: 15px 17px;
    flex: 1 1 auto;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f8f5;
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.85;
    white-space: pre-line;
    scrollbar-color: #cbd1ca transparent;
    scrollbar-width: thin;
}

.modal-description::-webkit-scrollbar {
    width: 7px;
}

.modal-description::-webkit-scrollbar-thumb {
    border: 2px solid #f7f8f5;
    border-radius: 999px;
    background: #cbd1ca;
}

.modal-actions {
    margin-top: 18px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-open,
.filters-open {
    overflow: hidden;
}

/* Responsive */

@media (max-width: 1120px) {
    .catalog-hero__inner {
        gap: 34px;
    }

    .hero-showcase {
        transform: scale(.88);
        transform-origin: center right;
    }

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

@media (max-width: 960px) {
    :root {
        --header-height: 64px;
    }

    .site-header__inner,
    .catalog-hero__inner,
    .catalog-section {
        width: min(calc(100% - 30px), var(--page-width));
    }

    .header-promise {
        display: none;
    }

    .header-filter-button {
        display: inline-flex;
    }

    .catalog-hero,
    .catalog-hero__inner {
        min-height: 470px;
    }

    .catalog-hero__inner {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    .hero-showcase {
        min-height: 330px;
        transform: scale(.75);
        transform-origin: center right;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filter-scrim {
        position: fixed;
        inset: 0;
        z-index: 109;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(10, 15, 13, .58);
        backdrop-filter: blur(5px);
    }

    .filters-open .filter-scrim {
        display: block;
    }

    .filter-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 110;
        width: min(360px, calc(100% - 34px));
        overflow-y: auto;
        border: 0;
        border-radius: 24px 0 0 24px;
        background: var(--surface);
        box-shadow: -22px 0 60px rgba(10, 15, 13, .22);
        transform: translateX(105%);
        transition: transform .24s ease;
    }

    .filters-open .filter-panel {
        transform: translateX(0);
    }

    .filter-panel__header {
        position: sticky;
        top: 0;
        z-index: 2;
        padding-top: max(22px, env(safe-area-inset-top));
    }

    .filter-close {
        display: inline-grid;
        place-items: center;
    }

    .mobile-filter-button {
        display: inline-flex;
    }
}

@media (max-width: 760px) {
    .brand__mark {
        width: var(--brand-logo-mobile-mark-size);
        height: var(--brand-logo-mobile-mark-size);
        border-radius: var(--brand-logo-mobile-radius);
    }

    .brand__mark img {
        width: var(--brand-logo-mobile-size);
        height: var(--brand-logo-mobile-size);
    }

    html[data-header-brand-layout="centered-logo"] .member-center-link {
        width: 38px;
        padding: 0;
        font-size: 0;
    }

    html[data-header-brand-layout="centered-logo"] .member-center-link > span {
        font-size: 15px;
    }

    .brand__copy strong {
        font-size: 14px;
    }

    .brand__copy small {
        font-size: 9px;
    }

    .member-center-link {
        min-height: 38px;
        padding: 0 13px;
        font-size: 12px;
    }

    .catalog-hero,
    .catalog-hero__inner {
        min-height: auto;
    }

    .catalog-hero__inner {
        min-height: 530px;
        padding: 50px 0 36px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .catalog-hero h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .catalog-hero__lead {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-assurances {
        margin-top: 26px;
        gap: 10px 18px;
        font-size: 11px;
    }

    .hero-showcase {
        width: 310px;
        min-height: 280px;
        margin: -8px auto 0;
        transform: scale(.7);
        transform-origin: top center;
    }

    .catalog-section {
        padding-top: 54px;
    }

    .catalog-heading {
        margin-bottom: 26px;
    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-toolbar__controls {
        width: 100%;
    }

    .mobile-filter-button,
    .sort-select {
        flex: 1;
    }

    .sort-select select {
        width: 100%;
        min-width: 0;
    }

    .catalog-status {
        min-height: 54px;
        padding-top: 14px;
        flex-direction: column;
        gap: 8px;
    }

    .active-filters {
        justify-content: flex-start;
    }

    .product-modal {
        padding: 14px;
    }

    .product-modal__dialog {
        height: auto;
        max-height: calc(100vh - 28px);
        display: block;
        overflow-y: auto;
        border-radius: 22px;
    }

    .product-modal__media {
        height: 330px;
        min-height: 330px;
    }

    .product-modal__content {
        height: auto;
        padding: 34px 24px 24px;
        overflow: visible;
    }

    .modal-description {
        min-height: 140px;
        max-height: 220px;
        flex: none;
    }
}

@media (max-width: 620px) {
    .site-header__inner,
    .catalog-hero__inner,
    .catalog-section {
        width: min(calc(100% - 24px), var(--page-width));
    }

    .header-filter-button {
        width: 40px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .header-filter-button span {
        font-size: 17px;
    }

    .site-header__actions {
        gap: 8px;
    }

    .member-center-link {
        padding: 0 11px;
    }

    .catalog-hero__inner {
        padding-top: 44px;
    }

    .hero-assurances span {
        width: calc(50% - 10px);
    }

    .catalog-heading h2 {
        font-size: 36px;
    }

    .catalog-heading > div > p:last-child {
        font-size: 13px;
        line-height: 1.65;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card__media::before {
        padding-top: 75%;
    }

    .product-card__image {
        padding: 26px;
    }

    .product-card__body {
        padding: 18px;
    }

    .product-card__heading h3 {
        min-height: 0;
        font-size: 17px;
    }

    .product-card__purchase strong {
        font-size: 20px;
    }

    .product-card__quick-view {
        right: 14px;
        bottom: 14px;
    }

    .catalog-note {
        text-align: left;
        line-height: 1.6;
    }

    .modal-actions {
        grid-template-columns: 1fr;
    }

    .modal-actions .button--primary {
        grid-row: 1;
    }
}

@media (max-width: 390px) {
    .brand__copy small {
        display: none;
    }

    .catalog-hero h1 {
        font-size: 40px;
    }

    .hero-assurances {
        display: none;
    }

    .catalog-hero__inner {
        min-height: 500px;
    }

    .hero-showcase {
        margin-top: 0;
    }

    .product-search {
        padding-left: 12px;
    }

    .mobile-filter-button,
    .sort-select select {
        padding-left: 11px;
        padding-right: 28px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
