/* ==========================================================================
   Ürün Detay Sayfası (/product/index.php) Premium UI Tasarımı
   app-shell.css marka paletiyle uyumludur.
   ========================================================================== */

.yd-pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.83rem;
    color: var(--yd-muted, #607067);
    margin-bottom: 1.15rem;
}

.yd-pd-breadcrumb a {
    color: var(--yd-brand, #176b3a);
    text-decoration: none;
    font-weight: 600;
}

.yd-pd-breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-container {
    padding: 2rem 2rem 2.25rem;
    background: var(--yd-surface, #ffffff);
    border: 1px solid rgba(23, 107, 58, 0.13);
    border-radius: 1.2rem;
    box-shadow: 0 14px 36px rgba(23, 57, 39, 0.07);
}

/* Sol Kolon: Galeri */
.product-image-column {
    padding-right: 1.75rem;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(23, 107, 58, 0.12);
    border-radius: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(23, 107, 58, 0.04);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
    display: block;
    transition: transform 0.28s ease;
}

.main-image-wrapper:hover .main-image {
    transform: scale(1.03);
}

.thumbnails-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.55rem;
    padding: 0.25rem 0.1rem 0.5rem;
    justify-content: center;
}

.thumbnail-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    padding: 4px;
    background: #ffffff;
    border: 1.5px solid rgba(23, 107, 58, 0.14);
    border-radius: 0.6rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--yd-brand, #176b3a);
    box-shadow: 0 0 0 3px rgba(23, 107, 58, 0.16);
    transform: translateY(-2px);
}

/* Sağ Kolon: Bilgiler */
.product-info-column {
    padding-left: 1.75rem;
    border-left: 1px solid rgba(23, 107, 58, 0.1);
}

.product-title {
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--yd-text, #17221c);
    margin-bottom: 0.65rem;
}

.product-rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    margin-bottom: 1.15rem;
}

.product-rating-summary .fa-star,
.product-rating-summary .fa-star-half-stroke {
    color: #f59e0b;
}

/* Fiyat Kartı */
.yd-pd-price-box {
    padding: 1.2rem 1.35rem;
    margin-bottom: 1.25rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #f8fbf9 0%, #eff7f2 100%);
    border: 1px solid rgba(23, 107, 58, 0.16);
}

.price-section {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    border: none;
}

.old-price {
    color: #8b9a91;
    text-decoration: line-through;
    font-size: 1.05rem;
    font-weight: 500;
}

.current-price {
    color: var(--yd-text, #17221c);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.25);
}

/* Gel & Al İndirim Kutusu */
.yd-pickup-box {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1.5px solid rgba(23, 107, 58, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.yd-pickup-box:hover {
    border-color: var(--yd-brand, #176b3a);
    background: #f6fbf8;
}

.yd-pickup-box .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    cursor: pointer;
    accent-color: var(--yd-brand, #176b3a);
}

/* Aktif Aksiyon Satırı */
.yd-pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.yd-pd-btn-wa {
    flex: 1 1 210px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1ea853, #15803d);
    border: none;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.yd-pd-btn-wa:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(21, 128, 61, 0.34);
    filter: brightness(1.04);
}

.yd-pd-btn-quote {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.15rem;
    border-radius: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--yd-brand-dark, #0f4d2a);
    background: #f4faf6;
    border: 1px solid rgba(23, 107, 58, 0.24);
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.yd-pd-btn-quote:hover {
    color: #ffffff;
    background: var(--yd-brand, #176b3a);
    border-color: var(--yd-brand, #176b3a);
    transform: translateY(-1px);
}

.yd-pd-btn-share {
    width: 48px;
    min-width: 48px;
    border-radius: 0.75rem;
    border: 1px solid rgba(23, 107, 58, 0.2);
    background: #ffffff;
    color: var(--yd-brand-dark, #0f4d2a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.yd-pd-btn-share:hover,
.yd-pd-btn-share.is-copied {
    background: var(--yd-brand, #176b3a);
    border-color: var(--yd-brand, #176b3a);
    color: #ffffff;
}

/* Özet Bilgiler */
.summary-section {
    background: #f9fbfa;
    border: 1px solid rgba(23, 107, 58, 0.11);
    padding: 1.25rem 1.35rem;
    border-radius: 0.95rem;
}

.summary-section h5 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--yd-brand-dark, #0f4d2a);
    margin-bottom: 0.95rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #46574d;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item svg {
    width: 16px;
    height: 16px;
    color: var(--yd-brand, #176b3a);
    flex-shrink: 0;
}

.summary-item strong {
    color: var(--yd-text, #17221c);
}

/* Hızlı İletişim Şeridi */
.hizli-iletisim {
    background: linear-gradient(135deg, #f8fbf9 0%, #eff7f2 100%) !important;
    border: 1px solid rgba(23, 107, 58, 0.15) !important;
    border-radius: 0.95rem !important;
}

/* Sekmeler */
.nav-tabs {
    border-bottom: 2px solid rgba(23, 107, 58, 0.14);
    gap: 0.25rem;
}

.nav-tabs .nav-link {
    color: var(--yd-muted, #607067);
    font-weight: 600;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: 0.8rem 1.25rem;
    margin-bottom: -2px;
    border-radius: 0.6rem 0.6rem 0 0;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--yd-brand-dark, #0f4d2a);
    background: rgba(23, 107, 58, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--yd-brand-dark, #0f4d2a);
    background: #ffffff;
    border-bottom-color: var(--yd-brand, #176b3a);
}

.tab-content {
    padding: 1.5rem;
    border: 1px solid rgba(23, 107, 58, 0.12);
    border-top: none;
    border-radius: 0 0 0.95rem 0.95rem;
    background: #ffffff;
}

.bg-pastel-gray {
    background-color: #e2e8e4 !important;
    color: #36453c !important;
}

@media (max-width: 991.98px) {
    .product-detail-container {
        padding: 1.25rem;
    }

    .product-image-column {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }

    .product-info-column {
        padding-left: 0;
        border-left: none;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(23, 107, 58, 0.1);
    }
}


/* --------------------------------------------------------------------------
   Faz 8.3: Zümrüt Hızlı İletişim Şeridi & Mobil Sabit Aksiyon Barı
   -------------------------------------------------------------------------- */
.yd-pd-contact-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.1rem 1.3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f3faf6 0%, #ffffff 100%);
    border: 1px solid rgba(23, 107, 58, 0.16);
    box-shadow: 0 8px 22px rgba(23, 57, 39, 0.06);
}

.yd-pd-contact-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.yd-pd-contact-badge {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(23, 107, 58, 0.12);
    color: var(--yd-brand, #176b3a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.yd-pd-contact-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.yd-pd-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(23, 107, 58, 0.14);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--yd-text, #17221c);
    text-decoration: none;
}

.yd-pd-contact-pill i {
    color: var(--yd-brand, #176b3a);
}

.yd-pd-contact-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 0.7rem;
    background: var(--yd-brand, #176b3a);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.yd-pd-contact-wa:hover {
    background: var(--yd-brand-dark, #0f4d2a);
    color: #ffffff;
    transform: translateY(-1px);
}

.yd-pd-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(23, 107, 58, 0.16);
    box-shadow: 0 -8px 24px rgba(15, 58, 34, 0.12);
    backdrop-filter: blur(8px);
}

.yd-pd-mobile-price small {
    display: block;
    font-size: 0.7rem;
    color: var(--yd-muted, #607067);
}

.yd-pd-mobile-price strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--yd-brand-dark, #0f4d2a);
}

.yd-pd-mobile-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.62rem 1.1rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #1ea853, #15803d);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 66px;
    }
}
