/* ===========================
   HEXA Auto - Main CSS
   Design exact selon maquette
   =========================== */
:root {
  --navy: #0d1b3e;
  --navy2: #1b3178;
  --navy3: #263a8a;
  --accent: #f7941d;
  --accent2: #e07b0a;
  --blue: #1b3178;
  --blue-light: #2645b0;
  --green: #25d366;
  --gold: #f59e0b;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: all .22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: #fff; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-bar a { color: rgba(255,255,255,.75); transition: var(--transition); }
.top-bar a:hover { color: #fff; }

/* ===== NAVBAR ===== */
.main-navbar {
  background: #000c33;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px #0000004d;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 220px;
  filter:drop-shadow(19px 7px 17px rgba(247,148,29,20.5))
}

.main-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
      margin-bottom: 0rem;
}
.main-nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  font-weight: 600;
  padding: .5rem .75rem;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.main-nav-links a:hover,
.main-nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* Nav search */
.nav-search-form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 340px;
}
.nav-search-input {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-right: none;
  color: #fff;
  padding: .42rem .9rem;
  font-size: .83rem;
  border-radius: 6px 0 0 6px;
  outline: none;
  transition: var(--transition);
}
.nav-search-input::placeholder { color: rgba(255,255,255,.45); }
.nav-search-input:focus { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.nav-search-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: .42rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-search-btn:hover { background: var(--accent2); }

/* Nav icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,.8);
  font-size: .7rem;
  gap: 2px;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}
.nav-icon-btn i { font-size: 1.1rem; }
.nav-icon-btn:hover { color: #fff; }
.nav-icon-btn a { color: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* Dropdown mega */
.dropdown { position: relative; }
.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1b3178;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: .5rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.dropdown:hover .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-item-custom:hover {
  background: var(--bg);
  color: var(--accent);
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 40%, #0d1b2a 100%);
  color: #fff;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.hero-section::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  background: url('https://images.unsplash.com/photo-1544636331-e26879cd4d9b?w=800') center/cover no-repeat;
  opacity: .2;
  mask-image: linear-gradient(to right, transparent, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
}
.hero-eyebrow {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  text-align: justify;
}
.hero-subtitle {
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  max-width: 550px;
  margin-bottom: 1.5rem;
  text-align: justify;
}
.btn-hero {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .6rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-hero:hover { background: var(--accent2); color: #fff; transform: translateY(-2px); }

/* Vehicle search card in hero */
.vehicle-search-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
}
.vehicle-search-card h6 {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.vehicle-search-card .form-label {
  font-size: .75rem;
  color: rgba(255,255,255);
  font-weight: 700;
  margin-bottom: .25rem;  text-transform: uppercase;

}
.vehicle-search-card select,
.vehicle-search-card input {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: .82rem;
  padding: .38rem .65rem;
  border-radius: var(--radius-sm);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}
.vehicle-search-card select option { background: var(--navy2); color: #fff; }
.vehicle-search-card select:focus, .vehicle-search-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(230,57,70,.25);
}
.btn-search-vehicle {
  background: var(--accent);
  color: #fff;
  border: none;
  width: 100%;
  padding: .5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.btn-search-vehicle:hover { background: var(--accent2); }

/* ===== VIEW TOGGLE TABS ===== */
.view-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.view-tab {
  padding: .4rem 1rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.view-tab.active {
  background: var(--navy2);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.view-tab:hover:not(.active) { color: var(--text); background: rgba(0,0,0,.04); }

/* ===== CATALOGUE VIEW (TABLE) ===== */
.catalogue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.catalogue-table thead tr {
  background: var(--navy2);
  color: #fff;
}
.catalogue-table thead th {
  padding: .65rem .75rem;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: none;
  white-space: nowrap;
}
.catalogue-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.catalogue-table tbody tr:hover { background: #f8fafc; }
.catalogue-table tbody td {
  padding: .6rem .75rem;
  vertical-align: middle;
}
.catalogue-table .prod-img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}
.catalogue-table .prod-code {
  font-weight: 700;
  color: var(--accent);
  font-size: .8rem;
  font-family: 'Courier New', monospace;
}
.catalogue-table .ref-val {
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  color: var(--text);
  white-space: nowrap;
}
.catalogue-table .compat-info {
  font-size: .75rem;
  line-height: 1.5;
}
.catalogue-table .compat-make { font-weight: 700; color: var(--navy2); }
.catalogue-table .compat-details { color: var(--text-light); }

/* ===== ECOMMERCE VIEW (CARDS) ===== */
/* product-grid remplacé par Bootstrap row-cols dans les templates PHP */

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #d1d5db;
}
.product-card-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg);
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img-wrap img { transform: scale(1.06); }
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  color: #9ca3af;
}
.fav-btn.active, .fav-btn:hover { color: var(--accent); background: #fff; }
.product-card-body { padding: .85rem; flex: 1; }
.pc-code { font-size: 1rem; font-weight: 700; color: var(--accent); font-family: monospace; }
.pc-name { font-size: .85rem; font-weight: 700; color: var(--text); margin: .2rem 0 .4rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: .2em; }
.pc-price { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.pc-price span { font-size: .75rem; font-weight: 500; color: var(--text-light); }
.product-card-footer {
  display: grid;
  grid-template-columns: 1fr 50px 100px;
  gap: 4px;
  padding: .6rem .85rem;
  border-top: 1px solid var(--border);
}
.btn-wa-card {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .38rem .5rem;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-wa-card:hover { background: #1ebe5d; color: #fff; }
.btn-card-icon {
  background: var(--navy2);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-card-icon:hover { background: var(--accent); color: #fff; }

/* ===== TECHNICAL VIEW ===== */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.tech-table thead tr { background: var(--navy2); color: #fff; }
.tech-table thead th { padding: .6rem .75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border: none; }
.tech-table tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
.tech-table tbody tr:hover { background: var(--bg); }
.tech-table td { padding: .6rem .75rem; vertical-align: middle; }
.tech-table .ref-code { font-family: monospace; font-weight: 700; font-size: .8rem; }
.tech-table .compat-cell { font-size: .76rem; line-height: 1.6; }
.tech-table .compat-line { display: flex; align-items: center; gap: 4px; }
.tech-table .compat-line .make { font-weight: 700; color: var(--navy2); }
.tech-table .compat-line .details { color: var(--text-light); }

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  position: sticky;
  top: 70px;
}
.filter-group-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text);
  margin-bottom: .65rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--accent);
}
.filter-check label { font-size: .83rem; cursor: pointer; }
.filter-check { margin-bottom: .35rem; }
.filter-check input { margin-right: 6px; accent-color: var(--accent); }
.btn-filter { background: var(--navy2); color: #fff; border: none; width: 100%; padding: .5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .85rem; cursor: pointer; transition: var(--transition); }
.btn-filter:hover { background: var(--accent); }
.btn-filter-reset { background: #fff; color: var(--text-light); border: 1px solid var(--border); width: 100%; padding: .45rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .82rem; cursor: pointer; transition: var(--transition); margin-top: 4px; }
.btn-filter-reset:hover { border-color: var(--accent); color: var(--accent); }

/* ===== CATEGORIES SECTION ===== */
.section-heading { font-size: 1.1rem; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: -.02em; }
.section-heading .highlight { color: var(--accent); }
.section-subtext { font-size: .83rem; color: var(--text-light); }

.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--accent); color: inherit; }
.cat-card-img { height: 100px; object-fit: cover; width: 100%; }
.cat-card-body { padding: .65rem .75rem; }
.cat-card-name { font-size: .83rem; font-weight: 700; }
.cat-card-count { font-size: .9rem;    color: #002df9; margin-top: 1px; font-weight: 400;}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: .55rem 0; font-size: .82rem; }
.breadcrumb-bar a { color: var(--text-light); }
.breadcrumb-bar a:hover { color: var(--accent); }
.breadcrumb-bar .sep { color: var(--border); margin: 0 6px; }
.breadcrumb-bar .current { color: var(--text); font-weight: 600; }

/* ===== PRODUCT DETAIL ===== */
.detail-img-main { width: 100%; height: 340px; object-fit: contain; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.detail-code { font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; font-family: monospace; }
.detail-name { font-size: 1.4rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin: .4rem 0 .6rem; }
.detail-cat-badge { display: inline-flex; align-items: center; gap: 5px; background: #eff6ff; color: #1d4ed8; border-radius: 20px; padding: 3px 10px; font-size: .77rem; font-weight: 600; }
.refs-grid { display: grid; grid-template-columns: auto 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.refs-grid-row { display: contents; }
.refs-grid-row:not(:last-child) .ref-label,
.refs-grid-row:not(:last-child) .ref-val { border-bottom: 1px solid var(--border); }
.ref-label { background: var(--bg); padding: .45rem .75rem; font-size: .78rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.ref-val { padding: .45rem .75rem; font-family: monospace; font-size: .82rem; font-weight: 700; color: var(--accent); }
.detail-action-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: .6rem 1.2rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-whatsapp-detail { background: var(--green); color: #fff; width: 100%; }
.btn-whatsapp-detail:hover { background: #1ebe5d; color: #fff; }
.btn-fav-detail { background: #fff; border: 1px solid var(--border); color: var(--text-light); }
.btn-fav-detail:hover, .btn-fav-detail.active { background: #fff0f3; border-color: var(--accent); color: var(--accent); }
.btn-pdf-detail { background: #fff; border: 1px solid var(--border); color: var(--text-light); }
.btn-pdf-detail:hover { background: #fef3c7; border-color: var(--gold); color: var(--gold); }

/* Compat table */
.compat-table-wrap { overflow-x: auto; }
.compat-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.compat-table thead tr { background: var(--navy2); color: #fff; }
.compat-table thead th { padding: .55rem .75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.compat-table tbody td { padding: .55rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compat-table tbody tr:hover { background: var(--bg); }
.make-badge { background: #f0f4ff; color: var(--blue); border-radius: 5px; padding: 2px 7px; font-size: .75rem; font-weight: 700; }
.year-badge { background: #f0fdf4; color: #15803d; border-radius: 5px; padding: 2px 7px; font-size: .75rem; font-weight: 600; }

/* Section tabs */
.detail-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.detail-tab { padding: .55rem 1.1rem; font-size: .85rem; font-weight: 600; color: var(--text-light); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); background: none; border-top: none; border-left: none; border-right: none; }
.detail-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.detail-tab:hover:not(.active) { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== SIMILAR PRODUCTS ===== */
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }

/* ===== POPULAR BRANDS ===== */
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.brand-pill:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow); }
.brand-pill.active i,
.brand-pill.active .badge { color: inherit !important; }

/* ===== SEARCH PAGE ===== */
.search-hero { background: var(--navy2); padding: 30px 0; color: #fff; }
.search-hero h1 { font-size: 1.4rem; font-weight: 800; }
.search-hero-form { display: flex; gap: 0; max-width: 560px; }
.search-hero-input { flex: 1; background: #fff; border: none; padding: .6rem 1rem; border-radius: 6px 0 0 6px; font-size: .9rem; outline: none; color: var(--text); }
.search-hero-btn { background: var(--accent); color: #fff; border: none; padding: .6rem 1.4rem; border-radius: 0 6px 6px 0; font-weight: 700; cursor: pointer; transition: var(--transition); }
.search-hero-btn:hover { background: var(--accent2); }

.search-type-tabs { display: flex; gap: 6px; margin-top: 1rem; }
.search-type-tab { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.15); border-radius: 5px; padding: .35rem .9rem; font-size: .82rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.search-type-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-type-tab:hover:not(.active) { background: rgba(255,255,255,.18); }

/* ===== PAGINATION ===== */
.pagination-wrap { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 2rem; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; font-size: .83rem; font-weight: 600; color: var(--text); text-decoration: none; transition: var(--transition); background: #fff; }
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--navy2); border-color: var(--navy2); color: #fff; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-light); }
.empty-state i { font-size: 3.5rem; opacity: .3; display: block; margin-bottom: 1rem; }
.empty-state h5 { font-weight: 700; color: var(--text); margin-bottom: .5rem; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: .6rem 0; font-size: .82rem; }

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 22px; right: 22px;
  background: var(--green);
  color: #fff;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  z-index: 9999;
  transition: var(--transition);
  animation: waPulse 2.5s infinite;
}
.whatsapp-fab:hover { transform: scale(1.12); background: #1ebe5d; color: #fff; animation: none; }
@keyframes waPulse { 0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,.4); } 50% { box-shadow: 0 4px 28px rgba(37,211,102,.7); } }

.back-to-top {
  position: fixed; bottom: 86px; right: 22px;
  background: var(--navy2); color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%; border: none;
  display: none; align-items: center; justify-content: center;
  font-size: .95rem; z-index: 9998; cursor: pointer;
  box-shadow: var(--shadow); transition: var(--transition);
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: rgba(255,255,255,.7); }
.footer-top { padding: 2.5rem 0; }
.footer-logo { display: flex; align-items: center; margin-bottom: .75rem; }
.footer-desc { font-size: .83rem; line-height: 1.65; }
.footer-head { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .85rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .35rem; }
.footer-links a { font-size: .83rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 7px; margin-bottom: .5rem; font-size: .83rem; }
.footer-contact-item i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,.7); }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom { background: rgba(0,0,0,.25); padding: .65rem 0; text-align: center; font-size: .77rem; color: rgba(255,255,255,.4); }
.btn-wa-footer { background: var(--green); color: #fff; border: none; border-radius: 20px; padding: 5px 14px; font-size: .8rem; font-weight: 700; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.btn-wa-footer:hover { background: #1ebe5d; color: #fff; }

/* ===== NOTICE BAR ===== */
.notice-bar { background: linear-gradient(90deg, var(--navy), var(--accent)); color: #fff; text-align: center; font-size: .82rem; font-weight: 600; padding: 5px; }

/* ===== TOAST ===== */
#toast-container { position: fixed; top: 72px; right: 14px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; }
.toast-item { background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); padding: .65rem 1rem; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 200px; border-left: 4px solid var(--accent); animation: slideInRight .3s ease; }
.toast-item.success { border-left-color: var(--green); }
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== ADMIN LINK ===== */
.admin-fab { position: fixed; bottom: 148px; right: 22px; background: var(--navy2); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; box-shadow: var(--shadow); z-index: 999; transition: var(--transition); }
.admin-fab:hover { background: var(--accent); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .nav-search-form { display: none; }
  .main-nav-links { display: none; }
  .hero-section { padding: 36px 0 28px; }
  .hero-title { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .filter-sidebar { position: static; }
  .whatsapp-fab { width: 48px; height: 48px; font-size: 1.3rem; }
  .top-bar { display: none; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.3rem; }
}

/* ===== MOBILE NAV ===== */
.mobile-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 4px; }
@media (max-width: 991px) { .mobile-nav-toggle { display: flex; align-items: center; } }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.mobile-menu-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.mobile-menu-links { list-style: none; padding: 0; }
.mobile-menu-links li { border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-menu-links a { display: block; color: rgba(255,255,255,.85); padding: .85rem 0; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; transition: var(--transition); }
.mobile-menu-links a:hover { color: var(--accent); }
.mobile-search-form { display: flex; gap: 0; margin-bottom: 1.5rem; }
.mobile-search-input { flex: 1; padding: .6rem .9rem; border-radius: 6px 0 0 6px; border: none; outline: none; font-size: .9rem; }
.mobile-search-btn { background: var(--accent); color: #fff; border: none; padding: .6rem 1rem; border-radius: 0 6px 6px 0; cursor: pointer; font-size: .9rem; }

/* ===== GALLERY SLIDER ===== */
.gallery-slider {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  text-align: center;
}
.gallery-slider::-webkit-scrollbar {
  height: 6px;
}
.gallery-slider::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}
.gallery-slider::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.gallery-slider::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}
.gallery-slides {
  display: inline-flex;
  gap: 15px;
}
.gallery-slide {
  flex-shrink: 0;
}
.gallery-slide img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.gallery-slide img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

/* ===== DOCUMENTS SECTION ===== */
.docs-section {
  margin-top: 2rem;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.doc-item:hover {
  box-shadow: var(--shadow-sm);
}
.doc-icon {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.doc-info {
  flex: 1;
}
.doc-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.doc-size {
  font-size: .75rem;
  color: var(--text-light);
}
.doc-dl {
  color: var(--accent);
  font-size: 1.2rem;
  transition: var(--transition);
}
.doc-dl:hover {
  color: var(--accent2);
}
