/* =========================================================
   PRIME SOLUTIONS - Corporate Website Theme
   Colors: Deep Navy Blue + White + Gold Accent
   ========================================================= */

:root {
  --navy-dark: #0b1440;
  --navy: #142868;
  --navy-light: #1f3a96;
  --blue-accent: #3f5fe0;
  --gold: #c3c9d4;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-text: #5a6472;
  --dark-text: #1c2530;
  --border-light: #e3e8ef;
  --shadow: 0 10px 30px rgba(10, 31, 61, 0.08);
  --shadow-strong: 0 15px 40px rgba(10, 31, 61, 0.15);
  --radius: 10px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Poppins', Arial, sans-serif;
  color: var(--dark-text);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: #a3aab8;
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-dark);
  transform: translateY(-3px);
}

.btn-outline-navy {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============ HEADER / NAVBAR ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 800;
  color: var(--navy-dark);
}

.brand span {
  color: var(--gold);
}

.site-header .brand span {
  color: var(--navy);
}

.brand-text {
  color: inherit;
  white-space: nowrap;
}

.logo-chip {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 2px solid rgba(255,255,255,0.9);
}

.site-header .logo-chip {
  box-shadow: none;
  border: none;
}

.brand .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark-text);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--navy-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 24px 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(195,201,212,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1.1;
}

.hero-tag {
  display: inline-block;
  background: rgba(195,201,212,0.15);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  border: 1px solid rgba(195,201,212,0.3);
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: var(--gold);
}

.hero-text p {
  font-size: 17px;
  color: #c7d3e8;
  margin-bottom: 34px;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 400px;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-stat:last-child { border-bottom: none; }

.hero-stat h3 {
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
}

.hero-stat p {
  font-size: 13px;
  color: #c7d3e8;
}

/* ============ SECTION GENERAL ============ */
.section {
  padding: 90px 24px;
}

.section-alt {
  background: var(--white);
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--gray-text);
  font-size: 16px;
}

/* ============ CARDS GRID ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: var(--gold);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--blue-accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.card p {
  color: var(--gray-text);
  font-size: 15px;
}

/* ============ STATS STRIP ============ */
.stats-strip {
  background: var(--navy-dark);
  padding: 50px 24px;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}

.stats-grid h3 {
  color: var(--gold);
  font-size: 34px;
  font-weight: 800;
}

.stats-grid p {
  color: #c7d3e8;
  font-size: 14px;
  margin-top: 6px;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 50px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  color: #c7d3e8;
  margin-bottom: 28px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-dark);
  color: #c7d3e8;
  padding: 70px 24px 24px;
  font-size: 15.5px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-grid ul li {
  margin-bottom: 14px;
  font-size: 15px;
}

.footer-grid ul li a {
  color: #c7d3e8;
  font-size: 15px;
  transition: var(--transition);
}

.footer-grid ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a svg {
  width: 20px;
  height: 20px;
}

.social-icons a:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

/* ============ PAGE HEADER (inner pages) ============ */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 70px 24px;
  text-align: center;
}

.page-header h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
}

.breadcrumb {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

.breadcrumb a { color: #c7d3e8; }

/* ============ FORM (Contact) ============ */
.form-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--navy-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
  background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-accent);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-info-box {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(195,201,212,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: #c7d3e8;
  font-size: 14px;
}

.alert-success {
  background: #e6f7ec;
  border: 1px solid #34a853;
  color: #1e7a3a;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 600;
}

/* ============ TEAM / VALUES ============ */
.value-item {
  display: flex;
  gap: 18px;
  margin-bottom: 30px;
}

.value-item .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.5;
  min-width: 50px;
}

.value-item h4 {
  color: var(--navy-dark);
  margin-bottom: 6px;
  font-size: 17px;
}

.value-item p {
  color: var(--gray-text);
  font-size: 14.5px;
}

/* ============ PORTFOLIO / PROJECTS ============ */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.project-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--blue-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 40px;
  font-weight: 800;
}

.project-card-body {
  padding: 24px;
}

.project-tag {
  display: inline-block;
  background: var(--off-white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.project-card-body h3 {
  color: var(--navy-dark);
  font-size: 18px;
  margin-bottom: 8px;
}

.project-card-body p {
  color: var(--gray-text);
  font-size: 14px;
}

/* ============ NAV ICONS (Search / Favorites) ============ */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 10px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--navy-dark);
  text-decoration: none;
}

.icon-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.fav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ SEARCH PANEL ============ */
.search-panel {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.search-panel.open {
  display: block;
}

.search-panel-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-panel-inner input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

.search-panel-inner input:focus {
  border-color: var(--blue-accent);
}

.search-panel-inner button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray-text);
}

.search-results {
  max-width: 800px;
  margin: 0 auto;
  max-height: 360px;
  overflow-y: auto;
  padding: 0 24px 18px;
}

.search-result-item {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.search-result-item:hover {
  background: var(--off-white);
}

.search-result-item .sr-title {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 14.5px;
}

.search-result-item .sr-sub {
  color: var(--gray-text);
  font-size: 13px;
}

.search-no-results {
  color: var(--gray-text);
  font-size: 14px;
  padding: 10px 14px;
}

/* ============ FILTER BAR ============ */
.filter-bar {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 14px;
  margin-right: 6px;
}

.filter-chip {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  color: var(--navy-dark);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  border-color: var(--blue-accent);
}

.filter-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ============ CLICKABLE CATEGORY CARD ============ */
.card-link {
  display: block;
  cursor: pointer;
  transition: var(--transition);
}

.card-arrow {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue-accent);
  font-weight: 700;
  font-size: 13.5px;
}

/* ============ PRODUCT TILE (Pump / Spare Part item) ============ */
.product-tile {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-tile:hover {
  box-shadow: var(--shadow-strong);
}

.product-tile-img {
  position: relative;
  height: 260px;
  background: linear-gradient(135deg, var(--navy), var(--blue-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
}

.fav-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  transition: var(--transition);
}

.fav-btn:hover {
  transform: scale(1.1);
}

.fav-btn.active {
  color: #d64545;
}

.product-tile-body {
  padding: 26px;
}

.product-tile-body h3 {
  color: var(--navy-dark);
  font-size: 19px;
  margin-bottom: 8px;
}

.product-tile-body p {
  color: var(--gray-text);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.spec-list {
  list-style: none;
  padding: 0;
}

.spec-list li {
  font-size: 13.5px;
  color: var(--navy);
  padding: 6px 0;
  border-top: 1px solid var(--border-light);
}

.spec-list li:first-child {
  border-top: none;
}

/* ============ HERO VIDEO ============ */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* ============ MAP EMBED ============ */
.map-embed {
  border-radius: 8px;
  overflow: hidden;
  height: 220px;
  border: none;
  width: 100%;
}


@media (max-width: 992px) {
  .hero-text h1 { font-size: 38px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle { display: flex; }

  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { margin-top: 20px; }

  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 60px 20px 70px; }
  .hero-text h1 { font-size: 30px; }
  .section { padding: 60px 20px; }
  .section-head h2 { font-size: 27px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 40px 24px; }
  .cta-banner h2 { font-size: 24px; }
  .page-header h1 { font-size: 28px; }
  .form-box, .contact-info-box { padding: 26px; }
  .social-icons { justify-content: center; }
}

/* =========================================================
   NEW FEATURES - Search, Favorites, Product Catalog, Social Icons
   ========================================================= */

/* ---- Logo visibility fix on dark backgrounds ---- */
.brand .logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-grid .brand .logo-img,
.logo-chip {
  background: var(--white);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.brand span,
.footer-grid .brand span {
  font-weight: 800;
}

/* Make "AR Technical Services" text more prominent everywhere */
.brand {
  font-size: 23px;
  font-weight: 900;
}

.footer-grid > div:first-child .brand {
  font-size: 22px;
  color: var(--white) !important;
}

/* ---- Social Media Icons (real icons instead of text) ---- */
.social-icons a {
  width: 42px;
  height: 42px;
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---- Footer text/icon size increase ---- */
.footer-grid p {
  font-size: 15px;
}

.footer-grid ul li {
  font-size: 15px;
}

.footer-grid ul li a {
  font-size: 15px;
}

.footer-grid h4 {
  font-size: 17px;
}

.contact-info-item .icon {
  font-size: 20px;
}

.footer-bottom {
  font-size: 14px;
}

/* ---- Clickable category cards ---- */
.card-clickable {
  display: block;
  cursor: pointer;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

.card-clickable:hover .card-link {
  color: var(--gold);
}

/* ---- Product Grid / Tiles (Pump & Spare Part detail pages) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-tile {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}

.product-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.product-tile-img {
  height: 260px;
  background: linear-gradient(135deg, var(--navy), var(--blue-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  position: relative;
}

.product-tile-body {
  padding: 26px;
}

.product-tile-body h3 {
  color: var(--navy-dark);
  font-size: 19px;
  margin-bottom: 10px;
}

.product-tile-body p {
  color: var(--gray-text);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}

.spec-list li {
  font-size: 13.5px;
  color: var(--dark-text);
  padding: 7px 0;
  border-bottom: 1px dashed var(--border-light);
}

.spec-list li:last-child {
  border-bottom: none;
}

/* ---- Favorite (heart) button ---- */
.fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #b0b8c4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.fav-btn:hover {
  transform: scale(1.1);
}

.fav-btn.active {
  color: #e0455f;
}

/* ---- Search bar in navbar ---- */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 19px;
  color: var(--navy-dark);
  padding: 6px;
  display: flex;
  align-items: center;
}

.search-box {
  position: absolute;
  top: 46px;
  right: 0;
  width: 320px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border-light);
  padding: 14px;
  display: none;
  z-index: 1200;
}

.search-box.open {
  display: block;
}

.search-box input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.search-box input:focus {
  outline: none;
  border-color: var(--blue-accent);
}

.search-results {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 10px;
}

.search-result-item {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover {
  background: var(--off-white);
}

.search-result-item .sr-title {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 14px;
  display: block;
}

.search-result-item .sr-cat {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

.search-empty {
  font-size: 13px;
  color: var(--gray-text);
  text-align: center;
  padding: 14px 0;
}

/* ---- Favorites counter icon in navbar ---- */
.fav-nav-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 19px;
  color: var(--navy-dark);
  padding: 6px;
  display: flex;
  align-items: center;
}

.fav-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

/* ---- Favorites Page ---- */
.favorites-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-text);
}

.fav-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
}

.fav-list-item h4 {
  color: var(--navy-dark);
  font-size: 16px;
}

.fav-remove-btn {
  background: none;
  border: 1.5px solid #e0455f;
  color: #e0455f;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

/* ---- Hero video background ---- */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.35;
}

.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, rgba(11,20,64,0.85) 55%, rgba(31,58,150,0.75) 100%);
}

.hero { position: relative; }
.hero-inner { position: relative; z-index: 2; }

/* ---- Map embed ---- */
.map-embed {
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
  margin-top: 30px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

/* ---- Responsive for new features ---- */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .search-box { width: 260px; right: -40px; }
  .product-tile-img { height: 200px; font-size: 60px; }
}
