:root {
  --catalog-ink: #222;
  --catalog-muted: #77736c;
  --catalog-paper: #faf8f3;
  --catalog-line: #ddd8cf;
  --catalog-accent: #8a6f55;
}

html { overflow-x: clip; }
.catalog-body { min-width: 320px; overflow-x: hidden; background: var(--catalog-paper); }
.catalog-body button, .catalog-body input { font: inherit; }
.catalog-body .top-bar { height: 40px; }
.catalog-body .header { position: sticky; top: 0; height: 70px; margin: 0; background: rgba(255, 255, 255, .96); }
.catalog-body .brand-logo { left: 60px; top: 50%; width: 180px; }
.catalog-body .footer { margin-top: 0; }

.catalog-hero {
  position: relative;
  height: min(620px, 65vh);
  min-height: 430px;
  overflow: hidden;
  background: #b8afa2;
}

.catalog-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: catalogReveal 1.2s ease both;
}

.catalog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .08) 64%, transparent);
}

.catalog-hero-copy {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

.catalog-hero-copy p { margin-bottom: 22px; font-size: 12px; letter-spacing: 5px; }
.catalog-hero-copy h1 {
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5.4vw, 88px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 1px;
}

@keyframes catalogReveal {
  from { opacity: .45; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

.catalog-body .breadcrumb { height: 56px; background: #f4f1eb; }

.catalog-intro {
  max-width: 940px;
  margin: 0 auto;
  padding: 110px 30px 85px;
  text-align: center;
}

.eyebrow { color: var(--catalog-accent); font-size: 11px; letter-spacing: 4px; }
.catalog-intro h2 { margin: 22px 0 25px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4vw, 58px); font-weight: 400; }
.catalog-lead { max-width: 720px; margin: 0 auto; color: var(--catalog-muted); font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.8; }

.catalog-section { padding: 0 5.5% 120px; }
.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 23px 0;
  border-top: 1px solid var(--catalog-line);
  border-bottom: 1px solid var(--catalog-line);
}

.filter-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.filter-chip {
  position: relative;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: #777;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  white-space: nowrap;
}
.filter-chip::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: #222; transition: right .25s ease; }
.filter-chip:hover, .filter-chip.active { color: #111; }
.filter-chip.active::after { right: 0; }

.catalog-search {
  flex: 0 0 285px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 10px;
  border-bottom: 1px solid #888;
}
.catalog-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #222; font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.catalog-search input::placeholder { color: #999; }

.catalog-meta { display: flex; justify-content: space-between; align-items: center; min-height: 74px; color: #7b776f; font-size: 12px; letter-spacing: 1.5px; }
.catalog-meta button { border: 0; border-bottom: 1px solid #777; background: transparent; color: #555; font-size: 10px; letter-spacing: 2px; }

.offline-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 30px; }
.offline-product-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--catalog-ink);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(33, 27, 21, .05);
  transition: transform .35s ease, box-shadow .35s ease;
}
.offline-product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(33, 27, 21, .12); }
.offline-product-image { position: relative; display: block; aspect-ratio: 1 / 1.04; overflow: hidden; background: #eeeae4; }
.offline-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease, opacity .25s ease; }
.offline-product-card:hover .offline-product-image img { transform: scale(1.035); }
.offline-product-image::after { content: "VIEW DETAILS"; position: absolute; right: 18px; bottom: 18px; padding: 10px 15px; background: rgba(255,255,255,.92); color: #222; font-size: 9px; letter-spacing: 2px; opacity: 0; transform: translateY(8px); transition: .3s ease; }
.offline-product-card:hover .offline-product-image::after { opacity: 1; transform: translateY(0); }
.offline-product-info { display: block; min-height: 122px; padding: 25px 24px 28px; text-align: center; }
.offline-product-info p { margin-bottom: 11px; color: var(--catalog-accent); font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; }
.offline-product-info h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; line-height: 1.4; letter-spacing: .4px; }

.catalog-empty { grid-column: 1 / -1; padding: 100px 30px; border: 1px solid var(--catalog-line); text-align: center; color: #777; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.catalog-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; padding-top: 75px; }
.catalog-page {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--catalog-line);
  background: transparent;
  color: #555;
  font-size: 12px;
  transition: .2s ease;
}
.catalog-page:hover, .catalog-page.active { border-color: #111; background: #111; color: #fff; }
.catalog-page:disabled { opacity: .35; pointer-events: none; }

.product-dialog {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 35px;
  background: rgba(16, 14, 12, .76);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.product-dialog.open { opacity: 1; visibility: visible; }
.dialog-shell { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); width: min(1250px, 94vw); max-height: 90vh; overflow: auto; background: #f9f7f2; box-shadow: 0 25px 90px rgba(0,0,0,.3); transform: translateY(15px); transition: transform .3s ease; }
.product-dialog.open .dialog-shell { transform: translateY(0); }
.dialog-close { position: fixed; top: 22px; right: 28px; z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: transparent; color: #fff; font-size: 30px; font-weight: 200; line-height: 1; }
.dialog-gallery { padding: 24px; background: #efebe4; }
.dialog-gallery > img { width: 100%; height: min(680px, 70vh); object-fit: contain; background: #e4dfd8; }
.dialog-thumbs { display: flex; gap: 10px; margin-top: 13px; overflow-x: auto; }
.dialog-thumb { flex: 0 0 78px; width: 78px; height: 78px; padding: 0; border: 2px solid transparent; background: #ddd; }
.dialog-thumb.active { border-color: #111; }
.dialog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dialog-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px 55px; }
.dialog-copy h2 { margin: 22px 0 16px; text-align: left; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 48px); font-weight: 400; line-height: 1.15; }
.dialog-copy > p:not(.eyebrow) { color: #777; line-height: 1.8; }
.dialog-rule { width: 48px; height: 1px; margin: 32px 0; background: #999; }
.dialog-contact { align-self: flex-start; margin-top: 36px; padding: 16px 28px; border: 1px solid #111; background: #111; color: #fff; font-size: 10px; letter-spacing: 2.5px; }

.offline-notice { position: fixed; left: 50%; bottom: 25px; z-index: 30000; max-width: calc(100vw - 40px); padding: 13px 20px; background: #111; color: #fff; font-size: 12px; letter-spacing: 1px; opacity: 0; visibility: hidden; transform: translate(-50%, 15px); transition: .25s ease; }
.offline-notice.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.catalog-top { position: fixed; right: 25px; bottom: 25px; z-index: 1000; width: 46px; height: 46px; border: 1px solid #ddd; border-radius: 50%; background: rgba(255,255,255,.94); color: #222; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s ease; }
.catalog-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 1180px) {
  .catalog-body .header-actions { display: none; }
  .catalog-body .stone-nav { right: 30px; left: auto; transform: none; gap: 35px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-search { flex-basis: auto; width: min(100%, 420px); }
}

@media (max-width: 900px) {
  .catalog-body .header { height: 64px; padding: 0 20px; }
  .catalog-body .brand-logo { left: 20px; width: 118px; }
  .catalog-body .stone-nav { position: static; display: flex; margin-left: auto; gap: 20px; }
  .catalog-body .stone-nav > a { display: none !important; }
  .catalog-body .stone-products > .stone-link { display: flex !important; }
  .catalog-hero { height: 55vh; min-height: 390px; }
  .catalog-hero-copy { left: 7%; right: 7%; }
  .catalog-intro { padding: 80px 24px 65px; }
  .catalog-section { padding: 0 24px 90px; }
  .offline-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .dialog-shell { grid-template-columns: 1fr; }
  .dialog-gallery > img { height: min(55vh, 560px); }
  .dialog-copy { padding: 45px 35px; }
}

@media (max-width: 600px) {
  .catalog-body .stone-products > .stone-link { display: flex !important; font-size: 12px; }
  .catalog-hero { min-height: 350px; }
  .catalog-hero-copy h1 { font-size: 41px; }
  .catalog-intro h2 { font-size: 38px; }
  .catalog-lead { font-size: 16px; }
  .filter-row { max-height: 104px; overflow-y: auto; }
  .catalog-meta { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; }
  .catalog-section { padding-right: 12px; padding-left: 12px; }
  .offline-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .offline-product-info { min-height: 94px; padding: 15px 10px 17px; }
  .offline-product-info p { margin-bottom: 7px; font-size: 8px; letter-spacing: 1.4px; }
  .offline-product-info h2 { font-size: 14px; line-height: 1.3; }
  .product-dialog { padding: 0; }
  .dialog-shell { width: 100%; max-height: 100vh; min-height: 100vh; }
  .dialog-close { top: 12px; right: 12px; background: rgba(0,0,0,.55); }
  .dialog-gallery { padding: 12px; }
  .dialog-gallery > img { height: 52vh; }
  .dialog-copy { padding: 36px 24px 50px; }
  .catalog-top { right: 14px; bottom: 14px; }
}
