/* =========================================================
   MaxLift — Rigging & Lifting Catalog Theme
   Colors: Navy #0B3C7A / Dark Navy #072040 / Orange #F26522
   Fonts:  Poppins (headings), Roboto (body)
   ========================================================= */

:root {
  --navy: #0b3c7a;
  --navy-dark: #072040;
  --navy-deep: #051a35;
  --orange: #f26522;
  --orange-dark: #d9531a;
  --bg-light: #f4f7fb;
  --text: #1d2733;
  --text-muted: #5c6b7a;
  --border: #e3e9f1;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-blue { background: var(--navy); color: var(--white); }
.btn-blue:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-dark); }
.btn-sm { padding: 9px 18px; font-size: 12px; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 4px; margin: 14px 0; font-size: 14px; }
.alert-success { background: #e6f7ec; color: #157347; border: 1px solid #b8e6c9; }
.alert-error { background: #fdeaea; color: #b02a37; border: 1px solid #f5c2c7; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #cdd9e8; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 7px 16px; }
.topbar span { margin-right: 18px; }
.topbar i { color: var(--orange); margin-right: 6px; }

/* ---------- Header ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 16px; flex-wrap: wrap; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-size: 20px;
}
.logo-text {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 24px;
  color: var(--navy); line-height: 1; display: flex; flex-direction: column;
}
.logo-text span { color: var(--orange); display: inline; }
.logo-text small { font-size: 9px; font-weight: 600; letter-spacing: 2.5px; color: var(--text-muted); margin-top: 3px; }

.header-search { flex: 1; display: flex; max-width: 480px; margin: 0 auto; }
.header-search input {
  flex: 1; padding: 11px 14px; border: 1px solid var(--border);
  border-right: none; border-radius: 4px 0 0 4px; font-size: 14px; outline: none;
}
.header-search input:focus { border-color: var(--navy); }
.header-search button {
  padding: 0 18px; background: var(--navy); color: var(--white);
  border: none; border-radius: 0 4px 4px 0; cursor: pointer;
}
.header-search button:hover { background: var(--navy-dark); }

/* ---------- Navbar ---------- */
.navbar { background: var(--navy); }
.nav-inner { display: flex; flex-wrap: wrap; }
.navbar a {
  color: #d7e2ef; font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: .5px; padding: 15px 18px;
  transition: background .2s, color .2s;
}
.navbar a:hover, .navbar a.active { background: var(--orange); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(90deg, rgba(7,32,64,.95) 40%, rgba(11,60,122,.75)), var(--navy-dark);
  background-size: cover; background-position: center;
  color: var(--white);
}
.hero-inner { padding: 70px 16px; }
.hero-eyebrow {
  display: inline-block; background: var(--orange); color: var(--white);
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 1.5px; padding: 6px 14px; border-radius: 3px; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero h1 .orange { color: var(--orange); }
.hero p { max-width: 560px; color: #c9d6e6; margin-bottom: 22px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 26px; }
.hero-badges span { font-size: 13px; color: #e3ecf6; }
.hero-badges i { color: var(--orange); margin-right: 7px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-title {
  text-align: center; font-size: 26px; font-weight: 700;
  color: var(--navy-dark); letter-spacing: .5px;
}
.section-title.light { color: var(--white); }
.title-underline {
  width: 70px; height: 3px; background: var(--orange);
  margin: 12px auto 40px; border-radius: 2px;
}
.title-underline.left { margin-left: 0; }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.category-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 22px; text-align: center; transition: box-shadow .2s, transform .2s;
}
.category-card:hover { box-shadow: 0 10px 26px rgba(11,60,122,.14); transform: translateY(-3px); }
.category-img {
  height: 140px; background: var(--bg-light); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; overflow: hidden;
}
.category-img img { width: 100%; height: 100%; object-fit: cover; }
.category-img i { font-size: 44px; color: var(--navy); opacity: .35; }
.category-card h3 { font-size: 17px; color: var(--navy-dark); margin-bottom: 8px; }
.category-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.category-link { color: var(--orange); font-weight: 600; font-size: 13px; }
.category-link i { font-size: 11px; margin-left: 4px; }

/* ---------- Why choose ---------- */
.why-choose { background: var(--navy-dark); padding: 60px 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.why-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 28px 20px; text-align: center; color: var(--white);
}
.why-card i { font-size: 34px; color: var(--orange); margin-bottom: 14px; }
.why-card h3 { font-size: 15px; letter-spacing: .5px; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: #b9c7d8; }
.why-card.dark { background: var(--navy-dark); border: none; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px;
}
.product-grid.three-col { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 10px 26px rgba(11,60,122,.14); transform: translateY(-3px); }
.product-img {
  height: 180px; background: var(--bg-light);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img i { font-size: 48px; color: var(--navy); opacity: .3; }
.product-body { padding: 16px; text-align: center; }
.product-body h3 { font-size: 15px; color: var(--navy-dark); margin-bottom: 4px; }
.product-body h3 small { color: var(--text-muted); font-weight: 500; }
.product-size { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; }

/* ---------- Industries strip ---------- */
.industries { background: var(--navy); padding: 34px 0; }
.industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.industry { text-align: center; color: var(--white); }
.industry i { font-size: 30px; color: var(--orange); display: block; margin-bottom: 8px; }
.industry span { font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1px; }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(90deg, var(--navy-dark), var(--navy));
  color: var(--white); padding: 44px 0; text-align: center;
}
.page-banner h1 { font-size: 30px; letter-spacing: 1px; }
.page-banner p { color: #b9c7d8; font-size: 13px; margin-top: 6px; }

/* ---------- Listing layout ---------- */
.listing-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.sidebar {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: 6px; padding: 20px; position: sticky; top: 20px;
}
.sidebar h3 {
  font-size: 15px; color: var(--navy-dark);
  border-bottom: 2px solid var(--orange); padding-bottom: 10px; margin-bottom: 12px;
}
.sidebar ul { list-style: none; }
.sidebar li a {
  display: block; padding: 9px 10px; font-size: 14px; color: var(--text);
  border-radius: 4px; transition: background .2s, color .2s;
}
.sidebar li a:hover, .sidebar li a.active { background: var(--navy); color: var(--white); }
.search-info { margin-bottom: 16px; color: var(--text-muted); }

.empty-state { text-align: center; padding: 60px 0; color: var(--text-muted); }
.empty-state i { font-size: 46px; margin-bottom: 12px; color: var(--navy); opacity: .3; display: block; }

.pagination-wrap { margin-top: 30px; display: flex; justify-content: center; }
.pagination-wrap nav { font-size: 14px; }

/* ---------- Product detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.detail-img {
  background: var(--bg-light); border: 1px solid var(--border); border-radius: 6px;
  min-height: 340px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-img i { font-size: 70px; color: var(--navy); opacity: .3; }
.detail-info h2 { font-size: 26px; color: var(--navy-dark); margin-bottom: 10px; }
.detail-short { color: var(--text-muted); margin-bottom: 18px; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.spec-table th { background: var(--bg-light); color: var(--navy-dark); width: 38%; font-family: 'Poppins', sans-serif; font-weight: 600; }

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.detail-description { margin-top: 50px; }
.detail-description h3 { font-size: 20px; color: var(--navy-dark); }
.detail-description p { color: var(--text-muted); max-width: 850px; }

.related-products { margin-top: 60px; }

/* ---------- Enquiry / Contact ---------- */
.enquiry-box {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: 6px; padding: 34px; margin-top: 50px;
}
.enquiry-box h3 { text-align: center; font-size: 20px; color: var(--navy-dark); }
.enquiry-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.enquiry-form input, .enquiry-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 14px; font-family: 'Roboto', sans-serif; outline: none;
}
.enquiry-form input:focus, .enquiry-form textarea:focus { border-color: var(--navy); }
.enquiry-form textarea { margin-bottom: 16px; resize: vertical; }
.enquiry-form button { display: block; margin: 0 auto; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-layout .enquiry-box { margin-top: 0; }
.contact-info h3 { font-size: 20px; color: var(--navy-dark); }
.contact-info ul { list-style: none; }
.contact-info li { display: flex; gap: 14px; margin-bottom: 18px; font-size: 14px; color: var(--text-muted); }
.contact-info li i {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 4px;
  background: var(--navy); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* ---------- About ---------- */
.about-content p { max-width: 900px; margin: 0 auto 16px; color: var(--text-muted); text-align: center; }
.about-stats { margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #b9c7d8; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px; padding: 54px 16px 40px;
}
.footer-logo .logo-text { color: var(--white); }
.footer-logo .logo-text small { color: #8fa2b8; }
.footer-col p { font-size: 13.5px; margin-top: 14px; }
.footer-col h4 {
  color: var(--white); font-size: 15px; letter-spacing: .5px;
  border-bottom: 2px solid var(--orange); display: inline-block;
  padding-bottom: 8px; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; font-size: 13.5px; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact i { color: var(--orange); margin-top: 4px; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 14px; transition: background .2s;
}
.footer-social a:hover { background: var(--orange); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 12.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero h1 { font-size: 32px; }
  .listing-layout, .detail-layout, .contact-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 600px) {
  .header-inner { justify-content: center; }
  .header-search { order: 3; max-width: 100%; }
  .hero h1 { font-size: 26px; }
  .nav-inner { justify-content: center; }
  .navbar a { padding: 12px 12px; font-size: 12px; }
}

/* ---------- Logo image (admin uploaded) ---------- */
.logo-img { max-height: 56px; width: auto; }
.footer-logo .logo-img { max-height: 48px; }

/* ---------- Mega Menu ---------- */
.nav-inner { position: relative; }
.nav-item.has-mega { position: static; }
.nav-item.has-mega > a i { font-size: 10px; margin-left: 5px; }

.mega-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 3px solid var(--orange);
  box-shadow: 0 18px 40px rgba(7,32,64,.22);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 100;
}
.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega:focus-within .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.mega-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 4px 18px; padding: 24px 24px 14px;
  max-height: 62vh; overflow-y: auto;
}
.mega-col { padding-bottom: 12px; }
.mega-title {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13.5px;
  color: var(--navy-dark) !important; padding: 6px 0 !important;
  border-bottom: 2px solid var(--orange); margin-bottom: 8px;
}
.mega-title img { width: 30px; height: 24px; object-fit: cover; border-radius: 3px; }
.mega-title:hover { color: var(--orange) !important; background: none !important; }
.mega-col ul { list-style: none; }
.mega-col ul li a {
  display: block; padding: 4px 0 !important; font-family: 'Roboto', sans-serif;
  font-weight: 400 !important; font-size: 13px; color: var(--text-muted) !important;
  letter-spacing: 0 !important; background: none !important;
}
.mega-col ul li a:hover { color: var(--orange) !important; padding-left: 4px !important; }
.mega-more { color: var(--orange) !important; font-weight: 600 !important; font-size: 12.5px !important; }
.mega-more i { font-size: 10px; }

.mega-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--bg-light); border-top: 1px solid var(--border);
  padding: 12px 24px; flex-wrap: wrap;
}
.mega-footer span { font-size: 13px; color: var(--text-muted); }
.mega-footer span i { color: var(--orange); margin-right: 6px; }

@media (max-width: 900px) {
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .mega-menu { position: absolute; }
  .mega-grid { grid-template-columns: 1fr; max-height: 55vh; }
}

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider .slide {
  display: none;
}
.hero-slider .slide.active {
  display: block;
  animation: slideFade .7s ease;
}
@keyframes slideFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide.active { animation: none; }
}

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer; font-size: 15px; z-index: 5;
  transition: background .2s;
}
.slider-arrow:hover { background: var(--orange); border-color: var(--orange); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }

.slider-dots {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.slider-dots .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.slider-dots .dot.active { background: var(--orange); transform: scale(1.25); }
