/* ==========================================================================
   İŞMAKİNELERİ.ORG - Türkiye'nin İş Makineleri Pazaryeri
   Kurumsal Çatı: Global Ventures Group
   Modern Industrial Design System (Desktop Two-Tier Header + Mobile Drawer)
   ========================================================================== */

:root {
  --bg-body: #f4f6f9;
  --bg-surface: #ffffff;
  --bg-dark: #0f172a;
  --bg-darker: #090e1a;
  --bg-slate: #1e293b;
  --brand-amber: #f59e0b;
  --brand-amber-hover: #d97706;
  --brand-amber-light: #fef3c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0284c7;
  --whatsapp: #16a34a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.14);
  --container-max: 1380px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.5;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   - Desktop: Logo row on top, full-width 12-item menu row BELOW logo
   - Mobile: Only Logo + Hamburger trigger in header; ALL buttons inside drawer
   ========================================================================== */

.site-header {
  background: var(--bg-dark);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  border-bottom: 3px solid var(--brand-amber);
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-emblem {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #090e1a;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

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

.brand-slogan {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 2px;
}

.brand-subline {
  font-size: 0.72rem;
  color: var(--brand-amber);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

/* Desktop Header Actions (Hidden on Mobile per instructions) */
.header-desktop-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.header-phone-pill:hover {
  border-color: var(--brand-amber);
  background: rgba(245, 158, 11, 0.14);
}

.header-phone-pill small {
  display: block;
  font-size: 0.68rem;
  color: var(--brand-amber);
  font-weight: 600;
}

/* Desktop Menu Row - Directly BELOW Logo */
.header-menu-row {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.desktop-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.desktop-nav-list li {
  flex-shrink: 0;
}

.desktop-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.72rem 0.62rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #cbd5e1;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.desktop-nav-list a:hover,
.desktop-nav-list a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--brand-amber);
  background: rgba(245, 158, 11, 0.08);
}

.desktop-nav-list a.nav-highlight {
  color: var(--brand-amber);
  font-weight: 700;
}

.desktop-nav-list a.nav-cta-inline {
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  border-radius: 4px;
  padding-block: 0.42rem;
  margin-block: 0.25rem;
}

/* Hamburger Trigger Button (Hidden on Desktop, Shown ONLY on Mobile) */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-btn:hover,
.hamburger-btn:focus-visible {
  border-color: var(--brand-amber);
  color: var(--brand-amber);
  outline: none;
}

/* Responsive Breakpoint: Mobile & Tablet (<= 1120px) */
@media (max-width: 1120px) {
  /* Mobil görünümde header alanında buton olmasın. Butonlar hamburger menü içinde olsun. */
  .header-desktop-actions {
    display: none !important;
  }

  .header-menu-row {
    display: none !important;
  }

  .hamburger-btn {
    display: inline-flex;
  }

  .brand-subline {
    display: none;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER (Modern Web Guidance `navigation-drawer` spec)
   ========================================================================== */

.Drawer {
  --drawer-width: min(22em, 84dvw, 100dvw - 24px);
  --drawer-backdrop: 0;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.Drawer::backdrop {
  background: #000;
  opacity: calc(var(--drawer-backdrop) * 0.65);
}

.Drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.Drawer-scroller::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller {
    scroll-behavior: smooth;
  }
}

.Drawer-scroller::after {
  content: '';
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}

.Drawer-sheet {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100svh;
  background: var(--bg-dark);
  color: #fff;
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: none;
  border-right: 2px solid var(--brand-amber);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5);
}

@supports (animation-timeline: scroll()) {
  .Drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }

  .Drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }

  @property --drawer-backdrop {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
  }

  @keyframes fade-drawer-backdrop {
    0% { --drawer-backdrop: 1; }
    100% { --drawer-backdrop: 0; }
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: var(--bg-darker);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-close-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
}

.drawer-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.drawer-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.drawer-action-buttons .btn-full {
  grid-column: 1 / -1;
}

.drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.94rem;
  background: rgba(255, 255, 255, 0.03);
}

.drawer-nav-list a:hover,
.drawer-nav-list a[aria-current="page"] {
  background: rgba(245, 158, 11, 0.18);
  color: var(--brand-amber);
}

.drawer-footer {
  padding: 1rem 1.15rem;
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* ==========================================================================
   MODAL DIALOGS (Modern Web Guidance `dialog` & `light-dismiss-a-dialog`)
   ========================================================================== */

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(9, 14, 26, 0.68);
  backdrop-filter: blur(3px);
}

.modal-card[open] {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(580px, 94dvw);
  max-height: 90svh;
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: var(--bg-dark);
  color: #fff;
  border-bottom: 2px solid var(--brand-amber);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.modal-body {
  padding: 1.4rem;
  overflow-y: auto;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  line-height: 1.25;
}

.btn-primary {
  background: var(--brand-amber);
  color: #090e1a;
}

.btn-primary:hover {
  background: var(--brand-amber-hover);
  color: #ffffff;
}

.btn-dark {
  background: var(--bg-dark);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-dark:hover {
  background: var(--bg-slate);
  border-color: var(--brand-amber);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.btn-outline:hover {
  border-color: var(--bg-dark);
  background: #f1f5f9;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
  border-color: var(--brand-amber);
  color: var(--brand-amber);
}

.btn-whatsapp {
  background: #16a34a;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #15803d;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-sm {
  padding: 0.42rem 0.78rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.98rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #e0f2fe;
  color: #075985;
}

.badge-neutral {
  background: #e2e8f0;
  color: #334155;
}

.badge-dark {
  background: var(--bg-dark);
  color: var(--brand-amber);
}

/* ==========================================================================
   HERO & MEGA SEARCH ENGINE
   ========================================================================== */

.hero-section {
  position: relative;
  background: linear-gradient(120deg, rgba(9, 14, 26, 0.92) 0%, rgba(15, 23, 42, 0.82) 60%, rgba(15, 23, 42, 0.72) 100%);
  color: #ffffff;
  padding-block: 2.5rem 3rem;
  overflow: hidden;
  border-bottom: 4px solid var(--brand-amber);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

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

.hero-top-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

@media (max-width: 960px) {
  .hero-top-grid {
    grid-template-columns: 1fr;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--brand-amber);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hero-title span {
  color: var(--brand-amber);
}

.hero-subtitle {
  font-size: 1.02rem;
  color: #cbd5e1;
  margin: 0 0 1.25rem;
  max-width: 68ch;
}

.hero-stats-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-amber);
  display: block;
}

.stat-label {
  font-size: 0.76rem;
  color: #cbd5e1;
}

/* Mega Search Card */
.search-engine-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.search-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.search-tab-pill {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid transparent;
}

.search-tab-pill.active,
.search-tab-pill:hover {
  background: var(--bg-dark);
  color: var(--brand-amber);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

@media (max-width: 1100px) {
  .search-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.form-group label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.62rem 0.78rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-amber-hover);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   SECTIONS, CATEGORY CARDS & CRANE SPECIAL PORTAL
   ========================================================================== */

.section-block {
  padding-block: 2.75rem;
}

.section-block.bg-white {
  background: #ffffff;
}

.section-block.bg-dark-industrial {
  background: var(--bg-dark);
  color: #ffffff;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.65rem;
}

.section-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.bg-dark-industrial .section-subtitle {
  color: #94a3b8;
}

/* Category Photo Boxes (16:9 AI Photorealistic Cards) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 1.15rem;
}

.category-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.category-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1e293b;
  overflow: hidden;
}

.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover .category-thumb img {
  transform: scale(1.05);
}

.category-badge-overlay {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(9, 14, 26, 0.82);
  color: var(--brand-amber);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.category-body {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.category-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Dark theme crane category cards */
.bg-dark-industrial .category-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
}

.bg-dark-industrial .category-title {
  color: #ffffff;
}

.bg-dark-industrial .category-desc {
  color: #cbd5e1;
}

/* ==========================================================================
   LISTING CARDS & GENUINE PHOTO RULE
   ========================================================================== */

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.listing-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-amber);
}

.listing-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Genuine Machine Photo Technical Card (Used when seller hasn't uploaded photo yet,
   strictly obeying proje.md rule: never use AI category image as fake listing photo) */
.real-photo-slot {
  padding: 1.15rem;
  text-align: center;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.real-photo-slot .slot-spec-code {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-amber);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.real-photo-slot .slot-machine-name {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.real-photo-slot .slot-rule-note {
  font-size: 0.72rem;
  color: #94a3b8;
  max-width: 28ch;
}

.listing-badges-top {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  pointer-events: none;
}

.listing-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.listing-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.listing-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
  color: var(--text-main);
}

.listing-title a:hover {
  color: var(--brand-amber-hover);
}

.listing-specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spec-pill {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.24rem 0.55rem;
  border-radius: 4px;
}

.listing-price-row {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.listing-price {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--bg-dark);
}

.listing-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* ==========================================================================
   BRANDS DIRECTORY & COMPANIES CARDS
   ========================================================================== */

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.85rem;
}

.brand-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.18s ease;
}

.brand-card:hover {
  border-color: var(--brand-amber);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.brand-monogram {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--brand-amber);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.brand-info h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.brand-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TABLES, PANELS & ADMIN LAYOUT
   ========================================================================== */

.card-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.data-table th,
.data-table td {
  padding: 0.78rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table th {
  background: #f8fafc;
  font-weight: 800;
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid #16a34a;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

/* ==========================================================================
   FOOTER & MANDATORY GLOBAL VENTURES GROUP SIGNATURE
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background: var(--bg-darker);
  color: #cbd5e1;
  border-top: 4px solid var(--brand-amber);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.9rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--brand-amber);
}

.footer-bottom-signature {
  padding-block: 1.4rem;
  text-align: center;
  background: #050811;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-bottom-signature a {
  color: var(--brand-amber);
  font-weight: 800;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 960px;
  margin-inline: auto;
  background: var(--bg-dark);
  color: #fff;
  border: 1px solid var(--brand-amber);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 80;
  box-shadow: var(--shadow-lg);
}

.cookie-banner[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

