:root {
  --ag-navy: #0F172A;
  --ag-blue: #1E293B;
  --ag-accent: #EA580C;
  --ag-accent-hover: #C2410C;
  --ag-light: #F8FAFC;
  --ag-border: #E2E8F0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #334155;
  background-color: #FFFFFF;
}

.bg-navy { background-color: var(--ag-navy) !important; }
.bg-light-subtle { background-color: var(--ag-light) !important; }
.text-accent { color: var(--ag-accent) !important; }

/* Top Header & Navbar */
.top-bar {
  background-color: #020617;
  color: #94A3B8;
  font-size: 0.875rem;
}

.navbar {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ag-navy);
}

.navbar-brand span {
  color: var(--ag-accent);
}

.nav-link {
  font-weight: 600;
  color: var(--ag-blue);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--ag-accent);
}

/* Hero Section */
.hero-slider .carousel-item {
  height: 720px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

/* Card Styling */
.product-card {
  border: 1px solid var(--ag-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #FFF;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  border-color: var(--ag-accent);
}

.product-card .card-img-wrapper {
  height: 240px;
  overflow: hidden;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card img {
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.08);
}

/* Spec Tables */
.spec-group-title {
  background-color: var(--ag-navy);
  color: #FFF;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 6px 6px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.spec-table {
  border: 1px solid var(--ag-border);
  margin-bottom: 2rem;
  border-top: none;
}

.spec-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
}

.spec-table tr:nth-child(even) {
  background-color: var(--ag-light);
}

/* Footer */
footer {
  background-color: var(--ag-navy);
  color: #94A3B8;
}

footer h5 {
  color: #FFFFFF;
  font-weight: 700;
}

footer a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--ag-accent);
}

/* ========== Dikey (Sol) Menü ========== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width, 260px);
  background: linear-gradient(180deg, var(--ag-navy) 0%, #0a1222 100%);
  z-index: 1040;
  padding: 0;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.15);
  overflow-y: auto;
}

.side-nav-brand {
  padding: 1.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.side-nav-logo {
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(1.05);
}

.side-nav-title {
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}

.side-nav-links {
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.side-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.side-nav-link i {
  font-size: 1.15rem;
  width: 1.4rem;
  text-align: center;
  opacity: 0.9;
}

.side-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.side-nav-link.active {
  background: var(--ag-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.side-nav-link.active i {
  opacity: 1;
}

.side-nav-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.side-nav-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  transition: color 0.15s;
}

.side-nav-contact:hover {
  color: var(--ag-accent);
}

.side-nav-contact i {
  color: var(--ag-accent);
  font-size: 0.85rem;
}

/* Dikey menü: içerik alanı sola kayar */
body.layout-vertical .site-main {
  margin-left: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  body.layout-vertical .site-main {
    margin-left: var(--sidebar-width, 260px);
  }

  /* Hero slider yüksekliği dikey menüde biraz daha dengeli */
  body.layout-vertical .hero-slider .carousel-item {
    height: min(720px, 85vh);
  }
}

/* Mobil: dikey menü gizli, üst hamburger aktif (d-lg-none ile header'da) */
@media (max-width: 991.98px) {
  body.layout-vertical .side-nav {
    display: none !important;
  }
  body.layout-vertical .site-main {
    margin-left: 0 !important;
  }
}
