:root {
  --navy: #042C53;
  --navy-dark: #031e39;
  --blue: #378ADD;
  --blue-light: #5aa0e6;
  --bg: #F5F8FC;
  --text: #1f2d3d;
  --muted: #5f6c7b;
  --white: #ffffff;
  --border: #dbe4ee;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(4,44,83,0.08);
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--white); line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo-group { display: flex; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.logo-tag {
  font-size: 0.72rem; color: var(--muted); font-weight: 500; letter-spacing: 0.2px;
  max-width: 280px; line-height: 1.35; margin-left: 14px; padding-left: 14px;
  border-left: 1px solid var(--border);
}
@media (max-width: 960px) { .logo-tag { display: none; } }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--blue); text-decoration: none; }

/* Products dropdown */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-item .caret { font-size: 0.7rem; color: var(--muted); transition: transform .2s; }
.nav-item:hover .caret,
.nav-item.drop-open .caret { transform: rotate(180deg); color: var(--blue); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(4,44,83,0.14); min-width: 250px; padding: 8px 0;
  display: none;
  z-index: 1100;
}
.dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.dropdown a {
  display: block; padding: 10px 20px; color: var(--text); font-weight: 500; font-size: 0.92rem; white-space: nowrap;
}
.dropdown a:hover { background: var(--bg); color: var(--blue); }
.dropdown a:first-child { font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--border); }
.nav-item:hover .dropdown,
.nav-item.drop-open .dropdown,
.nav-item:focus-within .dropdown { display: block; transform: translateX(-50%) translateY(4px); }
.header-cta {
  background: var(--blue); color: var(--white) !important; padding: 8px 16px; border-radius: var(--radius); font-weight: 600;
}
.header-cta:hover { background: var(--navy); }
.header-wa {
  padding: 8px 14px; border-radius: var(--radius); font-weight: 600;
  border: 1px solid var(--blue); color: var(--blue) !important;
}
.header-wa:hover { background: var(--blue); color: var(--white) !important; text-decoration: none; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav-item { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--bg); }
  .nav-item > a { justify-content: space-between; width: 100%; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; border-radius: 0; min-width: 0; padding: 0 0 4px;
    display: none; background: var(--bg);
  }
  .nav-item.drop-open .dropdown { display: block; }
  .dropdown a { padding: 10px 16px; border-bottom: 1px solid var(--border); }
  .dropdown a:first-child { border-bottom: 1px solid var(--border); }
  .nav-item .caret { transition: transform .2s; }
  .nav-item.drop-open .caret { transform: rotate(180deg); }
}

/* Hero slider */
.hero { position: relative; height: 620px; overflow: hidden; background: var(--navy-dark); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,44,83,0.92) 0%, rgba(4,44,83,0.55) 55%, rgba(4,44,83,0.25) 100%);
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 3; color: var(--white); max-width: 620px; }
.hero h1 { font-size: 2.9rem; line-height: 1.15; margin: 0 0 18px; font-weight: 800; }
.hero .hero-sub { font-size: 1.15rem; color: #c8d6e8; margin-bottom: 28px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 13px 26px; border-radius: var(--radius); font-weight: 700; font-size: 0.98rem; transition: .2s; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.55); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; cursor: pointer; }
.hero-dot.active { background: var(--blue); }
@media (max-width: 760px) { .hero { height: 520px; } .hero h1 { font-size: 2rem; } .hero .hero-sub { font-size: 1rem; } }

/* Badges / labels */
.badge { display: inline-block; background: rgba(55,138,221,0.12); color: var(--blue); font-weight: 700; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.stock-badge { background: rgba(39,174,96,0.12); color: #27ae60; }

/* Sections */
.section { padding: 74px 0; }
.section-bg { background: var(--bg); }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-title h2 { font-size: 2rem; color: var(--navy); margin: 0 0 10px; }
.section-title p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.cat-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .2s; }
.cat-card:hover { transform: translateY(-4px); }
.cat-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #f8fafc; padding: 20px; }
.cat-card .body { padding: 22px; }
.cat-card h3 { margin: 0 0 10px; font-size: 1.2rem; color: var(--navy); }
.cat-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }

/* USP bar */
.usp-bar { background: var(--navy); color: var(--white); padding: 28px 0; }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; text-align: center; }
.usp-item h4 { margin: 0 0 6px; font-size: 1.05rem; }
.usp-item p { margin: 0; color: #9bb3cc; font-size: 0.92rem; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-card .img-wrap { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #f8fafc; padding: 20px; }
.product-card img { width: 100%; height: 100%; object-fit: contain; }
.product-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card h4 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.product-card .desc { font-size: 0.9rem; color: var(--muted); margin: 0 0 14px; flex: 1; }
.product-card .meta { display: flex; justify-content: space-between; align-items: center; }
.product-card .price-note { font-size: 0.8rem; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--navy); color: var(--white); font-weight: 600; }
tr:last-child td { border-bottom: none; }
.table-wrap table { min-width: 1280px; }
.table-wrap th:first-child,
.table-wrap td:first-child { position: sticky; left: 0; min-width: 230px; z-index: 2; }
.table-wrap th:first-child { background: var(--navy); }
.table-wrap td:first-child { background: var(--white); font-weight: 600; color: var(--navy); }
.table-wrap tr.section-row td { background: var(--bg); font-weight: 700; color: var(--navy); }
.table-wrap td.tick { text-align: center; color: #27ae60; font-weight: 700; }
.table-wrap td.cross { text-align: center; color: #c0c9d2; }
.table-wrap td.key-diff { font-size: 0.84rem; color: var(--muted); min-width: 160px; line-height: 1.45; }

/* Detail page */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 14px; max-width: 560px; }
.gallery-main { border-radius: var(--radius); border: 1px solid var(--border); background: #f8fafc; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 24px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 72px); gap: 10px; }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: contain; border: 2px solid var(--border); border-radius: 6px; padding: 6px; cursor: pointer; background: #f8fafc; transition: border-color .15s; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--blue); }
.detail-info h1 { font-size: 2.2rem; color: var(--navy); margin: 0 0 10px; }
.detail-info .lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 18px; }
.detail-info ul { padding-left: 18px; margin: 0 0 22px; }
.detail-info li { margin-bottom: 6px; }

/* T22 accessory highlight on home */
.t22-highlight { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 760px; margin: 0 auto; }
.t22-highlight .t22-img { background: #f8fafc; border-radius: var(--radius); padding: 16px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.t22-highlight .t22-img img { width: 100%; height: 100%; object-fit: contain; }
.t22-highlight h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.35rem; }
.t22-highlight p { margin: 0 0 18px; color: var(--muted); }
@media (max-width: 640px) { .t22-highlight { grid-template-columns: 1fr; text-align: center; } .t22-highlight .t22-img { max-width: 220px; margin: 0 auto; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
input, select, textarea { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.98rem; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(55,138,221,0.12); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

/* Blog */
.blog-list { display: grid; gap: 24px; }
.blog-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.blog-card img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.blog-card .body { padding: 22px; }
.blog-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.blog-card p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .blog-card { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: #a8bdd4; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--white); margin: 0 0 16px; font-size: 1rem; }
.footer-grid a { color: #a8bdd4; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.9rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* Nav search button (replaces header WhatsApp link) */
.nav-search-btn {
  background: none; border: 1px solid var(--border); border-radius: 50%;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--navy); cursor: pointer; transition: .2s;
}
.nav-search-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
@media (max-width: 960px) { .nav-search-btn { width: 44px; height: 44px; } }

/* Floating WhatsApp button */
.floating-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 1200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,211,102,0.4);
  transition: transform .2s;
}
.floating-wa:hover { transform: scale(1.08); text-decoration: none; }
.floating-wa-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; opacity: .6;
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 640px) { .floating-wa { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; background: rgba(4,44,83,0.55); z-index: 1300;
  display: none; align-items: flex-start; justify-content: center; padding: 80px 20px 20px;
  backdrop-filter: blur(2px);
}
.search-overlay.open { display: flex; }
.search-modal {
  background: var(--white); border-radius: var(--radius); width: 100%; max-width: 640px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25); overflow: hidden;
  animation: search-pop .2s ease;
}
@keyframes search-pop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.search-form { display: flex; align-items: center; border-bottom: 1px solid var(--border); padding: 4px 4px 4px 18px; }
.search-form input { flex: 1; border: none; padding: 18px 8px; font-size: 1.05rem; outline: none; background: transparent; }
.search-close { background: none; border: none; font-size: 1.2rem; color: var(--muted); cursor: pointer; padding: 8px 14px; }
.search-close:hover { color: var(--navy); }
.search-results { max-height: 60vh; overflow-y: auto; padding: 14px 18px 18px; }
.search-hint { color: var(--muted); font-size: 0.92rem; text-align: center; padding: 22px 0; margin: 0; }
.search-result { display: flex; gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--bg); text-decoration: none; color: var(--text); }
.search-result:hover { background: var(--bg); text-decoration: none; border-radius: 6px; }
.search-result img { width: 56px; height: 56px; object-fit: contain; background: #f8fafc; border-radius: 6px; flex-shrink: 0; }
.search-result .info { flex: 1; }
.search-result .info strong { display: block; color: var(--navy); font-size: 0.98rem; margin-bottom: 2px; }
.search-result .info span { color: var(--muted); font-size: 0.85rem; }
.search-result .info .sr-type { display: inline-block; background: var(--bg); color: var(--navy); font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.search-result mark { background: rgba(55,138,221,0.25); color: var(--navy); padding: 0 2px; border-radius: 2px; }
.search-empty { color: var(--muted); text-align: center; padding: 22px 0; margin: 0; }

/* Blog homepage — category navigation pills */
.blog-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 48px; }
.cat-pill { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: .2s; }
.cat-pill:hover { border-color: var(--blue); background: var(--bg); text-decoration: none; transform: translateY(-2px); }
.cat-pill-icon { font-size: 1.6rem; flex-shrink: 0; }
.cat-pill strong { color: var(--navy); font-size: 0.98rem; }
.cat-pill small { color: var(--muted); font-size: 0.82rem; }
.section-sub { font-size: 1.4rem; color: var(--navy); margin: 0 0 24px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Featured article */
.blog-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--bg) 0%, #eaf1fa 100%); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 56px; }
.blog-featured-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.blog-featured-body h2 { font-size: 1.6rem; color: var(--navy); margin: 10px 0 14px; line-height: 1.3; }
.blog-featured-body h2 a { color: inherit; }
.blog-featured-body p { color: var(--muted); margin: 0 0 20px; }
@media (max-width: 760px) { .blog-featured { grid-template-columns: 1fr; padding: 22px; } .blog-featured-body h2 { font-size: 1.3rem; } }

/* Blog CTA */
.blog-cta { background: var(--navy); color: var(--white); padding: 36px; border-radius: var(--radius); text-align: center; margin-top: 56px; }
.blog-cta h3 { margin: 0 0 12px; font-size: 1.4rem; }
.blog-cta p { color: #c8d6e8; margin: 0 0 22px; max-width: 640px; margin-left: auto; margin-right: auto; }
.blog-cta .btn-primary { background: var(--blue); }
.blog-cta .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.4); }
.blog-cta .btn-outline:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 640px) { .blog-cta { padding: 26px 18px; } .blog-cta .btn { width: 100%; } .blog-cta .btn + .btn { margin-left: 0 !important; margin-top: 10px; } }

/* Blog list — keep 1:1 image ratio */
.blog-card img { aspect-ratio: 1/1; object-fit: cover; }
@media (max-width: 640px) { .blog-card img { aspect-ratio: 16/10; } }

/* Blog article page */
.blog-article h2 { color: var(--navy); margin-top: 32px; font-size: 1.4rem; }
.blog-article h3 { color: var(--navy); margin-top: 24px; font-size: 1.15rem; }
.blog-article p, .blog-article li { color: var(--text); }
.blog-article ul, .blog-article ol { padding-left: 22px; }
.blog-article details summary { list-style: none; }
.blog-article details summary::-webkit-details-marker { display: none; }
.blog-article details[open] summary { color: var(--blue); }
.blog-article details summary::after { content: ' +'; color: var(--blue); font-weight: 700; }
.blog-article details[open] summary::after { content: ' −'; }
