/* ============================================================
   Kurnia Makmur — responsive stylesheet (refreshed)
   Vibrant, professional, lightly animated. Mobile-first.
   ============================================================ */
:root {
    --brand:       #1668dc;   /* vibrant azure */
    --brand-dark:  #0c3f93;
    --brand-deep:  #0a2f6e;
    --sky:         #22b8f0;   /* bright cyan highlight */
    --accent:      #10b981;   /* emerald CTA */
    --accent-dark: #059669;
    --ink:         #142033;
    --muted:       #64748b;
    --line:        #e4e9f0;
    --bg:          #f3f6fb;
    --white:       #ffffff;
    --maxw:        1160px;
    --radius:      14px;
    --radius-sm:   10px;
    --shadow-sm:   0 2px 10px rgba(16, 42, 80, .06);
    --shadow-md:   0 10px 30px rgba(16, 42, 80, .10);
    --shadow-lg:   0 18px 50px rgba(16, 42, 80, .16);
    --ease:        cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    /* Sticky footer: keep the footer at the bottom on short pages. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.22; color: var(--ink); font-family: "Poppins", "Segoe UI", system-ui, sans-serif; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---- Header / nav ---- */
.site-header {
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
    transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { color: inherit; }
.brand-mark { height: 44px; width: auto; display: block; color: var(--brand); transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.05); }
.brand-wordmark {
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    font-weight: 700; font-size: 1.25rem; line-height: 1.04;
    color: var(--brand); letter-spacing: .2px;
}
.brand-logo { height: 50px; width: auto; display: block; }

.site-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a {
    position: relative; padding: 9px 15px; border-radius: var(--radius-sm);
    color: var(--ink); font-weight: 600; font-size: 15px;
    transition: color .2s var(--ease), background .2s var(--ease);
}
.site-nav a::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px;
    background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
}
.site-nav a:hover { color: var(--brand); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}
.site-nav a.active::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Main ---- */
/* Equal vertical breathing room above (header→content) and below (content→footer). */
.site-main { padding: 34px 0; flex: 1 0 auto; }
/* Drop the trailing margin of the last block so the bottom gap stays exactly the
   main padding on every page, regardless of what the last element is. */
.site-main .container > *:last-child { margin-bottom: 0; }

.panel {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 32px; margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}
.panel h2 {
    margin-top: 0; color: var(--brand-dark); font-size: 1.6rem;
    padding-bottom: 12px; position: relative;
}
.panel h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: linear-gradient(90deg, var(--brand), var(--sky)); border-radius: 3px; }

.prose p { margin: 0 0 1em; }
.prose h3 { color: var(--brand-dark); margin-top: 1.5em; clear: both; }
.img-right { float: right; margin: 0 0 32px 22px; max-width: 290px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.img-left  { float: left;  margin: 0 22px 32px 0; max-width: 290px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.prose::after { content: ""; display: block; clear: both; }

/* About — timeline */
.about-heading { color: var(--brand-dark); margin: 28px 0 14px; font-family: "Poppins", "Segoe UI", system-ui, sans-serif; font-size: 1.25rem; clear: both; }
.timeline { margin: 6px 0; }
.tl-item { display: flex; gap: 16px; }
.tl-marker { display: flex; flex-direction: column; align-items: center; flex: 0 0 16px; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(22,104,220,.14); margin-top: 5px; flex: 0 0 auto; }
.tl-marker::after { content: ""; flex: 1 1 auto; width: 2px; background: var(--line); margin: 5px 0; }
.tl-item:last-child .tl-marker::after { display: none; }
.tl-body { flex: 1; padding-bottom: 22px; }
.tl-item:last-child .tl-body { padding-bottom: 2px; }
.tl-year { display: inline-block; font-weight: 700; color: var(--brand); font-size: 1.05rem; }
.tl-body h4 { margin: 2px 0 4px; color: var(--brand-dark); font-size: 1.05rem; }
.tl-body p { margin: 0; color: var(--muted); }

/* About — Our Values grid */
.values-title { color: var(--brand-dark); margin: 26px 0 14px; font-family: "Poppins", "Segoe UI", system-ui, sans-serif; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px 22px; }
.value-item { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.value-check {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; color: var(--accent-dark);
    background: rgba(16, 185, 129, .14);
}
.value-check svg { width: 15px; height: 15px; }
.link { font-weight: 600; }
.muted { color: var(--muted); }

/* ---- Hero / home ---- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    border-radius: var(--radius); padding: 60px 40px; margin-bottom: 26px;
    background: linear-gradient(120deg, var(--brand-deep), var(--brand) 50%, var(--sky) 120%);
    background-size: 180% 180%; animation: gradientShift 14s ease infinite;
    box-shadow: var(--shadow-md);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 45%);
    pointer-events: none;
}
/* Hexagon / molecular structure background (self-made animated SVG). */
.hex-bg {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    pointer-events: none; user-select: none;
}
.hero-text { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin: 0 0 14px; font-size: 2.3rem; letter-spacing: -.5px; }
.hero-text p { max-width: 660px; margin: 0 0 24px; font-size: 1.12rem; opacity: .95; }

.hero-tagline {
    position: absolute; top: 26px; right: 40px; z-index: 2; margin: 0;
    font-style: italic; font-weight: 500; line-height: 1.3;
    font-size: 1.15rem; text-align: right; color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}
.hero-flasks {
    position: absolute; right: 30px; bottom: 6px; z-index: 1;
    width: 252px; height: auto; pointer-events: none;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .22));
}
@media (max-width: 880px) { .hero-flasks { display: none; } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
    padding: 12px 26px; border-radius: 999px; font-weight: 600; border: 0; cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 185, 129, .28);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16, 185, 129, .38); filter: brightness(1.04); color: #fff; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

/* Secondary / outline button */
.btn-outline {
    background: #fff; color: var(--brand); border: 1.5px solid var(--brand);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--brand); color: #fff; filter: none;
    box-shadow: 0 10px 22px rgba(22, 104, 220, .25);
}

/* Admin-only edit button (shown on public pages when logged in) */
.btn-edit { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 8px 20px rgba(217, 119, 6, .3); }
.btn-edit:hover { box-shadow: 0 12px 26px rgba(217, 119, 6, .4); }

/* Product-detail action row */
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Browse by Category — category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 20px; }
.cat-card {
    --cc: var(--brand); --cc2: var(--sky); --ccbg: rgba(22,104,220,.12); --ccbd: rgba(22,104,220,.42);
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 18px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    padding: 22px 24px; color: var(--ink); box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.cat-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: linear-gradient(180deg, var(--cc), var(--cc2));
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ccbd); }
.cat-icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 16px;
    background: var(--ccbg); color: var(--cc);
    transition: transform .25s var(--ease);
}
.cat-card:hover .cat-icon { transform: scale(1.07) rotate(-3deg); }
.cat-icon svg { width: 32px; height: 32px; }
.cat-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cat-name { font-family: "Poppins", "Segoe UI", system-ui, sans-serif; font-weight: 600; font-size: 1.12rem; color: var(--brand-dark); }
.cat-desc { color: var(--muted); font-size: .92rem; line-height: 1.42; }
.cat-arrow { flex: 0 0 auto; display: inline-flex; color: var(--cc); opacity: .45; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.cat-arrow svg { width: 22px; height: 22px; }
.cat-card:hover .cat-arrow { transform: translateX(4px); opacity: 1; }

.cat-card--emerald { --cc: #059669; --cc2: #34d399; --ccbg: rgba(5,150,105,.12); --ccbd: rgba(5,150,105,.42); }
.cat-card--amber   { --cc: #d97706; --cc2: #fbbf24; --ccbg: rgba(217,119,6,.13); --ccbd: rgba(217,119,6,.42); }
.cat-card--purple  { --cc: #7c3aed; --cc2: #a78bfa; --ccbg: rgba(124,58,237,.12); --ccbd: rgba(124,58,237,.42); }

/* ---- Home sections ---- */
.home-section { margin-bottom: 38px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 26px; }
.section-head h2 { font-size: 1.9rem; color: var(--brand-dark); margin: 0; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 10px 0 0; }

.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.offer-card {
    position: relative; overflow: hidden;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 26px; box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.offer-card::before {
    content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--brand), var(--sky));
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.offer-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
    border-radius: 15px; margin-bottom: 16px; color: var(--brand);
    background: linear-gradient(135deg, rgba(22,104,220,.14), rgba(34,184,240,.12));
}
.offer-icon svg { width: 30px; height: 30px; }
.offer-card h3 { margin: 0 0 10px; color: var(--brand-dark); font-size: 1.2rem; }
.offer-card p { margin: 0 0 14px; }

/* CTA banner */
.cta-banner {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--brand-deep), var(--brand) 60%, var(--sky) 135%);
    color: #fff; border-radius: var(--radius); padding: 34px 40px; box-shadow: var(--shadow-md);
}
.cta-banner .hex-bg { opacity: .8; }
.cta-text, .cta-actions { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin: 0 0 6px; font-size: 1.5rem; }
.cta-banner p { margin: 0; opacity: .92; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost { background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .65); box-shadow: none; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brand-dark); border-color: #fff; filter: none; }

@media (max-width: 600px) {
    .section-head h2 { font-size: 1.55rem; }
    .cta-banner { padding: 28px 24px; }
    .cta-banner h2 { font-size: 1.3rem; }
    .products-main { padding: 18px; }
    .products-main h1 { font-size: 1.5rem; }
    .product-grid th, .product-grid td { padding: 10px 10px; }
    .row-thumb { width: 38px; height: 38px; }
}

/* ---- Products layout ---- */
.products-layout { display: grid; grid-template-columns: 270px 1fr; gap: 26px; align-items: start; }
.products-sidebar {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
    position: sticky; top: 92px; box-shadow: var(--shadow-sm);
}
.products-sidebar h2 { margin-top: 0; font-size: 1.6rem; color: var(--brand-dark); padding-bottom: 12px; position: relative; }
.products-sidebar h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: linear-gradient(90deg, var(--brand), var(--sky)); border-radius: 3px; }
.products-main {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm);
    min-width: 0; /* allow the grid column to shrink below table min-content (mobile) */
}
.products-main h1 { margin-top: 0; color: var(--brand-dark); overflow-wrap: anywhere; }
/* Horizontal scroll for wide product tables on small screens (instead of breaking the page). */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 24px; }
.table-scroll .product-grid { margin: 0; }

.cat-tree, .cat-tree ul { list-style: none; margin: 0; padding: 0; }
.cat-tree ul { padding-left: 14px; }
.cat-tree li { margin: 2px 0; }
.cat-tree a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); transition: background .18s var(--ease), color .18s var(--ease), padding-left .18s var(--ease); }
.cat-tree a:hover { background: var(--bg); color: var(--brand); padding-left: 16px; }
.cat-tree a.active { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }

.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 7px; }

.subcat-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0 0 22px; }
.subcat-chips a {
    display: inline-block; background: var(--bg); border: 1px solid var(--line);
    padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.subcat-chips a:hover { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; transform: translateY(-1px); }

/* ---- Product grids ---- */
.product-grid { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.product-grid th, .product-grid td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.product-grid thead th { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.product-grid thead th:first-child { border-top-left-radius: var(--radius-sm); }
.product-grid thead th:last-child { border-top-right-radius: var(--radius-sm); }
.product-grid th.num, .product-grid td.num { width: 48px; text-align: right; }
.product-grid td.num { color: var(--muted); }
.row-thumb {
    flex: 0 0 auto; width: 46px; height: 46px; object-fit: cover; display: block; background: #fff;
    border: 1px solid var(--line); border-radius: 8px; transition: transform .2s var(--ease);
}
.product-grid tbody tr:hover .row-thumb { transform: scale(1.06); }
/* Name cell with embedded thumbnail */
.product-grid .name-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; vertical-align: middle; }
.product-grid .name-link:hover { text-decoration: none; }
.product-grid .name-link:hover span { text-decoration: underline; }

/* Result bar: "Showing X–Y of Z" + top pagination */
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.result-count { color: var(--muted); font-size: 14px; }
.result-bar .pagination { margin: 0; }
.product-grid tbody tr { transition: background .15s var(--ease); }
.product-grid tbody tr:nth-child(even) { background: #fafcff; }
.product-grid tbody tr:hover { background: #eaf3ff; }
.product-grid tbody a { font-weight: 600; }
.subcat-heading { color: var(--brand-dark); border-bottom: 2px solid var(--line); padding-bottom: 6px; }

.product-thumbnails { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.product-thumbnails li { text-align: center; }
.product-thumbnails a { display: block; }
.product-thumbnails a > span { display: block; margin-top: 10px; font-weight: 600; font-size: 14px; transition: color .2s var(--ease); }
.product-thumbnails .thumb-frame {
    display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-thumbnails img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.product-thumbnails a:hover .thumb-frame { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-thumbnails a:hover img { transform: scale(1.07); }
.product-thumbnails a:hover > span { color: var(--brand); }

.pagination { display: flex; gap: 7px; flex-wrap: wrap; }
.pagination a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); transition: all .18s var(--ease); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination a.active { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-color: transparent; }

/* ---- Product detail ---- */
.detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; }
.detail-main { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.detail-thumbs { list-style: none; display: flex; gap: 9px; padding: 0; margin: 13px 0 0; flex-wrap: wrap; }
.detail-thumbs img { width: 66px; height: 66px; object-fit: cover; border: 2px solid transparent; border-radius: 8px; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.detail-thumbs img:hover { border-color: var(--brand); transform: translateY(-2px); }
.detail-info .catalog { color: var(--muted); }
.detail-info .price { font-size: 1.5rem; font-weight: 700; color: var(--accent-dark); font-family: "Poppins", sans-serif; }
.attributes { width: 100%; border-collapse: collapse; margin: 18px 0; }
.attributes th, .attributes td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.attributes th { width: 38%; color: var(--brand-dark); }
/* Editor (Quill) wraps values in <p>; strip its leading/trailing margins so the
   first line aligns with the label and rows stay tight. */
.attributes td > :first-child { margin-top: 0; }
.attributes td > :last-child { margin-bottom: 0; }
.attributes td p { margin: 0 0 .5em; }
/* List-type attribute (e.g. "Features") shown as a full-width modern spec table */
.spec-block { margin: 22px 0 6px; }
.spec-title { color: var(--brand-dark); font-size: 1.05rem; margin: 0 0 10px; }
.spec-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table {
    width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.spec-table thead th {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
    text-align: left; padding: 11px 15px; font-weight: 600; white-space: nowrap;
}
.spec-table td { padding: 10px 15px; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table tbody tr:first-child td { border-top: 0; }
.spec-table tbody tr:nth-child(even) { background: #f7fafc; }
.spec-table tbody tr:hover { background: #eef5fb; }
.spec-table td:first-child { color: var(--brand-dark); font-weight: 600; }

/* ---- Forms / alerts ---- */
.form label { display: block; margin-bottom: 15px; font-weight: 600; }
.form input, .form textarea, .form select {
    display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-weight: 400;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 104, 220, .15);
}
.form .req { color: #e23b2e; }
.contact-form { max-width: 640px; }
.hp { position: absolute; left: -9999px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: #e7f8f0; border: 1px solid #a7e3c8; color: #0f5f40; }
.alert-error   { background: #fdeceb; border: 1px solid #f5c2bd; color: #8a221b; }

/* ---- Footer (full-bleed, content aligned to container) ---- */
.site-footer { position: relative; overflow: hidden; flex-shrink: 0; color: #aebed3;
    background: linear-gradient(150deg, var(--brand-deep), #0a1626 72%); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
    background: linear-gradient(90deg, var(--brand), var(--sky) 35%, #34d399 65%, #a78bfa 100%); }
.footer-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; pointer-events: none; user-select: none; }
.footer-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.6fr; gap: 40px; padding: 52px 22px 42px; }

.footer-brand { max-width: 340px; }
.footer-logo { display: inline-flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.footer-logo-mark { height: 46px; width: auto; display: block; color: #fff; }
.footer-logo span { font-family: "Poppins", "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: .2px; line-height: 1; }
.footer-about { margin: 0; font-size: .92rem; line-height: 1.65; color: #9fb0c6; }

.footer-col h3 { color: #fff; font-size: 1.02rem; margin: 0 0 16px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--sky), transparent); }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 9px 0; }
.footer-links a { color: #aebed3; font-size: .93rem; display: inline-block; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-links a:hover { color: #fff; padding-left: 5px; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; margin: 12px 0; font-size: .92rem; line-height: 1.5; }
.footer-contact svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--sky); }
.footer-contact a { color: #aebed3; transition: color .2s var(--ease); }
.footer-contact a:hover { color: #fff; }

.footer-copyright { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .22); }
.footer-copyright-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 22px; font-size: .85rem; color: #7e90a8; }
.footer-tag { font-style: italic; opacity: .85; }

@media (max-width: 860px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---- Scroll-reveal animation (added by JS; no-JS keeps content visible) ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
    .products-layout { grid-template-columns: 1fr; }
    .products-sidebar { position: static; }
    .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
        padding: 8px; gap: 2px; box-shadow: var(--shadow-md);
    }
    .site-nav.open { display: flex; }
    .site-nav a::after { display: none; }
    .header-inner { position: relative; }
    .img-right, .img-left { float: none; display: block; margin: 0 0 16px; max-width: 100%; }
    .hero { padding: 40px 24px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-tagline { position: static; text-align: left; margin: 0 0 14px; font-size: 1.05rem; }
    .brand-wordmark { font-size: 1.1rem; }
    .brand-mark { height: 40px; }
}
