/* ================================================================================================
   ÜRÜN DETAY SAYFASI STİLLERİ (urun/*.php)
   ------------------------------------------------------------------------------------------------
   style.css içindeki ortak değişkenleri (--color-*, --radius-*, --shadow-*) kullanır.
   ================================================================================================ */

/* ------------------------------------------------------------------------------------------------
   EKMEK KIRINTISI (Breadcrumb)
   ------------------------------------------------------------------------------------------------ */
.breadcrumb-bar { padding: .9rem 0; border-bottom: 1px solid var(--color-border); }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; font-size: .8rem; color: var(--color-muted); }
.breadcrumb-item-custom { display: flex; align-items: center; }
.breadcrumb-item-custom:not(:last-child)::after { content: '>'; margin: 0 .5rem; color: var(--color-border); }
.breadcrumb-item-custom a { color: var(--color-muted); text-decoration: none; }
.breadcrumb-item-custom a:hover { color: var(--color-orange); }
.breadcrumb-item-custom span { color: var(--color-text); font-weight: 500; }

/* ------------------------------------------------------------------------------------------------
   ÜRÜN GALERİSİ
   ------------------------------------------------------------------------------------------------ */
.product-hero-section { padding: 1.75rem 0; }
.product-gallery { display: flex; gap: 1rem; }
.product-gallery-thumbs { display: flex; flex-direction: column; gap: .75rem; flex-shrink: 0; }
.product-gallery-thumb {
    width: 88px; height: 88px; padding: 0; border-radius: var(--radius-sm); overflow: hidden;
    border: 2px solid var(--color-border); background: var(--bg-soft); cursor: pointer; transition: border-color .15s;
}
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-thumb.active, .product-gallery-thumb:hover { border-color: var(--color-green); }
.product-gallery-main { position: relative; flex: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-soft); }
.product-gallery-swiper, .product-gallery-swiper .swiper-slide { aspect-ratio: 1 / 1; }
.product-gallery-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-fav {
    position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
    background: #fff; border: none; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); color: var(--color-text); cursor: pointer;
}
.product-gallery-fav:hover { color: var(--color-orange); }
.product-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%;
    background: #fff; border: none; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); color: var(--color-text); cursor: pointer;
}
.product-gallery-prev { left: 12px; }
.product-gallery-next { right: 12px; }

/* ------------------------------------------------------------------------------------------------
   ÜRÜN BİLGİ PANELİ
   ------------------------------------------------------------------------------------------------ */
.product-info-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.product-info-badge {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600;
    padding: .35rem .75rem; border-radius: 999px; background: var(--tint-green); color: var(--color-green);
}
.product-title { font-size: 1.7rem; font-weight: 700; margin: 0 0 .5rem; }
.product-rating-row { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--color-muted); margin-bottom: .9rem; }
.product-rating-stars { color: var(--color-star); }
.product-price-row { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .75rem; }
.product-price-row .price-old { font-size: 1rem; }
.product-price-new { font-size: 1.9rem; font-weight: 800; color: var(--color-text); }
.product-shipping-note { display: flex; align-items: center; gap: .5rem; color: var(--color-green); font-weight: 600; font-size: .88rem; margin-bottom: 1.25rem; }

.product-qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.product-qty-label { font-size: .88rem; color: var(--color-muted); margin: 0; }
.product-qty-stepper { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.product-qty-btn { width: 38px; height: 38px; border: none; background: var(--bg-soft); color: var(--color-text); cursor: pointer; }
.product-qty-btn:hover { background: var(--color-border); }
.product-qty-input {
    width: 52px; height: 38px; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border);
    text-align: center; font-size: .95rem; -moz-appearance: textfield;
}
.product-qty-input::-webkit-outer-spin-button, .product-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-action-row { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
.product-btn-add-cart, .product-btn-buy-now { flex: 1; justify-content: center; margin-top: 0; padding: .75rem 1rem; font-size: .92rem; }

/* Çapraz satış: Efsane Lezzetler */
.cross-sell-widget { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem; margin-bottom: 1.25rem; }
.cross-sell-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cross-sell-title { font-size: .95rem; font-weight: 700; margin: 0; }
.cross-sell-nav { display: flex; gap: .4rem; }
.cross-sell-nav-btn {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--color-border); background: #fff;
    display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--color-text); cursor: pointer;
}
.cross-sell-card { position: relative; display: flex; align-items: center; gap: .75rem; }
.cross-sell-thumb { flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.cross-sell-thumb img { width: 56px; height: 56px; object-fit: cover; display: block; }
.cross-sell-badge {
    position: absolute; top: -8px; left: 44px; background: var(--color-orange); color: #fff; font-size: .68rem;
    font-weight: 700; padding: .1rem .4rem; border-radius: 6px;
}
.cross-sell-name { flex: 1; font-size: .82rem; color: var(--color-text); text-decoration: none; line-height: 1.3; }
.cross-sell-name:hover { color: var(--color-green); }
.cross-sell-price { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; flex-shrink: 0; }
.cross-sell-price .price-old { font-size: .7rem; }
.cross-sell-price-new { font-size: .85rem; font-weight: 700; }
.cross-sell-cart-btn {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--color-green);
    color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cross-sell-cart-btn:hover { filter: brightness(1.08); }

.free-shipping-banner {
    display: flex; align-items: center; gap: .6rem; background: var(--tint-green); color: var(--color-green);
    font-weight: 600; font-size: .88rem; padding: .85rem 1rem; border-radius: var(--radius-md);
}

/* ------------------------------------------------------------------------------------------------
   ÜRÜN DETAYI
   ------------------------------------------------------------------------------------------------ */
.product-detail-section { padding: 1.5rem 0 2.5rem; }
.product-detail-tab-btn {
    display: inline-block; background: var(--color-green); color: #fff; font-size: .85rem; font-weight: 600;
    padding: .5rem 1.25rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.product-detail-bullets { list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .9rem; line-height: 1.9; color: var(--color-text); }

.product-infographic-card {
    border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem;
    max-width: 640px; margin: 0 0 1rem;
}
.infographic-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 1rem; }
.infographic-intro { list-style: disc; padding-left: 1.1rem; font-size: .88rem; line-height: 1.6; margin-bottom: 1.25rem; }
.infographic-intro li { margin-bottom: .5rem; }
.infographic-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--color-border); }
.infographic-col-title { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 700; margin: 0 0 .75rem; }
.infographic-col-title i { color: var(--color-green); }
.infographic-content-list { margin: 0 0 .75rem; }
.infographic-content-row { display: flex; gap: .4rem; font-size: .85rem; margin-bottom: .4rem; }
.infographic-content-row dt { font-weight: 500; white-space: nowrap; }
.infographic-content-row dd { margin: 0; color: var(--color-border); overflow: hidden; }
.infographic-net-weight { font-size: .85rem; margin: 0; }
.infographic-plain-list { list-style: none; margin: 0; padding: 0; font-size: .85rem; line-height: 1.7; }
.infographic-plain-list li::before { content: '•'; color: var(--color-green); margin-right: .5rem; }

.infographic-nutrition { padding: 1.25rem 0; border-top: 1px solid var(--color-border); }
.nutrition-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.nutrition-table th, .nutrition-table td { padding: .5rem .75rem; border: 1px solid var(--color-border); text-align: left; }
.nutrition-table th { background: var(--bg-soft); font-weight: 700; }

.product-detail-footnote { font-size: .82rem; color: var(--color-muted); display: flex; align-items: flex-start; gap: .5rem; max-width: 640px; }

/* ------------------------------------------------------------------------------------------------
   YORUMLAR
   ------------------------------------------------------------------------------------------------ */
.reviews-section { padding: 1.5rem 0 3rem; }
.reviews-list { border-top: 1px solid var(--color-border); }
.review-item { padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); }
.review-stars { color: var(--color-star); font-size: .85rem; margin-bottom: .35rem; }
.review-user { font-style: normal; font-weight: 700; font-size: .9rem; display: block; }
.review-date { display: block; font-size: .75rem; color: var(--color-muted); margin-bottom: .5rem; }
.review-comment { font-size: .88rem; margin: 0 0 .6rem; }
.review-photos { display: flex; gap: .5rem; }
.review-photos img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.reviews-show-more {
    display: block; margin: 1.5rem auto 0; background: #fff; border: 1px solid var(--color-border); border-radius: 999px;
    padding: .6rem 1.5rem; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.reviews-show-more:hover { border-color: var(--color-green); color: var(--color-green); }

/* ------------------------------------------------------------------------------------------------
   YAPIŞKAN SATIN ALMA ÇUBUĞU
   ------------------------------------------------------------------------------------------------ */
.sticky-buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: #fff;
    border-top: 1px solid var(--color-border); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
.sticky-buy-bar[hidden] { display: none; }
.sticky-buy-bar .container { display: flex; align-items: center; gap: .9rem; padding-top: .6rem; padding-bottom: .6rem; }
.sticky-buy-bar img { border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sticky-buy-bar-name { flex: 1; font-size: .88rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy-bar-price { font-size: 1rem; font-weight: 700; flex-shrink: 0; }
.sticky-buy-bar-btn { flex-shrink: 0; width: auto; margin-top: 0; }

/* ------------------------------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .infographic-columns { grid-template-columns: 1fr; gap: 1rem; }
    .product-title { font-size: 1.4rem; }
}

@media (max-width: 767.98px) {
    .product-gallery { flex-direction: column-reverse; }
    .product-gallery-thumbs { flex-direction: row; }
    .product-infographic-card { padding: 1.25rem; }
    .infographic-title { font-size: 1.3rem; }
    .sticky-buy-bar-name { display: none; }
    body { padding-bottom: 64px; }
}
