:root {
  --primary: #2563eb;
  --primary-dark: #0a2540;
  --accent: #f58020;
  --accent-dark: #d66a12;
  --text: #1d2327;
  --text-light: #4f5863;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --max-width: 1280px;
  --radius: 8px;
  --shadow: 0 4px 14px rgba(0,0,0,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { width: 92%; max-width: var(--max-width); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.5rem; border-radius: var(--radius); font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Top bar */
.topbar { background: var(--primary-dark); color: #dbeafe; font-size: .85rem; padding: .5rem 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.topbar a { color: #60a5fa; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; align-items: center; gap: 1.25rem; }
.topbar-left svg { vertical-align: middle; margin-right: .25rem; }
.topbar-right .wa { background: #25d366; color: #fff; padding: .25rem .75rem; border-radius: 50px; font-weight: 600; }
.topbar-right .wa:hover { background: #1da851; color: #fff; }

/* Header */
.site-header { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -.5px; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--primary-dark); }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--primary); }
.main-nav .current-menu-item a { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--primary-dark); }

@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem; box-shadow: var(--shadow); gap: 1rem; }
  .main-nav.open { display: flex; }
  .main-nav.open ul { flex-direction: column; gap: 1rem; }
  .mobile-toggle { display: block; }
  .header-actions { display: none; }
}

/* Hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; text-align: center; background: var(--primary); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8,53,117,.85), rgba(12,77,162,.75)); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 1rem; line-height: 1.15; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 760px; margin: 0 auto 2rem; opacity: .95; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { font-size: 2rem; margin: 0 0 .5rem; color: var(--primary-dark); }
.section-title p { color: var(--text-light); margin: 0; }

/* Product type cards */
.pt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: -3rem; position: relative; z-index: 3; }
.pt-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.pt-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.pt-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pt-card .body { padding: 1.25rem; }
.pt-card h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.pt-card p { margin: 0; color: var(--text-light); font-size: .95rem; }

/* Brand wall */
.brand-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.brand-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1.25rem; font-weight: 700; color: var(--text-light); min-width: 140px; text-align: center;
}

/* Product grids */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.product-card:hover { box-shadow: var(--shadow); }
.product-card a.thumb { display: block; aspect-ratio: 1/1; background: var(--bg-alt); overflow: hidden; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover img { transform: scale(1.04); }
.product-card .info { padding: 1rem; }
.product-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.product-card .sku { color: var(--text-light); font-size: .85rem; }

/* WooCommerce archive/product grid (override li-based layout rules) */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  clear: both;
}
ul.products .product-card { width: 100%; }
ul.products.columns-3, ul.products.columns-2 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 820px)  { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px)  { ul.products { grid-template-columns: 1fr !important; } }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,53,117,.9), rgba(8,53,117,.2)); }
.cat-card .label { position: relative; z-index: 2; padding: 1.25rem; color: #fff; }
.cat-card .label h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.cat-card .label span { font-size: .9rem; opacity: .9; }

/* Why us */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-box { background: #fff; border-radius: var(--radius); padding: 1.75rem; text-align: center; box-shadow: var(--shadow); }
.feature-box .icon { width: 56px; height: 56px; margin: 0 auto 1rem; background: var(--bg-alt); border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: var(--primary); }
.feature-box h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.feature-box p { margin: 0; font-size: .9rem; color: var(--text-light); }

/* CTA */
.cta-section { background: var(--primary); color: #fff; text-align: center; }
.cta-section h2 { margin: 0 0 .5rem; font-size: 1.8rem; }
.cta-section p { margin: 0 0 1.5rem; opacity: .95; }

/* Footer */
.site-footer { background: #0b1d35; color: #b8c5d6; padding: 3rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 1rem; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #b8c5d6; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e3451; padding-top: 1rem; font-size: .85rem; text-align: center; }

/* Blog / archive */
.post-list { display: grid; gap: 1.5rem; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; } }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }
.post-card h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.post-card .meta { font-size: .85rem; color: var(--text-light); margin-bottom: .5rem; }

/* Page content */
.page-content, .entry-content { max-width: 800px; margin: 0 auto; padding: 2rem 0; }
.entry-content h2, .entry-content h3 { color: var(--primary-dark); }
.entry-content img { border-radius: var(--radius); }

/* Contact form */
.landown-form { display: grid; gap: 1rem; }
.landown-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .landown-form .row { grid-template-columns: 1fr; } }
.landown-form input, .landown-form textarea, .landown-form select {
  width: 100%; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit;
}
.landown-form button { justify-self: start; }
.form-notice { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.form-notice.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-notice.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* WooCommerce overrides */
.woocommerce .page-title { text-align: center; color: var(--primary-dark); }
.woocommerce-info { border-top-color: var(--primary); }
.woocommerce-message { border-top-color: var(--accent); }
.added_to_cart, .woocommerce a.button.alt { background: var(--primary); }
.product-detail-inquiry { background: var(--bg-alt); padding: 1.5rem; border-radius: var(--radius); margin-top: 1.5rem; }

/* WooCommerce shop toolbar: remove floats so the product grid sits below */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  float: none !important;
  width: 100%;
  margin: 0 0 .75rem;
}
.woocommerce-ordering { text-align: right; margin-bottom: 1.25rem; }
.woocommerce-ordering select {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--text);
}
.woocommerce-result-count { font-size: .9rem; color: var(--text-light); }
.product-detail-inquiry h3 { margin-top: 0; }

/* Misc */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: var(--text-light); padding: 1rem 0; }
.breadcrumb a { color: var(--text-light); }

/* Footer quick links nav */
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .45rem; }
.footer-nav a { color: #b8c5d6; }
.footer-nav a:hover { color: #fff; }

/* Floating buttons: WhatsApp + Back to top */
.wa-float, .back-to-top {
  position: fixed; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: transform .2s, opacity .2s;
}
.wa-float {
  right: 22px; bottom: 92px;
  background: #25d366; color: #fff;
  height: 52px; padding: 0 .9rem;
  border-radius: 50px; gap: .4rem;
  font-weight: 600; font-size: .9rem; text-decoration: none;
}
.wa-float svg { width: 22px; height: 22px; stroke: #fff; }
.wa-float span { line-height: 1; }
.wa-float:hover { transform: translateY(-2px); color: #fff; }
.back-to-top {
  right: 22px; bottom: 26px;
  width: 48px; height: 48px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.back-to-top svg { width: 22px; height: 22px; stroke: #fff; }
.back-to-top.show { opacity: 1; visibility: visible; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
@media (max-width: 560px) {
  .wa-float { bottom: 80px; right: 16px; }
  .back-to-top { bottom: 20px; right: 16px; }
}
