/* ============================================================
   Car Inventory — Shared Stylesheet
   Brand color: #da8e02  |  Background: #ffffff
   Design: Clean automotive, editorial grid layout
   ============================================================ */

/* ── Google Fonts (loaded via <link> in HTML) ── */
/* Heading: Barlow Condensed Bold  |  Body: Inter */

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

:root {
  --brand:        #da8e02;
  --brand-dark:   #b87200;
  --brand-light:  #f5c84a;
  --brand-bg:     #fff8ec;
  --white:        #ffffff;
  --gray-50:      #f9fafb;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-400:     #9ca3af;
  --gray-600:     #4b5563;
  --gray-800:     #1f2937;
  --black:        #111111;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.14);
  --transition:   0.22s cubic-bezier(0.23,1,0.32,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Navbar ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--brand);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-icon svg { width: 22px; height: 22px; fill: #fff; }

.nav-logo .logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
}

.nav-logo .logo-text span { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }

.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--brand-bg);
  color: var(--brand-dark);
}

.btn-admin {
  background: var(--brand);
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.btn-admin:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-1px);
}

/* ── Hero Banner ── */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, #2a1a00 60%, #3d2600 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(218,142,2,.04) 40px,
    rgba(218,142,2,.04) 80px
  );
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 0.75rem;
}

.hero h1 span { color: var(--brand-light); }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  max-width: 540px;
  margin-bottom: 2rem;
}

/* ── Search / Filter Bar ── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.1rem 0;
  position: sticky;
  top: 68px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.filter-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--gray-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--gray-50);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(218,142,2,.15);
  background: var(--white);
}

.filter-select {
  padding: 0.6rem 2rem 0.6rem 0.85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: var(--gray-50);
  color: var(--gray-800);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  transition: border-color var(--transition);
  outline: none;
}

.filter-select:focus { border-color: var(--brand); }

.filter-count {
  font-size: 0.85rem;
  color: var(--gray-400);
  white-space: nowrap;
}

.filter-count strong { color: var(--brand-dark); }

/* ── Inventory Grid ── */
.inventory-section { padding: 2.5rem 0 4rem; }

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ── Car Card ── */
.car-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.car-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.car-card:hover .car-card-img img { transform: scale(1.04); }

.car-card-img .img-count {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.badge-status {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.badge-available { background: #d1fae5; color: #065f46; }
.badge-sold      { background: #fee2e2; color: #991b1b; }
.badge-reserved  { background: #fef3c7; color: #92400e; }

.car-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.car-card-title {
  font-size: 1.2rem;
  color: var(--black);
  line-height: 1.2;
}

.car-card-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.car-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.car-card-meta span { display: flex; align-items: center; gap: 0.3rem; }
.car-card-meta svg { width: 13px; height: 13px; color: var(--brand); flex-shrink: 0; }

.car-card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
}

.btn-details {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-bg);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-details:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--gray-400);
}

.empty-state svg { width: 64px; height: 64px; margin-bottom: 1rem; opacity: .4; }
.empty-state h3 { font-size: 1.4rem; color: var(--gray-600); margin-bottom: 0.5rem; }

/* ── Modal / Lightbox ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(16px);
  transition: transform 0.28s cubic-bezier(0.23,1,0.32,1);
}

.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}

.modal-close:hover { background: rgba(255,255,255,.3); }

/* Gallery in modal */
.modal-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--black);
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.modal-gallery img.active { display: block; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 5;
}

.gallery-nav:hover { background: var(--brand); }
.gallery-nav.prev { left: 0.75rem; }
.gallery-nav.next { right: 0.75rem; }

.gallery-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gallery-dot.active {
  background: var(--brand-light);
  transform: scale(1.3);
}

.gallery-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.85rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.45);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

/* Fullscreen lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity var(--transition);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-nav:hover { background: var(--brand); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* Modal Details */
.modal-details { padding: 1.5rem 1.75rem 2rem; }

.modal-title { font-size: 2rem; color: var(--black); margin-bottom: 0.25rem; }

.modal-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 1.25rem;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
}

.spec-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.2rem;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* Spec group heading inside modal */
.spec-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--brand-bg);
}

.modal-description {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.25rem;
}

.modal-contact {
  background: var(--brand-bg);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-contact p { font-size: 0.9rem; color: var(--gray-600); flex: 1; }
.modal-contact strong { color: var(--brand-dark); }

.btn-contact {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-contact:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* Thumbnail strip */
.thumb-strip {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  overflow-x: auto;
  border-top: 1px solid var(--gray-100);
  scrollbar-width: thin;
}

.thumb-strip img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.thumb-strip img.active,
.thumb-strip img:hover {
  border-color: var(--brand);
  transform: scale(1.05);
}

/* ── Footer ── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: 0.85rem;
  border-top: 3px solid var(--brand);
}

.site-footer strong { color: var(--brand-light); }

/* ── Admin / Upload Page ── */
.admin-wrapper {
  min-height: 100vh;
  background: var(--gray-50);
  padding: 2rem 0 4rem;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.25rem 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--brand);
}

.admin-header .icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-header .icon-wrap svg { width: 26px; height: 26px; fill: #fff; }
.admin-header h1 { font-size: 1.7rem; color: var(--black); }
.admin-header p  { font-size: 0.88rem; color: var(--gray-400); margin-top: 0.1rem; }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.form-label .req { color: var(--brand); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(218,142,2,.15);
}

.form-textarea { resize: vertical; min-height: 110px; }

/* File upload zone */
.upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--brand);
  background: var(--brand-bg);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-zone svg { width: 42px; height: 42px; color: var(--brand); margin-bottom: 0.75rem; }
.upload-zone p { font-size: 0.92rem; color: var(--gray-600); }
.upload-zone span { font-size: 0.8rem; color: var(--gray-400); display: block; margin-top: 0.3rem; }

.preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.preview-thumb {
  position: relative;
  width: 88px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gray-200);
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-thumb .remove-thumb {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Status toggle */
.status-group { display: flex; gap: 0.6rem; }

.status-radio { display: none; }

.status-label {
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-600);
}

.status-radio:checked + .status-label {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* Submit */
.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218,142,2,.35);
}

.btn-submit:active { transform: scale(0.98); }

/* Alert messages */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--black) 0%, #2a1a00 100%);
  padding: 1rem;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo .logo-icon {
  width: 56px;
  height: 56px;
  background: var(--brand);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.login-logo .logo-icon svg { width: 30px; height: 30px; fill: #fff; }
.login-logo h2 { font-size: 1.5rem; color: var(--black); }
.login-logo p  { font-size: 0.85rem; color: var(--gray-400); margin-top: 0.2rem; }

/* Admin inventory table */
.admin-table-wrap { overflow-x: auto; margin-top: 1.5rem; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  background: var(--gray-50);
  border-bottom: 2px solid var(--brand);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-600);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.admin-table tr:hover td { background: var(--brand-bg); }

.admin-table img {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

.btn-delete {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-delete:hover { background: #fca5a5; }

.btn-edit {
  background: var(--brand-bg);
  color: var(--brand-dark);
  border: 1px solid var(--brand);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  margin-right: 0.35rem;
}

.btn-edit:hover { background: var(--brand); color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .admin-card { padding: 1.5rem 1.25rem; }
  .modal-details { padding: 1.25rem 1.25rem 1.5rem; }
  .modal-specs { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hero { padding: 2.5rem 0 2rem; }
  .filter-inner { gap: 0.5rem; }
}

@media (max-width: 480px) {
  .inventory-grid { grid-template-columns: 1fr; }
  .modal-specs { grid-template-columns: 1fr 1fr; }
}
