:root {
  --bg: #ffffff;
  --panel: #f9f9f9;
  --text: #111;
  --muted: #555;
  --primary: #e63946; /* brand red */
  --success: #10b981;
  --danger: #ef4444;
  --warn: #f59e0b;
  --border: #ddd;
  --ring: rgba(230, 57, 70, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
/* body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
} */


body {
  margin: 0;
  background: #f4f1f1;
  /* background: #fff; */
  color: #111;
  font-family: 'Poppins', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* ====== SEARCH NAVBAR (TOP) ====== */
.search-navbar {
  /* background: #000; */
  background: #111;
  color: #fff;
  padding: 8px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ====== INNER WRAPPER ====== */
.search-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* ✅ spreads logo + search box */
  gap: 20px;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* ====== LOGO ====== */
.search-logo {
  flex-shrink: 0; /* ✅ keeps logo fixed */
}

.search-logo img {
  height: 55px;
  display: block;
}

/* ====== SEARCH BOX ====== */
.search-box {
  position: relative;
  display: flex;
  align-items: stretch; /* ✅ ensures equal height for input + button */
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  flex: 1; /* ✅ makes search box expand to full remaining width */
  max-width: 100%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  margin-left: 50px;
}

/* Input field */
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 1rem;
  color: #111;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.search-box input::placeholder {
  color: #999;
}

/* Button */
.search-box button {
  flex-shrink: 0;               /* ✅ prevents overlap */
  width: 56px;                  /* ✅ fixed width for consistency */
  background: #e63946;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 0;                   /* ✅ centers icon perfectly */
}

.search-box button:hover {
  background: #c62828;
}

/* Optional focus highlight for UX polish */
.search-box input:focus {
  box-shadow: inset 0 0 0 2px rgba(230, 57, 70, 0.25);
}

/* ====== LIVE RESULTS DROPDOWN ====== */
.live-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  display: none;
}

.live-results .item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.15s ease;
}

.live-results .item:last-child {
  border-bottom: none;
}

.live-results .item:hover {
  background: #f9f9f9;
}

.live-results img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  margin-right: 12px;
}

.live-results .details {
  flex: 1;
  overflow: hidden;
}

.live-results .details h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-results .details p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #666;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .search-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .search-logo {
    display: flex;
    justify-content: center;
  }

  .search-box {
    max-width: 100%;
  }
}


/* ===== PAGE LAYOUT (HOME) ===== */
.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-top: 30px;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.sidebar-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sidebar-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
}

.brand-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}
.brand-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.sidebar-card ul { list-style: none; padding: 0; margin: 0; }

.sidebar-card li { margin-bottom: 10px; }

.sidebar-card a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(to right, #fafafa, #fff);
  border: 1px solid #eee;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  transition: all 0.25s ease;
}
.sidebar-card a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== MAIN CARD ===== */
/* .main-card {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
} */

.main-card {
  background: transparent !important;  /* ✅ remove white box */
  border: none !important;             /* ✅ remove any border */
  box-shadow: none !important;         /* ✅ remove shadow */
  padding: 0 !important;               /* ✅ remove extra spacing */
}


.main-card h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
  border-left: 5px solid var(--primary);
  padding-left: 12px;
}

.main-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

/* ===== PART BADGES ===== */
.part-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.part-badges .badge {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
}
.part-badges .badge:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}


/* Currently Added Items */
.items-section {
  margin-top: 20px;
}
.items-section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #222;
  font-weight: 700;
}
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}
.item-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: 0.2s;
}
.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.item-card img {
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}
.item-card h4 {
  margin: 8px 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
.item-card p {
  font-size: 0.9rem;
  color: #e63946;
  font-weight: 500;
}


/* ====== FOOTER ====== */
.footer {
  background: #000;        /* pure black */
  color: #fff;             /* white text */
  padding: 50px 0 25px;
  font-size: 14px;
}

.footer h6 {
  color: #fff;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
}

.footer p,
.footer ul li,
.footer a {
  color: #ddd;             /* softer white */
  font-size: 14px;
}

.footer a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #e63946;          /* red accent */
}

.footer__about img {
  margin-bottom: 15px;
  max-height: 60px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer__copyright {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}


/* ===== LAYOUT ===== */
.container { max-width: 1250px; margin: 24px auto; padding: 0 16px; }
.grid { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
aside { border-right: 1px solid var(--border); padding-right: 16px; }
aside h3 { margin: 8px 0 10px; color: var(--muted); font-weight: 600; }
aside ul { list-style: none; padding: 0; margin: 0; }
aside li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
aside li a:hover { background: #f1f1f1; }

/* ===== CARDS & TABLE ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.table th {
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
}
.table td {
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px;
  vertical-align: middle;
}
.table tr td:first-child { border-radius: 10px 0 0 10px; }
.table tr td:last-child { border-radius: 0 10px 10px 0; }

/* ===== FORMS + BUTTONS ===== */
.label { display: block; margin: .6rem 0 .25rem; color: var(--muted); font-size: .95rem; }
.input, select {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
.input:focus, select:focus { box-shadow: 0 0 0 3px var(--ring); border-color: transparent; }
.btn {
  appearance: none;
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  font-weight: 500;
}
.btn:hover { filter: brightness(1.1); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); }

/* ===== ALERTS ===== */
.alert { padding: 10px; margin: 10px 0; border-radius: 6px; font-weight: bold; }
.alert.success { background: #e6ffed; color: #1d7a2e; border: 1px solid #1d7a2e; }
.alert.error { background: #ffe6e6; color: #b30000; border: 1px solid #b30000; }

/* ===== PRODUCTS GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
  justify-content: center;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  /* max-width: 300px;  */
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
/* .product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
} */


.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;  /* ✅ shows full image */
  border-radius: 8px;
  margin-bottom: 1rem;
  background-color: #fff; /* optional padding-like background */
  padding: 8px; /* optional if you want breathing space */
}


.product-card h3 a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
}
.product-card h3 a:hover { color: var(--primary); }

/* ===== MISC ===== */
h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
}
.subtitle {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--muted);
}



/* ================== NAVIGATION BAR ================== */

/* Top bar */
.top-bar {
  background: #111; /* dark background */
  color: #fff;
  font-size: 14px;
  padding: 3px 6px;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.top-bar .top-left span {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-bar i {
  color: var(--primary);
}
.top-right.social-icons a {
  color: #fff;
  margin-left: 12px;
  font-size: 15px;
  transition: color 0.3s;
}
.top-right.social-icons a:hover {
  color: var(--primary); /* brand red hover */
}

/* Main header */
.header {
  background: #fff;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.header__logo img {
  max-height: 55px;
}

/* Nav menu */
.header__menu {
  flex: 1;
}
.header__menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}
.header__menu ul li a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header__menu ul li a:hover,
.header__menu ul li.active a {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 3px 8px rgba(230, 57, 70, 0.3);
}

/* Action buttons */
.header__nav__widget {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header__nav__widget a, 
.header__nav__widget button {
  color: #111;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}
.header__nav__widget a:hover,
.header__nav__widget button:hover {
   color: var(--primary);
}

.header__nav__widget button:hover {
  color: #fff !important;   /* force white text */
}

/* Mobile Styles */
.mobile-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
  background: none;
  border: none;
  color: #111;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .header__menu {
    flex-basis: 100%;
    display: none;
    margin-top: 12px;
  }
  .header__menu ul {
    flex-direction: column;
    gap: 12px;
  }
  .header__menu.active {
    display: block;
  }
  .mobile-toggle {
    display: block;
  }
}


/* --- Navigation Bar --- */
.header__menu {
  display: flex;
}

@media (max-width: 768px) {
  .header__menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  .header__menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
  }
}

@media (min-width: 769px) {
  .mobile-toggle {
    display: none;
  }
}



/* Header  */
.header__menu ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__menu .welcome-text {
  font-weight: 600;
  color: var(--primary);
  margin-right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__menu ul li a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}
.header__menu ul li a:hover {
  background: var(--primary);
  color: #fff;
}

.header__nav__widget {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ================== END NAVIGATION BAR ================== */




/* ===== Models Grid inside Card ===== */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.models-grid a {
  display: block;
  padding: 12px 14px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}

.models-grid a:hover {
  background: #e63946;   /* brand red */
  color: #fff;
  border-color: #e63946;
}

/* Header row for title + back button */
.models-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

/* Title */
.models-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: #222;
}

/* Back button */
.back-btn {
  padding: 6px 14px;
  border: 2px solid #e63946;
  border-radius: 6px;
  color: #e63946;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #e63946;
  color: #fff;
}



/* ==========   ORDER PAGE STARTS HERE ============= */
.orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: 15px;
}

.orders-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8f8f8;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.orders-table td {
  background: #fff;
  padding: 12px;
  border: 1px solid #eee;
  vertical-align: middle;
}

.orders-table tr:hover td {
  background: #fafafa;
}

/* Status Badges */
.status-badge {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.declined,
.status-badge.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

/* Amber/Orange */
.status-badge.paid {
  background: #fef3c7;
  color: #92400e;
}

/* Small button for table */
.btn-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
}
/* ==========   ORDER PAGE ENDS HERE ============= */


/* ================== AUTH FORMS (Login/Register) ================== */
.auth-card {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  max-width: 420px;
  margin: 40px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.auth-card h1, 
.auth-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

.auth-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--muted);
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card input,
.auth-card select {
  width: 100%;
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}

.auth-card input:focus,
.auth-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.auth-card .btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}

.auth-card .btn:hover {
  filter: brightness(1.1);
}

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

.auth-card .btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.auth-card .form-footer {
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
}

.auth-card .form-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-card .form-footer a:hover {
  text-decoration: underline;
}
/* ================== END AUTH FORMS ================== */

