:root {
    --color-primary: #154a81;
    --color-primary-dark: #0f3a66;
    --color-secondary: #00b6df;
    --color-accent-orange: #fd752f;
    --color-accent-green: #89bc4c;
    --color-accent-yellow: #ffb648;
    --color-accent-teal: #00afa5;
    --surface-1: #ffffff;
    --surface-2: #ebf2f3;
    --border: #d9e3e6;
    --border-strong: #b9c7cc;
    --text-primary: #16222b;
    --text-secondary: #4c5c66;
    --text-muted: #8296a0;
    --radius: 8px;
    --radius-lg: 12px;
    --font-sans: 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--surface-2);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--surface-1);
    border-bottom: 2px solid var(--color-primary);
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img { height: 36px; }

.brand-text {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    letter-spacing: 0.4px;
}

.main-nav {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    flex-wrap: wrap;
}

/* Hero */
.hero {
    padding: 56px 24px;
    background: var(--color-primary);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero::before {
    right: -60px; top: -60px; width: 260px; height: 260px;
    background: var(--color-secondary);
}

.hero::after {
    right: 100px; bottom: -80px; width: 180px; height: 180px;
    background: var(--color-accent-green)!important;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--hero-overlay-color, var(--color-primary));
    opacity: var(--hero-overlay-opacity, 1);
    z-index: 0;
}

.hero-inner { position: relative; max-width: 820px; z-index: 1; }

.hero-eyebrow {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--color-accent-yellow);
    font-size: 34px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.25;
}

.hero p {
    color: #cfe0ee;
    font-size: 15px;
    margin: 0 0 2px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--color-secondary); color: #0a2f4d; }
.btn-outline { border: 1px solid #4a76a3; color: #fff; background: transparent; }
.btn-outline-dark { border: 1px solid var(--color-primary); color: var(--color-primary); background: transparent; }

/* Sections */
.section { padding: 48px 24px; background: var(--surface-1); }
.section-alt { background: var(--surface-2); }

.section-header { margin-bottom: 24px; }
.section-header h2 { font-size: 24px; color: var(--color-primary); margin: 0 0 6px; }
.section-header p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.grid {
    display: grid;
    gap: 16px;
}

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

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

@media (max-width: 560px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
}

.card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.service-card { text-align: center; }
.service-card .icon { font-size: 26px; margin-bottom: 10px; }
.service-card p { font-size: 13px; font-weight: 600; margin: 0; }

.about-photo {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.about-photo img { width: 100%; object-fit: cover; }

/* Catalog */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    flex: 1;
    color: var(--text-primary);
}

.category-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-1);
    transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(21,74,129,.1); }
.category-card .thumb {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
}
.category-card .body { padding: 12px 14px; }
.category-card h3 { font-size: 14px; margin: 0 0 2px; color: var(--color-primary); }
.category-card span { font-size: 12px; color: var(--text-muted); }
.category-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--category-background, #eef2f4);
    color: var(--category-icon, #154a81) !important;
}
.category-icon-circle svg { width: 27px; height: 27px; }
.category-icon-circle-sm { width: 25px; height: 25px; }
.category-icon-circle-sm svg { width: 14px; height: 14px; }

.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-1);
    display: flex;
    flex-direction: column;
}
.product-card .thumb {
    height: 140px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    overflow: hidden;
    position: relative;
}

.product-seal-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    object-fit: contain;
}

/* Product carousel */
.product-carousel { overflow: hidden; position: relative; }
.product-carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.product-carousel-track::-webkit-scrollbar { display: none; }
.product-carousel-track .product-card {
    flex: 0 0 calc((100% - 4 * 16px) / 5);
    scroll-snap-align: start;
}
@media (max-width: 900px) {
    .product-carousel-track .product-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 560px) {
    .product-carousel-track .product-card { flex-basis: 80%; }
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card .code { font-size: 11px; color: var(--text-muted); }
.product-card h3 { font-size: 14px; margin: 0; color: var(--color-primary); }
.product-card .cat-tag {
    font-size: 10px;
    background: var(--surface-2);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: var(--radius);
    display: inline-block;
    width: fit-content;
}

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-pill {
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-1);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.filter-pill.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pill-plus { margin-left: 2px; font-weight: 700; }
.filter-pills-sub { margin-top: -8px; margin-bottom: 20px; }

/* Mission / vision / values */
.mv-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.mv-label { font-size: 12px; font-weight: 700; margin: 0 0 8px; }
.mv-card p:not(.mv-label) { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    font-size: 11px;
    padding: 7px 12px;
    border-radius: var(--radius);
    font-weight: 600;
    background: var(--surface-2);
    color: var(--text-secondary);
}

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 24px; background: var(--surface-1); }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-gallery .main-image {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-strip img {
    width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius);
    border: 1px solid var(--border); cursor: pointer;
}

.spec-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.spec-table td:first-child { color: var(--text-muted); width: 45%; }
.product-description { color: var(--text-secondary); line-height: 1.7; overflow-wrap: anywhere; }
.product-description img { display: block; max-width: 100%; height: auto; margin: 12px 0; border-radius: var(--radius); }
.product-description a { color: var(--color-primary); text-decoration: underline; }
.product-specifications { grid-column: 1 / -1; margin-top: 12px; }
.product-specifications h2 { color: var(--color-primary); font-size: 19px; margin: 0 0 12px; }
.specification-table-wrapper { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.product-specification-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.product-specification-table th { background: var(--color-primary); color: #fff; text-align: left; padding: 10px 12px; white-space: nowrap; }
.product-specification-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.product-specification-table tbody tr:last-child td { border-bottom: 0; }
.specification-image { display: block; width: 100%; height: auto; object-fit: contain; border-radius: var(--radius); }

/* Contact / footer */
.footer {
    background: var(--color-primary);
    padding: 36px 24px 20px;
    color: #cfe0ee;
}
.footer .grid-3 { margin-bottom: 24px; }
.footer h4 { color: #fff; font-size: 13px; margin: 0 0 10px; }
.footer p { font-size: 12px; margin: 0 0 6px; }
.footer .map-box {
    background: var(--color-primary-dark);
    border-radius: var(--radius);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9fbcd7;
    font-size: 12px;
}
.footer-bottom { border-top: 1px solid #2a5a8c; padding-top: 14px; font-size: 11px; color: #8fa9c2; text-align: center; }

.contact-form { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.contact-form input,
.contact-form textarea {
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 13px;
}
.contact-form textarea { min-height: 100px; resize: vertical; }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
}
.alert-success { background: #e3f6ea; color: #1f7a45; border: 1px solid #b9e6c8; }
.alert-error { background: #fdeaea; color: #b3261e; border: 1px solid #f5c2c0; }

.pagination { margin-top: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
