/*
 * Jinbo Marine shared frontend styles.
 * Extracted from home view templates.
 * Sections are grouped by module: Layout, Article List, Project List, Product Detail, IMPA, Inquiry Form.
 */

:root {
    --color-primary: #006666;
    --color-primary-dark: #004444;
    --color-accent: #E67E22;
    --color-accent-dark: #CC6C1E;
    --color-bg: #F8FAFA;
    --color-card: #FFFFFF;
    --color-text: #223333;
    --color-text-muted: #556666;
    --color-border: #E6EAEA;
    --container-max: 1200px;
    --border-radius: 6px;
    --border-radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Layout / Home */
/* Source: app/home/view/index/index.html */

.product-img picture,
.main.products .thumbnail picture {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-text h1 {
    font-family: 'jinbomarine', sans-serif;
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    color: #004098;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-menu a:hover {
    background: #f5f7f7;
}

.bi.bi-chevron-right {
    font-size: 12px;
    opacity: 0.7;
    transition: transform .2s;
}

/* Article List */
/* Source: app/home/view/category/article.html */

@media (max-width: 991px) {

    .swiper-item {
        flex-basis: clamp(70px, 11vw, 86px);
        width: clamp(70px, 11vw, 86px);
    }
}

@media (max-width: 767px) {

    .swiper-item {
        flex-basis: clamp(64px, 22vw, 76px);
        width: clamp(64px, 22vw, 76px);
    }

}

@media (max-width: 420px) {
    .swiper-item {
        flex-basis: clamp(58px, 25vw, 70px);
        width: clamp(58px, 25vw, 70px);
    }
}

/* Project Detail */
/* Source: app/home/view/category/detail.html */

.case-wrap {
    padding: 24px 32px 34px;
}

.case-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 22px;
}

.case-gallery {
    min-width: 0;
}

.case-carousel {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid #d9e7e7;
    border-radius: 8px;
    background: #102f33;
    overflow: hidden;
}

.case-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.case-slide.is-active {
    display: block;
}

.case-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.case-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 47, 51, 0.78);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.case-carousel-btn:hover {
    background: #0f5f63;
}

.case-carousel-prev {
    left: 14px;
}

.case-carousel-next {
    right: 14px;
}

.case-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
}

.case-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #eef5f5;
    object-fit: cover;
    cursor: pointer;
}

.case-thumb.is-active {
    border-color: #0f5f63;
}

.case-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 30px;
    border: 1px solid #dfe9e9;
    border-radius: 8px;
    background: #fff;
}

.case-summary .eyebrow {
    margin: 0 0 9px;
    color: #0f5f63;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-summary h1 {
    margin: 0;
    color: #102f33;
    font-size: 32px;
    line-height: 1.16;
}

.case-summary p {
    margin: 14px 0 0;
    color: #5a6f72;
    font-size: 15px;
    line-height: 1.75;
}

.case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.case-primary,
.case-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 6px;
    font-weight: 750;
}

.case-primary {
    background: #e67e22;
    color: #fff;
}

.case-primary:hover {
    background: #cf6f16;
    color: #fff;
}

.case-secondary {
    border: 1px solid #d7e4e4;
    background: #fff;
    color: #24484c;
}

.case-tabs {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    gap: 10px;
    margin: 0 0 22px;
    padding: 10px;
    border: 1px solid #dfe9e9;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    overflow-x: auto;
    scrollbar-width: thin;
}

.case-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    background: #edf7f7;
    color: #24484c;
    font-weight: 700;
    white-space: nowrap;
}

.case-tabs a:hover {
    background: #0f5f63;
    color: #fff;
}

.case-section {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid #dfe9e9;
    border-radius: 8px;
    background: #fff;
}

.case-section h2 {
    margin: 0 0 16px;
    color: #102f33;
    font-size: 22px;
}

.case-info-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.case-info-item {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e4eeee;
    border-radius: 6px;
    background: #f8fbfb;
}

.case-info-label {
    display: block;
    margin-bottom: 7px;
    color: #607476;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.case-info-value {
    display: block;
    color: #123a40;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.case-story {
    color: #334d50;
    font-size: 15px;
    line-height: 1.78;
}

.case-story h2,
.case-story h3 {
    margin: 22px 0 12px;
    color: #102f33;
}

.case-story p,
.case-story ul,
.case-story ol {
    margin: 0 0 14px;
}

.case-story ul,
.case-story ol {
    padding-left: 20px;
}

.case-story ul {
    list-style: disc;
}

.case-story ol {
    list-style: decimal;
}

.case-story figure,
.case-story .img-dv,
.case-story p:has(img) {
    margin: 18px 0;
}

.case-story img {
    width: 100%;
    max-height: 620px;
    border-radius: 8px;
    object-fit: cover;
    cursor: zoom-in;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.equipment-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    border: 1px solid #dfe9e9;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.equipment-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #eef5f5;
    object-fit: cover;
}

.equipment-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.equipment-body h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.equipment-body h3 a {
    color: #102f33;
}

.equipment-body p {
    margin: 9px 0 12px;
    color: #607476;
    font-size: 13px;
    line-height: 1.55;
}

.equipment-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: auto;
    border-radius: 6px;
    background: #0f5f63;
    color: #fff;
    font-weight: 700;
}

.equipment-more:hover {
    background: #0a474b;
    color: #fff;
}

.case-inquiry-float {
    position: fixed;
    right: 22px;
    bottom: 36px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 106px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 6px;
    background: #e67e22;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(230, 126, 34, 0.28);
}

.case-inquiry-float:hover {
    background: #cf6f16;
    color: #fff;
}

.case-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 18, 20, 0.9);
}

.case-lightbox.is-open {
    display: flex;
}

.case-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.case-lightbox button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
}

@media (max-width: 1100px) {

    .case-hero {
        grid-template-columns: 1fr;
    }

    .case-info-grid,
    .equipment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .case-wrap {
        padding: 16px 12px 26px;
    }

    .case-summary {
        padding: 22px 18px;
    }

    .case-summary h1 {
        font-size: 25px;
    }

    .case-tabs {
        top: 0;
        margin-right: -12px;
        margin-left: -12px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .case-section {
        padding: 20px 16px;
    }

    .case-info-grid {
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .equipment-body {
        padding: 12px;
    }

    .equipment-body p {
        display: none;
    }

    .case-inquiry-float {
        top: auto;
        right: 16px;
        bottom: 18px;
        left: auto;
        width: auto;
        min-width: 108px;
        min-height: 44px;
        border-radius: 999px;
    }

    .case-carousel-btn {
        width: 34px;
        height: 34px;
    }
}

/* Content Page */
/* Source: app/home/view/category/page.html */

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

.page-header {
    position: relative;
    background: var(--color-card);
    box-shadow: var(--shadow);
    padding-top: 30px;
}

.bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    padding: 5px 0;
    z-index: 9;
}

.bar a {
    color: rgba(255,255,255,.95) !important;
}

.header-inner {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand {
    width: 55%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-text h1,
.brand-name {
    font-family: 'jinbomarine', sans-serif;
    font-size: clamp(1.3rem, 4vw, 2.4rem);
    color: #004098;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.brand-text p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    line-height: 1.45;
}

.header-actions {
    width: 45%;
    display: flex;
    gap: 10px;
}
.search-form {
    flex: 1;
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}
.search-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,102,102,0.1);
}
.search-input {
    flex: 1;
    height: 48px;
    padding: 0 18px;
    border: none; outline: none;
    background: #fff;
    font-size: 14px;
}
.search-btn {
    width: 48px; height: 48px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    display: grid;
    place-items: center;
    transition: var(--transition);
}
.search-btn:hover {
    background: var(--color-accent-dark);
}
.request-a-quote a {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    border-radius: var(--border-radius);
    white-space: nowrap;
    transition: var(--transition);
}
.request-a-quote a:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(230,126,34,0.25);
}

.navigation-shell {
  margin-bottom: 16px;
  border-radius: var(--border-radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.main-nav {
  background: var(--color-primary);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  overflow: hidden;
  margin: 0;
  box-shadow: none;
}

.slider {
  margin: 0;
  background: transparent;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  padding: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 10 / 3;
  box-shadow: none;
}

.nav-toggle {
    display: none;
    padding: 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.nav-list a {
    display: block;
    padding: 17px 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.nav-list a:hover,
.nav-list .active a {
    background: var(--color-primary-dark);
    border-radius: var(--border-radius);
}

.slide {
    position: absolute;
    inset: 12px;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.breadcrumb-nav {
    margin: 0 16px 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 0;
    padding: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.5;
    list-style: none;
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: #B8C6C6;
}

.breadcrumb-link {
    display: inline-block;
    max-width: 260px;
    color: var(--color-primary);
    overflow-wrap: anywhere;
    text-decoration: none;
}

.breadcrumb-item:last-child .breadcrumb-link {
    color: var(--color-text);
    font-weight: 500;
    pointer-events: none;
}

.main-grid {
  display: grid;
  gap: 0;
}

.content {
  padding-left: 13px !important;
  width: 100% !important;
  margin: 0 !important;
}

.sidebar {
  padding: 24px;
  position: relative;
  z-index: 10;
}

.category-menu > li > a:hover {
    background: #E6F0F0;
    color: #0F2F32;
    padding-left: 18px;
}

.category-menu ul a:hover {
    background: #F0F5F5;
    color: #0F2F32;
    padding-left: 18px;
}

.category-menu li > ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    max-width: 240px;
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid #E6ECEC;
    padding: 10px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    z-index: 9999;
    white-space: normal;
}

.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

 recommend-section {
    grid-column: 1 / -1;
    margin: 18px 0 22px;
    width: 100%;
    padding: 0 20px;
}

.service {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 40px 0 0;
    padding: 0 24px 24px;
}
.service > div {
    min-height: 130px;
    padding: 28px 24px 24px 110px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-card);
    background-repeat: no-repeat;
    background-position: 28px center;
    background-size: 60px 60px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service > div:hover {
    border-color: rgba(0,102,102,0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.service h3 {
    font-size: 17px;
    color: var(--color-primary);
    margin: 0 0 10px;
    line-height: 1.25;
    text-transform: uppercase;
}
.service p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
}

.page-footer {
    margin-top: 40px;
    padding: 0;
    background: #0F2F32;
    border-top: 4px solid var(--color-accent);
    color: rgba(255, 255, 255, 0.85);
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px 40px;
    padding-top: 40px;
    padding-bottom: 32px;
}

.page-footer .mod.logos {
    grid-column: 1 / -1;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.mod-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: 19px;
    line-height: 1.3;
}

.society-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.society-list li {
    height: 50px;
    background: url(/static/image/logos-f3.png) no-repeat;
    opacity: 0.85;
    transition: var(--transition);
    border-radius: 6px;
    padding: 2px;
}
.society-list li:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.mod .text {
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}
.mod .text p {
    max-width: 560px;
    margin: 0 0 12px;
}

.footer-logo {
    position: static;
    display: inline-block;
    margin: 0 0 16px;
    color: #fff;
    font-family: "jinbomarine";
    font-size: 28px;
    line-height: 1;
}

.footer-nav {
    height: auto;
    line-height: 1.5;
    justify-self: end;
}
.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.25s;
}

.followus {
    display: flex;
    justify-self: end;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    height: auto;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.75);
}
.followus .ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
    transition: var(--transition);
}
.followus .ico:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .container {
        padding: 0 12px;
    }
    .page-header {
        padding-top: 26px;
    }
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px 0;
    }

    .brand-text h1,
    .brand-name {
        font-size: 1.5rem;
        line-height: 1.15;
    }
    .brand-text p {
        font-size: 0.8rem;
    }

    .nav-list a {
        padding: 15px 16px;
        border-top: 1px solid rgba(255,255,255,0.16);
    }

    .page-main {
        padding: 0;
        margin-top: 16px;
    }
    .breadcrumb-nav {
        margin: 0 12px 12px;
        padding-top: 12px;
    }

.article-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.article-title {
  font-size: 26px;
  font-weight: 600;
  color: #1a2b48;
  margin: 0;
  letter-spacing: 0.3px;
}

.rich-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  word-break: break-all;
}

.rich-content p {
  margin-bottom: 16px;
}

.rich-content h2 {
  font-size: 22px;
  margin: 28px 0 14px;
  color: #006666;
}

.rich-content h3 {
  font-size: 19px;
  margin: 22px 0 12px;
  color: #006666;
}

.rich-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: 15px;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: 6px;
}

    .section {
        margin-bottom: 28px;
    }

    .service {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px 16px;
    }
    .service > div {
        min-height: auto;
        padding: 20px 16px 20px 90px;
        background-position: 22px center;
        background-size: 50px 50px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .followus {
        margin-top: 18px;
        flex-wrap: wrap;
    }
    .society-list {
        gap: 12px 18px;
    }
}

.page-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 32px 44px;
  color: var(--color-text);
}

.article-header {
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.article-title {
  margin: 0;
  color: #102f33;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

.rich-content {
  color: #31484c;
  font-size: 16px;
  line-height: 1.82;
  overflow-wrap: break-word;
}

.rich-content p {
  margin: 0 0 16px;
}

.rich-content p:first-child {
  color: #173c42;
  font-size: 18px;
  line-height: 1.75;
}

.rich-content h3 {
  margin: 26px 0 12px;
  color: #0f5f63;
  font-size: 19px;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: var(--border-radius);
}

.rich-content iframe {
  display: block;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 0 28px;
  border: 0;
  border-radius: 8px;
  background: #102f33;
  box-shadow: 0 10px 24px rgba(0, 70, 70, 0.12);
}

.rich-content ul,
.rich-content ol {
  margin: 0 0 20px 20px;
  padding: 0;
}

.rich-content li {
  margin-bottom: 8px;
}

.rich-content table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.rich-content th,
.rich-content td {
  padding: 13px 16px;
  border-bottom: 1px solid #e8eeee;
  vertical-align: top;
  text-align: left;
}

.rich-content th {
  background: #eef6f6;
  color: #15383b;
  font-weight: 650;
}

.rich-content tbody tr:nth-child(even) td {
  background: #fbfdfd;
}

.rich-content tbody tr:hover td {
  background: #f2f8f8;
}

.rich-content tr:last-child td {
  border-bottom: 0;
}

.rich-content td:first-child {
  width: 18%;
  color: #1f5f68;
  font-weight: 600;
}

.rich-content td:nth-child(2) {
  width: 22%;
  white-space: nowrap;
}

.rich-content a {
  color: #006b76;
}

.rich-content a:hover {
  color: var(--color-accent-dark);
}

.contact-page-main {
  background: #ffffff;
}

.contact-page-main > .content {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-right: 30px;
  padding-left: 30px;
}

.contact-page-article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 44px;
}

.contact-page-article .article-header {
  margin-bottom: 28px;
}

.contact-page-article .article-title {
  font-size: 38px;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.72fr);
  gap: 48px;
  align-items: start;
  padding: 14px 0 18px;
}

.contact-kicker {
  margin: 0 0 12px;
  color: #007070;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-primary h2 {
  max-width: 680px;
  margin: 0 0 12px;
  color: #153b40;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.45;
}

.contact-slogan {
  margin: 0 0 28px;
  color: #617477;
  font-size: 14px;
  line-height: 1.6;
}

.contact-slogan span::before {
  content: "|";
  margin: 0 9px;
  color: #b7c4c4;
}

.contact-slogan span {
  color: #9d5a18;
  font-weight: 600;
}

.contact-details {
  margin: 0;
  font-style: normal;
}

.contact-details p {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 15px 4px;
  border-bottom: 1px solid #e5eded;
  color: #40575a;
  font-size: 16px;
  line-height: 1.65;
  transition: background-color 0.2s ease;
}

.contact-details p:hover {
  background: #f7fbfb;
}

.contact-details p:first-child {
  border-top: 1px solid #e5eded;
}

.contact-details span {
  color: #173f44;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-phone-numbers {
  color: #40575a;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.contact-details a,
.contact-aftersale a {
  color: #006d72;
  text-decoration: none;
}

.contact-details a:hover,
.contact-aftersale a:hover {
  color: #004f53;
  text-decoration: underline;
}

.contact-service {
  padding: 26px 24px;
  border: 1px solid #dce8e7;
  border-top: 3px solid #007070;
  border-radius: 8px;
  background: #f8fbfb;
  box-shadow: 0 8px 24px rgba(17, 75, 78, 0.07);
}

.contact-service-label {
  display: block;
  margin-bottom: 16px;
  color: #63777a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-service h3 {
  margin: 0 0 10px;
  color: #173f44;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.contact-service-intro {
  margin: 0 0 20px;
  color: #5d7073;
  font-size: 14px;
  line-height: 1.65;
}

.contact-rfq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-rfq-list li {
  position: relative;
  margin: 0;
  padding: 11px 0 11px 20px;
  border-top: 1px solid #dce8e7;
  color: #294a4e;
  font-size: 14px;
  line-height: 1.5;
}

.contact-rfq-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #007070;
}

.contact-aftersale > span {
  display: block;
  margin-bottom: 8px;
  color: #63777a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-aftersale a {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-primary .contact-aftersale {
  margin-top: 26px;
  padding: 22px 4px 0;
  border-top: 1px solid #dce8e7;
}

.contact-primary .contact-aftersale a {
  font-weight: 400;
}

.contact-page-main .inquiry-section {
  margin-top: 10px;
}

.contact-page-main .contact-info {
  background: #f8fbfb;
}

.about-page-main {
  background: #fff;
}

.about-page-main > .content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 30px;
}

.about-page-article {
  max-width: 1100px;
  padding: 0 0 48px;
}

.about-page-article .article-header {
  margin-bottom: 30px;
}

.about-content {
  color: #40575a;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 44px;
  align-items: center;
}

.about-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
  background: #102f33;
  box-shadow: 0 12px 30px rgba(15, 70, 74, 0.12);
}

.about-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #007070;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.about-content h2 {
  margin: 0 0 18px;
  color: #153b40;
  font-size: 25px;
  line-height: 1.4;
}

.about-content p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.78;
}

.about-section {
  margin-top: 58px;
  padding-top: 42px;
  border-top: 1px solid #dfe9e9;
}

.about-section-heading {
  max-width: 650px;
  margin-bottom: 26px;
}

.about-strengths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
}

.about-strengths > div {
  padding: 21px 0;
  border-top: 1px solid #e3ebeb;
}

.about-strengths strong {
  display: block;
  margin-bottom: 7px;
  color: #17464b;
  font-size: 16px;
}

.about-strengths p {
  margin: 0;
  color: #5a6f72;
  font-size: 14px;
}

.about-team {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 46px;
  margin-top: 46px;
  padding: 32px 34px;
  border-left: 4px solid #007070;
  background: #f6fafa;
}

.about-team h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.about-team p {
  margin-bottom: 18px;
}

.about-team a {
  display: inline-flex;
  padding-bottom: 3px;
  border-bottom: 1px solid #007070;
  color: #006d72;
  font-weight: 700;
  text-decoration: none;
}

.about-team a:hover {
  color: #004f53;
  border-color: #004f53;
}

@media (max-width: 767px) {
  .contact-page-main > .content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .contact-page-article {
    padding: 0 0 32px;
  }

  .contact-page-article .article-header {
    margin-bottom: 22px;
  }

  .contact-page-article .article-title {
    font-size: 30px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-primary h2 {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .contact-slogan {
    margin-bottom: 24px;
  }

  .contact-slogan span {
    display: block;
    margin-top: 4px;
  }

  .contact-slogan span::before {
    display: none;
  }

  .contact-details p {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
    font-size: 15px;
  }

  .contact-details p:hover {
    background: transparent;
  }

  .contact-phone-numbers {
    font-size: 15px;
    white-space: normal;
  }

  .contact-service {
    padding: 22px 20px;
  }

  .contact-service h3 {
    font-size: 19px;
  }

  .about-page-main > .content {
    padding: 0 16px;
  }

  .about-page-article {
    padding-bottom: 34px;
  }

  .about-page-article .article-header {
    margin-bottom: 22px;
  }

  .about-intro,
  .about-team {
    grid-template-columns: 1fr;
  }

  .about-intro {
    gap: 28px;
  }

  .about-content h2 {
    font-size: 21px;
  }

  .about-section {
    margin-top: 40px;
    padding-top: 32px;
  }

  .about-strengths {
    grid-template-columns: 1fr;
  }

  .about-team {
    gap: 18px;
    margin-top: 36px;
    padding: 26px 22px;
  }

  .rich-content table {
    min-width: 700px;
    font-size: 13px;
  }

  .rich-content th,
  .rich-content td {
    padding: 11px 12px;
  }
}

/* Product Category */
/* Source: app/home/view/category/product.html */

/* Project List */
/* Source: app/home/view/category/project.html */

.project-showcase {
    background: #f6fafa;
}

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 34px 32px 30px;
    background: linear-gradient(135deg, #0f5f63 0%, #123a40 100%);
    color: #fff;
}

.project-hero .eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1.15;
}

.project-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.project-hero-stat {
    min-width: 150px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    text-align: right;
}

.project-hero-stat strong {
    display: block;
    color: #fff;
    font-size: 32px;
    line-height: 1;
}

.project-hero-stat span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.76);
}

.project-filter-panel {
    padding: 22px 32px;
    border-bottom: 1px solid #e3eeee;
    background: #fff;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.quick-tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #d8e5e5;
    border-radius: 6px;
    background: #fff;
    color: #24484c;
    font-weight: 650;
}

.quick-tag:hover,
.quick-tag.is-active {
    border-color: #0f5f63;
    background: #edf7f7;
    color: #0f5f63;
}

.project-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.filter-field label {
    display: block;
    margin-bottom: 6px;
    color: #52686b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.filter-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d8e5e5;
    border-radius: 6px;
    background: #fff;
    color: #223333;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.filter-submit,
.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 6px;
    font-weight: 700;
}

.filter-submit {
    border: 0;
    background: #e67e22;
    color: #fff;
    cursor: pointer;
}

.filter-reset {
    border: 1px solid #d8e5e5;
    background: #fff;
    color: #52686b;
}

.project-grid-wrap {
    padding: 26px 32px 32px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #dfe9e9;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    border-color: #bfd2d2;
    box-shadow: 0 10px 24px rgba(0, 70, 70, 0.09);
    transform: translateY(-3px);
}

.project-image {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eef5f5;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.project-title {
    margin: 0;
    color: #102f33;
    font-size: 16px;
    line-height: 1.35;
}

.project-title a {
    color: inherit;
}

.project-title a:hover {
    color: #0f5f63;
}

.project-application {
    display: inline-flex;
    width: fit-content;
    margin: 10px 0 0;
    padding: 4px 8px;
    border-radius: 4px;
    background: #edf7f7;
    color: #0f5f63;
    font-size: 12px;
    font-weight: 700;
}

.project-excerpt {
    margin: 12px 0 16px;
    color: #5a6f72;
    font-size: 13px;
    line-height: 1.6;
}

.project-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-top: auto;
    padding: 0 12px;
    border-radius: 6px;
    background: #0f5f63;
    color: #fff;
    font-weight: 700;
}

.project-more:hover {
    background: #0a474b;
    color: #fff;
}

.project-empty {
    padding: 42px 20px;
    border: 1px dashed #cbdada;
    border-radius: 8px;
    background: #fff;
    color: #607476;
    text-align: center;
}

.project-pagination {
    margin-top: 24px;
}

.project-pagination .pagination-total,
.project-pagination .pagination-link,
.project-pagination .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0 5px 6px 0;
    padding: 0 11px;
    border: 1px solid #d8e5e5;
    border-radius: 6px;
    background: #fff;
    color: #52686b;
}

.project-pagination .pagination-total {
    border-color: transparent;
    background: transparent;
    padding-left: 0;
}

.project-pagination .pagination-link:hover,
.project-pagination .pagination-link.is-current {
    border-color: #0f5f63;
    background: #0f5f63;
    color: #fff;
}

@media (max-width: 1100px) {
    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .project-hero {
        grid-template-columns: 1fr;
        padding: 26px 18px;
    }

    .project-hero h1 {
        font-size: 27px;
    }

    .project-hero-stat {
        text-align: left;
    }

    .project-filter-panel,
    .project-grid-wrap {
        padding: 20px 16px;
    }

    .project-filter-form {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-submit,
    .filter-reset {
        flex: 1;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Search Results */
/* Source: app/home/view/search/index.html */

/* IMPA Search */
/* Source: app/home/view/search/impa.html */

/* IMPA Category */
/* Source: app/home/view/impa/category.html */

/* IMPA Product */
/* Source: app/home/view/impa/product.html */

.main-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}

.breadcrumb-nav-wrapper {
    padding: 10px 22px;
    border-bottom: 1px solid #e5ecec;
    background: #fbfdfd;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: #607476;
    font-size: 13px;
}

.breadcrumb-inner > span:not(.breadcrumb-sep):last-of-type {
    color: #1b3d42;
    font-weight: 600;
}

.breadcrumb-sep {
    color: #aab8b9;
}

.breadcrumb-inner .breadcrumb-link {
    max-width: none;
    color: #006b76;
}

.impa-search-form {
    display: flex;
    width: min(360px, 100%);
    margin-left: auto;
    border: 1px solid #d7e4e4;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.impa-search-form .search-input {
    min-width: 0;
    height: 42px;
    border: 0;
    box-shadow: none;
}

.impa-search-form .search-btn {
    width: auto;
    min-width: 92px;
    height: 42px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 650;
}

.main-grid {
    display: block;
}

.impa-container {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 22px 28px;
    background: #f6fafa;
}

.impa-sidebar {
    align-self: start;
    border: 1px solid #dfe8e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 70, 70, 0.05);
    overflow: hidden;
}

.impa-sidebar .sidebar-title {
    margin: 0;
    padding: 18px 18px 16px;
    border-bottom: 1px solid #e5eeee;
    background: #0f5f63;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
}

.impa-sidebar .sidebar-title a {
    color: #fff;
}

.sidebar-menu {
    max-height: none;
    overflow: visible;
    padding: 8px;
}

.sidebar-link {
    display: block;
    position: relative;
    padding: 10px 12px 10px 16px;
    border-radius: 6px;
    color: #314b4f;
    font-size: 13px;
    line-height: 1.35;
}

.sidebar-link::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #b8c8c8;
    transform: translateY(-50%);
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: #edf6f6;
    color: #004f55;
}

.sidebar-link.is-active {
    font-weight: 650;
}

.sidebar-link.is-active::before,
.sidebar-link:hover::before {
    background: #e67e22;
}

.impa-content {
    min-width: 0;
    border: 1px solid #dfe8e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 70, 70, 0.05);
    overflow: hidden;
}

.content-title {
    margin: 0;
    padding: 20px 22px 18px;
    border-bottom: 1px solid #e8eeee;
    color: #123a40;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0;
}

.content-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: #e67e22;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0;
    padding: 8px 0;
}

.grid-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 74px;
    padding: 16px 18px;
    border-right: 1px solid #edf2f2;
    border-bottom: 1px solid #edf2f2;
    color: #31484c;
    font-size: 14px;
    line-height: 1.45;
}

.grid-item a:hover {
    background: #f5fbfb;
    color: #003f45;
}

.impa-code {
    flex: 0 0 auto;
    min-width: 58px;
    padding: 4px 7px;
    border-radius: 4px;
    background: #eef6f6;
    color: #006b76;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0;
}

.grid-item a:hover .impa-code {
    background: #006b76;
    color: #fff;
}

.impa-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-top: 1px solid #e8eeee;
    background: #fbfdfd;
}

.impa-pagination ul,
.impa-pagination ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.impa-pagination a,
.impa-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.result-count {
    color: #607476;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .breadcrumb-inner {
        flex-wrap: wrap;
    }

    .impa-search-form {
        width: 100%;
        margin-left: 0;
    }

    .impa-container {
        grid-template-columns: 1fr;
        padding: 16px 12px 20px;
    }

    .impa-sidebar {
        display: none;
    }

    .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 576px) {
    .breadcrumb-nav-wrapper {
        padding: 14px 12px;
    }

    .impa-container {
        margin: 0 -1px;
        padding: 12px 10px 18px;
    }

    .grid-list {
        grid-template-columns: 1fr;
    }

    .grid-item a {
        border-right: 0;
    }

    .impa-pagination {
        align-items: stretch;
        flex-direction: column;
    }
}

.impa-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    margin: 22px;
    padding: 24px;
    border: 1px solid #dfeaea;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfc 100%);
    box-shadow: 0 10px 24px rgba(0, 70, 70, 0.07);
}

.impa-left {
    padding-top:36px;
    min-width: 0;
}

.impa-show-box {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 22px;
    border: 1px solid #d6e5e5;
    border-radius: 8px;
    background: #0f5f63;
    color: #fff;
    text-align: center;
}

.impa-show-box .impa-text {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.impa-show-box .impa-code {
    display: block;
    margin-top: 10px;
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.1;
}

.impa-right {
    min-width: 0;
}

.impa-desc {
    margin: 0 0 18px;
    color: #123a40;
    font-size: 24px;
    line-height: 1.25;
}

.impa-params {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid #e4eeee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.param-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 44px;
    border-bottom: 1px solid #eaf1f1;
}

.param-row:last-child {
    border-bottom: 0;
}

.param-row dt,
.param-row dd {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 10px 14px;
    line-height: 1.45;
}

.param-row dt {
    background: #f2f8f8;
    color: #466366;
    font-weight: 700;
}

.param-row dd {
    color: #223f43;
    overflow-wrap: anywhere;
}

.quote-button-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 6px;
    background: #e67e22;
    color: #fff;
    font-weight: 700;
}

.quote-btn:hover {
    background: #cf6f16;
    color: #fff;
}

.print-btn {
    border: 1px solid #cbdada;
    background: #fff;
    color: #0f5f63;
}

.print-btn:hover {
    border-color: #0f5f63;
    background: #edf6f6;
    color: #0f5f63;
}

.impa-detail {
    margin: 0 22px 24px;
    padding-top: 4px;
}

.impa-detail h3 {
    margin: 22px 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e4eeee;
    color: #123a40;
    font-size: 18px;
}

.impa-detail p {
    color: #405c60;
    line-height: 1.75;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e4eeee;
    border-radius: 8px;
}

.impa-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: #fff;
}

.impa-table th,
.impa-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf3f3;
    text-align: left;
    vertical-align: top;
}

.impa-table th {
    background: #f2f8f8;
    color: #123a40;
    font-size: 13px;
    text-transform: uppercase;
}

.impa-table tr:last-child td {
    border-bottom: 0;
}

.impa-table a {
    font-weight: 700;
}

@media (max-width: 900px) {
    .impa-card {
        grid-template-columns: 1fr;
        margin: 16px 14px;
        padding: 18px;
    }

    .impa-show-box {
        min-height: 160px;
    }

    .impa-detail {
        margin: 0 14px 20px;
    }
}

@media (max-width: 576px) {
    .impa-card {
        margin: 12px 10px;
        padding: 14px;
    }

    .impa-desc {
        font-size: 20px;
    }

    .param-row {
        grid-template-columns: 1fr;
    }

    .param-row dt {
        padding-bottom: 4px;
    }

    .param-row dd {
        padding-top: 4px;
    }

    .quote-btn {
        width: 100%;
    }
}

.recommend-section {
    grid-column: 1 / -1;
    margin: 18px 0 22px;
    width: 100%;
    padding: 0 20px;
}

.swiper-scroll.is-dragging a {
    pointer-events: none;
}

.swiper-item .item-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    background: #f5f8f8;
}
.swiper-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.swiper-item .item-img picture {
    display: block;
    width: 100%;
    height: 100%;
}
.swiper-item .item-img img.loaded,
.swiper-item .item-img img[src] {
    opacity: 1;
}
.swiper-item a:hover .item-img img {
    transform: scale(1.03);
}
.swiper-item .item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    min-height: calc(13px * 1.35 * 2);
    margin-top: 7px;
    overflow: hidden;
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.35;
}
.swiper-arrow {
    position: absolute;
    top: 42%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: rgba(255,255,255,0.68);
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transform: translateY(-50%);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    backdrop-filter: blur(2px);
}
.swiper-arrow:hover,
.swiper-arrow:focus-visible {
    border-color: var(--color-primary);
    background: rgba(0,102,102,0.82);
    color: #fff;
    outline: none;
}
.swiper-arrow[disabled] {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.swiper-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 18px;
    margin-top: 12px;
}
.swiper-dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    background: #cbdada;
    cursor: pointer;
    padding: 0;
    transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}
.swiper-dot.is-active {
    width: 18px;
    border-radius: 999px;
    background: var(--color-primary);
}

@media (max-width: 991px) {
    .recommend-section {
        padding: 0 12px;
    }
}

@media (max-width: 767px) {
    .recommend-section {
        padding: 0;
    }
    .swiper-wrapper {
        gap: 10px;
    }
    .swiper-arrow {
        top: 38%;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Product Detail */
/* Source: app/home/view/post/product.html */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
}

@font-face {
    font-family: 'jinbomarine';
    src: url('/static/font/serpentineicg/serpentineicg-bold-webfont.eot');
    src: url('/static/font/serpentineicg/serpentineicg-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('/static/font/serpentineicg/serpentineicg-bold-webfont.woff2') format('woff2'),
         url('/static/font/serpentineicg/serpentineicg-bold-webfont.woff') format('woff'),
         url('/static/font/serpentineicg/serpentineicg-bold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

.page-header {
    position: relative;
    background: var(--color-card);
    box-shadow: var(--shadow);
    padding-top: 26px;
}

.bar {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    padding: 4px 0;
    z-index: 9;
}
.bar .tags {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}
.bar a {
    color: rgba(255,255,255,.9) !important;
}
.bar a:hover {
    color: #fff !important;
}

.header-inner {
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand {
    width: 55%;
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo {
    width: 90px; height: 90px;
    overflow: hidden;
    flex-shrink: 0;
}
.logo img {
    width: 90px; height: 180px;
    object-position: top left;
}
.brand-text h1,
.brand-name {
    font-family: 'jinbomarine', sans-serif;
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    color: #004098;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.brand-text p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 3px;
    line-height: 1.4;
}

.header-actions {
    width: 45%;
    display: flex;
    gap: 8px;
}
.search-form {
    flex: 1;
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}
.search-input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border: none; outline: none;
    background: #fff;
}
.search-btn {
    width: 46px; height: 46px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    display: grid;
    place-items: center;
}
.request-a-quote a {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}
.request-a-quote a:hover {
    background: #cc6d19;
}

.navigation-shell {
  margin-bottom: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.main-nav {
  background: var(--color-primary);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: 0;
  box-shadow: none;
}

.slider {
  margin: 0;
  background: transparent;
  border-radius: 0 0 12px 12px;
  padding: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 10 / 3;
  box-shadow: none;
}

.nav-toggle {
    display: none;
    padding: 14px 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 18px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 12px 12px 0 0;
}
.nav-list {
    display: flex;
    white-space: nowrap;
}
.nav-list a {
    display: block;
    padding: 15px 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.nav-list a:hover,
.nav-list .active a {
    background: var(--color-primary-dark);
    border-radius: 8px;
}

.slide {
    position: absolute;
    inset: 12px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}
.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0 0 8px 8px;
}

.page-main {
  padding: 12px 0 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.breadcrumb-nav {
    margin: 0 12px 12px;
    padding: 8px 0 10px;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 0;
    padding: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.45;
    list-style: none;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: #9aa6a6;
}

.breadcrumb-link {
    display: inline-block;
    max-width: 240px;
    color: var(--color-primary);
    overflow-wrap: anywhere;
    text-decoration: none;
}

.breadcrumb-item:last-child .breadcrumb-link {
    color: var(--color-text);
    pointer-events: none;
}

.breadcrumb-link:hover {
    color: var(--color-primary-dark);
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.content {
  padding: 20px;
}

.sidebar {
  padding: 20px;
  position: relative;
  z-index: 10;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f2f32;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e0e7e7;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu li {
    position: relative;
    margin-bottom: 4px;
}

.category-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    color: #334a4b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.24s ease;
    white-space: normal;
    word-break: break-all;
    line-height: 1.15;
}

.category-menu > li > a:hover {
    background: #e6f0f0;
    color: #0f2f32;
    padding-left: 16px;
}

.category-menu ul a:hover {
    background: #f0f5f5;
    color: #0f2f32;
    padding-left: 16px;
}

.category-menu a .bi.bi-chevron-right {
    font-size: 12px;
    opacity: 0.6;
    flex-shrink: 0;
    margin-left: 6px;
    transition: transform 0.2s;
}

.category-menu li:hover > a .bi.bi-chevron-right {
    transform: rotate(90deg);
    opacity: 0.8;
}

.category-menu li > ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 190px;
    max-width: 230px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e6ecec;
    padding: 8px 0;
    z-index: 9999;
    white-space: normal;
}

.category-menu li ul li ul {
    left: 100%;
    top: 0;
}

.category-menu li:hover > ul {
    display: block;
}

.recommend-section {
    margin: 18px 0 22px;
    width: 100%;
    padding: 0 20px;
}
.rec-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f2f32;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 6px;
}
.rec-title::before {
    content: "";
    width: 4px;
    height: 14px;
    background: var(--color-primary);
    border-radius: 2px;
}
.swiper-container {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: visible;
}
.swiper-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    cursor: grab;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    user-select: none;
}
.swiper-scroll::-webkit-scrollbar {
    display: none;
}
.swiper-scroll:active {
    cursor: grabbing;
}

.swiper-wrapper {
    display: flex;
    gap: 12px;
}
.swiper-item {
    flex: 0 0 calc((80% - 57.6px) / 7);
    width: calc((80% - 57.6px) / 7);
    min-width: 0;
    flex-shrink: 0;
    scroll-snap-align: start;
}
.swiper-item a {
    display: block;
    text-decoration: none;
    color: #333;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    padding: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.swiper-item a:hover {
    border-color: #cbdada;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.item-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.item-name {
    display: -webkit-box;
    min-height: calc(13px * 1.35 * 2);
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
    text-align: left;
}
.no-data {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    color: #999;
}
.swiper-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 46px;
    border: 0;
    background: rgba(0, 68, 68, 0.46);
    color: #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.16);
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.swiper-prev { left: 8px; }
.swiper-next { right: 8px; }
.swiper-arrow:hover {
    background: rgba(0, 102, 102, 0.82);
    transform: translateY(-50%) scale(1.03);
}
.swiper-arrow.swiper-arrow-disabled {
    background: rgba(0,0,0,0.18);
    cursor: not-allowed;
    opacity: 0.45;
}

.swiper-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.swiper-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}
.swiper-indicator-dot.active {
    background: var(--color-primary);
    width: 16px;
    border-radius: 4px;
}

#swiperIndicatorsHistory {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 20px;
    margin-top: 14px;
}

#swiperIndicatorsHistory .swiper-indicator-dot,
#swiperIndicatorsHistory .swiper-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c3d1d1;
    cursor: pointer;
    opacity: 1;
    transition: width 0.2s ease, background-color 0.2s ease, border-radius 0.2s ease;
}

#swiperIndicatorsHistory .swiper-indicator-dot.active,
#swiperIndicatorsHistory .swiper-indicator-dot.is-active,
#swiperIndicatorsHistory .swiper-dot.active,
#swiperIndicatorsHistory .swiper-dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: #0f5f63;
}

.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-item {
    text-align: center;
}

.product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}
.product-img::before {
    content: none;
}
.loading-placeholder {
    position: absolute;
    z-index: 1;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    opacity: 0;
}
.product-img img.loaded {
    opacity: 1;
}

img[src=""], img:not([src]), img[src*="undefined"], img[src*="null"] {
    display: none !important;
}

.product-name {
    font-size: 0.875rem;
    margin-top: 8px;
}

.main.products {
    min-width: 0;
}

.main.products .category-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 24px;
    align-items: end;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.main.products .eyebrow {
    margin: 0 0 6px;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main.products .category-header h1 {
    margin: 0;
    color: #0f2f32;
    font-size: 1.75rem;
    line-height: 1.2;
}

.main.products .category-brief {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.main.products .category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.main.products .category-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #f8fbfb;
}

.main.products .category-actions {
    display: flex;
    justify-content: flex-end;
}

.main.products .rfq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.main.products .rfq-button:hover {
    background: #cf6f16;
    color: #fff;
}

.main.products .category-section > h2 {
    margin: 30px 0 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--color-border);
    color: #0f2f32;
    font-size: 1.18rem;
    line-height: 1.3;
}

.main.products .category-section:first-of-type > h2 {
    margin-top: 0;
}

.main.products .summary {
    margin: 20px 0 26px;
    padding: 18px 0 0;
    border-top: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.main.products .summary p {
    margin: 0 0 10px;
}

.main.products .summary p:last-child {
    margin-bottom: 0;
}

.main.products .product-detail-container {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 28px);
    align-items: start;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.main.products .product-gallery {
    width: 100%;
    min-width: 0;
}

.main.products .carousel-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: #fff;
    overflow: hidden;
}

.main.products .carousel-main .loading-placeholder {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f8fbfb;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
    transform: none;
}

.main.products .carousel-main .loading-placeholder::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: 9px;
    border: 2px solid #cbdada;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: imageLoadingSpin 0.8s linear infinite;
}

@keyframes imageLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

.main.products .carousel-inner {
    width: 100%;
    height: 100%;
}

.main.products .carousel-item {
    display: none;
    width: 100%;
    height: 100%;
}

.main.products .carousel-item.active {
    display: block;
}

.main.products .carousel-item picture,
.main.products .carousel-item img {
    width: 100%;
    height: 100%;
}

.main.products .carousel-item img {
    object-fit: contain;
}

.main.products .carousel-prev,
.main.products .carousel-next {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 68, 68, 0.78);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.main.products .carousel-prev {
    left: 10px;
}

.main.products .carousel-next {
    right: 10px;
}

.main.products .carousel-prev:hover,
.main.products .carousel-next:hover {
    background: var(--color-primary);
}

.main.products .carousel-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.main.products .carousel-thumbs .thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.main.products .carousel-thumbs .thumb:hover,
.main.products .carousel-thumbs .thumb.active {
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.main.products .product-info {
    width: 100%;
    min-width: 0;
}

@media (max-width: 960px) {
    .main.products .product-detail-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.main.products .product-title {
    margin: 0 0 12px;
    color: #0f2f32;
    font-size: 1.55rem;
    line-height: 1.25;
}

.main.products .product-meta {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.main.products .meta-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding-bottom: 9px;
    border-bottom: 1px solid #edf1f1;
}

.main.products .meta-label {
    color: var(--color-text-muted);
    font-weight: 600;
}

.main.products .meta-value {
    min-width: 0;
    color: var(--color-text);
}

.main.products .product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.main.products .quote-btn,
.main.products .print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    font-weight: 700;
}

.main.products .quote-btn {
    background: var(--color-accent);
    color: #fff;
}

.main.products .quote-btn:hover {
    background: #cf6f16;
    color: #fff;
}

.main.products .print-btn {
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-primary);
}

.main.products .print-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.main.products .print-btn-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.main.products .product-desc-tip {
    margin: 14px 0 0;
    color: var(--color-text-muted);
}

.main.products .product-content {
    margin-top: 26px;
    color: var(--color-text);
    line-height: 1.75;
}

.main.products .product-content h2 {
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    color: #0f2f32;
    font-size: 1.18rem;
}

.main.products .product-content .content-body {
    margin-bottom: 20px;
}

.main.products .product-content p {
    max-width: 78ch;
    margin: 0 0 14px;
}

.main.products .product-content ul,
.main.products .product-content ol {
    margin: 10px 0 14px 22px;
}

.main.products .product-content li {
    margin-bottom: 5px;
}

.main.products .product-content figure {
    width: min(75%, 750px);
    max-width: 100%;
    margin: 22px auto;
    text-align: center;
}

.main.products .product-content figure.technical-drawing {
    width: min(75%, 750px);
}

.main.products .product-content figure .content-image-trigger,
.main.products .product-content figure picture {
    display: block;
    width: 100%;
}

.main.products .product-content figure .content-image-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.main.products .product-content figure .content-image-trigger:focus-visible {
    border-radius: var(--border-radius);
    outline: 3px solid rgba(0, 102, 102, 0.35);
    outline-offset: 4px;
}

.main.products .product-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 47, 50, 0.08);
}

body.has-content-lightbox {
    overflow: hidden;
}

.content-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 24px;
    background: rgba(5, 18, 20, 0.9);
    backdrop-filter: blur(3px);
}

.content-lightbox.is-open {
    display: flex;
}

.content-lightbox img {
    display: block;
    width: auto;
    max-width: min(94vw, 1600px);
    max-height: calc(100vh - 80px);
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
    cursor: zoom-out;
}

.content-lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.content-lightbox-close:hover,
.content-lightbox-close:focus-visible {
    background: var(--color-primary);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.main.products .product-content .table-responsive {
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.main.products .product-content .product-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    font-size: 0.92rem;
    line-height: 1.5;
}

.main.products .product-content .product-table th,
.main.products .product-content .product-table td {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    vertical-align: top;
    text-align: left;
}

.main.products .product-content .product-table th {
    background: #f3f8f8;
    color: #0f2f32;
    font-weight: 600;
}

.main.products .product-content .product-table tr:nth-child(even) td {
    background: #fbfcfc;
}

.main.products .content-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 1 / -1;
    margin: 4px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

.main.products .content-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 600;
}

.main.products .content-menu a:hover {
    background: #f5fbfb;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.main.products .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main.products .product {
    min-width: 0;
}

.main.products .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.main.products .product-card:hover {
    border-color: #cbdada;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.main.products .thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    overflow: hidden;
}

.main.products .thumbnail a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: var(--color-text-muted);
}

.main.products .thumbnail img {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    opacity: 0;
    transition: transform 0.2s ease;
}

.main.products .thumbnail img.loaded {
    opacity: 1;
}

.main.products .product:hover .thumbnail img {
    transform: scale(1.03);
}

.main.products .thumbnail em {
    position: absolute;
    z-index: 3;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 7px;
    border-radius: 4px;
    background: rgba(0, 102, 102, 0.9);
    color: #fff;
    font-size: 12px;
    font-style: normal;
    line-height: 1.2;
}

.main.products .product-name {
    margin: 10px 0 0;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
}

.main.products .product-name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    min-height: calc(0.875rem * 1.45 * 2);
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}
.main.products .product-name a:hover {
    color: var(--color-primary);
}

.main.products .pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.main.products .pagination:empty {
    display: none;
}

.main.products .pagination-total {
    margin-right: auto;
}

.main.products .pagination-link,
.main.products .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    line-height: 1;
    text-decoration: none;
}

.main.products .pagination-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.main.products .pagination-link.is-current {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.main.products .pagination-ellipsis {
    border-color: transparent;
    background: transparent;
    color: var(--color-text-muted);
}

.main.products .empty-message {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-muted);
    background: #f8f9fa;
}

@media (max-width: 576px) {
    .breadcrumb-nav {
        margin: 0 8px 10px;
        padding-bottom: 8px;
    }

    .breadcrumb-list {
        font-size: 12px;
    }

    .breadcrumb-link {
        max-width: 46vw;
    }

    .main.products .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .recommend-section {
        padding: 0 12px;
    }

    .swiper-item {
        flex-basis: 110px;
        width: 110px;
        min-width: 110px;
    }

    .swiper-arrow {
        width: 30px;
        height: 40px;
        font-size: 18px;
    }

    .swiper-prev {
        left: 4px;
    }

    .swiper-next {
        right: 4px;
    }

    .main.products .product-detail-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .main.products .carousel-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .main.products .meta-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .main.products .product-content .table-responsive {
        margin: 14px -12px;
        padding: 0 12px;
    }

    .main.products .product-content figure {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .main.products .product-content figure.technical-drawing {
        width: 100%;
    }

    .main.products .product-content .product-table {
        min-width: 560px;
        font-size: 0.86rem;
    }

    .main.products .product-content .product-table th,
    .main.products .product-content .product-table td {
        padding: 8px 10px;
    }

    .main.products .product-actions {
        flex-direction: column;
    }

    .main.products .quote-btn,
    .main.products .print-btn {
        width: 100%;
    }

    .main.products .pagination {
        justify-content: center;
        gap: 6px;
    }

    .main.products .pagination-total {
        flex-basis: 100%;
        margin-right: 0;
        text-align: center;
    }

    .main.products .pagination-link,
    .main.products .pagination-ellipsis {
        min-width: 32px;
        height: 32px;
        padding: 0 9px;
    }
}

.service {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 32px 0 0;
}
.service > div {
    min-height: 118px;
    padding: 24px 22px 22px 104px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-card);
    background-repeat: no-repeat;
    background-position: 24px center;
    background-size: 58px 58px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service > div::before {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 5px solid var(--color-primary);
    opacity: 0.9;
    pointer-events: none;
}
.service > div:hover {
    border-color: rgba(27, 96, 166, 0.28);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.service h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin: 0 0 8px;
    line-height: 1.25;
    text-transform: uppercase;
}
.service p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
}
.service1 {
    background-image: url(/static/image/service-1.png);
}
.service2 {
    background-image: url(/static/image/service-2.png);
}
.service3 {
    background-image: url(/static/image/service-3.png);
}

.page-footer {
    margin-top: 32px;
    padding: 0;
    background: #0f2f32;
    border-top: 4px solid var(--color-accent);
    color: rgba(255, 255, 255, 0.82);
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px 36px;
    padding-top: 34px;
    padding-bottom: 26px;
}
.page-footer .mod {
    margin: 0;
}

.page-footer .mod.logos {
    grid-column: 1 / -1;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.mod-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.society-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.society-list li {
    height: 50px;
    background: url(/static/image/logos-f3.png) no-repeat;
    opacity: 0.82;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 6px;
    padding: 2px;
}
.society-list li:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.society-list li a {
    display: block;
    height: 50px;
    color: transparent;
    font-size: 0;
    cursor: default;
}

.society-list li.bv    { width: 40px; background-position: -34px -50px; }
.society-list li.lr    { width: 97px; background-position: -79px -50px; }
.society-list li.abs   { width: 145px; background-position: -773px -50px; }
.society-list li.ccs   { width: 75px; background-position: -280px -50px; }
.society-list li.cl    { width: 190px; background-position: -434px -50px; }
.society-list li.rina  { width: 53px; background-position: -624px -50px; }
.society-list li.dnvgl { width: 91px; background-position: -679px -50px; }
.society-list li.kr    { width: 97px; background-position: -175px -49px; }

.mod .text {
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}
.mod .text p {
    max-width: 560px;
    margin: 0 0 10px;
}
.mod .text strong {
    color: #fff;
}
.footer-logo {
    position: static;
    display: inline-block;
    margin: 0 0 12px;
    color: #fff;
    font-family: "jinbomarine";
    font-size: 26px;
    line-height: 1;
}

.footer-nav {
    height: auto;
    line-height: 1.4;
    justify-self: end;
}
.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav li {
    margin: 0;
}
.footer-nav a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: #fff;
}

.followus {
    display: flex;
    justify-self: end;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    height: auto;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.72);
}
.followus .ico {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.followus .ico:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}
.ico-twitter  { background-image: url(/static/image/social-media-icons/32px/twitter.png); }
.ico-facebook { background-image: url(/static/image/social-media-icons/32px/facebook.png); }
.ico-linkedin { background-image: url(/static/image/social-media-icons/32px/linkedin.png); }

@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }
    .page-header {
        padding-top: 24px;
    }
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 0;
    }
    .brand,
    .header-actions {
        width: 100%;
    }
    .brand {
        justify-content: center;
        text-align: center;
    }
    .logo {
        display: none;
    }
    .brand-text h1,
    .brand-name {
        font-size: 1.35rem;
        line-height: 1.15;
    }
    .brand-text p {
        font-size: 0.76rem;
    }
    .header-actions {
        flex-direction: column;
    }
    .request-a-quote a {
        width: 100%;
    }
    .nav-toggle {
        display: block;
    }
    .nav-list {
        display: none;
        white-space: normal;
    }
    .nav-list.show {
        display: block;
    }
    .nav-list a {
        padding: 13px 16px;
        border-top: 1px solid rgba(255,255,255,0.16);
    }
    .nav-list a:hover,
    .nav-list .active a {
        border-radius: 0;
    }
    .slider,
    .sidebar {
        display: none;
    }
    .page-main {
        padding: 0;
        margin-top: 12px;
    }
    .breadcrumb-nav {
        margin: 0 10px 10px;
        padding-top: 10px;
    }
    .main-grid {
        display: block;
    }
    .content {
        padding: 16px 12px;
    }
    .main.products .category-header {
        grid-template-columns: 1fr;
        gap: 14px;
        align-items: start;
    }
    .main.products .category-header h1 {
        font-size: 1.45rem;
    }
    .main.products .category-brief {
        font-size: 0.9rem;
    }
    .main.products .category-actions {
        justify-content: stretch;
        width: 100%;
    }
    .main.products .rfq-button {
        width: 100%;
    }
    .section {
        margin-bottom: 24px;
    }
    .section-header {
        align-items: flex-start;
        gap: 10px;
    }
    .service {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .service > div {
        min-height: auto;
        padding: 18px 16px 18px 86px;
        background-position: 20px center;
        background-size: 48px 48px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 28px;
        padding-bottom: 24px;
    }
    .footer-nav,
    .footer-nav ul,
    .followus {
        justify-content: flex-start;
        justify-self: start;
    }
    .followus {
        margin-top: 16px;
        flex-wrap: wrap;
    }
    .society-list {
        gap: 10px 16px;
    }
}

/* Inquiry Form */
/* Source: app/home/view/common/comment.html */
.inquiry-section {
    max-width: 1180px;
    margin: 32px auto 0;
    padding: 34px 32px;
    background: #f6fbfb;
    border: 1px solid #e0e9e8;
    border-radius: 6px;
    box-shadow: inset 0 3px 0 #007070;
}

.inquiry-header {
    max-width: 760px;
    margin-bottom: 26px;
}
.inquiry-header h2 {
    margin: 0 0 8px;
    color: #113336;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: 0;
}
.inquiry-header p {
    margin: 0;
    color: #5a6e70;
    font-size: 0.95rem;
}
.inquiry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 30px;
    align-items: stretch;
}
.inquiry-section form {
    display: grid;
    gap: 16px;
}
.inquiry-section .form-group {
    display: grid;
    gap: 8px;
}
.inquiry-section .form-group label {
    color: #2a4a4d;
    font-size: 0.9rem;
    font-weight: 500;
}
.inquiry-section .form-group input,
.inquiry-section .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0dddd;
    border-radius: 8px;
    background: #ffffff;
    color: #2a4a4d;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 13px 14px;
    outline: none;
    transition: all 0.24s ease;
}
.inquiry-section .form-group textarea {
    min-height: 142px;
    resize: vertical;
}
.inquiry-section .form-group input:focus,
.inquiry-section .form-group textarea:focus {
    border-color: #007070;
    box-shadow: 0 0 0 4px rgba(0, 112, 112, 0.1);
}
.inquiry-section .captcha-group {
    grid-template-columns: 1fr 140px;
    align-items: end;
    gap: 12px;
}
.inquiry-section .captcha-group label {
    grid-column: 1 / -1;
}
.inquiry-section .captcha-group img {
    width: 100%;
    height: 46px;
    border: 1px solid #d0dddd;
    border-radius: 6px;
    background: #fff;
    object-fit: cover;
    cursor: pointer;
    transition: border-color 0.2s;
}
.inquiry-section .captcha-group img:hover {
    border-color: #007070;
}
.inquiry-section .form-button-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.inquiry-section .submit-btn {
    border: 0;
    border-radius: 8px;
    background: #007070;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    min-width: 150px;
    padding: 14px 32px;
    transition: all 0.24s ease;
}
.inquiry-section .submit-btn:hover {
    background: #005858;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 112, 112, 0.15);
}
.inquiry-section .msg-box {
    color: #5a6e70;
    font-size: 0.875rem;
}
.contact-info {
    padding: 26px;
    border: 1px solid #e0e9e8;
    border-left: 4px solid #007070;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 102, 102, 0.03);
    height: 100%;
    box-sizing: border-box;
}
.contact-info p {
    margin: 0 0 12px;
    color: #3d5356;
    font-size: 0.95rem;
    line-height: 1.6;
}
.contact-info p:last-child {
    margin-bottom: 0;
}
.contact-info strong {
    color: #113336;
    font-size: 1rem;
}
.contact-info a {
    overflow-wrap: anywhere;
}
.email-link {
    color: #007070;
    font-weight: 500;
    text-decoration: none;
}
.email-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .inquiry-section {
        margin-top: 24px;
        padding: 24px 16px;
        border-radius: 10px;
    }
    .inquiry-header {
        display: block;
        margin-bottom: 20px;
    }
    .inquiry-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .inquiry-section .captcha-group {
        grid-template-columns: 82px 132px 116px;
        align-items: center;
        gap: 8px;
    }
    .inquiry-section .captcha-group label {
        grid-column: auto;
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .inquiry-section .captcha-group img {
        width: 116px;
        min-width: 0;
        object-fit: contain;
    }
    .inquiry-section .captcha-group #inquiryCaptcha {
        width: 132px;
        min-width: 0;
    }
    .inquiry-section .form-button-group {
        align-items: stretch;
        flex-direction: column;
    }
    .inquiry-section .submit-btn {
        width: 100%;
        text-align: center;
    }
    .contact-info {
        padding: 20px;
        height: auto;
    }
}
@media (max-width: 420px) {
    .inquiry-section {
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .inquiry-section .captcha-group {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 8px;
    }
    .inquiry-section .captcha-group label {
        display: none;
    }
    .inquiry-section .captcha-group img {
        width: 100%;
    }
    .inquiry-section .captcha-group #inquiryCaptcha {
        width: 100%;
    }
}

/* Layout / Category two-column fix */
@media (min-width: 1024px) {
    .page-main > .main-grid:not(.product-detail-grid) {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        align-items: start;
    }

    .page-main > .main-grid > .sidebar {
        grid-column: 1;
        min-width: 0;
    }

    .page-main > .main-grid > .content {
        grid-column: 2;
        min-width: 0;
    }

    .page-main > .main-grid > .recommend-section {
        grid-column: 1 / -1;
        min-width: 0;
    }
}

@media (min-width: 1280px) {
    .page-main > .main-grid:not(.product-detail-grid) {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

@media (max-width: 1023px) {
    .page-main > .main-grid:not(.product-detail-grid) {
        grid-template-columns: 1fr;
    }

    .page-main > .main-grid:not(.product-detail-grid) > .sidebar {
        display: none;
    }
}

/* Product detail layout */
.page-main > .product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.page-main > .product-detail-grid > .recommend-section:first-child {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
}

.page-main > .product-detail-grid > .content {
    grid-column: 1 / -1;
    min-width: 0;
}

.page-main > .product-detail-grid > .recommend-section:not(:first-child) {
    grid-column: 1 / -1;
    min-width: 0;
}

.page-main > .product-detail-grid .swiper-indicators {
    max-width: 100%;
}

.page-main > .product-detail-grid > .recommend-section:first-child {
    align-self: start;
    padding: 0 20px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}

.page-main > .product-detail-grid > .recommend-section:first-child .swiper-container {
    min-width: 0;
}

.page-main > .product-detail-grid > .recommend-section:first-child .swiper-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.page-main > .product-detail-grid > .recommend-section:first-child .swiper-wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.page-main > .product-detail-grid > .recommend-section:first-child .swiper-item {
    flex: 0 0 121px;
    width: 121px;
    min-width: 121px;
    height: 137px;
    overflow: hidden;
}

.page-main > .product-detail-grid > .recommend-section:first-child .swiper-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-main > .product-detail-grid > .recommend-section:first-child .item-img {
    width: 100%;
    height: 77px;
}

.page-main > .product-detail-grid > .recommend-section:first-child .item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-main > .product-detail-grid > .recommend-section:first-child .item-name {
    min-height: 40px;
    max-height: 48px;
    padding: 6px;
    font-size: 12px;
    line-height: 1.25;
    overflow: hidden;
}

.page-main > .product-detail-grid > .recommend-section:first-child .swiper-indicators {
    display: flex;
}

.page-main > .product-detail-grid .swiper-indicators {
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 20px;
    margin-top: 14px;
}

.page-main > .product-detail-grid .swiper-indicator-dot,
.page-main > .product-detail-grid .swiper-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c3d1d1;
    cursor: pointer;
    opacity: 1;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.page-main > .product-detail-grid .swiper-indicator-dot.active,
.page-main > .product-detail-grid .swiper-indicator-dot.is-active,
.page-main > .product-detail-grid .swiper-dot.active,
.page-main > .product-detail-grid .swiper-dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: #0f5f63;
}

@media (max-width: 1023px) {
    .page-main > .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .page-main > .product-detail-grid > .recommend-section:first-child,
    .page-main > .product-detail-grid > .content,
    .page-main > .product-detail-grid > .recommend-section:not(:first-child) {
        grid-column: 1 / -1;
    }
}

/* IMPA layout fix */
.page-main > .main-grid > .breadcrumb-nav-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.page-main > .main-grid > .breadcrumb-nav-wrapper .breadcrumb-inner {
    flex-wrap: wrap;
    gap: 8px 10px;
}

.page-main > .main-grid > .breadcrumb-nav-wrapper .impa-search-form {
    flex: 0 1 360px;
    min-width: 260px;
}

.page-main > .main-grid > .impa-container {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.page-main > .main-grid > .impa-container > .impa-sidebar,
.page-main > .main-grid > .impa-container > .impa-content {
    min-width: 0;
}

@media (max-width: 1023px) {
    .page-main > .main-grid > .breadcrumb-nav-wrapper .impa-search-form {
        flex-basis: 100%;
        min-width: 0;
        margin-left: 0;
    }

    .page-main > .main-grid > .impa-container {
        grid-template-columns: 1fr;
    }
}

/* Search results page */
.search-page > .search-breadcrumb {
    margin-bottom: 0;
}

.search-layout {
    border: 1px solid var(--color-border);
    border-top: 0;
    background: #fff;
}

.search-results-panel {
    min-width: 0;
    padding: 24px;
}

.search-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
}

.search-kicker {
    margin: 0 0 6px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.search-head h1 {
    margin: 0;
    color: #173f42;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.25;
}

.result-count {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #cfe1e1;
    border-radius: 999px;
    background: #f3fbfb;
    color: #24585d;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.result-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.result-card:hover {
    border-color: rgba(0, 102, 102, .45);
    box-shadow: 0 8px 18px rgba(0, 70, 70, .1);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.result-img {
    display: flex;
    aspect-ratio: 4 / 3;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    background: #f7fbfb;
    color: var(--color-text-muted);
    font-size: 13px;
}

.result-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-title {
    display: block;
    padding: 12px 13px 14px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
}

.search-empty {
    display: grid;
    gap: 6px;
    padding: 24px;
    border: 1px dashed #cbdada;
    border-radius: 8px;
    background: #f8fbfb;
    color: var(--color-text-muted);
}

.search-empty strong {
    color: #173f42;
    font-size: 16px;
}

.search-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.search-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-pagination li {
    display: inline-flex;
}

.search-pagination a,
.search-pagination span {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #d7e4e4;
    border-radius: 7px;
    background: #fff;
    color: #31595d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.search-pagination a:hover {
    border-color: var(--color-primary);
    background: #f0f8f8;
    color: var(--color-primary-dark);
}

.search-pagination .active span {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 102, 102, .18);
}

.search-pagination .disabled span {
    border-color: #e3ebeb;
    background: #f7fafa;
    color: #9aabab;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .search-results-panel {
        padding: 18px 14px;
    }

    .search-head {
        display: block;
    }

    .result-count {
        margin-top: 12px;
    }

    .result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .search-pagination {
        margin-top: 18px;
        padding-top: 14px;
    }

    .search-pagination .pagination {
        gap: 6px;
    }

    .search-pagination a,
    .search-pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 9px;
        border-radius: 6px;
        font-size: 12px;
    }
}

/* Final mobile header override */
@media (max-width: 767px) {
    .page-header {
        padding-top: 0;
    }

    .page-header .bar {
        position: static;
        padding: 6px 0;
        line-height: 1.35;
    }

    .page-header .bar .tags {
        display: block;
        padding: 0 12px;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .page-header .header-inner {
        padding: 14px 0 12px;
    }

    .page-header .brand {
        min-width: 0;
        justify-content: center;
    }

    .page-header .brand-text {
        min-width: 0;
    }

    .page-header .brand-name,
    .page-header .brand-text h1 {
        font-size: clamp(1.25rem, 6vw, 1.55rem);
        line-height: 1.15;
    }
}

/* Header search width adjustment */
.header-actions {
    justify-content: flex-end;
}

.header-actions .search-form:has(#siteSearch) {
    flex: 0 1 75%;
    max-width: 75%;
}

@media (max-width: 767px) {
    .header-actions .search-form:has(#siteSearch) {
        flex-basis: 100%;
        max-width: 100%;
    }
}
