.catalog-detail {
    --detail-blue: #0875ea;
    --detail-navy: #082b5b;
    --detail-ink: #183b61;
    --detail-muted: #667d94;
    --detail-line: #d8e5f1;
    color: var(--detail-ink);
    background: radial-gradient(circle at 72% 5%, rgba(66,157,255,.08), transparent 25%), linear-gradient(180deg,#fbfdff 0,#f7fbff 72%,#fff 100%);
}

.catalog-detail .marketplace-shell { width: min(1380px, calc(100% - 40px)); }
.catalog-detail__hero { padding: 18px 0 40px; }
.catalog-breadcrumb { margin-bottom: 16px; display: flex; align-items: center; gap: 9px; color: #8092a5; font-size: 12px; white-space: nowrap; }
.catalog-breadcrumb a { color: #4d6d89; text-decoration: none; transition: color .18s ease; }
.catalog-breadcrumb a:hover { color: var(--detail-blue); }
.catalog-breadcrumb i { font-size: 8px; }
.catalog-breadcrumb span { overflow: hidden; text-overflow: ellipsis; }

.catalog-detail__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(480px,.8fr); align-items: start; gap: clamp(34px,3.5vw,56px); }
.catalog-detail__gallery { min-width: 0; }
.catalog-detail__media-wrap { position: relative; width: 100%; max-width: 760px; }
.catalog-detail__media { position: relative; width: 100%; min-height: 0; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid #cfdfee; border-radius: 17px; background: #eef6fd; display: grid; place-items: center; box-shadow: 0 12px 34px rgba(17,67,116,.08); scroll-margin-top: 100px; }
.catalog-detail__media::after { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); pointer-events: none; content: ""; }
.catalog-detail__media > img, .catalog-detail__media > video { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #fff; }
.catalog-detail__media video { background: #07192d; }
.catalog-detail__gallery-nav { position: absolute; z-index: 5; top: 50%; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(202,220,236,.95); border-radius: 50%; color: #0b63c7; background: rgba(255,255,255,.94); display: grid; place-items: center; font-size: 16px; box-shadow: 0 8px 22px rgba(17,65,110,.13); cursor: pointer; transform: translateY(-50%); transition: transform .18s ease,background .18s ease,color .18s ease; backdrop-filter: blur(8px); }
.catalog-detail__gallery-nav:hover { color: #fff; background: var(--detail-blue); transform: translateY(-50%) scale(1.05); }
.catalog-detail__gallery-nav:focus-visible { outline: 3px solid rgba(8,117,234,.22); outline-offset: 2px; }
.catalog-detail__gallery-nav.is-prev { left: 14px; }
.catalog-detail__gallery-nav.is-next { right: 14px; }
.catalog-detail__thumbs { margin-top: 11px; padding: 3px 2px; overflow-x: auto; display: flex; gap: 10px; scrollbar-width: thin; }
.catalog-detail__thumb { position: relative; width: 76px; height: 76px; flex: 0 0 76px; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: #e8f3fc; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.catalog-detail__thumb.is-active { border-color: var(--detail-blue); box-shadow: 0 0 0 2px rgba(8,117,234,.1); }
.catalog-detail__thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.catalog-detail__thumb span { position: absolute; inset: 0; color: #fff; background: linear-gradient(145deg,#0b2f59,#07192f); display: grid; place-content: center; gap: 2px; text-align: center; font-size: 22px; }
.catalog-detail__thumb span small { font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

/* Professional product preview shown until real gallery media is uploaded. */
.catalog-preview { position: absolute; inset: 0; padding: 16px; overflow: hidden; background: linear-gradient(145deg,#eaf4fd,#f8fbff); display: grid; place-items: center; }
.catalog-preview__window { position: relative; z-index: 1; width: 100%; height: 100%; overflow: hidden; border: 1px solid #d2e0ec; border-radius: 13px; background: #fff; box-shadow: 0 15px 34px rgba(18,68,116,.12); }
.catalog-preview__bar { height: 34px; padding: 0 11px; border-bottom: 1px solid #e7eef5; background: #f8fbfe; display: flex; align-items: center; gap: 5px; }
.catalog-preview__bar > i { width: 6px; height: 6px; border-radius: 50%; background: #c7d5e2; }
.catalog-preview__bar > i:first-child { background: #ff8580; }
.catalog-preview__bar > i:nth-child(2) { background: #f9c85f; }
.catalog-preview__bar > i:nth-child(3) { background: #58cf97; }
.catalog-preview__address { width: 44%; height: 18px; margin-left: 8px; padding: 0 8px; border-radius: 5px; color: #7890a6; background: #edf3f8; display: flex; align-items: center; gap: 5px; font-size: 8.5px; }
.catalog-preview__canvas { height: calc(100% - 34px); min-height: 420px; padding: 17px 20px; background: linear-gradient(145deg,#fff,#f6faff); }
.catalog-preview__nav { display: flex; align-items: center; gap: 7px; }
.catalog-preview__logo { width: 28px; height: 28px; border-radius: 8px; color: #fff; background: linear-gradient(145deg,#0b8bf2,#0756c7); display: grid; place-items: center; font-size: 12px; }
.catalog-preview__nav-line { width: 42px; height: 5px; border-radius: 9px; background: #d9e6f1; }
.catalog-preview__nav-line:first-of-type { margin-left: auto; }
.catalog-preview__nav-button { width: 62px; height: 20px; margin-left: 4px; border-radius: 6px; background: #0875ea; }
.catalog-preview__hero { padding: 53px 12px 40px; text-align: center; }
.catalog-preview__eyebrow { color: #0875ea; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.catalog-preview__hero strong { max-width: 450px; margin: 10px auto 0; overflow: hidden; color: #0a2f61; display: -webkit-box; font-size: clamp(25px,2.4vw,37px); line-height: 1.12; letter-spacing: -.045em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-preview__hero p { max-width: 410px; margin: 12px auto 0; overflow: hidden; color: #71889d; display: -webkit-box; font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-preview__cta { width: max-content; min-height: 34px; margin: 18px auto 0; padding: 0 15px; border-radius: 7px; color: #fff; background: linear-gradient(135deg,#0764d8,#078cf0); display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; box-shadow: 0 8px 18px rgba(8,117,234,.2); }
.catalog-preview__cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.catalog-preview__card { min-height: 78px; padding: 11px; border: 1px solid #deebf5; border-radius: 9px; background: #fff; box-shadow: 0 7px 18px rgba(24,78,128,.05); }
.catalog-preview__card i { width: 24px; height: 24px; border-radius: 7px; color: #0875ea; background: #eaf5ff; display: grid; place-items: center; font-size: 11px; }
.catalog-preview__card b, .catalog-preview__card span { display: block; border-radius: 8px; background: #dce8f2; }
.catalog-preview__card b { width: 70%; height: 5px; margin-top: 9px; }
.catalog-preview__card span { width: 92%; height: 4px; margin-top: 6px; opacity: .7; }
.catalog-preview__float { position: absolute; z-index: 2; right: 25px; bottom: 25px; padding: 10px 13px; border: 1px solid rgba(194,218,239,.9); border-radius: 10px; color: #254d72; background: rgba(255,255,255,.96); display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; box-shadow: 0 12px 26px rgba(23,72,121,.12); backdrop-filter: blur(10px); }
.catalog-preview__float i { width: 24px; height: 24px; border-radius: 7px; color: #fff; background: #11ad7b; display: grid; place-items: center; font-size: 11px; }

.catalog-detail__copy { padding-top: 1px; }
.catalog-detail__topline { min-height: 27px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.catalog-detail__category, .catalog-detail__badge { width: max-content; padding: 7px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; line-height: 1; }
.catalog-detail__category { color: #08775a; background: #e4f7ef; }
.catalog-detail__category i { width: 7px; height: 7px; border-radius: 50%; background: #14b47f; }
.catalog-detail__badge { color: #0a65c8; background: #eaf4ff; }
.catalog-detail h1 { max-width: 520px; margin: 13px 0 10px; color: var(--detail-navy); font-size: clamp(38px,3.25vw,50px); line-height: 1.05; letter-spacing: -.052em; text-wrap: balance; scroll-margin-top: 100px; }
.catalog-detail__lead { max-width: 560px; margin: 0; color: #5e758c; font-size: 15px; line-height: 1.68; }
.catalog-detail__quick-features { margin-top: 17px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.catalog-detail__quick-features span { min-height: 49px; padding: 10px 13px; border: 1px solid #d6e3ee; border-radius: 9px; color: #385878; background: rgba(255,255,255,.8); display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.catalog-detail__quick-features i { flex: 0 0 auto; color: #0bad79; font-size: 14px; }

.catalog-service-actions { margin-top: 13px; padding: 14px; border: 1px solid #cdddea; border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: 0 10px 26px rgba(15,63,109,.07); }
.catalog-service-actions__intro { margin-bottom: 12px; }
.catalog-service-actions__intro small, .catalog-service-actions__intro strong { display: block; }
.catalog-service-actions__intro small { color: #71869a; font-size: 11px; }
.catalog-service-actions__intro strong { margin-top: 3px; color: #102f5c; font-size: 20px; line-height: 1.25; }
.catalog-service-actions__intro p { margin: 4px 0 0; color: #8798a8; font-size: 11px; }
.catalog-service-actions__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.catalog-service-button { min-height: 68px; padding: 10px 11px; border: 1px solid #d7e4ee; border-radius: 9px; color: #315675; background: #fbfdff; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 9px; text-decoration: none; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.catalog-service-button:hover { border-color: #8fc3ef; background: #f2f9ff; transform: translateY(-1px); box-shadow: 0 7px 16px rgba(17,75,129,.07); }
.catalog-service-button:focus-visible { outline: 3px solid rgba(8,117,234,.2); outline-offset: 2px; }
.catalog-service-button > i:first-child { width: 36px; height: 36px; border-radius: 9px; color: #0874df; background: #e7f3ff; display: grid; place-items: center; font-size: 15px; }
.catalog-service-button strong, .catalog-service-button small { display: block; }
.catalog-service-button strong { font-size: 12.5px; line-height: 1.3; }
.catalog-service-button small { margin-top: 3px; color: #8295a6; font-size: 10px; line-height: 1.35; }
.catalog-service-button > i:last-child { color: #6f8aa1; font-size: 12px; }
.catalog-service-button.is-primary { border-color: #0874e3; color: #fff; background: linear-gradient(135deg,#0867d9,#078df0); box-shadow: 0 9px 20px rgba(8,113,224,.18); }
.catalog-service-button.is-primary > i:first-child { color: #fff; background: rgba(255,255,255,.16); }
.catalog-service-button.is-primary small, .catalog-service-button.is-primary > i:last-child { color: #d9ecff; }
.catalog-service-actions__status { width: max-content; margin: 12px auto 0; padding: 7px 12px; border-radius: 999px; color: #0a805e; background: #e4f7ef; font-size: 10.5px; font-weight: 800; }
.catalog-service-actions__status i { margin-right: 5px; }

.catalog-product-info { margin-top: 27px; padding: 0 14px 14px; border: 1px solid #d5e3ef; border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 12px 32px rgba(15,61,105,.06); }
.catalog-product-info__tabs { min-height: 50px; padding: 0 2px; overflow-x: auto; border-bottom: 1px solid #dde8f1; display: flex; align-items: stretch; gap: 34px; scrollbar-width: none; }
.catalog-product-info__tabs button { position: relative; min-width: max-content; padding: 0 18px; border: 0; color: #173c68; background: transparent; display: flex; align-items: center; font: 800 13px Manrope,sans-serif; cursor: pointer; }
.catalog-product-info__tabs button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 4px; background: var(--detail-blue); opacity: 0; content: ""; }
.catalog-product-info__tabs button:hover, .catalog-product-info__tabs button.is-active { color: var(--detail-blue); }
.catalog-product-info__tabs button:focus-visible { outline: 3px solid rgba(8,117,234,.18); outline-offset: -4px; border-radius: 8px; }
.catalog-product-info__tabs button.is-active::after { opacity: 1; }
.catalog-product-info__panel { min-height: 170px; padding: 22px 4px 4px; }
.catalog-product-info__panel[hidden] { display: none!important; }
.catalog-product-info__grid { display: grid; grid-template-columns: minmax(280px,1.15fr) repeat(2,minmax(210px,.85fr)); gap: 16px; }
.catalog-product-info h2 { margin: 0 0 12px; color: #17365f; font-size: 15px; }
.catalog-product-info__description { max-width: 920px; padding: 4px 3px 0; }
.catalog-product-info__description p { margin: 0; color: #526c85; font-size: 13px; line-height: 1.75; white-space: pre-line; }
.catalog-product-info__description p + p { margin-top: 9px; }
.catalog-info-card { min-height: 218px; padding: 16px; border: 1px solid #dbe6ef; border-radius: 11px; background: #fff; }
.catalog-info-card ul { margin: 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.catalog-info-card li { color: #405d78; display: flex; align-items: center; gap: 8px; font-size: 11.5px; line-height: 1.4; }
.catalog-info-card li i { color: #4d74a0; font-size: 12px; }
.catalog-info-card ul.is-benefits li i { color: #0bad79; }
.catalog-info-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.catalog-info-features span { min-height: 82px; padding: 10px 7px; border: 1px solid #e0e9f1; border-radius: 9px; background: #fbfdff; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 7px; text-align: center; }
.catalog-info-features i { width: 30px; height: 30px; border-radius: 8px; color: #0875ea; background: #e9f4ff; display: grid; place-items: center; font-size: 14px; }
.catalog-info-features b { color: #34536f; font-size: 10.5px; line-height: 1.4; }

.catalog-related { padding: 64px 0 82px; border-top: 1px solid #e3ecf4; background: #fff; }
.catalog-related__head { margin-bottom: 25px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.catalog-related__head h2 { margin: 0; color: var(--detail-navy); font-size: 28px; letter-spacing: -.04em; }
.catalog-related__head a { color: #0873df; font-size: 13px; font-weight: 800; text-decoration: none; }
.catalog-related__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.catalog-related__card { padding: 22px; border: 1px solid #d9e5f0; border-radius: 15px; background: #fff; text-decoration: none; transition: .2s; }
.catalog-related__card:hover { transform: translateY(-3px); border-color: #9ecbf0; box-shadow: 0 16px 34px rgba(13,73,132,.08); }
.catalog-related__card span { color: #0875ea; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.catalog-related__card h3 { margin: 10px 0 8px; color: #123962; font-size: 17px; }
.catalog-related__card p { margin: 0; color: #6a8094; font-size: 12.5px; line-height: 1.7; }

@media (max-width: 1120px) {
    .catalog-detail__grid { grid-template-columns: 1fr; }
    .catalog-detail__media-wrap { max-width: 760px; }
    .catalog-detail__copy { max-width: 760px; }
    .catalog-product-info__grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 760px) {
    .catalog-detail .marketplace-shell { width: min(100% - 28px,1380px); }
    .catalog-detail__hero { padding-top: 14px; }
    .catalog-breadcrumb { overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
    .catalog-detail__grid { gap: 26px; }
    .catalog-detail__media { min-height: 0; }
    .catalog-detail__media > img, .catalog-detail__media > video { min-height: 0; }
    .catalog-preview { padding: 10px; }
    .catalog-preview__canvas { min-height: 0; padding: 13px; }
    .catalog-preview__hero { padding: 28px 5px 20px; }
    .catalog-preview__hero strong { font-size: 25px; }
    .catalog-preview__cards { gap: 6px; }
    .catalog-preview__card { min-height: 58px; padding: 7px; }
    .catalog-preview__float { right: 16px; bottom: 16px; }
    .catalog-detail__gallery-nav { width: 38px; height: 38px; }
    .catalog-detail__gallery-nav.is-prev { left: 9px; }
    .catalog-detail__gallery-nav.is-next { right: 9px; }
    .catalog-detail h1 { font-size: clamp(35px,10.5vw,44px); }
    .catalog-detail__quick-features { grid-template-columns: 1fr; }
    .catalog-service-actions__grid { grid-template-columns: 1fr; }
    .catalog-product-info { padding-inline: 11px; }
    .catalog-product-info__tabs { gap: 6px; }
    .catalog-product-info__tabs button { padding-inline: 13px; }
    .catalog-product-info__grid { grid-template-columns: 1fr; }
    .catalog-product-info__panel { min-height: 0; padding-top: 18px; }
    .catalog-info-card { min-height: auto; }
    .catalog-related__head { align-items: flex-start; flex-direction: column; }
    .catalog-related__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-service-button, .catalog-related__card { transition: none; }
}
