/* ============================================================
   Public site — v2 components
   (loaded after style.css, so it can extend the original theme)
   ============================================================ */

:root {
    --ink: #141b2d;
    --muted: #6b7788;
    --line: #e6ebf2;
    --surface: #ffffff;
    --tint: #f3f7fc;
    --green: #2e9d6a;
    --amber: #f5a623;
    --red: #e05a4f;
}

body { background: #f6f8fb; }

/* --- Header additions ------------------------------------------------ */
.company-info { text-decoration: none; }
.company-info:hover .company-title { transform: none; }
nav ul li a.nav-cta {
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    margin-left: 0.4rem;
}
nav ul li a.nav-cta::after { display: none; }
nav ul li a.nav-cta:hover { background: var(--primary-dark); color: #fff; }

/* --- Flash messages --------------------------------------------------- */
.flash-stack {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1.5rem;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 360px;
}
.flash {
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 12px 30px rgba(15, 32, 55, 0.16);
    background: #fff;
    border-left: 4px solid var(--primary);
    animation: flashIn 0.3s ease;
}
.flash-success { border-left-color: var(--green); }
.flash-error { border-left-color: var(--red); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --- Buttons ---------------------------------------------------------- */
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; transform: translateY(-2px); }
.cta-band .btn-ghost, .hero .btn-ghost { color: #fff; }

/* --- Hero ------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 620px;
    padding: 5.5rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: #10233c;
    color: #fff;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.52; }
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(9, 24, 44, 0.94) 8%, rgba(10, 32, 58, 0.72) 46%, rgba(12, 38, 68, 0.28) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding-right: 38%;
    box-sizing: content-box;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    line-height: 1.12;
    color: #fff;
    margin-bottom: 1.1rem;
}
.hero h1 span {
    background: linear-gradient(120deg, #6ec6ff, #a5f3d0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content > p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    max-width: 560px;
    margin-bottom: 1.8rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-points {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    margin: 1.8rem 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.84rem;
}
.hero-points li::before { content: '✦'; color: var(--primary-light); margin-right: 0.4rem; }
.hero-stats {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.hero-stat { text-align: left; border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 1.2rem; }
.hero-stat:first-child { border-left: 0; padding-left: 0; }
.hero-stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-stat span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.62); }

/* --- Showcase / feature band ------------------------------------------ */
.showcase-card { text-decoration: none; }
.showcase-card h3 { color: var(--ink); }
.showcase-card:hover h3 { color: var(--primary-dark); }
.category-chip {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: #e8f2fd;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    margin-bottom: 0.5rem;
}
.feature-band {
    background: #fff;
    padding: 4.5rem 2rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.feature-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.7rem 1.5rem;
    background: linear-gradient(180deg, #fbfdff, #fff);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(24, 53, 88, 0.1); border-color: #cfe4fb; }
.feature-icon { font-size: 1.7rem; margin-bottom: 0.8rem; }
.feature-card h3 { font-size: 1.08rem; color: var(--ink); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.88rem; line-height: 1.7; color: var(--muted); margin: 0; }

.company-main { max-width: var(--max-width); margin: 0 auto; padding: 4rem 2rem; }

/* --- News cards ------------------------------------------------------- */
.news-preview { max-width: var(--max-width); margin: 4rem auto; padding: 0 2rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20, 45, 80, 0.1); }
.news-card-cover {
    height: 190px;
    background: linear-gradient(135deg, #123a63, #2196F3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.news-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card-cover img { transform: scale(1.05); }
.news-card-cover span { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.news-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.news-date { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.news-card-body h3 { font-size: 1.05rem; line-height: 1.4; color: var(--ink); margin: 0; }
.news-card-body p { font-size: 0.87rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: auto; padding-top: 0.6rem; font-size: 0.82rem; font-weight: 600; color: var(--primary); }

/* --- CTA band --------------------------------------------------------- */
.cta-band {
    max-width: var(--max-width);
    margin: 4rem auto 1rem;
    padding: 2.6rem 2.8rem;
    border-radius: 20px;
    background: linear-gradient(115deg, #0f2c4d, #1c5687 55%, #2196F3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    right: -60px; top: -140px;
}
.cta-band h2 { color: #fff; font-size: 1.55rem; margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin: 0; font-size: 0.92rem; max-width: 560px; }
.cta-actions { display: flex; gap: 0.8rem; flex-shrink: 0; flex-wrap: wrap; position: relative; }

/* --- Footer (v2) ------------------------------------------------------ */
footer { text-align: left; padding: 3.5rem 2rem 1.5rem; }
.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.3fr;
    gap: 3rem;
    text-align: left;
}
.footer-brand img { height: 52px; margin-bottom: 0.8rem; }
.footer-brand h3 { color: #fff; font-size: 0.98rem; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.84rem; max-width: 380px; }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.footer-links a { display: block; color: rgba(255, 255, 255, 0.62); font-size: 0.86rem; padding: 0.22rem 0; }
.footer-links a:hover { color: #fff; }
.footer-contact p { color: rgba(255, 255, 255, 0.6); font-size: 0.84rem; line-height: 1.8; }
.footer-contact a { color: rgba(255, 255, 255, 0.8); }
.footer-bottom {
    max-width: var(--max-width);
    margin: 2.5rem auto 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.42); }
.footer-admin { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }
.footer-admin:hover { color: #fff; }

/* --- Catalogue toolbar ------------------------------------------------ */
.catalog-toolbar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: flex-end;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.search-field { position: relative; flex: 1; min-width: 220px; }
.search-field input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: #fbfcfe;
}
.search-field input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1); }
.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(20, 45, 80, 0.16);
    z-index: 60;
    overflow: hidden;
}
.suggest-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.8rem; text-decoration: none; border-bottom: 1px solid #f3f6fa; }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover { background: #f5f9ff; }
.suggest-item img { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; background: var(--tint); }
.suggest-item div { flex: 1; min-width: 0; }
.suggest-item strong { display: block; font-size: 0.86rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item span { font-size: 0.72rem; color: var(--muted); }
.suggest-item em { font-style: normal; font-size: 0.82rem; font-weight: 700; color: var(--primary); }
.suggest-empty { padding: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.toolbar-group { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); }
.toolbar-group select,
.toolbar-group input {
    padding: 0.6rem 0.7rem;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.84rem;
    background: #fbfcfe;
    outline: none;
}
.price-range input { width: 78px; }
.clear-filters { font-size: 0.78rem; color: var(--muted); text-decoration: underline; align-self: center; }
.result-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.86rem;
    color: var(--muted);
}
.result-summary strong { color: var(--ink); }
.pill-link { font-size: 0.78rem; background: #fff; border: 1px solid var(--line); padding: 0.3rem 0.8rem; border-radius: 999px; }

/* --- Category sidebar additions -------------------------------------- */
.all-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--tint);
    margin-bottom: 0.7rem;
}
.all-category.active { background: var(--primary); color: #fff; }
.all-category span { font-size: 0.72rem; opacity: 0.7; }
.child-category { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; }
.child-category em { font-style: normal; font-size: 0.7rem; color: #9aa8b8; background: #f1f5fa; padding: 0 0.4rem; border-radius: 999px; }
.child-category.active em { background: #fff; color: var(--primary); }
.sidebar-note {
    margin-top: 1.2rem;
    background: linear-gradient(135deg, #0f2c4d, #1c5687);
    color: #fff;
    border-radius: 14px;
    padding: 1.3rem;
}
.sidebar-note h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.4rem; }
.sidebar-note p { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; margin-bottom: 0.7rem; }
.sidebar-note a { color: #8ed0ff; font-size: 0.82rem; font-weight: 600; }

/* --- Product card additions ------------------------------------------ */
.card-category {
    position: absolute;
    top: 0.9rem; left: 0.9rem;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    background: rgba(15, 44, 77, 0.75);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.product-card .image-wrapper { position: relative; }
.product-card .product-no { font-size: 0.78rem; color: var(--muted); }
.card-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; align-items: center; }
.card-detail {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    background: #eef5fd;
    color: var(--primary-dark);
}
.card-detail:hover { background: var(--primary); color: #fff; }
.card-add {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.card-add:hover { border-color: var(--primary); color: var(--primary); }

/* --- Breadcrumb ------------------------------------------------------- */
.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto 1.8rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb em { font-style: normal; color: var(--ink); }

/* --- Product detail --------------------------------------------------- */
.detail-main { max-width: var(--max-width); margin: 0 auto; padding: 2.5rem 2rem 4rem; }
.detail-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; }
.detail-image {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
.detail-image img { max-width: 100%; max-height: 460px; object-fit: contain; border-radius: 12px; }
.detail-badge {
    position: absolute;
    top: 1.2rem; left: 1.2rem;
    background: rgba(15, 44, 77, 0.85);
    color: #fff;
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}
.detail-gallery-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.74rem; color: var(--muted); margin-top: 0.9rem; }
.detail-category { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--primary); font-weight: 700; }
.detail-info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.5rem 0 0.9rem; }
.detail-price-row { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1rem; }
.detail-price-row strong { font-size: 1.9rem; color: var(--primary-dark); }
.detail-price-row span { font-size: 0.78rem; color: var(--muted); }
.detail-description { font-size: 0.95rem; line-height: 1.8; color: #4c5a6d; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 1rem 0; padding: 0.9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.spec-list div { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.84rem; }
.spec-list dt { color: var(--muted); min-width: 74px; }
.spec-list dd { margin: 0; color: var(--ink); font-weight: 500; }
.trade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 1rem 0; }
.trade-grid div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; }
.trade-grid span { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.trade-grid strong { font-size: 0.85rem; color: var(--ink); }
.detail-actions { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; margin: 1.3rem 0 0.8rem; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-control button { width: 36px; height: 42px; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.qty-control button:hover { background: var(--tint); color: var(--primary); }
.qty-control input { width: 64px; height: 42px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-family: inherit; font-size: 0.9rem; outline: none; }
.detail-assurance { list-style: none; display: flex; gap: 1.2rem; padding: 0; margin: 0.6rem 0; flex-wrap: wrap; }
.detail-assurance li { font-size: 0.8rem; color: var(--muted); }
.detail-share { font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 0.8rem; }
#add-to-inquiry.added { background: linear-gradient(135deg, #2e9d6a, #1b7a4e); }
.related-section { margin-top: 4rem; }
.related-grid { grid-template-columns: repeat(4, 1fr); }

/* --- Inquiry page ----------------------------------------------------- */
.inquiry-main { max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem 4rem; }
.inquiry-header { max-width: 680px; margin-bottom: 2rem; }
.inquiry-header h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); margin: 0.2rem 0 0.6rem; }
.inquiry-header p { color: var(--muted); }
.inquiry-layout { display: grid; grid-template-columns: 1.45fr 0.9fr; gap: 1.8rem; align-items: start; }
.inquiry-form-card, .inquiry-summary-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; box-shadow: 0 12px 35px rgba(20, 45, 80, 0.05); }
.inquiry-form-card h2, .inquiry-summary-card h2 { font-size: 1.1rem; margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inquiry-form-card label { position: relative; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: #45566b; margin-bottom: 0.9rem; }
.inquiry-form-card label.required::after { content: ' *'; position: absolute; top: 0; right: 0; color: var(--red); }
.inquiry-form-card input:not([type="checkbox"]), .inquiry-form-card textarea, .track-form input {
    padding: 0.72rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fbfcfe;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inquiry-form-card input:focus, .inquiry-form-card textarea:focus, .track-form input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}
.inquiry-form-card textarea { resize: vertical; }
.inquiry-form-card input:disabled { background: #f4f6f9; color: #96a2b3; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-hint { font-size: 0.72rem; color: var(--muted); margin: 0.7rem 0 0; }
.form-error { color: var(--red); font-size: 0.8rem; margin-top: 0.8rem; }
.summary-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.summary-head a { font-size: 0.78rem; }
.inquiry-items { max-height: 380px; overflow-y: auto; margin: 0 -0.4rem; padding: 0 0.4rem; }
.summary-item { display: flex; gap: 0.7rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid #f2f5f9; }
.summary-item img { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; background: var(--tint); }
.summary-item-info { flex: 1; min-width: 0; }
.summary-item-info strong { display: block; font-size: 0.82rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-item-info span { font-size: 0.72rem; color: var(--muted); }
.summary-qty { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.summary-qty label { font-size: 0.66rem; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.summary-qty input { width: 66px; padding: 0.3rem 0.4rem; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 0.78rem; text-align: right; }
.summary-remove { border: 0; background: transparent; color: #b8c1cd; font-size: 0.68rem; cursor: pointer; text-decoration: underline; }
.summary-remove:hover { color: var(--red); }
.empty-cart { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.empty-cart span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.empty-cart p { font-size: 0.86rem; margin-bottom: 0.9rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--line); margin-top: 0.4rem; padding-top: 1rem; }
.summary-total span { font-size: 0.82rem; color: var(--muted); }
.summary-total strong { font-size: 1.35rem; color: var(--primary-dark); }
.summary-note { font-size: 0.7rem; color: var(--muted); line-height: 1.6; margin: 0.5rem 0 1rem; }
.summary-meta { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.74rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 0.8rem; }
.inquiry-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.inquiry-steps div { position: relative; padding: 1.2rem 1.2rem 1.2rem 3.4rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.inquiry-steps strong { position: absolute; left: 1.1rem; top: 1.15rem; font-size: 1.2rem; color: #cfe0f2; }
.inquiry-steps span { font-size: 0.9rem; font-weight: 700; color: var(--ink); display: block; }
.inquiry-steps p { font-size: 0.78rem; color: var(--muted); margin: 0.2rem 0 0; }

/* --- Success / track -------------------------------------------------- */
.success-main { max-width: 900px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.success-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 3rem; box-shadow: 0 20px 50px rgba(20, 45, 80, 0.07); text-align: center; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #2e9d6a, #4fc08d); color: #fff; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; box-shadow: 0 10px 24px rgba(46, 157, 106, 0.3); }
.success-card h1 { font-size: 2rem; margin: 0.4rem 0 0.7rem; }
.success-card > p { color: var(--muted); max-width: 540px; margin: 0 auto 1.5rem; }
.order-number { display: inline-flex; align-items: center; gap: 1rem; background: #f3f8ff; border: 1px dashed #b9d7f5; border-radius: 999px; padding: 0.5rem 1rem; margin-bottom: 2rem; }
.order-number span { font-size: 0.72rem; color: var(--muted); }
.order-number strong { font-family: ui-monospace, monospace; font-size: 1rem; color: var(--primary-dark); letter-spacing: 0.04em; }
.copy-btn { border: 0; background: var(--primary); color: #fff; border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.7rem; cursor: pointer; }
.success-summary { text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 1.8rem; }
.success-summary h2 { font-size: 0.95rem; padding: 0.9rem 1.2rem; margin: 0; background: #f8fafc; border-bottom: 1px solid var(--line); }
.success-summary table, .mini-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.success-summary th, .success-summary td { padding: 0.7rem 1.2rem; border-bottom: 1px solid #f2f5f9; text-align: left; vertical-align: top; }
.success-summary th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.success-summary tfoot td { font-weight: 700; background: #fbfdff; border-bottom: 0; }
.success-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; margin-bottom: 2rem; }
.success-next div { background: #f8fafc; border-radius: 12px; padding: 1rem; }
.success-next strong { color: #b9cde2; font-size: 1.1rem; }
.success-next span { display: block; font-weight: 700; font-size: 0.85rem; color: var(--ink); }
.success-next p { font-size: 0.76rem; color: var(--muted); margin: 0.2rem 0 0; }
.success-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.success-actions .btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }

.track-main { max-width: 980px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.track-header { text-align: center; max-width: 560px; margin: 0 auto 2rem; }
.track-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1.5rem; align-items: start; }
.track-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; }
.track-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: #45566b; margin-bottom: 1rem; }
.track-result { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; }
.track-result-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.track-result-head h2 { font-size: 1.15rem; margin: 0.3rem 0 0; }
.muted { color: var(--muted); font-size: 0.78rem; }
.status-timeline { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0.8rem; }
.status-timeline li { padding-left: 1.8rem; position: relative; }
.status-timeline li::before { content: ''; position: absolute; left: 0; top: 0.35rem; width: 10px; height: 10px; border-radius: 50%; background: #dbe4ee; }
.status-timeline li.done::before { background: var(--green); box-shadow: 0 0 0 3px rgba(46, 157, 106, 0.15); }
.status-timeline strong { font-size: 0.85rem; color: var(--ink); display: block; }
.status-timeline span { font-size: 0.76rem; color: var(--muted); }
.mini-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid #f2f5f9; }
.mini-table td:last-child { text-align: right; font-weight: 600; }
.track-total { display: flex; justify-content: space-between; margin-top: 0.9rem; font-size: 0.86rem; }
.track-total strong { color: var(--primary-dark); }
.track-note { margin-top: 1rem; padding: 0.9rem; background: #f8fafc; border-radius: 10px; font-size: 0.8rem; }
.track-note p { margin: 0.2rem 0 0; color: var(--muted); }

/* --- News list / article --------------------------------------------- */
.news-main, .article-main { max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem 4rem; }
.category-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.8rem 0; }
.category-tabs a { font-size: 0.8rem; padding: 0.4rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.category-tabs a.active, .category-tabs a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.news-grid-list { grid-template-columns: repeat(3, 1fr); }
.article-body { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.8rem 3rem; margin-top: 0.5rem; }
.article-body header { max-width: 760px; margin: 0 auto 1.8rem; }
.article-body h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.25; }
.article-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.76rem; color: var(--muted); margin-top: 0.9rem; }
.article-cover { max-width: 860px; margin: 0 auto 2rem; border-radius: 14px; overflow: hidden; max-height: 430px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-content { max-width: 760px; margin: 0 auto; }
.article-content p { font-size: 1rem; line-height: 1.95; color: #3f4e61; margin-bottom: 1.4rem; }
.article-footer { max-width: 760px; margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.article-tags span { font-size: 0.72rem; background: var(--tint); color: var(--primary-dark); padding: 0.25rem 0.7rem; border-radius: 999px; }

/* --- FAQ -------------------------------------------------------------- */
.faq-main { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.faq-header { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.faq-group h2 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e8f2fd; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden; }
.faq-item summary { padding: 0.9rem 1rem; font-size: 0.86rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; position: relative; padding-right: 2.2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1rem; top: 0.75rem; color: var(--primary); font-size: 1.1rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1rem 1rem; margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.75; }
.faq-cta { margin-top: 3rem; }

/* --- Error pages ------------------------------------------------------ */
.error-main { text-align: center; padding: 5rem 2rem 6rem; max-width: 640px; margin: 0 auto; }
.error-code { font-size: 6rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, #2196F3, #0f2c4d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.25; }
.error-main h1 { font-size: 1.8rem; margin: 0.5rem 0; }
.error-main p { color: var(--muted); }
.error-actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; }

/* --- Inquiry dock ----------------------------------------------------- */
.inquiry-dock { position: fixed; right: 1.8rem; bottom: 1.8rem; z-index: 1200; }
.inquiry-fab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2196F3, #1565C0);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(21, 101, 192, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.inquiry-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(21, 101, 192, 0.45); }
.inquiry-fab.active { background: #0f2c4d; }
.fab-icon { font-size: 1rem; }
.fab-count { background: rgba(255, 255, 255, 0.22); border-radius: 999px; min-width: 26px; padding: 0.1rem 0.45rem; font-size: 0.74rem; text-align: center; }
.inquiry-fab:not(.has-items) .fab-count { display: none; }
.inquiry-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.8rem);
    width: 390px;
    max-width: calc(100vw - 2rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 32, 55, 0.22);
    overflow: hidden;
    animation: panelIn 0.2s ease;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.panel-head strong { display: block; font-size: 0.95rem; color: var(--ink); }
.panel-sub { font-size: 0.7rem; color: var(--muted); }
.panel-close { border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: #a8b3c2; cursor: pointer; }
.panel-items { max-height: 320px; overflow-y: auto; padding: 0 1.2rem; }
.panel-empty { text-align: center; padding: 2rem 1rem; }
.panel-empty span { font-size: 1.8rem; color: #c6d6e8; }
.panel-empty p { font-size: 0.84rem; color: var(--muted); margin: 0.3rem 0 0.6rem; }
.panel-empty a { font-size: 0.8rem; font-weight: 600; }
.inquiry-line { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid #f2f5f9; }
.inquiry-line img { width: 46px; height: 46px; object-fit: contain; border-radius: 7px; background: var(--tint); flex-shrink: 0; }
.line-info { flex: 1; min-width: 0; }
.line-info strong { display: block; font-size: 0.8rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-meta { font-size: 0.68rem; color: var(--muted); }
.line-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; flex-shrink: 0; }
.line-qty button { width: 22px; height: 28px; border: 0; background: #f7fafd; color: var(--muted); cursor: pointer; font-size: 0.85rem; }
.line-qty input { width: 42px; height: 28px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 0.72rem; font-family: inherit; outline: none; }
.line-remove { border: 0; background: transparent; color: #c2cbd7; font-size: 1.1rem; cursor: pointer; padding: 0 0.2rem; }
.line-remove:hover { color: var(--red); }
.panel-footer { padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--line); background: #fbfdff; }
.panel-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
.panel-total span { font-size: 0.78rem; color: var(--muted); }
.panel-total strong { font-size: 1.2rem; color: var(--primary-dark); }
.panel-cta { display: block; text-align: center; background: var(--primary); color: #fff; border-radius: 10px; padding: 0.7rem; font-size: 0.86rem; font-weight: 600; }
.panel-cta:hover { background: var(--primary-dark); color: #fff; }
.cart-toast {
    position: fixed;
    right: 1.8rem;
    bottom: 6.5rem;
    z-index: 1300;
    background: #14243a;
    color: #fff;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    box-shadow: 0 14px 32px rgba(10, 25, 45, 0.35);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cart-toast.show { opacity: 1; transform: none; }
.cart-toast strong { font-size: 0.82rem; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-toast span { font-size: 0.72rem; color: #9fc7ea; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-content { padding-right: 28%; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { gap: 2rem; }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .hero { padding: 4rem 1.5rem 2.5rem; }
    .hero-content { padding-right: 0; max-width: 640px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
    .hero-stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .hero-stat:nth-child(3), .hero-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 0.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .news-grid, .news-grid-list { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-image { min-height: 320px; }
    .inquiry-layout { grid-template-columns: 1fr; }
    .track-layout { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 2rem; }
    .article-body { padding: 2rem 1.5rem; }
    .inquiry-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 1.9rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { padding: 1.1rem; gap: 0.8rem; }
    .hero-stat strong { font-size: 1.4rem; }
    .news-grid, .news-grid-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .detail-main, .inquiry-main, .news-main, .article-main, .track-main, .faq-main { padding: 1.5rem 1rem 2.5rem; }
    .success-card { padding: 2rem 1.2rem; }
    .success-next { grid-template-columns: 1fr; }
    .order-number { flex-wrap: wrap; justify-content: center; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .inquiry-dock { right: 1rem; bottom: 1rem; }
    .inquiry-panel { width: calc(100vw - 2rem); }
    .cart-toast { right: 1rem; left: 1rem; bottom: 5.5rem; }
    .catalog-toolbar { align-items: stretch; }
    .toolbar-group { justify-content: space-between; }
    .price-range { flex-wrap: wrap; }
    .article-body { padding: 1.5rem 1.1rem; }
    .spec-list { grid-template-columns: 1fr; }
    .trade-grid { grid-template-columns: 1fr; }
    .detail-actions .btn { flex: 1; justify-content: center; }
}
