/* pages.css - Page specific styles */
/* Home Hero */
.hero {
  min-height: calc(100dvh - var(--header-h));
  max-height: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-32) 0;
  position: relative;
}
.hero__title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  font-style: italic;
  margin-bottom: var(--space-24);
}
.hero__title .brand-mark-je { color: var(--brand); }
.hero__title .brand-mark-xuc { color: var(--ink); }
.hero__subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--ink-2);
  max-width: 800px;
  margin-bottom: var(--space-32);
}
.hero__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}
@media (min-width: 768px) {
  .hero__steps { flex-direction: row; gap: var(--space-32); }
}
.hero__step {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 600;
}
.hero__scroll-indicator {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom) + var(--space-24));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  color: var(--ink-2);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Home Features */
.features-grid {
  display: grid;
  gap: var(--space-24);
  grid-template-columns: repeat(2, 1fr);
  margin: var(--space-64) 0;
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}
.feature-card {
  background: var(--surface);
  padding: var(--space-24);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-1);
}
.feature-card svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-16);
  fill: var(--brand);
}

/* Product Detail */
.product-layout {
  display: grid;
  gap: var(--space-32);
  grid-template-columns: 1fr;
  margin-top: var(--space-24);
}
@media (min-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.product-gallery {
  position: relative;
}
@media (min-width: 1024px) {
  .product-gallery {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}
.product-gallery__main {
  aspect-ratio: 4 / 5;
  background-color: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Options */
.option-group {
  margin-bottom: var(--space-24);
  border: none;
  padding: 0;
}
.option-group legend {
  font-weight: 600;
  margin-bottom: var(--space-12);
  padding: 0;
}
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}
.color-option {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.color-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.color-swatch {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
@media (min-width: 1024px) {
  .color-swatch { width: 64px; height: 64px; }
}
.color-option input[type="radio"]:checked + .color-swatch {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}
.color-option input[type="radio"]:checked + .color-swatch::after {
  content: '✓';
  color: #fff;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.size-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-12);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-8);
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  background: var(--bg);
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 18px;
}
.qty-input {
  width: 50px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Sticky Bottom CTA - Kompakt & Şık Tasarım */
/* Sticky CTA Bar (Kompakt Alt Bar) */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 8px);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: var(--z-sticky-bar);
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.sticky-cta__summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  min-width: 0;
  max-width: 48%;
}

.sticky-cta__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.sticky-cta__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}

.sticky-cta__vat {
  font-size: 10px;
  color: var(--ink-2);
  font-weight: normal;
}

.sticky-cta__subline {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.2;
  margin-top: 1px;
}

.sticky-cta__qty strong {
  color: var(--ink);
  font-weight: 700;
}

.sticky-cta__moq {
  font-size: 10px;
  color: var(--danger);
  font-weight: 700;
  background: rgba(220, 38, 38, 0.08);
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.sticky-cta__actions {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sticky-cta__btn {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  white-space: nowrap;
  width: 100%;
  max-width: 220px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sticky-cta__icon {
  flex-shrink: 0;
}

/* Responsif buton metni: Mobilde asla taşmaz */
.sticky-cta__text-short {
  display: inline;
}
.sticky-cta__text-full {
  display: none;
}

@media (min-width: 520px) {
  .sticky-cta__text-short {
    display: none;
  }
  .sticky-cta__text-full {
    display: inline;
  }
  .sticky-cta__btn {
    padding: 0 16px !important;
  }
  .sticky-cta__inner {
    gap: 12px;
  }
}

/* Sayfa alt boşluğu (Sticky bar mobile'da içeriğin üzerine binmesin) */
@media (max-width: 1023px) {
  .product-layout {
    padding-bottom: 74px;
  }
}

/* Desktop layout: Masaüstünde sabit alt bar yerine formun içinde doğal durur */
@media (min-width: 1024px) {
  .sticky-cta-bar {
    position: static;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: none;
    box-shadow: none;
    padding: 0;
    margin-top: var(--space-20);
    overflow: visible;
  }
  
  .sticky-cta__inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-12);
  }

  .sticky-cta__summary {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    background: var(--bg);
    padding: var(--space-12) var(--space-16);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }

  .sticky-cta__price {
    font-size: 18px;
  }

  .sticky-cta__subline {
    font-size: 13px;
  }

  .sticky-cta__moq {
    font-size: 12px;
  }

  .sticky-cta__actions {
    width: 100%;
  }

  .sticky-cta__btn {
    max-width: 100%;
    min-height: 48px !important;
    height: 48px !important;
    font-size: 15px !important;
  }

  .sticky-cta__text-short {
    display: none;
  }
  .sticky-cta__text-full {
    display: inline;
  }
}

/* Sistem Renk Paletine Uygun WhatsApp Butonları */
.whatsapp-btn,
#nav-wa-btn {
  background-color: var(--brand) !important;
  color: #ffffff !important;
  border: 1px solid var(--brand) !important;
  box-shadow: 0 2px 6px rgba(139, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-btn:hover,
#nav-wa-btn:hover {
  background-color: var(--brand-hover) !important;
  border-color: var(--brand-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
  transform: translateY(-1px);
}

.whatsapp-btn:active,
#nav-wa-btn:active {
  transform: translateY(0) scale(0.98);
}

.whatsapp-btn:disabled,
#btn-whatsapp:disabled {
  background-color: var(--line) !important;
  border-color: var(--line) !important;
  color: var(--ink-2) !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.65;
}

.whatsapp-btn svg,
#nav-wa-btn svg {
  fill: currentColor;
  flex-shrink: 0;
}
