:root {
  --navy: #062a4a;
  --blue: #0b4f8a;
  --blue-mid: #1565a8;
  --accent: #c45c26;
  --ink: #1c2b39;
  --muted: #5b6b7a;
  --line: #d9e2ea;
  --paper: #f5f8fb;
  --white: #fff;
  --ok: #1b7a4a;
  --err: #b42318;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(6, 42, 74, 0.08);
  --header-h: 148px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.sr-only, .skip-link {
  position: absolute; left: -9999px;
}
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px; z-index: 80; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 18px; border-radius: 4px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.92rem; cursor: pointer; text-decoration: none !important;
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #a3491b; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost { background: transparent; color: var(--blue); }
.inline-form { display: inline; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; }
.alert-success { background: #e8f6ee; color: var(--ok); }
.alert-error { background: #fdecec; color: var(--err); }
.alert-info { background: #e8f1fa; color: var(--blue); }

.site-header { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-bar { background: var(--navy); color: #d5e4f2; font-size: 0.8rem; }
.header-bar__inner, .header-main__inner, .footer-bottom__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header-bar__inner { min-height: 34px; }
.header-bar a { color: #d5e4f2; }
.header-bar__links { display: flex; gap: 16px; flex-wrap: wrap; }
.tagline { margin: 0; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.header-main { padding: 12px 0; }
.logo img { height: 46px; width: auto; }
.header-search { flex: 1; display: flex; max-width: 520px; }
.header-search input {
  flex: 1; border: 1px solid var(--line); border-right: 0; padding: 10px 14px; border-radius: 4px 0 0 4px; font: inherit;
}
.header-search button {
  background: var(--blue); color: #fff; border: 0; padding: 0 16px; border-radius: 0 4px 4px 0; font-weight: 600; cursor: pointer;
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.rfq-count { font-weight: 600; color: var(--navy); text-decoration: none; }
.rfq-count span {
  display: inline-flex; min-width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; align-items: center; justify-content: center; font-size: .75rem; margin-left: 4px;
}
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 7px 0; }
.main-nav { background: var(--blue); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li > a {
  display: block; color: #fff; padding: 12px 14px; font-size: .9rem; font-weight: 500; text-decoration: none;
}
.nav-list > li > a:hover, .has-mega:hover > a { background: rgba(0,0,0,.15); }
.has-mega { position: static; }
.mega-menu {
  display: none; position: absolute; left: 0; right: 0; background: #fff;
  box-shadow: var(--shadow); border-top: 3px solid var(--accent); padding: 24px 0 32px; z-index: 50;
}
.has-mega:hover .mega-menu, .has-mega:focus-within .mega-menu { display: block; }
.mega-grid {
  width: min(1200px, calc(100% - 32px)); margin: auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.mega-title { font-weight: 700; color: var(--navy); display: block; margin-bottom: 8px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { color: var(--muted); font-size: .85rem; display: block; padding: 3px 0; }

.crumb-wrap { background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #9aa8b5; }

.hero {
  background: linear-color(135deg, var(--navy), var(--blue));
  background: linear-gradient(135deg, #05233d 0%, #0b4f8a 62%, #1a72b8 100%);
  color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; margin: 0 0 16px; font-weight: 600; }
.hero p.lead { font-size: 1.08rem; color: #d7e6f5; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-panel {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 22px; border-radius: 10px; backdrop-filter: blur(6px);
}
.hero-panel h2 { margin: 0 0 8px; font-size: 1.1rem; }
.hero-panel ul { margin: 0; padding-left: 18px; color: #e4eef8; }

.section { padding: 64px 0; }
.section-muted { background: var(--paper); }
.section-navy { background: var(--navy); color: #fff; }
.section h2, .page-hero h1 {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 600; color: var(--navy); margin: 0 0 10px;
}
.section-navy h2, .section-navy p { color: #fff; }
.section-intro { color: var(--muted); max-width: 720px; margin-bottom: 28px; }
.page-hero { padding: 40px 0 20px; }
.page-hero p { color: var(--muted); max-width: 760px; }

.cat-grid, .card-grid, .product-grid, .blog-grid, .industry-grid {
  display: grid; gap: 18px;
}
.cat-grid { grid-template-columns: repeat(5, 1fr); }
.product-grid { grid-template-columns: repeat(4, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.industry-grid { grid-template-columns: repeat(4, 1fr); }
.cat-card, .info-card, .product-card, .blog-card, .industry-card, .why-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover, .product-card:hover, .blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card { padding: 18px; min-height: 150px; display: flex; flex-direction: column; }
.cat-card .icon-blob {
  width: 42px; height: 42px; border-radius: 8px; background: #e8f1fa; display: grid; place-items: center;
  color: var(--blue); font-weight: 700; margin-bottom: 12px;
}
.cat-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--navy); }
.cat-card p { margin: 0; color: var(--muted); font-size: .85rem; flex: 1; }
.cat-card a { font-weight: 600; font-size: .85rem; margin-top: 10px; }

.product-card__img { background: var(--paper); aspect-ratio: 4/3; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 14px 16px 16px; }
.product-card__code { margin: 0; font-size: .75rem; letter-spacing: .04em; color: var(--accent); font-weight: 600; }
.product-card h3 { font-size: 1rem; margin: 4px 0 8px; }
.product-card h3 a { color: var(--navy); }
.product-card__excerpt { color: var(--muted); font-size: .86rem; min-height: 3.2em; }
.product-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.product-card__actions .btn { padding: 8px 10px; font-size: .8rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.why-card { padding: 18px; }
.why-card h3 { margin: 0 0 6px; font-size: .95rem; color: var(--navy); }
.why-card p { margin: 0; font-size: .85rem; color: var(--muted); }
.industry-card { padding: 18px; }
.industry-card h3 { margin: 0; font-size: .95rem; color: var(--navy); }

.cta-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.form-card { background: #fff; color: var(--ink); padding: 22px; border-radius: 10px; }
label { display: block; font-weight: 600; font-size: .85rem; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=password],
input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.product-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; }
.gallery-main {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
    object-position: center;
}

.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { border: 1px solid var(--line); padding: 0; background: #fff; cursor: pointer; width: 72px; }
.thumbs img { width: 72px; height: 54px; object-fit: cover; }
.meta-table { width: 100%; border-collapse: collapse; }
.meta-table th, .meta-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.meta-table th { width: 38%; color: var(--muted); font-weight: 500; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 28px 0 16px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; cursor: pointer; font: inherit; }
.tabs button.active { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.prose h2, .prose h3 { color: var(--navy); }
.prose ul { padding-left: 18px; }

.rfq-table { width: 100%; border-collapse: collapse; }
.rfq-table th, .rfq-table td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: middle; }
.rfq-table img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
.qty { width: 72px; }

.site-footer { background: #041c31; color: #c9d7e4; padding-top: 48px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 36px; }
.site-footer h3, .site-footer h4 { color: #fff; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #c9d7e4; }
.footer-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom__inner { min-height: 56px; font-size: .85rem; }
.footer-bottom a { margin-left: 14px; }

.pagination { list-style: none; display: flex; gap: 6px; padding: 0; }
.pagination a { display: block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; }
.pagination .active a { background: var(--blue); color: #fff; border-color: var(--blue); }

.country-hero { background: var(--paper); padding: 36px 0; border-bottom: 1px solid var(--line); }
.flag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.flag-list a { border: 1px solid var(--line); padding: 8px 12px; border-radius: 4px; color: var(--navy); font-weight: 500; }
.search-toolbar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .industry-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .hero .container, .split, .cta-band, .product-layout, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-search { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .mega-menu { position: static; display: none; box-shadow: none; }
  .has-mega.open .mega-menu { display: block; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid, .product-grid, .card-grid, .blog-grid, .industry-grid, .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .header-bar__links { display: none; }
  .btn-accent { padding: 10px 12px; font-size: .8rem; }
}

/* Product grid image size fix */
.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.product-grid img {
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    object-fit: contain !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .product-grid img {
        height: 180px !important;
    }
}

/* ===== PRODUCT CARD SIZE FIX ===== */

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: stretch !important;
}

.product-card {
    width: 100% !important;
    min-width: 0 !important;
}

/* Fixed image box */
.product-card__img {
    width: 100% !important;
    height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
}

/* Actual image */
.product-card__img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 220px !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-card__img {
        height: 180px !important;
    }

    .product-card__img img {
        max-height: 180px !important;
    }
}

/* Product Detail Image - Larger & Clean */
.gallery-main {
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.gallery-main img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 390px;
    object-fit: contain;
    object-position: center;
}

/* Desktop / Laptop */
@media (min-width: 761px) {
    .product-layout {
        grid-template-columns: 0.8fr 1.2fr !important;
        gap: 30px !important;
        align-items: start;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .gallery-main {
        height: 320px;
    }

    .gallery-main img {
        max-width: 95%;
        max-height: 290px;
    }
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
/* ===== FINAL PRODUCT DETAIL FIX ===== */

@media (min-width: 761px) {

    .product-layout {
        grid-template-columns: 0.8fr 1.2fr !important;
        gap: 30px !important;
        align-items: start !important;
    }

    .gallery-main {
        height: 380px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    .gallery-main img {
        width: auto !important;
        height: auto !important;
        max-width: 90% !important;
        max-height: 350px !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}

/* MOBILE */
@media (max-width: 760px) {

    .gallery-main {
        height: 300px !important;
    }

    .gallery-main img {
        width: auto !important;
        height: auto !important;
        max-width: 95% !important;
        max-height: 270px !important;
        object-fit: contain !important;
    }
}
/* Reduce gap above product detail */
.product-layout {
    margin-top: 20px !important;
}

.page-hero {
    padding-bottom: 10px !important;
}
/* Product page top gap fix */
.product-detail {
    padding-top: 25px !important;
}

.product-layout {
    margin-top: 0 !important;
}


/* Product image protection */
.gallery-main img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}
/* LABINSTRO GLOBAL - Product Image Watermark */

.gallery-main {
    position: relative;
    overflow: hidden;
}

/* Repeated watermark layer */
.gallery-main::after {
    content:
        "LABINSTRO GLOBAL     LABINSTRO GLOBAL     LABINSTRO GLOBAL\A"
        "LABINSTRO GLOBAL     LABINSTRO GLOBAL     LABINSTRO GLOBAL\A"
        "LABINSTRO GLOBAL     LABINSTRO GLOBAL     LABINSTRO GLOBAL\A"
        "LABINSTRO GLOBAL     LABINSTRO GLOBAL     LABINSTRO GLOBAL\A"
        "LABINSTRO GLOBAL     LABINSTRO GLOBAL     LABINSTRO GLOBAL";

    white-space: pre;
    position: absolute;

    top: 50%;
    left: 50%;

    width: 140%;
    height: 140%;

    transform: translate(-50%, -50%) rotate(-25deg);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 700;
    line-height: 4;
    letter-spacing: 2px;

    color: rgba(15, 78, 125, 0.10);

    pointer-events: none;
    user-select: none;
    z-index: 10;
}












































