:root {
  --bg: #0f172a;
  --surface: #111c3d;
  --surface-light: #1c2a52;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --success: #22c55e;
  --danger: #ef4444;
  font-size: 16px;
}

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

body {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, rgba(249, 115, 22, 0.2), transparent 45%), var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding: 32px;
}

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

.hero {
  background: linear-gradient(135deg, #172554, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 32px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.35), transparent 45%);
  pointer-events: none;
}

.hero__content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 12px;
}

.hero__content p {
  max-width: 46ch;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.hero__badge {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  padding: 16px 24px;
  text-align: right;
  min-width: 180px;
}

.hero__badge span {
  display: block;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__courier {
  width: clamp(240px, 28vw, 360px);
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at 35% 50%, rgba(59, 130, 246, 0.2), transparent 70%);
}

.hero__courier::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 80%);
  z-index: 1;
}

.hero__courier-image {
  position: absolute;
  inset: 0;
  background-image: url('/images/courier.gif');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform-origin: center;
  animation: courierDrift 6s ease-in-out infinite;
}

#courier-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.85));
}

#courier-overlay.show {
  opacity: 1;
}

#courier-overlay img {
  width: min(320px, 60vw);
  border-radius: 24px;
  border: 2px solid rgba(248, 250, 252, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.courier-overlay__text {
  position: absolute;
  bottom: 15%;
  text-align: center;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.courier-overlay__text strong {
  font-size: 1.2rem;
  letter-spacing: 0.4em;
}

.courier-overlay__text small {
  letter-spacing: 0.3em;
}

@keyframes courierDrift {
  0%,
  100% {
    transform: scale(1.05) translate3d(-6px, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(8px, -4px, 0);
  }
}

@keyframes smokeDrift {
  0% {
    opacity: 0.8;
    transform: translate(0, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-10px, -6px) scale(1.05);
  }
  100% {
    opacity: 0.85;
    transform: translate(0, 0) scale(1);
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .hero__aside {
    width: 100%;
    align-items: flex-start;
  }

  .hero__badge {
    width: 100%;
    text-align: left;
  }

  .hero__courier {
    width: 100%;
  }
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

.cta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta-btn:hover:not(:disabled) {
  background: var(--accent-dark);
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}

main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 32px;
  padding: 32px;
  backdrop-filter: blur(12px);
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.subtext {
  color: var(--muted);
  font-size: 0.95rem;
}

.info-pill {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--muted);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  overflow: visible; /* Resmin taşmasına izin ver */
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  z-index: 10; /* Hover'da üstte görünsün */
}

.product-card__image {
  height: 160px;
  background: #0f172a;
  position: relative;
  overflow: visible; /* Resmin taşmasına izin ver */
  z-index: 1;
  padding: 8px; /* Resmin kenarlardan biraz içeride görünmesi için */
  border-radius: 16px; /* Container'a da yuvarlaklık */
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease, object-fit 0.5s ease;
  transform-origin: center center;
  border-radius: 16px; /* Yuvarlak kenarlar */
}

.product-card:hover .product-card__image {
  overflow: visible;
  z-index: 10; /* Resmin üstte görünmesini sağla */
}

/* Hover efektini kaldırdık - sadece tıklama/dokunma ile büyüsün */
.product-card.image-zoomed .product-card__image img {
  object-fit: contain;
  transform: scale(1.5); /* Daha büyük zoom */
  width: 100%;
  height: auto;
  max-height: 300px; /* Maksimum yükseklik */
  border-radius: 16px; /* Büyüyen resimde de yuvarlak kenarlar */
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none; /* Overlay'e tıklamayı engelle */
}

/* Overlay'i gizle - sadece resim büyüsün */
.product-card__image:hover .product-card__overlay,
.product-card__image:focus-within .product-card__overlay {
  opacity: 0;
  visibility: hidden;
}

.product-card__overlay-content {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__overlay h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.product-card__overlay .overlay-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.overlay-order-btn {
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #0f172a;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overlay-order-btn:hover,
.overlay-order-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.product-card__body {
  padding: 16px 18px 0;
  flex: 1;
}

.product-card__body h3 {
  margin-bottom: 8px;
}

.product-card__actions {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  display: grid;
  gap: 12px;
}

.product-card__actions label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.product-card__actions input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
}

.product-card__actions > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-card__actions button {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.product-card:hover .product-card__actions button {
  padding: 8px;
  font-size: 0.85rem;
  transform: scale(0.9);
}

.product-card__actions button:hover {
  background: rgba(249, 115, 22, 0.2);
  transform: scale(1.05);
}

.product-card__actions .call-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.product-card__actions .call-link:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

.price {
  font-size: 1.2rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.cart-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 14px 18px;
  gap: 12px;
}

.cart-item__info h4 {
  margin-bottom: 4px;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item__controls input {
  width: 64px;
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  padding: 6px;
  color: var(--text);
}

.cart-item__controls button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 12px;
  padding-top: 12px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  padding: 12px 14px;
  resize: none;
}

.form-feedback {
  min-height: 24px;
  font-size: 0.95rem;
}

.form-feedback.success {
  color: var(--success);
}

.form-feedback.error {
  color: var(--danger);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.steps article {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.order-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.order-card__actions {
  display: flex;
  gap: 8px;
}

.order-card__actions button {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}

.order-card__actions .approve {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.order-card__actions .reject {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.order-card__actions .delete {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

.product-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.product-manage-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-manage-card header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-manage-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.product-manage-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.image-path-display {
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 8px 10px;
}

.product-manage-card input,
.product-manage-card textarea {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
  resize: vertical;
}

.product-manage-card button {
  align-self: flex-start;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
}

.product-manage-card .mini-feedback {
  min-height: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.file-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-input-label {
  border: 1px dashed rgba(148, 163, 184, 0.5);
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--muted);
  cursor: pointer;
}

.file-input-label input {
  display: none;
}

.steps span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  margin-bottom: 10px;
  color: var(--muted);
}

.site-footer {
  margin-top: 32px;
  padding: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 768px) {
  body {
    padding: 18px;
  }

  .hero {
    flex-direction: column;
    padding: 32px;
  }
}

/* Voice Call Styles */
.voice-call-btn {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.voice-call-btn:hover {
  background: rgba(34, 197, 94, 0.25);
  transform: translateY(-1px);
}

.voice-call-modal {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.voice-call-modal[hidden] {
  display: none !important;
}

.voice-call-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  width: 260px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.voice-call-content h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.call-status {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.voice-call-content h3 {
  margin-bottom: 16px;
  color: var(--text);
}

.call-status {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.call-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.call-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.call-btn.end-call {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.call-btn.end-call:hover {
  background: rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}

.call-btn.start-call {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.call-btn.start-call:hover {
  background: rgba(34, 197, 94, 0.25);
  transform: translateY(-1px);
}

.call-btn.accept-call,
#admin-accept-call-btn {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.call-btn.accept-call:hover {
  background: rgba(34, 197, 94, 0.25);
  transform: translateY(-1px);
}

.call-btn.reject-call,
#admin-reject-call-btn {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.call-btn.reject-call:hover {
  background: rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}

#remote-audio,
#admin-remote-audio {
  display: none;
}

