/* =====================================================================
   Payeshco — Catalog Hub & Product Detail
   ===================================================================== */

[x-cloak] {
    display: none !important;
}

/* ----- Catalog hero ----- */
.catalog-hero {
    position: relative;
    min-height: clamp(380px, 52vh, 580px);
    display: flex;
    align-items: flex-end;
    padding-block: calc(var(--header-height) + 2rem) 3.5rem;
    background: #012169;
    color: #fff;
    text-align: start;
    overflow: hidden;
}

.catalog-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.catalog-hero .section__eyebrow {
    color: #fff;
}

.catalog-hero .section__eyebrow::before {
    background: var(--c-red, #C8102E);
}

.catalog-hero__title {
    font-size: clamp(1.6rem, 3.8vw, 2.4rem);
    font-weight: 900;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 0.75rem;
}

.catalog-hero__lead {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 40rem;
    line-height: 1.8;
}

/* ----- Catalog layout ----- */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding-block: 2rem 4rem;
}

[dir="ltr"] .catalog-layout {
    grid-template-columns: 1fr 280px;
}

.catalog-layout__sidebar {
    order: -1;
}

[dir="ltr"] .catalog-layout__sidebar {
    order: 1;
}

/* ----- Filter sidebar ----- */
.catalog-filter {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    background: var(--c-black-2);
    border: 1px solid var(--c-border);
    padding: 1.2rem;
}

[dir="ltr"] .catalog-filter {
}

.catalog-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--c-border);
}

.catalog-filter__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--c-offwhite);
    margin: 0;
}

.catalog-filter__clear {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--c-red);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.45rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: color 0.2s ease, background 0.2s ease;
}

.catalog-filter__clear:hover {
    color: var(--c-heading);
    background: var(--c-red-light);
}

.catalog-filter__count {
    font-size: 0.78rem;
    color: var(--c-text-muted);
    margin-bottom: 1rem;
}

.catalog-search {
    margin-bottom: 1rem;
}

.catalog-search__input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--c-heading);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-search__input:focus {
    outline: none;
    border-color: rgba(var(--c-blue-rgb), 0.35);
    box-shadow: 0 0 0 3px rgba(var(--c-blue-rgb), 0.08);
}

.filter-group {
    border-bottom: 1px solid var(--c-border);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 0;
    background: none;
    border: none;
    color: var(--c-offwhite);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: start;
}

.filter-group__toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.filter-group__toggle.is-open svg {
    transform: rotate(180deg);
}

.filter-group__body {
    display: none;
    gap: 0.45rem;
    padding-bottom: 0.85rem;
}

.filter-group.is-open .filter-group__body {
    display: grid;
}

.filter-group__heading {
    margin: 0.75rem 0 0.35rem;
    padding-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--c-blue, #012169);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.filter-group__heading:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.filter-branch {
    display: grid;
    gap: 0.35rem;
}

.filter-branch + .filter-branch {
    margin-top: 0.35rem;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: var(--c-text-muted);
    cursor: pointer;
}

.filter-check--parent {
    font-weight: 700;
    color: var(--c-heading, #012169);
}

.filter-check--child {
    font-size: 0.8rem;
    padding-inline-start: 0.35rem;
}

.filter-branch__children {
    display: grid;
    gap: 0.3rem;
    margin: 0.15rem 0 0.35rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: var(--c-bg-alt, #f5f7fb);
    border: 1px solid var(--c-border, rgba(1, 33, 105, 0.1));
}

.filter-branch__children[hidden] {
    display: none !important;
}

.filter-check input {
    accent-color: var(--c-wine-bright);
    width: 15px;
    height: 15px;
}

.filter-check:hover {
    color: var(--c-offwhite);
}

.filter-check--parent:hover {
    color: var(--c-blue-muted, #1a4d9e);
}

/* ----- Product grid ----- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.catalog-product.is-filter-hidden {
    display: none !important;
}

.product-grid__empty[hidden] {
    display: none !important;
}

.product-grid__empty {
    grid-column: 1 / -1;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--c-text-muted);
    background: var(--c-black-2);
    border: 1px dashed var(--c-border);
}

/* ----- Product card ----- */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    background: var(--c-black-2);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card--linked {
    cursor: pointer;
}

.product-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card:hover {
    border-color: rgba(200, 16, 46, 0.28);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card:hover .product-card__overlay {
    opacity: 1;
}

.product-card__action {
    display: inline-block;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--c-heading);
    background: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.product-card__action:hover {
    background: var(--c-bg-alt);
    color: var(--c-heading);
}

.product-card__action--outline {
    color: #fff;
    background: transparent;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.product-card__action--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem 1.2rem;
}

.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 1.35rem;
    margin-bottom: 0.5rem;
}

.product-card__tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-wine-glow);
    padding: 0.2rem 0.45rem;
    border: 1px solid rgba(200, 16, 46, 0.35);
}

.product-card__title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.95rem * 1.45 * 3);
}

.product-card__title a {
    color: var(--c-offwhite);
    text-decoration: none;
}

.product-card__title a:hover {
    color: var(--c-wine-glow);
}

.product-card__category,
.product-card__dept {
    font-size: 0.72rem;
    color: var(--c-text-muted);
}

.product-card__download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-red);
    background: var(--c-red-light);
    border: 1px solid rgba(200, 16, 46, 0.2);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.product-card__download:hover {
    background: var(--c-red);
    color: #fff;
}

.product-card__download svg {
    flex-shrink: 0;
}

/* ----- Product detail page (redesign) ----- */
.product-page {
    background: var(--c-bg);
}

.product-page__hero {
    padding-block: calc(var(--header-height) + 1.25rem) 2rem;
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
}

.product-page__hero-inner {
    max-width: 920px;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--c-text-muted);
}

.product-breadcrumb a {
    color: var(--c-blue-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: var(--c-red);
}

.product-breadcrumb__current {
    color: var(--c-text);
}

.product-breadcrumb__sep {
    opacity: 0.45;
    user-select: none;
}

.product-page__eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.product-page__title {
    font-size: clamp(1.55rem, 3.5vw, 2.35rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--c-heading);
    margin: 0 0 0.85rem;
}

.product-page__lead {
    margin: 0;
    max-width: 52rem;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--c-text-muted);
}

.product-page__main {
    padding-block: 2rem 3rem;
}

.product-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 26rem) minmax(280px, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
}

.product-page__grid .product-gallery--page {
    width: 100%;
    max-width: 26rem;
}

.product-gallery__main--page {
    position: relative;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.65rem;
    box-shadow: var(--c-shadow);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-gallery__main--page:hover {
    border-color: rgba(200, 16, 46, 0.22);
    box-shadow: var(--c-shadow-hover);
}

.product-gallery__main--page img {
    width: 100%;
    max-height: min(22rem, 52vw);
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 0.65rem;
    box-sizing: border-box;
    background: var(--c-bg-alt);
}

.product-gallery__thumbs--page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 0.45rem;
    max-width: 26rem;
}

.product-gallery__thumbs--page .product-gallery__thumb {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-gallery__thumbs--page .product-gallery__thumb.is-active,
.product-gallery__thumbs--page .product-gallery__thumb:hover {
    opacity: 1;
    border-color: rgba(200, 16, 46, 0.45);
    box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.12);
}

.product-gallery__thumbs--page .product-gallery__thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 0.2rem;
    box-sizing: border-box;
    background: var(--c-bg-alt);
}

.product-page__aside-card {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    padding: 1.35rem 1.35rem 1.5rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--c-shadow);
}

.product-page__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.product-info__sku {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--c-blue-muted);
}

.product-info__status,
.product-page__status {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--c-red);
    background: var(--c-red-light);
    border: 1px solid rgba(200, 16, 46, 0.18);
    border-radius: 999px;
}

.product-info__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--c-heading);
    margin: 0 0 0.75rem;
}

.product-info__summary {
    color: var(--c-text-muted);
    line-height: 1.8;
    margin: 0 0 1.5rem;
}

.product-info__tags,
.product-page__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.product-page__description {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--c-text);
}

.product-page__actions {
    display: grid;
    gap: 0.65rem;
}

.product-page__actions--pdf {
    margin-top: 0.25rem;
}

.product-page__engineering {
    background: var(--c-bg-alt);
    color: var(--c-text);
    padding-block: clamp(2.5rem, 6vw, 4rem);
    border-top: 1px solid var(--c-border);
}

.product-page__specs-heading {
    margin: 1.5rem auto 1.25rem;
    max-width: 920px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-blue-muted);
}

.product-page__quote-block {
    padding-block: 2.5rem 2rem;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
}

.product-page__quote-inner {
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.product-page__quote-hint {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--c-text-muted);
}

.product-page__related {
    padding-block: 2.5rem 4rem;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg-alt);
}

.product-page__cta {
    width: 100%;
    justify-content: center;
}

.product-page__cta.shape-btn--download .download-icon {
    animation: download-bounce 1.6s ease-in-out infinite;
}

@keyframes download-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Legacy action hub (related cards on old pages) */
.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.product-action-hub {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    margin-block-start: 2rem;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    padding: 1.5rem;
}

.product-action-hub__actions {
    display: grid;
    gap: 0.75rem;
}

/* ----- Engineering / tabs ----- */
.product-page__engineering.product-tabs {
    background: var(--c-bg-alt);
    color: var(--c-text);
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    border-top: 1px solid var(--c-border);
}

.product-tabs .section__title {
    color: var(--c-heading);
}

.product-tabs__nav--pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-block: 1.75rem 2rem;
    border-bottom: none;
}

.product-tabs__nav--pills .product-tabs__btn {
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: var(--c-bg);
    color: var(--c-text-muted);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.88rem;
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.product-tabs__nav--pills .product-tabs__btn::after {
    display: none;
}

.product-tabs__nav--pills .product-tabs__btn.is-active {
    color: var(--c-heading);
    background: #fff;
    border-color: rgba(200, 16, 46, 0.35);
    box-shadow: var(--c-shadow);
}

.product-tabs__nav--pills .product-tabs__btn:hover:not(.is-active) {
    border-color: rgba(1, 33, 105, 0.2);
    color: var(--c-heading);
}

.product-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-block: 1.5rem 2rem;
    border-bottom: 2px solid #ddd;
    position: relative;
}

.product-tabs__btn {
    position: relative;
    padding: 0.85rem 1.4rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777;
    cursor: pointer;
    transition: color 0.2s ease;
}

.product-tabs__btn::after {
    content: "";
    position: absolute;
    inset-block-end: -2px;
    inset-inline: 0;
    height: 3px;
    background: var(--c-wine-bright);
    transform: scaleX(0) skewX(-12deg);
    transition: transform 0.25s ease;
}

.product-tabs__btn.is-active {
    color: var(--c-wine);
}

.product-tabs__btn.is-active::after {
    transform: scaleX(1) skewX(-12deg);
}

.product-tabs__panel {
    display: none;
}

.product-tabs__panel.is-active {
    display: block;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
}

.spec-grid__item {
    margin: 0;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--c-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.spec-grid__item:hover {
    border-color: rgba(1, 33, 105, 0.14);
    box-shadow: var(--c-shadow-hover);
}

.spec-grid__item dt {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--c-red);
}

.spec-grid__item dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--c-heading);
}

.product-page__install {
    max-width: 48rem;
    margin-inline: auto;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--c-shadow);
}

.related-products--page {
    margin-top: 0.25rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2ddd4;
}

.spec-table th,
.spec-table td {
    padding: 0.75rem 1rem;
    text-align: start;
    border-bottom: 1px solid #ece8e0;
    font-size: 0.88rem;
}

.spec-table th {
    width: 35%;
    color: var(--c-wine);
    font-weight: 800;
    background: #faf8f5;
}

.spec-table td {
    color: #444;
}

.product-tabs__text {
    color: var(--c-text-muted);
    line-height: 1.85;
    max-width: 720px;
    margin-inline: auto;
    text-align: start;
}

.related-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* ----- Quote modal ----- */
body.modal-open {
    overflow: hidden;
}

.catalog-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(1, 33, 105, 0.45);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.catalog-modal[hidden] {
    display: none !important;
}

.catalog-modal__box {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--c-shadow-hover);
}

.catalog-modal__box::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--c-red) 0%, var(--c-blue) 100%);
}

.catalog-modal__dismiss {
    position: absolute;
    inset-block-start: 1rem;
    inset-inline-end: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.catalog-modal__dismiss:hover {
    color: var(--c-red);
    border-color: rgba(200, 16, 46, 0.25);
    background: var(--c-red-light);
}

.catalog-modal__dismiss svg {
    width: 16px;
    height: 16px;
}

.catalog-modal__head {
    padding: 1.5rem 1.5rem 1.1rem;
    padding-inline-end: 3.25rem;
    border-bottom: 1px solid var(--c-border);
    background: linear-gradient(180deg, var(--c-blue-soft) 0%, var(--c-bg) 100%);
}

.catalog-modal__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--c-red);
    margin-bottom: 0.35rem;
}

.catalog-modal__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--c-heading);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.catalog-modal__intro {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--c-text);
}

.catalog-modal__product-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--c-shadow);
}

.catalog-modal__sku {
    display: inline-block;
    width: fit-content;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--c-blue);
    background: var(--c-blue-soft);
    border-radius: var(--radius-sm);
}

.catalog-modal__product {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-heading);
    line-height: 1.55;
}

.catalog-modal__alert {
    margin: 0.85rem 1.5rem 0;
    padding: 0.7rem 0.9rem;
    font-size: 0.84rem;
    line-height: 1.55;
    border-radius: var(--radius-sm);
}

.catalog-modal__alert[hidden] {
    display: none !important;
}

.catalog-modal__alert--error {
    background: var(--c-red-light);
    border: 1px solid rgba(200, 16, 46, 0.2);
    color: #8b0d26;
}

.catalog-modal__alert--success {
    background: var(--c-blue-soft);
    border: 1px solid rgba(1, 33, 105, 0.15);
    color: var(--c-heading);
}

.catalog-modal__form {
    padding: 1.15rem 1.5rem 1.5rem;
}

.catalog-modal__form.is-success .catalog-modal__actions {
    opacity: 0.45;
    pointer-events: none;
}

.catalog-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.catalog-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.catalog-modal__field.has-error input,
.catalog-modal__field.has-error textarea {
    border-color: var(--c-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.catalog-modal__label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--c-heading);
}

.catalog-modal__required {
    font-style: normal;
    color: var(--c-red);
}

.catalog-modal__hint {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--c-text-muted);
    margin-top: -0.1rem;
}

.catalog-modal__notes-panel {
    padding: 1rem;
    margin-bottom: 0.25rem;
    background: var(--c-red-light);
    border: 1px solid rgba(200, 16, 46, 0.12);
    border-radius: var(--radius-md);
}

.catalog-modal__field--notes {
    margin-bottom: 0;
}

.catalog-modal__field input,
.catalog-modal__field textarea {
    width: 100%;
    padding: 0.72rem 0.9rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-modal__field--notes textarea {
    background: #fff;
    min-height: 120px;
    line-height: 1.65;
}

.catalog-modal__field textarea {
    resize: vertical;
    min-height: 72px;
}

.catalog-modal__field input::placeholder,
.catalog-modal__field textarea::placeholder {
    color: var(--c-text-muted);
    opacity: 0.85;
}

.catalog-modal__field input:focus,
.catalog-modal__field textarea:focus {
    outline: none;
    border-color: var(--c-blue-muted);
    box-shadow: 0 0 0 3px rgba(1, 33, 105, 0.08);
}

.catalog-modal__field--notes textarea:focus {
    border-color: var(--c-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.catalog-modal__error {
    font-size: 0.78rem;
    color: var(--c-red);
    line-height: 1.5;
}

.catalog-modal__error[hidden] {
    display: none !important;
}

.catalog-modal__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-block-start: 1rem;
    padding-block-start: 0.25rem;
}

.catalog-modal__close {
    background: none;
    border: none;
    color: var(--c-text-muted);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.45rem 0.2rem;
    transition: color 0.2s ease;
}

.catalog-modal__close:hover {
    color: var(--c-heading);
}

@media (max-width: 640px) {
    .catalog-modal__grid {
        grid-template-columns: 1fr;
    }

    .catalog-modal__head,
    .catalog-modal__form {
        padding-inline: 1.1rem;
    }

    .catalog-modal__alert {
        margin-inline: 1.1rem;
    }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .catalog-layout,
    [dir="ltr"] .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-layout__sidebar,
    [dir="ltr"] .catalog-layout__sidebar {
        order: 0;
    }

    .catalog-filter {
        position: static;
    }

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

    .product-detail__grid,
    .product-page__grid {
        grid-template-columns: 1fr;
    }

    .product-page__grid .product-gallery--page,
    .product-gallery__thumbs--page {
        max-width: min(100%, 22rem);
        margin-inline: auto;
    }

    .product-gallery__main--page img {
        max-height: min(18rem, 70vw);
    }

    .product-action-hub,
    .product-page__aside-card {
        position: static;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .related-products {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .product-grid,
    .related-products {
        grid-template-columns: 1fr;
    }

    .product-card__title {
        min-height: auto;
        -webkit-line-clamp: 2;
    }
}

/* ===== Catalog Downloads ===== */
.catalog-downloads__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.catalog-download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--c-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-download-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--c-shadow-hover);
}

.catalog-download-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-red-light);
    color: var(--c-red);
    border-radius: 12px;
}

.catalog-download-card__body {
    flex: 1;
    min-width: 0;
}

.catalog-download-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-heading);
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.catalog-download-card__category {
    font-size: 0.75rem;
    color: var(--c-text-muted);
}

.catalog-download-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.catalog-download-card__tag {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    background: var(--c-bg-alt);
    border-radius: 4px;
    color: var(--c-text-muted);
}

.catalog-download-card__view {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.catalog-download-card__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: var(--c-red);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.catalog-download-card__btn:hover {
    background: #a30d24;
    transform: translateY(-1px);
}

.catalog-download-card--stack {
    flex-direction: column;
    align-items: stretch;
}

.catalog-download-card--stack .catalog-download-card__body {
    width: 100%;
}

.catalog-download-card--stack .catalog-download-card__title,
.catalog-download-card--stack .catalog-download-card__summary {
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.catalog-download-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

@media (max-width: 640px) {
    .catalog-downloads__grid {
        grid-template-columns: 1fr;
    }

    .catalog-download-card {
        flex-wrap: wrap;
    }

    .catalog-download-card__btn {
        width: 100%;
        justify-content: center;
    }
}

/* Featured catalog (comprehensive) */
.featured-catalog {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #0f2d5e, #b91c1c);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15, 45, 94, 0.25);
}

.featured-catalog__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: #fff;
}

.featured-catalog__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.featured-catalog__desc {
    opacity: 0.85;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.featured-catalog__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #0f2d5e;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.featured-catalog__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
    .featured-catalog {
        padding: 2rem 1.25rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .featured-catalog__title {
        font-size: 1.2rem;
    }
    .featured-catalog__btn {
        width: 100%;
        justify-content: center;
    }
}
