*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

img { max-width: 100%; height: auto; display: block; }

.poster { width: 100%; overflow: hidden; line-height: 0; }
.poster img { width: 100%; height: auto; object-fit: cover; }

.poster-slider {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1920 / 500;
}

.poster-slider .poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: none;
}

.poster-slider .poster--anim {
    transition: transform 0.6s ease;
}

.poster-slider .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-slider .poster--active {
    transform: translateX(0);
}

.poster-slider .poster--exit {
    transform: translateX(-100%);
}

.video-wrap {
    max-width: 720px;
    margin: 0 auto;
    aspect-ratio: 720 / 405;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}
a { color: #425563; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Top Bar ===== */
.top-bar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo { flex-shrink: 0; }
.logo img { max-height: 50px; }

.search-bar {
    display: flex;
    flex: 1 1 300px;
    max-width: 400px;
}

.search-bar input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.95rem;
    outline: none;
}

.search-bar input:focus { border-color: #425563; }

.search-bar button {
    padding: 8px 18px;
    background: #425563;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.search-bar button:hover { background: #344654; }

.phone {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}
.callback-btn {
    background: none;
    border: 2px solid #425563;
    border-radius: 6px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #425563;
    transition: all 0.2s;
}
.callback-btn:hover {
    background: #425563;
    color: #fff;
}

/* ===== Main Navigation ===== */
.main-nav {
    background: #425563;
    transition: box-shadow 0.3s;
}

.main-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.main-nav .container {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    color: #fff;
    font-size: 0.95rem;
    padding: 12px 20px;
    transition: background 0.2s;
    white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

.nav-close { display: none; }

/* ===== Sticky spacer ===== */
.main-nav-spacer { display: none; }
.main-nav.sticky + .main-nav-spacer { display: block; }

/* ===== Nav Toggle (burger) ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #425563;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    background: #f4f6f8;
    padding: 10px 0;
    font-size: 0.85rem;
}

.breadcrumbs a {
    color: #666;
}

.breadcrumbs a:hover {
    color: #425563;
    text-decoration: none;
}

.breadcrumbs .sep {
    color: #ccc;
    margin: 0 6px;
}

.breadcrumbs .current {
    color: #999;
}

/* ===== Hero ===== */
.hero {
    background: #fff;
    color: #333;
    padding: 100px 0;
    text-align: center;
}

.hero h1 { font-size: 2.2rem; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; max-width: 900px; margin: 0 auto 32px; color: #555; line-height: 1.7; text-align: justify; }

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn-primary { background: #425563; color: #fff; }
.btn-primary:hover { background: #344654; text-decoration: none; }
.btn-outline { background: transparent; color: #425563; border: 2px solid #425563; }
.btn-outline:hover { background: #425563; color: #fff; text-decoration: none; }

/* ===== Sections ===== */
.section { padding: 60px 0; }
.section-title { font-size: 1.75rem; text-align: center; margin-bottom: 40px; color: #333; }

/* ===== Catalog Grid ===== */
.catalog-grid { gap: 20px; }

.catalog-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.desc-text {
    padding-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

.desc-text strong {
    color: #333;
    font-weight: 700;
}

.desc-text ul, .desc-text ol {
    padding-left: 24px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.desc-text li {
    margin-bottom: 4px;
}

.desc-text h3, .desc-text h4 {
    color: #333;
    margin-top: 16px;
    margin-bottom: 8px;
}

.catalog-item .prod-link {
    display: flex;
    flex-direction: column;
    color: #333;
    text-decoration: none;
    flex: 1;
    padding-bottom: 16px;
}

.catalog-item .prod-link:hover { text-decoration: none; }



.catalog-item span:not(.cat-label):not(.prod-title):not(.prod-btn):not(.dot) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    flex: 1;
}

.catalog-item .prod-img-wrap {
    overflow: hidden;
    position: relative;
    background: #fff;
}

.catalog-item .prod-img-main {
    aspect-ratio: 375 / 375;
    position: relative;
    overflow: hidden;
}

.catalog-item .prod-img-main img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    transition: opacity 0.25s ease;
}

.catalog-item .prod-img-main img.logo-fallback {
    max-width: 50%;
    max-height: 50%;
}

.catalog-item .prod-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
}

.catalog-item .prod-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: background 0.2s;
    flex: 0 0 8px;
}

.catalog-item .prod-dots .dot.active {
    background: #425563;
}

.cat-label {
    display: block;
    padding: 10px 16px 0;
    font: 600 14px / 1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #999;
}

.prod-title {
    display: block;
    padding: 4px 16px 0;
    font: 500 16px / 1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #222;
    flex: 1;
}

.prod-btn {
    display: block;
    padding: 12px 0;
    background: #fff;
    color: #425563;
    border: 2px solid #425563;
    border-radius: 8px;
    font: 600 14px / 1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.prod-btn:hover {
    background: #425563;
    color: #fff;
    text-decoration: none;
}

/* ===== Product Page ===== */
.product-page {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-gallery {
    flex: 0 0 42%;
    max-width: 42%;
}

.product-gallery-main {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.product-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-gallery-thumbs .gallery-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: border-color 0.2s;
}

.product-gallery-thumbs .gallery-thumb.active {
    border-color: #425563;
}

.product-gallery-thumbs .gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    flex: 1;
}

.product-cat {
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
}

.product-specs {
    margin-bottom: 32px;
}

.product-specs h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
}

.product-specs .spec-group-title {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 16px 0 8px;
}

.product-specs table + .spec-group-title {
    margin-top: 20px;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.product-specs td:first-child {
    color: #666;
    width: 70%;
}

.prod-btn-page {
    width: auto;
    display: inline-block;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 400;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

@media (max-width: 768px) {
    .product-page {
        flex-direction: column;
        gap: 24px;
    }

    .product-gallery {
        flex: none;
        max-width: 100%;
    }
}

/* ===== About Section ===== */
.about-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.about-image {
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

.about-text p:last-child { margin-bottom: 0; }

/* ===== Cards ===== */
.grid { display: grid; gap: 24px; }

.card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 24px;
    transition: 0.3s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card h3 { margin-bottom: 8px; color: #333; }

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #333;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover { color: #333; }

.order-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    font-weight: 400;
}

.order-form .checkbox-group input {
    width: auto;
    flex-shrink: 0;
}

.order-form input[readonly] {
    background: #f4f6f8;
    cursor: default;
}

/* ===== Contact Form ===== */
.contact-form { max-width: 600px; margin: 0 auto; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #425563; }

.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.footer {
    background: #425563;
    color: #ccc;
    text-align: center;
    padding: 24px 0;
    font-size: 0.9rem;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .top-bar .container {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .logo { grid-row: 1; grid-column: 1; }
    .phone { grid-row: 1; grid-column: 2; }
    .nav-toggle { grid-row: 1; grid-column: 3; display: block; }
    .search-bar {
        grid-row: 2;
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .nav-toggle span { background: #425563; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #425563;
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
        box-shadow: -4px 0 12px rgba(0,0,0,0.2);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav .container {
        flex-direction: column;
        align-items: stretch;
        padding-top: 60px;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 14px 24px;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 8px;
        right: 16px;
        font-size: 2rem;
        color: #fff;
        background: none;
        border: none;
        cursor: pointer;
        line-height: 1;
        padding: 4px;
        z-index: 1;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.55);
        z-index: 199;
    }

    .nav-overlay.open { display: block; }

    body.no-scroll { overflow: hidden; }

    .hero { padding: 60px 0; }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 1rem; }

    .section { padding: 40px 0; }
    .section-title { font-size: 1.35rem; }

    .grid { grid-template-columns: 1fr !important; }

    .btn { width: 100%; text-align: center; }

    .cat-tool-btn { font-size:0; width:38px; height:38px; padding:0 !important; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; }
    .cat-tool-btn .btn-text { display:none; }
    .cat-tool-btn svg { width:20px; height:20px; fill:#425563; margin:0 !important; }
    .cat-tool-btn span:not(.btn-text) { margin:0 !important; font-size:1.2rem; line-height:1; }
    }

@media (min-width: 769px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Filter Panel ===== */
.filter-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; min-width:0; }
.filter-group-header { grid-column:1/-1; font-weight:700; font-size:0.9rem; color:#425563; padding:8px 0 4px; margin:0; border-bottom:1px solid #ddd; min-width:0; }
.filter-item { background:#fff; border:1px solid #ddd; border-radius:6px; padding:8px; box-sizing:border-box; min-width:0; }
.filter-item-title { font-weight:600; font-size:0.85rem; margin-bottom:4px; color:#333; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.filter-unit { color:#888; font-weight:400; }
.filter-inputs { display:flex; gap:4px; align-items:center; }
.filter-inputs input { flex:1; min-width:0; padding:5px 6px; border:1px solid #ccc; border-radius:4px; font-size:0.85rem; box-sizing:border-box; }
.filter-sep { color:#888; font-size:0.85rem; flex-shrink:0; }
@media (max-width: 768px) {
    .filter-grid { grid-template-columns:1fr !important; }
}

/* ===== Contact Info ===== */
.contact-info { margin-bottom: 32px; }
.contact-info p { margin-bottom: 8px; }
.contact-info strong { color: #333; }