/* Moved from pages/urun.php <style> */
.product-detail-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  background: var(--theme-background-color);
  border-radius: 50px;
  box-shadow: 0 2px 8px 0 var(--theme-primary-color), 0 2px 8px 0 var(--theme-primary-color);
  border: 2.5px solid var(--theme-primary-color);
  padding: 0;
  margin-bottom: 2.5rem;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(16px);
  transition: box-shadow 0.22s, transform 0.22s, border 0.18s;
}
.product-detail-main:hover {
  box-shadow: 0 1px 4px 0 var(--theme-primary-color), 0 1px 4px 0 var(--theme-primary-color);
  transform: translateY(-8px) scale(1.025);
  border-color: var(--theme-primary-color);
}
.product-gallery-outer {
  width: 100%;
  background: var(--theme-background-color);
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;  
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--theme-primary-color);
  box-shadow: 0 2px 16px 0 var(--theme-primary-color);
}
.product-gallery {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-gallery-slider {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  background: #fff;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  box-shadow: 0 4px 24px var(--theme-primary-color), 0 1.5px 8px var(--theme-primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border: 2.5px solid var(--theme-primary-color);
  overflow: hidden;
}
.product-gallery-slider img,
.product-gallery-slider .gallery-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.product-gallery-thumbs {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.7rem;
    justify-content: center;
}
.product-gallery-thumb {
    width: 56px;
    height: 56px;
    border-radius: 0.8rem;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 8px #31979522;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.18s;
}
.product-gallery-thumb.active {
    border: 2px solid #319795;
}
.product-gallery-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(49,151,149,0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.18s;
}
.product-gallery-slider-btn:hover {
    background: #319795;
}
.product-gallery-slider-btn.left { left: 12px; }
.product-gallery-slider-btn.right { right: 12px; }
.product-detail-info {
  flex: 1;
  padding: 2.5rem 2.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.2rem;
  background: var(--theme-background-color);
  border-bottom-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  box-shadow: 0 2px 8px 0 var(--theme-secondary-color);
}
.product-detail-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.product-detail-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--theme-primary-color);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px var(--theme-background-color);
}
.product-detail-badge {
  background: var(--theme-accent-color);
  color: #fff;
  font-size: 1.09rem;
  font-weight: 700;
  border-radius: 1.5rem;
  padding: 8px 26px;
  margin-right: 0.5em;
  box-shadow: 0 2px 8px var(--theme-accent-color);
  letter-spacing: 0.5px;
  border: 2px solid #fff2;
  transition: background 0.18s, box-shadow 0.18s, border 0.18s;
  display: inline-block;
}
.product-detail-badge[style*="background:#38a169"] {
  background: #38a169 !important;
}
.product-detail-badge[style*="background:#e53e3e"] {
  background: var(--theme-primary-color) !important;
}
.product-detail-badge[style*="background:#319795"] {
  background: var(--theme-secondary-color) !important;
}
.product-detail-meta-price {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.2rem;
    align-items: center;
}

.product-detail-meta-price-right {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
    max-width: 320px;
}
.product-detail-meta {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.3rem 1.2rem;
    background: rgba(255,255,255,0.7);
    border-radius: 1.2rem;
    padding: 1.1rem 1.2rem 0.7rem 1.2rem;
    box-shadow: 0 2px 8px #31979511;
    font-size: 1.01rem;
    margin-bottom: 0.7em;
}
.product-detail-meta-label {
  font-weight: 700;
  color: var(--theme-primary-color);
  align-self: center;
  font-size: 1.07rem;
}
.product-detail-meta-value {
  color: var(--theme-text-color);
  font-weight: 500;
  align-self: center;
  font-size: 1.07rem;
  word-break: break-word;
}
.product-detail-desc {
  color: var(--theme-text-color);
  font-size: 1.18rem;
  font-weight: 600;
  text-shadow: 0 1px 0 var(--theme-background-color);
  margin-bottom: 0.2em;
  background: rgba(255,255,255,0.7);
  border-radius: 1.2rem;
  padding: 1.1rem 1.2rem 0.7rem 1.2rem;
  box-shadow: 0 2px 8px var(--theme-accent-color);
}
.product-detail-shortdesc {
  color: #fff;
  font-size: 1.13rem;
  font-style: italic;
  background: var(--theme-accent-color);
  border-radius: 0.7em;
  padding: 0.4em 1.2em;
  display: inline-block;
  margin-bottom: 0.7em;
  box-shadow: 0 2px 8px var(--theme-accent-color);
}
.product-detail-infos {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.product-detail-info-badge {
  font-size: 1.15rem;
  color: #fff;
  background: var(--theme-accent-color);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5em;
  border-radius: 1.5em;
  padding: 0.55em 1.7em;
  box-shadow: 0 2px 8px var(--theme-accent-color), 0 1px 4px var(--theme-secondary-color);
  border: 2px solid #fff2;
  letter-spacing: 0.5px;
  transition: background 0.18s, box-shadow 0.18s, border 0.18s;
}
.product-detail-info-badge b {
  font-weight: 900;
  color: #fff;
}
.product-detail-diet {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 15px 0;
  flex-wrap: wrap;
}
.product-detail-diet-badge {
  font-size: 1.01rem;
  color: #fff;
  background: var(--theme-primary-color);
  font-weight: 700;
  border-radius: 1.2em;
  padding: 6px 18px;
  box-shadow: 0 2px 8px var(--theme-primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 2px solid #fff2;
  letter-spacing: 0.5px;
  transition: background 0.18s, box-shadow 0.18s, border 0.18s;
}
.product-detail-diet-badge.not {
  background: var(--theme-secondary-color);
}
.product-detail-allergens, .product-detail-ingredients {
  color: var(--theme-text-color);
  font-size: 1.07rem;
  background: rgba(255,255,255,0.7);
  border-radius: 1.2rem;
  padding: 1.1rem 1.2rem 0.7rem 1.2rem;
  box-shadow: 0 2px 8px var(--theme-accent-color);
  margin-bottom: 0.7em;
}
.product-detail-allergens::before {
    content: '\26A0'; /* warning sign */
    font-size: 1.2em;
    color: var(--theme-secondary-color);
    margin-right: 0.5em;
}
.product-detail-ingredients::before {
    content: '\1F372'; /* food/ingredients icon */
    font-size: 1.2em;
    color: #319795;
    margin-right: 0.5em;
}
.product-detail-meta-price {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 1.1rem;
  row-gap: 0.5rem;
  background: rgba(255,255,255,0.8);
  border-radius: 1.2rem;
  padding: 1.1rem 1.2rem 0.7rem 1.2rem;
  box-shadow: 0 2px 8px var(--theme-accent-color);
  font-size: 1.07rem;
  margin-bottom: 0.7em;
  max-width: 420px;
  align-items: center;
  justify-items: start;
}
.product-detail-meta-price .product-detail-meta-label {
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--theme-text-color);
  letter-spacing: 0.5px;
  margin-right: 0.3em;
}
.product-detail-meta-price .product-detail-meta-value {
  font-size: 1.22rem;
  font-weight: 900;
  color: #fff;
  background: var(--theme-primary-color);
  border-radius: 1.2em;
  min-width: unset;
  max-width: 100%;
  padding: 0.5em 1.2em;
  box-shadow: 0 2px 8px #ffb70322;
  margin-right: 0.7em;
  transition: box-shadow 0.18s, background 0.18s, color 0.18s;
}
.product-detail-meta-price .product-detail-meta-value:hover {
    background: var(--theme-secondary-color);
    box-shadow: 0 4px 16px var(--theme-secondary-color);
}
.product-detail-meta-situations {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background: rgba(49,151,149,0.07);
    border-radius: 1.5rem;
    padding: 1.2rem 0.7rem;
    box-shadow: 0 4px 24px #31979511, 0 1.5px 8px var(--theme-secondary-color);
    margin-bottom: 1.2rem;
}
.durumlar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* opsiyonel ama faydalı */
    justify-content: center; /* ortalamak istiyorsan */
}

.durumlar-badges > div {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px #31979522, 0 1.5px 8px var(--theme-secondary-color);
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: box-shadow 0.18s, transform 0.18s;
    border: 2px solid #e6e6e6;
    min-width: 120px;
    max-width: 180px;
    text-align: center;
}
.durumlar-badges > div:hover {
    box-shadow: 0 8px 32px #31979533, 0 2px 8px #ffb70322;
    transform: translateY(-4px) scale(1.04);
    border-color: #31979544;
}

body, html {
  font-family: var(--theme-font-family);
}

.product-detail-info-row {
  display: flex;
  flex-direction: row-reverse;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.product-detail-info-left {
  flex: 1 1 220px;
  min-width: 180px;
}
.product-detail-info-right {
  flex: 0 0 260px;
  min-width: 220px;
  max-width: 320px;
}

.product-detail-meta-price-wide {
  justify-content: space-between;
  gap: 2.2rem;
  align-items: flex-start;
  background: var(--theme-background-color);
  border-radius: 1.2rem;
  padding: 1.1rem 1.2rem 0.7rem 1.2rem;
  box-shadow: 0 2px 8px var(--theme-accent-color);
  font-size: 1.07rem;
  margin-bottom: 1.2em;
  width: 100%;
  max-width: none;
}
.product-detail-meta-price-left {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  width: 100%;
}
.product-detail-meta-price-right {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  max-width: 320px;
  background: rgba(255,255,255,0.92);
  border-radius: 1.2rem;
  border: 2px solid var(--theme-secondary-color);
  box-shadow: 0 2px 8px var(--theme-secondary-color);
  padding: 1.2rem 1.3rem 1.1rem 1.3rem;
  position: relative;
}
.product-detail-meta-price-right .product-detail-meta-label {
  font-size: 1.09rem;
  font-weight: 700;
  color: var(--theme-secondary-color);
  letter-spacing: 0.5px;
  margin-right: 0.3em;
}
.product-detail-meta-price-right .product-detail-meta-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--theme-accent-color);
  background: #fff;
  border-radius: 1.2em;
  padding: 0.5em 1.2em;
  box-shadow: 0 2px 8px var(--theme-accent-color);
  margin-bottom: 0.5em;
  margin-right: 0.7em;
  transition: box-shadow 0.18s, background 0.18s, color 0.18s;
  display: inline-block;
}
.product-detail-meta-price-right .product-detail-meta-value:hover {
  background: var(--theme-accent-color);
  color: #fff;
  box-shadow: 0 4px 16px var(--theme-accent-color);
}
.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.2em;
  align-items: center;
  width: 100%;
}

.product-detail-meta-price-right .product-detail-meta-value {
    display: flex;
    justify-content: center;
    width: 100%;
}
.product-detail-meta-label, .product-detail-meta-value {
  display: inline;
  white-space: nowrap;
}

/* Product Detail Meta Value Links */
.product-detail-meta-value-link {
  color: #fff !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.product-detail-meta-value-link:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/* Product Detail Meta Title */
.product-detail-meta-title {
  background: rgba(255,255,255,0.9);
  border-radius: 1.2rem;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px var(--theme-accent-color);
  border: 1px solid #e6e6e6;
}

.product-detail-meta-title h1 {
  color: var(--theme-primary-color);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 0;
  text-align: left;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .product-detail-meta-title {
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
  }
  
  .product-detail-meta-title h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .product-detail-meta-title h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 900px) {
    .product-detail-main {
        /* No need for flex-direction, keep block layout */
        padding: 0;
    }
    .product-gallery-outer,
    .product-detail-info {
        width: 100%;
        display: block;
    }
    .product-gallery-slider {
        width: 100%;
        height: 220px;
    }
    .product-detail-meta-price-wide {
      flex-direction: column;
      gap: 1.2rem;
      max-width: 100%;
    }
    .product-detail-meta-price-left {
      order: 2; /* Move product info below price */
    }
    .product-detail-meta-price-right {
      order: 1; /* Move price section to top */
      width: 100%;
      max-width: 100%;
    }
}

@media (max-width: 600px) {
    .product-detail-meta-price {
        grid-template-columns: 1fr;
        max-width: 100%;
        justify-items: left;
    }
}

.product-gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin: 1.1rem 0 0.7rem 0;
}
.product-gallery-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e0e0e0;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px #0001;
  display: inline-block;
}
.product-gallery-dot.active {
  background: var(--theme-accent-color);
  transform: scale(1.25);
  box-shadow: 0 2px 8px var(--theme-accent-color);
}
.product-gallery-dot:hover {
  background: var(--theme-primary-color);
}
.product-detail-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 1.1em;
  flex-wrap: wrap;
  border-top: 1.5px solid #eee;
  padding-top: 0.8em;
}
.product-detail-meta-price .product-detail-badge {
  background: var(--theme-secondary-color);
  color: #fff;
  font-size: 1.01rem;
  font-weight: 700;
  border-radius: 1.2em;
  padding: 6px 18px;
  box-shadow: 0 2px 8px var(--theme-secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 2px solid #fff2;
  letter-spacing: 0.5px;
  transition: background 0.18s, box-shadow 0.18s, border 0.18s;
  margin-right: 0.3em;
}
.product-detail-meta-price .product-detail-badge:last-child {
  margin-right: 0;
}

.product-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* Make SVG images smaller when there's no product picture */
.product-gallery-img[src*=".svg"] {
  width: 60%;
  height: 60%;
  object-fit: contain;
}