/* ── KARDAYIM Modern Design System v2 ──────────────────────────────── */
/* Proton Güvenlik ilhamlı, premium B2B e-ticaret teması              */

:root {
  /* Core Palette - Warm Professional */
  --b2b-primary: #1d4ed8;
  --b2b-primary-dark: #1e40af;
  --b2b-primary-light: #60a5fa;
  --b2b-primary-soft: rgba(29, 78, 216, 0.08);
  --b2b-slate_900: #1a1a1a;

  --brand-primary: #1d4ed8;
  --brand-primary-dark: #1e40af;
  --brand-primary-light: #60a5fa;
  --brand-secondary: #1CAA00;
  --brand-secondary-dark: #158A00;
  --brand-accent: #2563eb;
  --brand-success: #1CAA00;
  --brand-danger: #e11d48;
  --brand-warning: #f59e0b;

  --brand-surface: #ffffff;
  --brand-surface-alt: #f5f5f5;
  --brand-surface-muted: #e5e5e5;
  --brand-text: #1a1a1a;
  --brand-text-muted: #737373;
  --brand-border: rgba(0, 0, 0, 0.06);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-full: 999px;

  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-pop: 0 20px 60px rgba(29, 78, 216, 0.15);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);

  --transition-fast: 150ms ease;
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ───────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--brand-surface-alt);
  color: var(--brand-text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--brand-primary); transition: color var(--transition-fast); text-decoration: none; }
a:hover { color: var(--brand-primary-dark); }

/* ── Typography helpers ─────────────────────────── */
.font-display { font-family: 'Poppins', sans-serif; }

/* ── Buttons ──────────────────────────────────────── */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius-full);
  border: none;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
  cursor: pointer;
}
.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
  filter: brightness(1.05);
  color: #fff;
}
.btn-modern:active { transform: translateY(0); }

.btn-outline-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(29, 78, 216, 0.35);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: transparent;
  transition: all var(--transition-base);
  cursor: pointer;
}
.btn-outline-modern:hover {
  background: rgba(29, 78, 216, 0.08);
  border-color: var(--brand-primary);
  color: var(--brand-primary-dark);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-full);
  border: none;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  background: var(--b2b-slate_900);
  color: #fff;
  transition: all var(--transition-base);
  cursor: pointer;
}
.btn-dark:hover { background: #000; transform: translateY(-1px); color: #fff; }

/* ── Cards ──────────────────────────────────────── */
.card-modern {
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card-modern:hover { box-shadow: var(--shadow-soft); }

/* ── Badges ───────────────────────────────────────── */
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(29, 78, 216, 0.1);
  color: var(--brand-primary);
}
.badge-soft.orange {
  background: rgba(29, 78, 216, 0.12);
  color: var(--brand-primary);
}
.badge-soft.green {
  background: rgba(28, 170, 0, 0.1);
  color: var(--brand-secondary);
}
.badge-soft.blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-accent);
}

/* ── Inputs ───────────────────────────────────────── */
.input-modern {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 0.9rem 1.1rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--brand-text);
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
}
.input-modern::placeholder { color: #a3a3a3; }
.input-modern:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

/* ── Navigation chips ─────────────────────────────── */
.nav-chip {
  border-radius: var(--radius-full);
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0,0,0,0.04);
  color: var(--brand-text-muted);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-chip.active, .nav-chip:hover {
  background: var(--b2b-primary-soft);
  color: var(--brand-primary);
}

/* ── Panels (Legacy compatible) ───────────────────── */
.panel-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, var(--b2b-slate_900) 0%, #2d2d2d 60%, var(--brand-primary) 180%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.panel-surface {
  border-radius: var(--radius-lg);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-card);
}

.panel-dark {
  border-radius: var(--radius-lg);
  background: var(--b2b-slate_900);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

/* ── Catalog Components ───────────────────────────── */
.catalog-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 3rem);
  background: linear-gradient(135deg, #0b1324 0%, #14213d 50%, #1e3a5f 160%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.catalog-hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  right: -60px;
  top: -100px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  filter: blur(40px);
}

.catalog-stat {
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(12px);
}

.catalog-shell {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .catalog-shell:has(> aside:not(.hidden)) {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }
}

.catalog-filter-panel {
  border-radius: var(--radius-lg);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-card);
}

.catalog-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-full);
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  color: var(--brand-text-muted);
  border: 1px solid var(--brand-border);
  transition: all var(--transition-fast);
}
.catalog-pill.active, .catalog-pill:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.catalog-product-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.catalog-product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.catalog-product-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
  aspect-ratio: 1 / 1;
}
.catalog-main-image,
.catalog-hover-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.6s ease;
}
.catalog-product-card:hover .catalog-main-image { transform: scale(1.08); }
.catalog-hover-image { display: none; }
.catalog-product-card:hover .catalog-hover-image { display: block; transform: scale(1.08); }
.catalog-product-card:hover .catalog-main-image { display: none; }

.catalog-product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.catalog-fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-border);
  background: rgba(255,255,255,0.95);
  color: var(--brand-text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.catalog-fab:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
}

.catalog-card-body { padding: 1rem; }

.catalog-card-brand {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-text-muted);
  font-weight: 500;
}

.catalog-card-title {
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--brand-text);
  min-height: 2.6rem;
}

.catalog-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.catalog-hero-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .catalog-hero-grid { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); }
}

/* ── Steps & Forms ────────────────────────────────── */
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.step-pill.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.step-pill.muted {
  background: rgba(0,0,0,0.04);
  color: var(--brand-text-muted);
}

.form-label-compact {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--brand-text-muted);
}

/* ── Header / Footer specific ───────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--brand-border);
}

.site-topbar {
  background: var(--b2b-slate_900);
  color: #fff;
  font-size: 0.78rem;
}

.site-footer {
  background: var(--b2b-slate_900);
  color: rgba(255,255,255,0.7);
}
.site-footer a { color: rgba(255,255,255,0.7); transition: color var(--transition-fast); }
.site-footer a:hover { color: var(--brand-primary-light); }
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.search-bar {
  position: relative;
  flex: 1;
  max-width: 600px;
}
.search-bar input {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--brand-border);
  background: #f5f5f5;
  padding: 0 1.25rem 0 2.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand-text);
  transition: all var(--transition-fast);
}
.search-bar input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}
.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a3a3a3;
  font-size: 0.9rem;
  pointer-events: none;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 260px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 110;
}
.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Utilities ──────────────────────────────────── */
.hero-accent {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(242,122,26,0.15), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(37,99,235,0.08), transparent 35%);
  filter: blur(50px);
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-text);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--brand-text-muted);
  max-width: 520px;
}

.text-b2b-primary { color: var(--b2b-primary) !important; }
.bg-b2b-primary { background-color: var(--b2b-primary) !important; }
.bg-b2b-primary-soft { background-color: var(--b2b-primary-soft) !important; }
.border-b2b-primary { border-color: var(--b2b-primary) !important; }
.decoration-b2b-primary { text-decoration-color: var(--b2b-primary) !important; }

/* Scrollbar hide */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease-out forwards; }

/* ── Account Sidebar ──────────────────────────────── */
.account-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .account-layout {
    grid-template-columns: 300px 1fr;
  }
}

.account-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  height: fit-content;
}

.user-account-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--brand-border);
}

.user-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--b2b-primary-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.user-details .name {
  display: block;
  font-weight: 700;
  color: var(--brand-text);
  font-size: 1rem;
  line-height: 1.2;
}
.user-details .welcome {
  font-size: 0.75rem;
  color: var(--brand-text-muted);
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  color: var(--brand-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.account-nav-item i {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
}

.account-nav-item:hover {
  background: var(--brand-surface-alt);
  color: var(--brand-primary);
}

.account-nav-item.active {
  background: var(--b2b-primary-soft);
  color: var(--brand-primary);
}

.account-nav-item.logout {
  color: var(--brand-danger);
  margin-top: 1rem;
  border-top: 1px solid var(--brand-border);
  border-radius: 0;
  padding-top: 1.5rem;
}

