/* ==========================================================================
   Baskı & E-Ticaret - Apple Sadeliğinde Modern Tasarım Sistemi
   ========================================================================== */

:root {
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --primary-dark: #004b99;
  --accent-pink: #e60087;
  --accent-pink-hover: #d1007a;
  --bg-main: #f5f5f7;
  --bg-card: #ffffff;
  --text-main: #1d1d1f;
  --text-muted: #86868b;
  --text-light: #a1a1a6;
  --border-color: #d2d2d7;
  --border-light: #e5e5ea;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Apple Header & Navigation */
.apple-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.top-announcement {
  background: #1d1d1f;
  color: #f5f5f7;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 0;
  text-align: center;
}

.top-announcement a {
  color: #2997ff;
  text-decoration: none;
  margin-left: 8px;
}

.top-announcement a:hover {
  text-decoration: underline;
}

.navbar-brand {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text-main) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .brand-badge {
  background: linear-gradient(135deg, var(--accent-pink), #ff5e3a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
  background-color: rgba(0, 113, 227, 0.06);
}

.nav-link.urgent-nav {
  color: #e11d48 !important;
  font-weight: 600;
}

.search-pill-form {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-pill-input {
  width: 100%;
  padding: 8px 16px 8px 38px;
  font-size: 14px;
  background: #e8e8ed;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: none;
  transition: all 0.2s ease;
}

.search-pill-input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.search-icon-inside {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* Category Subbar */
.category-subbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.category-subbar::-webkit-scrollbar {
  display: none;
}

.category-subbar-inner {
  display: flex;
  gap: 8px;
  padding: 8px 0;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #424245;
  background: transparent;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}

.cat-chip:hover, .cat-chip.active {
  background: #e8e8ed;
  color: var(--text-main);
}

.cat-chip.urgent {
  color: #e11d48;
  font-weight: 600;
  background: #ffe4e6;
}

/* Apple Cards & Surfaces */
.apple-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.apple-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 113, 227, 0.3);
}

/* Hero Section */
.hero-apple {
  background: radial-gradient(circle at center, #ffffff 0%, #f5f5f7 100%);
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.hero-headline {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.hero-subheadline {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 28px;
  font-weight: 400;
}

/* Apple Style Buttons */
.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-apple:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: scale(1.02);
}

.btn-apple-pink {
  background: var(--accent-pink);
  color: #fff;
}

.btn-apple-pink:hover {
  background: var(--accent-pink-hover);
  color: #fff;
}

.btn-apple-secondary {
  background: #e8e8ed;
  color: var(--text-main);
}

.btn-apple-secondary:hover {
  background: #d2d2d7;
  color: var(--text-main);
}

.btn-apple-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-apple-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 113, 227, 0.04);
}

/* Product Cards */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  background: #fbfbfd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-wrapper img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-urgent {
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-vector {
  background: #0284c7;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

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

.product-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
  text-decoration: none;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.product-price-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* ==========================================================================
   PAKET SEÇİM KARTLARI (Ekonomik, Standart, Premium, VIP)
   ========================================================================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.package-card-option {
  position: relative;
}

.package-card-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-card-label {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  position: relative;
}

.package-card-label:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.package-card-option input[type="radio"]:checked + .package-card-label {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25);
}

.package-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.package-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.package-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 8px;
}

.package-tag {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

.package-tag.popular {
  background: linear-gradient(135deg, var(--accent-pink), #ff5e3a);
  color: #fff;
}

.package-tag.vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.package-card-option input[type="radio"]:checked + .package-card-label .package-title {
  color: var(--primary);
}

/* Interactive Configurator / Product Page */
.configurator-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.option-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.segmented-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.segmented-option {
  position: relative;
}

.segmented-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #fafafa;
  transition: all 0.2s ease;
  min-height: 64px;
}

.segmented-label .opt-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.segmented-label .opt-extra {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.segmented-option input[type="radio"]:checked + .segmented-label {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.segmented-option input[type="radio"]:checked + .segmented-label .opt-title {
  color: var(--primary);
}

/* Quantity Tier Selector */
.quantity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.quantity-card {
  position: relative;
}

.quantity-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quantity-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #fafafa;
  transition: all 0.2s ease;
}

.quantity-label .qty-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.quantity-label .qty-unit {
  font-size: 11px;
  color: var(--text-muted);
}

.quantity-label .qty-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
}

.quantity-card input[type="radio"]:checked + .quantity-label {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.quantity-card input[type="radio"]:checked + .quantity-label .qty-num {
  color: var(--primary);
}

/* 3-Way Design Choice Box */
.design-choice-box {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.design-nav-pills {
  display: flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 16px;
  gap: 4px;
}

.design-nav-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border-radius: 999px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.design-nav-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Drag & Drop Upload Zone */
.dropzone-box {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--primary);
  background: rgba(0, 113, 227, 0.03);
}

.dropzone-icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 8px;
}

/* Template Picker Modal & Grid */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.template-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.template-preview-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.template-preview-box svg {
  width: 100%;
  height: 100%;
}

/* Sticky Bottom Price Bar */
.sticky-price-bar {
  position: sticky;
  bottom: 0;
  z-index: 990;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  padding: 14px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.price-display-lg {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.price-tax-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile Bottom Navigation */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
  }

  .mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
  }

  .mobile-bottom-item i {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .mobile-bottom-item.active {
    color: var(--primary);
  }

  body {
    padding-bottom: 60px;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* ==========================================================================
   Package Cards & Selection System
   ========================================================================== */
.package-card {
  background: #ffffff;
  border: 2px solid #e5e5ea;
  border-radius: 16px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.package-card:hover {
  border-color: #0071e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.12);
}

.package-card.active {
  border-color: #0071e3 !important;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%) !important;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.16) !important;
}

.package-card .pkg-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}

.package-card .pkg-title {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.package-card .pkg-desc {
  font-size: 11px;
  color: #6e6e73;
  line-height: 1.35;
  margin-bottom: 8px;
}

.package-card .pkg-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
}

.package-ribbon {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #e60087, #ff5e3a);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(230, 0, 135, 0.3);
}

.package-ribbon.ribbon-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.qty-card {
  background: #f5f5f7;
  border: 2px solid #e5e5ea;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.qty-card:hover {
  border-color: #0071e3;
  background: #fff;
}

.qty-card.active {
  border-color: #0071e3 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15) !important;
}

