:root {
    --catalog-card: #202020;
    --catalog-soft: #292725;
    --catalog-cream: #eee9e2;
}

.catalog-header .main-nav__shop::after { display: block; }
.catalog-category-nav { position: sticky; z-index: 3; top: 0; border-block: 1px solid #34312f; background: #171717eb; backdrop-filter: blur(14px); }
.catalog-category-nav__scroll { display: flex; gap: .45rem; overflow-x: auto; padding-block: .72rem; scrollbar-width: thin; }
.catalog-category-nav a { flex: 0 0 auto; padding: .62rem .85rem; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: .94rem; }
.catalog-category-nav a:hover, .catalog-category-nav a[aria-current] { border-color: #5b5652; color: var(--text); background: #292725; }
.catalog-category-nav a[aria-current] { border-color: var(--accent); }

.catalog-main { min-height: 70vh; padding-block: clamp(1.35rem, 3vw, 3.25rem) clamp(3rem, 5vw, 5rem); }
.breadcrumbs { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; margin-block-end: 1.2rem; color: #aaa5a0; font-size: .88rem; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span:last-child { color: #d7d2cc; }
.eyebrow { margin-block-end: .55rem; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.catalog-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem; padding-block: clamp(.5rem, 2vw, 1.6rem) clamp(1.4rem, 3vw, 2.8rem); }
.catalog-hero h1 { max-width: 13ch; font-size: clamp(2.6rem, 6vw, 6.1rem); letter-spacing: -.06em; line-height: .92; }
.catalog-hero p:not(.eyebrow) { max-width: 60ch; margin-block-start: 1rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.35rem); line-height: 1.55; }
.catalog-hero__metric { display: grid; width: clamp(7rem, 10vw, 11rem); aspect-ratio: 1; place-content: center; border: 1px solid #4f4a46; border-radius: 50%; text-align: center; }
.catalog-hero__metric strong { display: block; font-size: clamp(2rem, 4vw, 4.2rem); line-height: .8; }
.catalog-hero__metric span { margin-block-start: .65rem; color: var(--muted); }

.project-banner { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem 1.25rem; margin-block-end: clamp(1.2rem, 2.5vw, 2.4rem); padding: 1rem 1.15rem; border: 1px solid #674e2f; border-left: .35rem solid var(--accent); border-radius: .35rem; background: #241f19; line-height: 1.45; }
.project-banner strong { color: var(--accent); }
.project-banner span { color: #d3ccc4; }

.category-overview { margin-block-end: clamp(2rem, 4vw, 4rem); }
.category-overview h2 { margin-block-end: 1rem; font-size: clamp(1.55rem, 2.6vw, 2.7rem); letter-spacing: -.04em; }
.category-overview__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.catalog-category-card { position: relative; min-height: 14rem; overflow: hidden; border-radius: .45rem; background: #2a2521; }
.catalog-category-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, #100e0ded, transparent 70%); }
.catalog-category-card img { height: 100%; aspect-ratio: 1.5; object-fit: cover; transition: transform .25s ease; }
.catalog-category-card:hover img { transform: scale(1.04); }
.catalog-category-card > span { position: absolute; z-index: 1; inset: auto 1rem 1rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.catalog-category-card strong { font-size: clamp(1.35rem, 2vw, 2.2rem); }
.catalog-category-card small { color: var(--accent); white-space: nowrap; }

.product-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.5vw, 1.4rem); }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #383532; border-radius: .45rem; background: var(--catalog-card); }
.product-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.42; background: #e6e1dc; }
.product-card__image img { height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-card:hover .product-card__image img { transform: scale(1.035); }
.product-card__image span { position: absolute; inset: .7rem .7rem auto auto; padding: .35rem .55rem; border-radius: 999px; color: #19130d; background: #ff9f20e8; font-size: .72rem; font-weight: 800; }
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
.product-card__body > p { color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-card h2 { margin-block: .35rem .9rem; font-size: clamp(1.5rem, 2vw, 2.2rem); letter-spacing: -.04em; }
.product-card dl { display: grid; gap: .65rem; margin: 0; }
.product-card dl div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: .7rem; }
.product-card dt { color: #9e9994; font-size: .8rem; }
.product-card dd { margin: 0; color: #d7d2cc; font-size: .84rem; line-height: 1.4; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-block-start: auto; padding-block-start: 1rem; }
.product-card__footer strong { font-size: .96rem; }
.product-card__footer a { color: var(--accent); font-weight: 700; }
.product-card__footer a:hover { color: #ffc469; }

.search-result-note { display: flex; justify-content: space-between; gap: 1rem; margin-block-end: 1rem; padding: .9rem 1rem; border: 1px solid #45413d; border-radius: .35rem; background: #201f1e; }
.search-result-note a { color: var(--accent); }
.empty-catalog { padding: clamp(3rem, 8vw, 8rem) 1rem; text-align: center; }
.empty-catalog h2 { font-size: 2rem; }
.empty-catalog p { margin-block: .7rem 1.4rem; color: var(--muted); }
.secondary-button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .75rem 1.1rem; border: 1px solid var(--accent); border-radius: .35rem; color: var(--accent); font-weight: 800; }
.secondary-button:hover { color: #17120a; background: var(--accent); }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(19rem, .76fr); gap: clamp(1.2rem, 3vw, 3.2rem); align-items: start; }
.product-gallery__main { overflow: hidden; border-radius: .45rem; background: var(--catalog-cream); }
.product-gallery__main img { aspect-ratio: 1.5; object-fit: cover; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .45rem; margin-block-start: .6rem; }
.gallery-thumb { min-width: 0; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: .3rem; background: #dfdad4; cursor: pointer; }
.gallery-thumb img { height: 100%; aspect-ratio: 1.4; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.is-active { border-color: var(--accent); }
.gallery-thumb:focus-visible { outline-offset: 2px; }

.product-summary { position: sticky; top: 5rem; padding: clamp(1rem, 2.5vw, 2rem); border: 1px solid #3c3936; border-radius: .45rem; background: #1d1c1b; }
.product-summary__category { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-summary h1 { margin-block: .3rem .5rem; font-size: clamp(2.6rem, 5.2vw, 5.6rem); letter-spacing: -.065em; line-height: .92; }
.product-summary__article { color: #918c87; font-size: .82rem; }
.price-request { margin-block: 1.25rem .4rem; font-size: clamp(1.4rem, 2.3vw, 2.3rem); font-weight: 900; }
.availability-note { padding: .8rem; border-left: 3px solid var(--accent); color: #c9c4bf; background: #26221d; font-size: .88rem; line-height: 1.45; }
.color-picker { margin-block: 1.35rem; }
.color-picker__heading { display: flex; justify-content: space-between; gap: 1rem; margin-block-end: .7rem; }
.color-picker__heading span { color: #9e9994; }
.color-picker__options { display: flex; flex-wrap: wrap; gap: .55rem; }
.color-swatch { display: grid; width: 2.65rem; height: 2.65rem; padding: .24rem; place-items: center; border: 1px solid #6d6761; border-radius: 50%; background: transparent; cursor: pointer; }
.color-swatch span { display: block; width: 100%; height: 100%; border: 1px solid #ffffff3b; border-radius: 50%; background: var(--swatch); }
.color-swatch[aria-pressed="true"] { border: 3px solid var(--accent); }
.product-highlights { display: grid; gap: .8rem; margin: 1.35rem 0 0; }
.product-highlights div { padding-block-start: .8rem; border-top: 1px solid #3d3935; }
.product-highlights dt { margin-block-end: .3rem; color: #96918c; font-size: .78rem; text-transform: uppercase; }
.product-highlights dd { margin: 0; color: #ded9d3; line-height: 1.45; }
.product-highlights small { display: block; color: var(--accent); }

.product-information { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 5rem); margin-block-start: clamp(2.5rem, 6vw, 6rem); }
.product-information h2 { margin-block-end: 1rem; font-size: clamp(1.7rem, 3vw, 3.2rem); letter-spacing: -.045em; }
.product-information > div:first-child > p:last-child { max-width: 62ch; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.spec-list { margin: 0; border-top: 1px solid #4a4642; }
.spec-list div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-block: .85rem; border-bottom: 1px solid #393633; }
.spec-list dt { color: #9d9892; }
.spec-list dd { margin: 0; line-height: 1.5; }
.catalog-next-step { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-block-start: clamp(2.5rem, 5vw, 5rem); padding: clamp(1.2rem, 2.5vw, 2.25rem); border-radius: .45rem; color: #23170b; background: var(--accent); }
.catalog-next-step p { max-width: 70ch; line-height: 1.5; }
.catalog-next-step .secondary-button { flex: 0 0 auto; border-color: #24170a; color: #24170a; }
.catalog-next-step .secondary-button:hover { color: var(--text); background: #24170a; }

@media (max-width: 1100px) {
    .product-list, .category-overview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail { grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr); }
    .product-gallery__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .catalog-category-nav { top: 0; }
    .catalog-hero { grid-template-columns: 1fr; }
    .catalog-hero__metric { width: 6rem; }
    .project-banner { grid-template-columns: 1fr; }
    .product-detail, .product-information { grid-template-columns: 1fr; }
    .product-summary { position: static; }
    .product-gallery__thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: .3rem; }
    .gallery-thumb { flex: 0 0 28%; scroll-snap-align: start; }
    .catalog-next-step { align-items: stretch; flex-direction: column; }
}

@media (max-width: 540px) {
    .product-list, .category-overview__grid { grid-template-columns: 1fr; }
    .catalog-category-card { min-height: 12rem; }
    .product-card dl div { grid-template-columns: 4.2rem minmax(0, 1fr); }
    .product-gallery__main img { aspect-ratio: 1.2; }
    .gallery-thumb { flex-basis: 38%; }
    .spec-list div { grid-template-columns: 1fr; gap: .3rem; }
    .search-result-note { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .product-card__image img, .catalog-category-card img { transition: none; }
}
