:root {
    --catalog-navy: #102238;
    --catalog-navy-soft: #18324f;
    --catalog-red: #c82d23;
    --catalog-red-dark: #a91f18;
    --catalog-ink: #172231;
    --catalog-muted: #647184;
    --catalog-line: #dfe5eb;
    --catalog-surface: #f5f7f9;
    --catalog-warm: #fbfaf7;
}

body.products-page {
    background: var(--catalog-surface);
    color: var(--catalog-ink);
    font-family: "Be Vietnam Pro", sans-serif;
}

.products-page a { text-decoration: none; }

.catalog-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 70px;
    color: #fff;
    background:
        radial-gradient(circle at 83% 25%, rgba(218, 55, 43, .27), transparent 24rem),
        linear-gradient(120deg, #0e2034 0%, #173451 68%, #102238 100%);
}

.catalog-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .16;
    background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.catalog-hero .container { position: relative; z-index: 1; }
.catalog-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); gap: 72px; align-items: center; }
.catalog-hero-copy { min-width: 0; }
.catalog-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #ffb4ad; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.catalog-eyebrow::before { width: 34px; height: 2px; content: ""; background: var(--catalog-red); }
.catalog-hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.35rem, 4.2vw, 4.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
.catalog-hero p { max-width: 650px; margin: 22px 0 0; color: #d8e0e8; font-size: 1.05rem; line-height: 1.75; }
.catalog-hero-compact { padding: 58px 0 54px; }
.catalog-hero-compact h1 { font-size: clamp(2.1rem, 4vw, 3.65rem); }
.catalog-hero-compact p { margin-top: 16px; }
.catalog-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.catalog-hero-actions a { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border-radius: 9px; font-size: .83rem; font-weight: 800; }
.catalog-hero-primary { color: #fff; background: var(--catalog-red); box-shadow: 0 12px 28px rgba(200,45,35,.3); }
.catalog-hero-primary:hover { color: #fff; background: #df392e; }
.catalog-hero-secondary { border: 1px solid rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.06); }
.catalog-hero-secondary:hover { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.1); }
.catalog-proof { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; color: #eef3f7; font-size: .86rem; font-weight: 600; }
.catalog-proof span { display: inline-flex; align-items: center; gap: 8px; }
.catalog-proof i { color: #ff7367; }
.catalog-showcase { position: relative; min-width: 0; padding: 0 22px 24px 0; }
.catalog-showcase::before { position: absolute; right: 0; bottom: 0; width: 78%; height: 78%; border: 1px solid rgba(255,255,255,.13); border-radius: 26px; content: ""; background: rgba(255,255,255,.035); }
.catalog-showcase-card { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; background: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.24); }
.catalog-showcase-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; color: var(--catalog-navy); font-size: .69rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.catalog-showcase-head strong { color: #c9d0d8; font-size: 1.7rem; line-height: 1; }
.catalog-showcase-card img { display: block; width: 100%; height: 285px; padding: 8px 18px 0; object-fit: contain; }
.catalog-showcase-tags { display: flex; gap: 8px; padding: 15px 20px 20px; border-top: 1px solid #e7ebef; }
.catalog-showcase-tags span { padding: 7px 11px; border-radius: 999px; color: #526174; background: #f1f4f7; font-size: .68rem; font-weight: 700; }
.catalog-showcase-note { position: absolute; z-index: 2; right: -18px; bottom: 2px; display: flex; width: 250px; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; color: #fff; background: rgba(15,34,55,.94); box-shadow: 0 18px 35px rgba(0,0,0,.24); backdrop-filter: blur(10px); }
.catalog-showcase-note i { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; color: #fff; background: var(--catalog-red); }
.catalog-showcase-note span { font-size: .72rem; line-height: 1.5; }
.catalog-showcase-note strong { display: block; font-size: .8rem; }

.catalog-main { padding: 54px 0 86px; }
.catalog-layout { align-items: flex-start; }
.catalog-sidebar { position: sticky; top: 18px; }
.catalog-sidebar .sidebar-modern { overflow: hidden; border: 1px solid var(--catalog-line); border-radius: 18px; background: #fff; box-shadow: 0 14px 35px rgba(16,34,56,.06); }
.catalog-sidebar .sb-block { border-bottom: 1px solid var(--catalog-line); }
.catalog-sidebar .sb-block:last-child { border-bottom: 0; }
.catalog-sidebar .sb-title { padding: 17px 20px; color: var(--catalog-navy); background: #fff; font-weight: 800; }
.catalog-sidebar .sb-content { padding: 0 12px 13px; }
.catalog-sidebar .sb-content a { border-radius: 8px; color: #526174; }
.catalog-sidebar .sb-content a:hover { color: var(--catalog-red); background: #fff3f1; }
.catalog-sidebar .sb-content a i { color: #9ca7b4; }
.catalog-sidebar .sb-show-more { color: var(--catalog-red); font-weight: 700; }

.catalog-toolbar { padding: 20px; border: 1px solid var(--catalog-line); border-radius: 18px; background: #fff; box-shadow: 0 14px 35px rgba(16,34,56,.05); }
.catalog-toolbar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.catalog-toolbar-head h2 { margin: 0; color: var(--catalog-navy); font-size: 1.18rem; font-weight: 800; }
.catalog-toolbar-head span { color: var(--catalog-muted); font-size: .82rem; }
.products-page .filter-bar { margin-bottom: 0 !important; }
.products-page .filter-bar .form-select,
.products-page .filter-bar .form-control { min-height: 48px; border: 1px solid #d9e0e7; border-radius: 9px; color: #415064; background-color: #fbfcfd; font-size: .85rem; box-shadow: none; }
.products-page .filter-bar .form-select:focus,
.products-page .filter-bar .form-control:focus { border-color: #d97770; box-shadow: 0 0 0 3px rgba(200,45,35,.1); }
.products-page .filter-bar .btn { min-height: 48px; border: 0; border-radius: 9px; background: var(--catalog-red); }
.products-page .filter-bar .btn:hover { background: var(--catalog-red-dark); }

.catalog-grid { margin-top: 24px; }
.catalog-card { position: relative; display: flex; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--catalog-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(16,34,56,.045); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.catalog-card:hover { transform: translateY(-3px); border-color: #d9b7b3; box-shadow: 0 16px 36px rgba(16,34,56,.09); }
.catalog-card-media { position: relative; display: flex; height: 260px; align-items: center; justify-content: center; padding: 30px; background: linear-gradient(145deg, #fff 0%, #f4f6f8 100%); }
.catalog-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.catalog-card:hover .catalog-card-media img { transform: none; }
.catalog-card-status { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 6px 10px; border-radius: 999px; color: #fff; background: #6b7480; font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(16,34,56,.12); }
.catalog-card-status.is-stock { background: #21814b; }
.catalog-card-status.is-out { background: var(--catalog-red); }
.catalog-card-body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.catalog-card-meta { margin-bottom: 10px; color: var(--catalog-red); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.catalog-card h3 { min-height: 49px; margin: 0 0 12px; color: var(--catalog-navy); font-size: 1.02rem; font-weight: 800; line-height: 1.5; }
.catalog-card-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 20px; color: var(--catalog-muted); font-size: .78rem; }
.catalog-card-price { margin-top: auto; color: var(--catalog-red); font-size: 1.05rem; font-weight: 800; }
.catalog-card-price.is-contact { color: #536175; font-size: .92rem; }
.catalog-card-link { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 16px; border-top: 1px solid #e7ebef; color: var(--catalog-navy); font-size: .82rem; font-weight: 800; }
.catalog-card-link i { color: var(--catalog-red); transition: transform .2s ease; }
.catalog-card:hover .catalog-card-link i { transform: translateX(4px); }
.catalog-empty { padding: 64px 28px; border: 1px dashed #cbd3dc; border-radius: 18px; text-align: center; background: #fff; }
.catalog-empty i { margin-bottom: 18px; color: #a7b0bb; font-size: 2.2rem; }
.catalog-empty h3 { color: var(--catalog-navy); font-weight: 800; }
.catalog-empty p { margin-bottom: 22px; color: var(--catalog-muted); }

.products-page .pagination { gap: 6px; }
.products-page .pagination .page-link { display: grid; min-width: 42px; height: 42px; place-items: center; margin: 0; border: 1px solid #d9e0e7; border-radius: 8px; color: var(--catalog-navy); background: #fff; font-size: .82rem; font-weight: 700; }
.products-page .pagination .active .page-link { border-color: var(--catalog-red); color: #fff; background: var(--catalog-red); }
.products-page .pagination .page-link:hover { border-color: var(--catalog-red); color: var(--catalog-red); background: #fff4f3; }

.product-breadcrumb { padding: 15px 0; border-bottom: 1px solid var(--catalog-line); background: #fff; }
.product-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; color: var(--catalog-muted); font-size: .8rem; }
.product-breadcrumb a { color: #526174; font-weight: 700; }
.product-breadcrumb a:hover { color: var(--catalog-red); }
.product-breadcrumb i { color: #aeb7c1; font-size: .65rem; }

.product-detail-main { padding: 54px 0 86px; }
.product-showcase { overflow: hidden; border: 1px solid var(--catalog-line); border-radius: 22px; background: #fff; box-shadow: 0 18px 45px rgba(16,34,56,.07); }
.product-visual { position: relative; display: flex; min-height: 510px; align-items: center; justify-content: center; padding: 52px; background: linear-gradient(145deg, #fff 0%, #f2f5f7 100%); }
.product-visual img { width: 100%; height: 410px; object-fit: contain; }
.product-stock-badge { position: absolute; top: 24px; left: 24px; padding: 8px 13px; border-radius: 999px; color: #fff; background: #21814b; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-stock-badge.is-out { background: var(--catalog-red); }
.product-info { display: flex; height: 100%; flex-direction: column; justify-content: center; padding: 52px 48px; }
.product-info-kicker { margin-bottom: 14px; color: var(--catalog-red); font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.product-info h1 { margin: 0 0 20px; color: var(--catalog-navy); font-size: clamp(1.75rem, 3vw, 2.7rem); font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }
.product-price-large { margin-bottom: 25px; color: var(--catalog-red); font-size: 1.65rem; font-weight: 800; }
.product-price-large.is-contact { color: #435268; font-size: 1.15rem; }
.product-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 30px; border-top: 1px solid var(--catalog-line); }
.product-fact { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--catalog-line); }
.product-fact small { display: block; margin-bottom: 5px; color: #8994a2; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-fact strong { color: var(--catalog-navy); font-size: .88rem; font-weight: 800; }
.product-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.product-actions a { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 23px; border-radius: 8px; font-size: .84rem; font-weight: 800; }
.product-primary-action { color: #fff; background: var(--catalog-red); box-shadow: 0 10px 22px rgba(200,45,35,.2); }
.product-primary-action:hover { color: #fff; background: var(--catalog-red-dark); }
.product-secondary-action { border: 1px solid #ccd4dd; color: var(--catalog-navy); background: #fff; }
.product-secondary-action:hover { border-color: var(--catalog-navy); color: var(--catalog-navy); }

.product-description-panel { margin-top: 30px; padding: 38px 42px; border: 1px solid var(--catalog-line); border-radius: 18px; background: #fff; }
.product-section-heading { display: flex; align-items: center; gap: 13px; margin: 0 0 24px; color: var(--catalog-navy); font-size: 1.25rem; font-weight: 800; }
.product-section-heading::before { width: 4px; height: 28px; border-radius: 4px; content: ""; background: var(--catalog-red); }
.product-description-content { color: #4f5e70; line-height: 1.85; }
.product-description-content img { max-width: 100%; height: auto; }
.related-section { margin-top: 58px; }
.related-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.related-section-head h2 { margin: 0; color: var(--catalog-navy); font-size: 1.65rem; font-weight: 800; }
.related-section-head a { color: var(--catalog-red); font-size: .82rem; font-weight: 800; }

@media (max-width: 1199px) {
    .catalog-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); gap: 40px; }
    .catalog-sidebar { position: static; }
    .product-info { padding: 42px 35px; }
}

@media (max-width: 991px) {
    .catalog-hero { padding: 58px 0; }
    .catalog-hero-grid { grid-template-columns: 1fr; }
    .catalog-hero-copy { max-width: 720px; }
    .catalog-showcase { max-width: 680px; }
    .catalog-sidebar { margin-bottom: 24px; }
    .product-visual { min-height: 430px; }
    .product-visual img { height: 340px; }
}

@media (max-width: 767px) {
    .catalog-main, .product-detail-main { padding: 36px 0 66px; }
    .catalog-hero h1 { font-size: 2.45rem; }
    .catalog-showcase { padding: 0 12px 18px 0; }
    .catalog-showcase-card img { height: 245px; }
    .catalog-showcase-note { right: -4px; }
    .catalog-card-media { height: 280px; }
    .catalog-toolbar { padding: 17px; }
    .catalog-toolbar-head { align-items: flex-start; flex-direction: column; }
    .product-visual { min-height: 370px; padding: 38px 24px; }
    .product-visual img { height: 290px; }
    .product-info { padding: 34px 25px 38px; }
    .product-description-panel { padding: 28px 24px; }
    .related-section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 575px) {
    .catalog-hero { padding: 48px 0; }
    .catalog-proof { align-items: flex-start; flex-direction: column; }
    .catalog-hero-actions { flex-direction: column; }
    .catalog-hero-actions a { width: 100%; }
    .catalog-showcase { padding: 0; }
    .catalog-showcase-card img { height: 205px; padding-inline: 8px; }
    .catalog-showcase-tags { flex-wrap: wrap; }
    .catalog-showcase-note { position: relative; right: auto; bottom: auto; width: calc(100% - 24px); margin: -8px auto 0; }
    .product-facts { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; }
    .product-actions a { width: 100%; }
}

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