/* ========================================
   MODERN PRODUCT DETAIL POPUP
   ======================================== */

/* Main Container */
#acilanurun {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 9999;
  transform: translateY(120vh);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Product Header with Full Image */
.modern-product-header {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 350px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modern-product-image-full {
  width: 100%;
  height: 100%;
  position: relative;
}

.modern-product-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modern-product-image-full::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

/* Close Button */
.modern-product-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d3748;
  font-size: 24px;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.modern-product-close:hover {
  background: white;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #ff6247;
}

/* Product Content */
.modern-product-content {
  flex: 1;
  padding: 30px 20px 100px;
  background: white;
  position: relative;
}

/* Title Section */
.modern-product-title-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.modern-product-name {
  font-size: 28px;
  font-weight: 800;
  color: #1a202c;
  margin: 0 0 12px 0;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.modern-product-price-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #ff6247, #ff8a75);
  color: white;
  font-size: 24px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 98, 71, 0.3);
  letter-spacing: -0.5px;
}

/* Product Description */
.modern-product-description {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.modern-product-description p {
  font-size: 16px;
  line-height: 1.7;
  color: #4a5568;
  margin: 0;
}

/* Info Badges */
.modern-product-info-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.modern-info-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 10px;
  font-size: 14px;
  color: #4a5568;
}

.modern-info-badge i {
  color: #ff6247;
  font-size: 16px;
}

/* Kalori badge (yasal gereklilik) - vurgulu */
.modern-info-badge.modern-info-badge-kalori {
  background: linear-gradient(135deg, #fff2ee, #ffe4dc);
  border: 1px solid #ffd0c1;
  color: #b3361f;
  font-weight: 600;
}
.modern-info-badge.modern-info-badge-kalori i {
  color: #FF4225;
  animation: kaloriFlame 1.8s ease-in-out infinite;
}
@keyframes kaloriFlame {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .85; }
}

/* Option Groups */
.modern-option-group {
  margin-bottom: 24px;
}

.modern-option-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
}

.modern-option-header i {
  color: #ff6247;
  font-size: 18px;
}

.modern-option-header > span {
  flex: 1;
}

/* Clear Selection Button */
.modern-clear-selection-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.modern-clear-selection-btn:hover {
  border-color: #ff6247;
  color: #ff6247;
  background: rgba(255, 98, 71, 0.05);
  transform: scale(1.05);
}

.modern-clear-selection-btn:active,
.modern-clear-selection-btn.cleared {
  transform: scale(0.95);
  background: rgba(255, 98, 71, 0.1);
}

.modern-clear-selection-btn i {
  font-size: 13px;
}

.modern-option-required {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.modern-option-optional {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Option Items Grid */
.modern-option-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modern-option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modern-option-item {
  position: relative;
}

.modern-option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modern-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
}

.modern-option-label:hover {
  border-color: #ff6247;
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.05),
    rgba(255, 138, 117, 0.05)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 98, 71, 0.1);
}

.modern-option-check {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: white;
}

.modern-option-check::after {
  content: "✓";
  font-size: 14px;
  font-weight: 900;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.modern-option-input[type="radio"] + .modern-option-label .modern-option-check {
  border-radius: 50%;
}

.modern-option-input:checked + .modern-option-label {
  border-color: #ff6247;
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.1),
    rgba(255, 138, 117, 0.1)
  );
  box-shadow: 0 4px 12px rgba(255, 98, 71, 0.15);
}

.modern-option-input:checked + .modern-option-label .modern-option-check {
  background: linear-gradient(135deg, #ff6247, #ff8a75);
  border-color: #ff6247;
}

.modern-option-input:checked
  + .modern-option-label
  .modern-option-check::after {
  opacity: 1;
  transform: scale(1);
}

.modern-option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modern-option-name {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.3;
}

.modern-option-input:checked + .modern-option-label .modern-option-name {
  color: #ff6247;
}

.modern-option-price {
  font-size: 13px;
  font-weight: 700;
  color: #059669;
}

/* Quantity Selector */
.modern-quantity-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  margin-bottom: 24px;
}

.modern-quantity-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
}

.modern-quantity-label i {
  color: #ff6247;
  font-size: 18px;
}

.modern-quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 2px solid #e2e8f0;
}

.modern-qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  color: #ff6247;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.modern-qty-btn:hover {
  background: rgba(255, 98, 71, 0.1);
}

.modern-qty-btn:active {
  background: rgba(255, 98, 71, 0.2);
  transform: scale(0.92);
}

.modern-qty-btn i {
  pointer-events: none;
}

.modern-qty-value {
  min-width: 48px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #1a202c;
  line-height: 44px;
  border-left: 2px solid #e2e8f0;
  border-right: 2px solid #e2e8f0;
  user-select: none;
}

/* Add to Cart Button */
.modern-product-add-btn {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #ff6247, #ff8a75);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 98, 71, 0.3);
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}

.modern-product-add-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.modern-product-add-btn:hover::before {
  width: 400px;
  height: 400px;
}

.modern-product-add-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(255, 98, 71, 0.4);
}

.modern-product-add-btn:active {
  transform: translateY(-1px);
}

.modern-product-add-btn i {
  font-size: 20px;
  z-index: 1;
}

.modern-product-add-btn span {
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-product-header {
    height: 50vh;
    min-height: 300px;
  }

  .modern-product-content {
    padding: 24px 16px 90px;
  }

  .modern-product-name {
    font-size: 24px;
  }

  .modern-product-price-tag {
    font-size: 20px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .modern-product-header {
    height: 45vh;
    min-height: 280px;
  }

  .modern-product-close {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: 16px;
    right: 16px;
  }

  .modern-product-content {
    padding: 20px 16px 80px;
  }

  .modern-product-name {
    font-size: 22px;
  }

  .modern-product-price-tag {
    font-size: 18px;
    padding: 10px 18px;
  }

  .modern-option-header {
    padding: 14px;
    font-size: 15px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .modern-clear-selection-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .modern-clear-selection-btn i {
    font-size: 12px;
  }

  .modern-option-label {
    padding: 12px;
    gap: 8px;
  }

  .modern-option-name {
    font-size: 13px;
  }

  .modern-option-price {
    font-size: 12px;
  }

  .modern-product-add-btn {
    padding: 16px 20px;
    font-size: 16px;
  }

  .modern-quantity-section {
    padding: 14px;
  }

  .modern-quantity-label {
    font-size: 15px;
  }

  .modern-qty-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .modern-qty-value {
    min-width: 42px;
    font-size: 16px;
    line-height: 40px;
  }

  /* Keep 2-column grid even on mobile */
  .modern-option-items,
  .modern-option-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Animation */
@keyframes slideUpProduct {
  from {
    transform: translateY(120vh);
  }
  to {
    transform: translateY(0);
  }
}

/* Scrollbar - Hidden */
#acilanurun::-webkit-scrollbar {
  width: 0px;
  display: none;
}

#acilanurun {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
