:root {
  --hb-orange: #ff6000;
  --hb-orange-dark: #e55300;
  --hb-orange-soft: #fff2ea;
  --hb-orange-border: #ffd1b3;
  --bg-page: #f5f5f7;
  --bg-card: #ffffff;
  --bg-img: #f8f8f8;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --green: #0e9f6e;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --star: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* 5 renkli Hepsiburada üst çizgisi */
.brand-rainbow-bar {
  display: grid;
  grid-template-columns: 32% 18% 18% 16% 16%;
  height: 4px;
  width: 100%;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Utility Top Bar */
.top-utility {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f2;
  font-size: 12px;
  color: var(--text-muted);
}

.top-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  flex-wrap: wrap;
}

.top-utility-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-utility-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.top-utility-link:hover {
  color: var(--hb-orange);
}

/* Main Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  flex-shrink: 0;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6000 0%, #ff8533 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 21px;
  box-shadow: 0 4px 12px rgba(255, 96, 0, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-name-top {
  font-size: 21px;
  font-weight: 800;
  color: var(--hb-orange);
  letter-spacing: -0.03em;
}

.brand-name-sub {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 580px;
  display: flex;
  align-items: center;
  border: 2px solid var(--hb-orange);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease;
}

.search-bar:focus-within {
  box-shadow: 0 0 0 4px rgba(255, 96, 0, 0.12);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
}

.search-clear-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  padding: 0 8px;
  font-size: 16px;
}

.search-submit-btn {
  border: none;
  background: var(--hb-orange);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 20px;
  letter-spacing: 0.03em;
  transition: background 0.15s ease;
}

.search-submit-btn:hover {
  background: var(--hb-orange-dark);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-main);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  transition: all 0.15s ease;
}

.action-btn:hover {
  border-color: var(--hb-orange);
  color: var(--hb-orange);
}

.action-btn-admin {
  border-color: #1f2937;
  background: #111827;
  color: #ffffff;
}

.action-btn-admin:hover {
  background: #1f2937;
  border-color: var(--hb-orange);
  color: #ffffff;
}

.action-btn-cart {
  border-color: var(--hb-orange);
  background: var(--hb-orange);
  color: #ffffff;
}

.action-btn-cart:hover {
  background: var(--hb-orange-dark);
  border-color: var(--hb-orange-dark);
  color: #ffffff;
}

.badge-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hb-orange);
  color: #fff;
}

.action-btn-cart .badge-count {
  background: #ffffff;
  color: var(--hb-orange);
}

/* Active Category Bar */
.category-nav-wrap {
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
}

.category-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border: 1px solid transparent;
  background: #f3f4f6;
  color: #374151;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.cat-pill:hover {
  background: var(--hb-orange-soft);
  color: var(--hb-orange);
}

.cat-pill.active {
  background: var(--hb-orange);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(255, 96, 0, 0.22);
}

.cat-pill-count {
  font-size: 11px;
  opacity: 0.78;
}

/* Main Content */
.page-main {
  padding: 20px 0 48px;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 330px;
  background: #1f2937;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, 0.88) 0%,
    rgba(17, 24, 39, 0.68) 46%,
    rgba(17, 24, 39, 0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 32px 36px;
  max-width: 540px;
  color: #ffffff;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hb-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 22px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--hb-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--hb-orange-dark);
}

.btn-light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: #fff;
  color: var(--text-main);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--hb-orange);
  color: var(--hb-orange);
}

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  color: #ffffff;
}

/* Payment Methods UI */
.payment-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  transition: all 0.15s ease;
}

.payment-option-card:hover {
  border-color: var(--hb-orange);
}

.payment-option-card.active {
  border-color: var(--hb-orange);
  background: var(--hb-orange-soft);
}

.payment-option-card.whatsapp.active {
  border-color: #25d366;
  background: #ecfdf5;
}

.payment-opt-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.payment-opt-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.payment-opt-text strong {
  font-size: 13.5px;
  color: #111827;
}

.payment-opt-text small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.payment-opt-radio {
  font-size: 16px;
  color: var(--hb-orange);
  font-weight: 800;
}

.payment-option-card.whatsapp.active .payment-opt-radio {
  color: #16a34a;
}

.payment-subbox {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.payment-subbox.whatsapp {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.detail-payment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  color: #374151;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

.footer-pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Account & Auth UI (Hepsiburada style) */
.action-btn-account {
  border-color: var(--border);
  background: #f9fafb;
  color: #111827;
}

.action-btn-account:hover {
  border-color: var(--hb-orange);
  background: var(--hb-orange-soft);
  color: var(--hb-orange);
}

.auth-switch-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.auth-switch-btn {
  border: none;
  background: transparent;
  padding: 9px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.auth-switch-btn.active {
  background: #ffffff;
  color: var(--hb-orange);
  box-shadow: var(--shadow-sm);
}

.account-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  align-items: start;
}

.account-sidebar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: sticky;
  top: 90px;
}

.account-profile-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hb-orange-soft);
  color: var(--hb-orange);
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
}

.account-nav-btn:hover {
  background: #f9fafb;
}

.account-nav-btn.active {
  background: var(--hb-orange-soft);
  color: var(--hb-orange);
  font-weight: 800;
}

.account-nav-btn.danger {
  color: var(--red);
  margin-top: 6px;
}

.order-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.order-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #f9fafb;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.order-box-body {
  padding: 12px 16px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.address-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.address-card.default {
  border-color: var(--hb-orange);
  background: #fffaf5;
}

/* Admin Login Page (/yonetim) */
.admin-login-page {
  min-height: calc(100vh - 4px);
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.admin-login-card {
  width: 100%;
  max-width: 410px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

/* Bulk Price & Mobile Fixed Bottom Nav */
.bulk-price-card {
  border: 1.5px solid var(--hb-orange-border);
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}

.bulk-price-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.1fr 0.85fr auto;
  gap: 10px;
  align-items: end;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}

.mobile-cat-item.active {
  border-color: var(--hb-orange);
  background: var(--hb-orange-soft);
  color: var(--hb-orange);
}

.mobile-cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .bulk-price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
  .toast-container {
    bottom: 80px;
  }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .mob-nav-btn {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
  }
  .mob-nav-btn.active {
    color: var(--hb-orange);
  }
  .mob-nav-icon {
    position: relative;
    font-size: 20px;
    line-height: 1.1;
  }
  .mob-nav-badge {
    position: absolute;
    top: -4px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--hb-orange);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .account-layout,
  .address-grid {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
  }
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

/* Deal of the Day Card */
.deal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--hb-orange-border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.deal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.deal-pill {
  background: var(--hb-orange-soft);
  color: var(--hb-orange);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.deal-body {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}

.deal-img-box {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-img);
  border: 1px solid #f0f0f2;
}

.deal-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trust Bar */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.trust-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--hb-orange-soft);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trust-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.trust-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Featured Strip */
.featured-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 24px;
}

.featured-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

/* Catalog Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 18px;
  align-items: start;
}

.filter-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: sticky;
  top: 128px;
}

.filter-group {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 13.5px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #111827;
}

.filter-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
}

.filter-cat-btn:hover {
  background: #f9fafb;
}

.filter-cat-btn.active {
  background: var(--hb-orange-soft);
  color: var(--hb-orange);
  font-weight: 700;
}

.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-chip {
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.size-chip:hover {
  border-color: var(--hb-orange);
}

.size-chip.active {
  background: var(--hb-orange);
  border-color: var(--hb-orange);
  color: #fff;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 13.5px;
  color: var(--text-main);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}

.input:focus {
  border-color: var(--hb-orange);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  cursor: pointer;
}

.checkbox-row input {
  accent-color: var(--hb-orange);
  width: 16px;
  height: 16px;
}

/* Catalog Toolbar */
.catalog-toolbar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.result-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.result-meta strong {
  color: var(--text-main);
}

/* Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  content-visibility: auto;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #ffd6bd;
}

/* TÜM FOTOĞRAFLAR EŞİT 1:1 KARE BOYUTUNDA */
.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-img);
  overflow: hidden;
  cursor: pointer;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--hb-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-badge.new {
  background: #111827;
}

.product-badge.best {
  background: #7c3aed;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
}

.fav-btn:hover {
  transform: scale(1.1);
}

.fav-btn.active {
  color: #ef4444;
}

.shipping-pill {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(14, 159, 110, 0.92);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hb-orange);
  margin-bottom: 2px;
}

.product-title {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  cursor: pointer;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stars {
  color: var(--star);
  letter-spacing: -1px;
}

.product-pricing {
  margin-top: auto;
  margin-bottom: 10px;
}

.price-old-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}

.price-old {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}

.discount-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-soft);
  padding: 1px 6px;
  border-radius: 5px;
}

.price-now {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.product-discount-note {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 3px 8px;
  border-radius: 7px;
  width: fit-content;
}

.card-add-btn {
  width: 100%;
  border: 1.5px solid var(--hb-orange);
  background: #ffffff;
  color: var(--hb-orange);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 9px;
  transition: all 0.15s ease;
}

.card-add-btn:hover {
  background: var(--hb-orange);
  color: #ffffff;
}

/* Empty state */
.empty-state {
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

.empty-state h3 {
  margin: 8px 0 6px;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 36px 0 24px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #9ca3af;
}

/* ================= ADMIN PANEL ================= */
.admin-shell {
  min-height: calc(100vh - 4px);
}

.admin-header {
  background: #111827;
  color: #ffffff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 11px;
}

.admin-tab-btn {
  border: none;
  background: transparent;
  color: #d1d5db;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.admin-tab-btn.active {
  background: var(--hb-orange);
  color: #ffffff;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
  color: #111827;
}

.kpi-sub {
  font-size: 12px;
  color: var(--green);
  margin-top: 2px;
  font-weight: 600;
}

.admin-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th {
  text-align: left;
  padding: 11px 12px;
  background: #f9fafb;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.admin-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-img);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.active {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.passive {
  background: var(--red-soft);
  color: var(--red);
}

.status-pill.warn {
  background: #fffbeb;
  color: #b45309;
}

/* iOS Style Active/Passive Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-track {
  background: var(--green);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(20px);
}

/* Info Banner */
.info-callout {
  background: var(--hb-orange-soft);
  border: 1px solid var(--hb-orange-border);
  color: #9a3412;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Category Form Grid */
.cat-create-grid {
  display: grid;
  grid-template-columns: 80px 1fr 180px 140px auto;
  gap: 10px;
  align-items: end;
}

/* ================= MODALS & DRAWERS ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.16s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.close-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.close-icon-btn:hover {
  background: #f3f4f6;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafa;
}

/* Product Detail Modal Layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.detail-img-frame {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-img);
  border: 1px solid var(--border);
}

.detail-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Form & Auto Image Resizer */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
}

.upload-zone {
  border: 2px dashed #fdba74;
  background: #fffaf5;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.upload-zone.dragover {
  border-color: var(--hb-orange);
  background: var(--hb-orange-soft);
}

.upload-preview-square {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-img);
  position: relative;
}

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

.size-badge-overlay {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: rgba(17, 24, 39, 0.84);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  padding: 3px 6px;
  border-radius: 6px;
}

/* Slide-Over Drawer (Cart & Favorites) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 65;
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.cart-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-img);
  border: 1px solid var(--border);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border: none;
  background: #f9fafb;
  font-weight: 800;
}

.qty-control span {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #111827;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--hb-orange);
  animation: modalIn 0.18s ease-out;
}

.toast.success {
  border-left-color: var(--green);
}

.toast.error {
  border-left-color: var(--red);
}

/* Responsive */
@media (max-width: 1140px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 860px) {
  .header-main {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-bar {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filter-panel {
    position: static;
  }
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid,
  .form-grid-2,
  .upload-zone,
  .cat-create-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-content {
    padding: 22px;
  }
  .action-btn span.hide-xs {
    display: none;
  }
}
