/* ── Product Detail Page ── */
.product-page { padding-top: 8em; }
.product-detail { display: flex; gap: 3em; padding: 2em; max-width: 1200px; margin: 0 auto; }
.product-detail-left { flex: 1; position: sticky; top: 100px; align-self: flex-start; }
.product-detail-img { border-radius: 1em; overflow: hidden; aspect-ratio: 4/3; background: #f5f5f0; border: 1px solid rgba(0,0,0,0.06); }

/* Right Column */
.product-detail-right { flex: 1; display: flex; flex-direction: column; gap: 1.25em; }
.product-breadcrumb { display: flex; gap: 0.5em; align-items: center; }
.product-breadcrumb a { color: var(--primary); font-size: 0.75rem; }
.product-breadcrumb span { opacity: 0.3; font-size: 0.75rem; }
.product-title { font-family: "Onest", sans-serif; font-size: 1.75rem; line-height: 1.2; }
.product-price-block { display: flex; align-items: baseline; gap: 0.75em; }
.product-old-price { font-family: "Onest"; font-size: 1.1rem; text-decoration: line-through; opacity: 0.35; text-transform: none; }
.product-current-price { font-family: "Onest"; font-size: 1.75rem; font-weight: 900; color: var(--primary); text-transform: none; transition: all 0.3s; }
.product-desc { font-family: "Onest"; font-size: 0.9rem; line-height: 1.6; opacity: 0.6; text-transform: none; }
.product-sku { font-family: "Onest"; font-size: 0.7rem; opacity: 0.3; text-transform: none; }

/* Demo Button */
.demo-btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.7em 1.2em; width: max-content;
  background: rgba(108,92,231,0.06); color: var(--primary);
  border: 1.5px solid rgba(108,92,231,0.25); border-radius: 0.5em;
  font-family: "Onest", sans-serif; font-size: 0.8rem; font-weight: 700;
  text-transform: none; transition: all 0.3s;
}
.demo-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 16px rgba(108,92,231,0.25); }

/* ── Form ── */
.product-add-form { display: flex; flex-direction: column; gap: 1.25em; }

/* ── Product Fields / Variations ── */
.product-fields {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 0.75em;
  overflow: hidden; background: #fff;
}

.pf-group {
  display: flex; flex-direction: column; gap: 0.5em;
  padding: 1.25em;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.pf-group:last-child { border-bottom: none; }

.pf-label {
  font-family: "Onest", sans-serif; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--fg); opacity: 0.7;
}
.pf-req { color: var(--primary); margin-left: 0.2em; }

/* Text / Textarea / Select Inputs */
.pf-select, .pf-input, .pf-textarea {
  border: 1px solid rgba(0,0,0,0.1); background: #fafaf8;
  border-radius: 0.5em; padding: 0.75em 1em;
  font-family: "Onest", sans-serif; font-size: 0.85rem;
  transition: all 0.3s; width: 100%;
}
.pf-select:focus, .pf-input:focus, .pf-textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.08);
}
.pf-file { font-family: "Onest", sans-serif; font-size: 0.8rem; }
.pf-file-hint { display: block; font-family: "Onest", sans-serif; font-size: 0.65rem; opacity: 0.4; text-transform: none; margin-top: 0.3em; }

/* ── Radio Options ── */
.pf-radio-group { display: flex; flex-direction: column; gap: 0.4em; }
.pf-radio-option { cursor: pointer; }
.pf-radio-option input { display: none; }
.pf-radio-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75em 1em;
  border: 1.5px solid rgba(0,0,0,0.06); border-radius: 0.5em;
  background: #fafaf8;
  transition: all 0.25s;
}
.pf-radio-option input:checked + .pf-radio-card {
  border-color: var(--primary);
  background: rgba(108,92,231,0.04);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.pf-radio-card:hover { border-color: rgba(108,92,231,0.3); }
.pf-radio-label { font-family: "Onest", sans-serif; font-size: 0.85rem; font-weight: 600; text-transform: none; }
.pf-radio-price {
  font-family: "Onest", sans-serif; font-size: 0.75rem; font-weight: 800;
  color: var(--primary); text-transform: none;
  padding: 0.2em 0.5em; background: rgba(108,92,231,0.08); border-radius: 0.3em;
}
.pf-radio-price.discount { color: #2ecc71; background: rgba(46,204,113,0.08); }

/* ── Checkbox Options ── */
.pf-checkbox-group { display: flex; flex-wrap: wrap; gap: 0.4em; }
.pf-checkbox-option { cursor: pointer; }
.pf-checkbox-option input { display: none; }
.pf-checkbox-card {
  display: flex; align-items: center; gap: 0.5em;
  padding: 0.6em 0.9em;
  border: 1.5px solid rgba(0,0,0,0.06); border-radius: 0.5em;
  background: #fafaf8;
  transition: all 0.25s;
}
.pf-checkbox-option input:checked + .pf-checkbox-card {
  border-color: var(--primary);
  background: rgba(108,92,231,0.04);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.pf-checkbox-card:hover { border-color: rgba(108,92,231,0.3); }
.pf-checkbox-label { font-family: "Onest", sans-serif; font-size: 0.8rem; font-weight: 600; text-transform: none; }
.pf-checkbox-price {
  font-family: "Onest", sans-serif; font-size: 0.7rem; font-weight: 800;
  color: var(--primary); text-transform: none;
  padding: 0.15em 0.4em; background: rgba(108,92,231,0.08); border-radius: 0.25em;
}

/* ── Quantity + Total ── */
.product-quantity { display: flex; align-items: center; gap: 1em; }
.product-quantity label { font-family: "Onest"; font-size: 0.8rem; font-weight: 700; text-transform: none; opacity: 0.7; }
.quantity-control {
  display: flex; align-items: center;
  border: 1.5px solid rgba(0,0,0,0.1); border-radius: 0.5em; overflow: hidden;
}
.quantity-control button {
  width: 38px; height: 38px; background: transparent; border: none;
  font-size: 1.1rem; cursor: pointer; font-family: "Onest"; transition: background 0.2s;
}
.quantity-control button:hover { background: rgba(108,92,231,0.08); }
.quantity-control input, .quantity-control span {
  width: 44px !important; min-width: 44px; text-align: center; border: none !important; background: transparent !important;
  font-family: "Onest"; font-size: 0.9rem; font-weight: 700;
  color: var(--fg) !important; padding: 0 !important;
  -moz-appearance: textfield;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-total-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75em 1em;
  background: linear-gradient(135deg, rgba(108,92,231,0.06), rgba(108,92,231,0.02));
  border: 1px solid rgba(108,92,231,0.12); border-radius: 0.5em;
}
.product-total-line span:first-child { font-family: "Onest", sans-serif; font-size: 0.85rem; font-weight: 600; text-transform: none; opacity: 0.7; }

/* Add to Cart */
.add-to-cart-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5em;
  width: 100%; padding: 1em;
  background: var(--primary) !important; color: #fff !important;
  border-radius: 0.6em; font-family: "Onest", sans-serif; font-size: 0.9rem; font-weight: 700;
  transition: all 0.3s;
}
.add-to-cart-btn:hover { background: #5a4bd1 !important; box-shadow: 0 4px 20px rgba(108,92,231,0.35); transform: translateY(-2px); }

/* ── Long Description ── */
.product-long-desc { max-width: 900px; margin: 2em auto; padding: 0 2em; }
.product-long-desc-inner { font-family: "Onest", sans-serif; text-transform: none; line-height: 1.8; }
.product-long-desc-inner h2 { font-family: "Onest", sans-serif; font-size: 1.4rem; margin: 2em 0 0.75em; text-transform: none; }
.product-long-desc-inner h3 { font-family: "Onest", sans-serif; font-size: 1.1rem; margin: 1.5em 0 0.5em; text-transform: none; }
.product-long-desc-inner p { font-size: 0.95rem; margin-bottom: 1em; opacity: 0.75; }
.product-long-desc-inner ul, .product-long-desc-inner ol { margin: 0.75em 0 1em 1.5em; }
.product-long-desc-inner li { font-size: 0.9rem; margin-bottom: 0.4em; opacity: 0.75; line-height: 1.6; }
.product-long-desc-inner strong { font-weight: 700; opacity: 1; }

/* ── Features Section ── */
.product-features-section { padding: 4em 2em; margin: 2em; border: 1px solid rgba(0,0,0,0.06); border-radius: 1em; background: #fff; }
.product-features-section h3 { text-align: center; margin-bottom: 2em; font-family: "Onest", sans-serif; font-size: 1.2rem; text-transform: none; }
.product-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75em; }
.product-feature-item {
  display: flex; align-items: flex-start; gap: 0.6em;
  padding: 0.8em 1em;
  background: #fafaf8; border-radius: 0.5em;
  border: 1px solid rgba(0,0,0,0.04);
}
.product-feature-item .feature-check { color: var(--primary); font-weight: 700; flex-shrink: 0; font-size: 0.9em; }
.product-feature-item p { font-family: "Onest"; font-size: 0.85rem; line-height: 1.4; text-transform: none; }

/* ── Related Products ── */
.related-section { padding: 4em 2em; max-width: 1200px; margin: 0 auto; }
.related-section h3 { text-align: center; margin-bottom: 2em; font-family: "Onest"; font-size: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }

.rel-card {
  display: flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,0.06); border-radius: 0.75em;
  background: #fff; overflow: hidden;
  transition: all 0.35s;
}
.rel-card:hover { border-color: rgba(108,92,231,0.3); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.rel-card-link { display: block; text-decoration: none; color: var(--fg); }

.rel-card-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #f5f5f0; }
.rel-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.rel-card:hover .rel-card-img img { transform: scale(1.05); }

.rel-card-body { padding: 1em; display: flex; flex-direction: column; gap: 0.4em; }
.rel-cat { font-family: "Onest", sans-serif; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.rel-title { font-family: "Onest", sans-serif; font-size: 0.85rem; font-weight: 600; line-height: 1.3; text-transform: none; color: var(--fg); }
.rel-price { display: flex; align-items: baseline; gap: 0.4em; margin-top: 0.25em; }
.rel-old { font-family: "Onest"; font-size: 0.75rem; text-decoration: line-through; opacity: 0.35; text-transform: none; }
.rel-current { font-family: "Onest"; font-size: 1rem; font-weight: 900; color: var(--primary); text-transform: none; }

.rel-card-actions { display: flex; gap: 0.5em; padding: 0 1em 1em; }
.rel-cart-form { flex: 1; }
.rel-cart-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4em;
  width: 100%; padding: 0.6em;
  background: var(--fg); color: var(--bg);
  border: none; border-radius: 0.4em;
  font-family: "Onest", sans-serif; font-size: 0.7rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; text-transform: none;
}
.rel-cart-btn:hover { background: var(--primary); }

.rel-demo-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.3em;
  padding: 0.6em 0.8em;
  background: transparent; color: var(--primary);
  border: 1.5px solid rgba(108,92,231,0.25); border-radius: 0.4em;
  font-family: "Onest", sans-serif; font-size: 0.7rem; font-weight: 700;
  text-transform: none; transition: all 0.3s; white-space: nowrap;
}
.rel-demo-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* İlgili ürünler başlık düzeltmesi */
.related-section h3 { font-size: 1.2rem; font-family: "Onest", sans-serif; text-transform: none; }

/* ── Shop card actions (listing page) ── */
.package-card-actions { display: flex; gap: 0.75em; margin-top: auto; }
.package-card-actions .add-to-cart-btn { flex: 2; }
.package-card-actions .btn-outline { flex: 1; text-align: center; background: transparent; color: var(--fg); border: 1px solid rgba(0,0,0,0.1); }
.package-card-actions .btn-outline:hover { border-color: var(--primary); color: var(--primary); background: transparent; }
.package-card-link { text-decoration: none; display: flex; flex-direction: column; gap: 1em; }
.see-all-features { color: var(--primary); font-family: "Onest"; font-size: 0.75rem; text-transform: none; }
.add-cart-form { flex: 2; }
.add-cart-form .add-to-cart-btn { font-size: 0.75rem; padding: 0.7em 0.8em; }

/* ── Mobile ── */
@media (max-width: 1000px) {
  .product-detail { flex-direction: column; padding: 1.25em; gap: 1.5em; }
  .product-detail-left { position: static; }
  .product-title { font-size: 1.4rem; }
  .product-current-price { font-size: 1.5rem; }
  .product-features-section { margin: 0 1.25em; padding: 2em 1.25em; }
  .product-features-grid { grid-template-columns: 1fr; }
  .related-section { padding: 2em 1.25em; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75em; }
  .rel-card-body { padding: 0.75em; }
  .rel-title { font-size: 0.75rem; }
  .pf-group { padding: 1em; }
  .pf-radio-group { gap: 0.3em; }
  .pf-checkbox-group { gap: 0.3em; }
}
