/* Mobile-first overrides for the lead-capture storefront. Loaded on top of stock stylesheet.css. */

/* Masaüstünde de mobil görünüm: sayfa en fazla 500px genişliğinde, ortalı */
html {
  background: #e2e8f0;
}

body {
  background: var(--pd-page-bg, #f5f5f5);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(15, 23, 42, .12);
  overflow-x: hidden;
}

.container {
  width: 100% !important;
  max-width: 500px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

#site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site-header #logo img {
  max-height: 40px;
}

#site-header #logo h1 {
  font-size: 18px;
  margin: 0;
}

#header-phone {
  font-weight: bold;
  color: #2e7d32;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px 0;
}

.product-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  text-decoration: none;
  color: inherit;
}

.product-card-image img {
  width: 100%;
  display: block;
}

.product-card-body {
  padding: 8px;
}

.product-card-name {
  font-size: 13px;
  line-height: 1.3;
  height: 2.6em;
  overflow: hidden;
}

.product-card-price {
  margin-top: 4px;
  font-weight: bold;
}

.product-card-price .price-old {
  text-decoration: line-through;
  color: #999;
  font-weight: normal;
  margin-right: 6px;
  font-size: 12px;
}

.product-card-price .price-special {
  color: #d32f2f;
}

/* Product hero image */
.product-hero {
  padding-top: 12px;
}

.product-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.product-hero h1 {
  color: var(--pd-title, inherit);
  font-weight: 800;
  margin: 0;
}

.product-main-image {
  display: block;
  cursor: pointer;
}

/* Galeri */
.product-gallery {
  margin-top: 10px;
  position: relative;
}

.product-gallery .swiper-container {
  padding: 0 2px;
}

.product-gallery .swiper-slide {
  width: auto;
}

.product-gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
}

.product-gallery-item:hover {
  border-color: var(--pd-gallery-hover, #16a34a);
}

.product-gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
}

.product-gallery .swiper-button-prev,
.product-gallery .swiper-button-next {
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .9);
  background-size: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

/* Fiyat */
.product-price {
  margin: 2px 0 2px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 20px;
}

.product-price .price-old {
  text-decoration: line-through;
  color: var(--pd-price-old, #94a3b8);
  font-weight: 400;
  font-size: 20px;
}

.product-price .price-special {
  color: var(--pd-price, #d32f2f);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
}

.product-price .price-discount {
  background: var(--pd-badge-bg, #d32f2f);
  color: var(--pd-badge-text, #fff);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: .02em;
}

/* Product page content blocks */
.content-blocks {
  padding: 0;
}

.content-block {
  margin-bottom: 0;
}

.content-block img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fixed order form */
#order-form-wrap {
  background: var(--pd-form-bg, #fff);
  border-top: 1px solid #eee;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  margin-top: 16px;
}

#order-form-wrap h3 {
  margin-top: 0;
  font-size: 16px;
}

#order-form .form-group {
  margin-bottom: 10px;
}

#order-form label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

#order-form select,
#order-form input,
#order-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  /* prevents iOS auto-zoom on focus */
}

#order-form-submit {
  width: 100%;
  padding: 15px;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
  border: 0;
  border-radius: 10px;
  background: var(--pd-btn-bg, #2e7d32);
  color: var(--pd-btn-text, #fff);
  box-shadow: 0 4px 10px rgba(46, 125, 50, .3);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}

#order-form-submit:hover {
  background: var(--pd-btn-bg, #266b2a);
}

#order-form-submit:active {
  transform: scale(.98);
  box-shadow: 0 2px 6px rgba(46, 125, 50, .3);
}

#order-form-submit:disabled {
  opacity: .6;
  box-shadow: none;
  transform: none;
}

#order-form-message {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

#order-form-message.success {
  color: #2e7d32;
}

#order-form-message.error {
  color: #d32f2f;
}

.order-form-section-title {
  font-size: 15px;
  text-align: center;
  margin: 22px 0 12px;
  position: relative;
  color: var(--pd-section-title, #333);
}

.order-form-section-title::before,
.order-form-section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25%;
  border-top: 2px solid var(--pd-section-line, #e65100);
}

.order-form-section-title::before {
  left: 0;
}

.order-form-section-title::after {
  right: 0;
}

/* Buttons — shared base look for every interactive "button" in the order form */
#order-form button,
#order-form .payment-method-option,
#order-form .shipping-company-option {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Payment method: segmented two-button group */
.payment-method-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-method-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1.5px solid #e2e2e2;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  color: #555;
  text-align: center;
  transition: border-color .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
}

.payment-method-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-method-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f2f2f2;
  color: #888;
  font-size: 15px;
  transition: background .12s ease, color .12s ease;
}

.payment-method-option:active {
  transform: scale(.98);
}

.payment-method-option:has(input:checked) {
  border-color: var(--pd-accent, #e65100);
  background: var(--pd-accent-soft, #fff6ee);
  color: var(--pd-accent, #e65100);
  box-shadow: 0 2px 8px rgba(230, 81, 0, .15);
}

.payment-method-option:has(input:checked) .payment-method-icon {
  background: var(--pd-accent, #e65100);
  color: #fff;
}

/* Shipping company: tidy selectable card list */
.shipping-company-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shipping-company-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid #e2e2e2;
  border-radius: 12px;
  background: #fff;
  position: relative;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.shipping-company-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shipping-company-option:has(input:checked) {
  border-color: var(--pd-accent, #e65100);
  background: var(--pd-accent-soft, #fff6ee);
  box-shadow: 0 2px 8px rgba(230, 81, 0, .12);
}

.shipping-company-option.shipping-company-disabled {
  display: none;
}

.shipping-company-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  background: #fff;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.shipping-company-option:has(input:checked) .shipping-company-check {
  background: var(--pd-accent, #e65100);
  border-color: var(--pd-accent, #e65100);
  color: #fff;
}

.shipping-company-row1 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 22px;
}

.shipping-company-logo {
  flex-shrink: 0;
  width: 76px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.shipping-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shipping-company-name {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.shipping-company-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shipping-company-badge {
  font-size: 10.5px;
  font-weight: 600;
  background: #fff1e2;
  color: #b45400;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.shipping-company-cost {
  font-weight: 700;
  font-size: 13px;
  color: #2e7d32;
  white-space: nowrap;
}

.order-summary {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafafa;
}

.order-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.order-summary-row:last-child {
  border-bottom: none;
}

.order-summary-total strong {
  color: var(--pd-total, #e65100);
  font-size: 18px;
}

/* Quantity stepper: rounded pill with circular +/- buttons */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e2e2e2;
  border-radius: 30px;
  padding: 4px;
}

.qty-stepper button {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: #f2f2f2;
  color: #444;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  transition: background .12s ease, color .12s ease, transform .08s ease;
}

.qty-stepper button:hover {
  background: #ffe4cc;
  color: #e65100;
}

.qty-stepper button:active {
  transform: scale(.92);
}

.qty-stepper input {
  width: 34px;
  text-align: center;
  border: none !important;
  padding: 4px 0 !important;
  font-weight: 700;
  background: transparent;
}

.phone-input {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.phone-input .phone-prefix {
  padding: 0 10px;
  background: #f5f5f5;
  font-size: 15px;
  white-space: nowrap;
}

.phone-input input {
  border: none;
  border-radius: 0;
}

footer {
  padding: 20px 0 40px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer li {
  display: inline-block;
  margin: 0 8px;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Sipariş özeti: indirim */
.order-summary .summary-old {
  color: #94a3b8;
  text-decoration: line-through;
}

.order-summary .summary-discount {
  color: var(--pd-discount, #16a34a);
  font-weight: 700;
}

.order-summary .summary-discount-row em {
  font-style: normal;
  color: #d32f2f;
  font-weight: 700;
  margin-left: 4px;
}

/* Adet fiyatları: "Lütfen Ürün Seçiniz" */
#order-form .tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

#order-form .tier-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  margin: 0;
  transition: border-color .15s, background .15s;
}

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

#order-form .tier-option.selected {
  border-color: var(--pd-tier-accent, #10b981);
  background: var(--pd-tier-soft, #f0fdf7);
}

.tier-check {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.tier-option.selected .tier-check {
  background: var(--pd-tier-accent, #10b981);
  border-color: var(--pd-tier-accent, #10b981);
  color: #fff;
}

.tier-thumb {
  flex: 0 0 56px;
}

.tier-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.tier-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#order-form .tier-qty {
  color: var(--pd-tier-qty, #059669);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
}

.tier-name {
  font-weight: 700;
  color: var(--pd-tier-name, #0f172a);
  font-size: 14px;
  line-height: 1.25;
}

.tier-free {
  color: #9ca3af;
  font-weight: 600;
  font-size: 12px;
}

.tier-prices {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tier-old {
  color: var(--pd-tier-old, #9ca3af);
  text-decoration: line-through;
  font-weight: 600;
  font-size: 12px;
}

.tier-price {
  color: var(--pd-tier-price, #ef4444);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
}

.tier-badge {
  background: var(--pd-tier-badge, #f59e0b);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tier-badge-free {
  background: var(--pd-tier-free, #10b981);
}

/* Adet fiyatlı üründe kargo ücreti seçilen adetten gelir; firma kartında ayrıca gösterme */
#order-form.has-tiers .shipping-company-cost {
  display: none;
}

/* Üst güven bandı */
.trust-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: var(--pd-topbar-bg, #ece9ff);
  color: var(--pd-topbar-text, #4f2fd6);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 6px;
  white-space: nowrap;
}

.trust-bar span {
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-bar span+span {
  border-left: 1px solid rgba(79, 47, 214, .35);
}

@media (max-width: 360px) {
  .trust-bar {
    font-size: 12px;
  }

  .trust-bar span {
    padding: 0 6px;
  }
}

.content-block p {
  margin: 0;
}