/* ==========================================================================
   ÜRÜN DETAY SAYFASI
   Şablon iskeleti html/shop-details.html'den alındı; buradaki kurallar şablonun
   sabit ölçülerini (450px ana görsel gibi) esnetip vitrini premium hale getirir.
   Renkler her zaman tema değişkenlerinden gelir.
   ========================================================================== */

/* --- Genel yerleşim --- */
.dd-ud-wrapper {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 16px;
    padding: 40px;
}

@media (max-width: 767px) {
    .dd-ud-wrapper {
        padding: 22px 18px;
        border-radius: 12px;
    }
}

/* Şablonun quick-view modal'ı sayfa içine gömüldüğünde flex yön/aralıkları */
.dd-ud-wrapper .details-product-area {
    display: flex;
    align-items: flex-start;
    gap: 42px;
}

@media (max-width: 991px) {
    .dd-ud-wrapper .details-product-area {
        flex-direction: column;
        gap: 30px;
    }
}

/* Şablon ana görsele sabit 450px veriyor; sütuna göre esnesin. */
.dd-ud-wrapper .product-thumb-area {
    width: 46%;
    max-width: 480px;
    flex-shrink: 0;
    margin-right: 0 !important;
}

.dd-ud-wrapper .product-thumb-area .product-thumb {
    width: 100% !important;
    margin-bottom: 14px !important;
}

.dd-ud-wrapper .contents {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 991px) {
    .dd-ud-wrapper .product-thumb-area {
        width: 100%;
        max-width: 100%;
    }
}

/* --- Galeri: ana görsel --- */
.dd-ud-gorsel {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid #eceef2 !important;
    border-radius: 12px !important;
    overflow: hidden;
    background-color: #fff;
    /* Büyüteç: div'in arkaplanı 1500px'lik orijinal görsel, üstteki <img> hover'da
       saydamlaşır ve main.js'deki zoom() fare konumuna göre kaydırır. */
    background-repeat: no-repeat;
    cursor: crosshair;
}

.dd-ud-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* Büyütecin çalıştığını belli eden küçük ipucu rozeti */
.dd-ud-buyutec-ipucu {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 30px;
    font-size: 11.5px;
    font-weight: 600;
    color: #55555f;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #eceef2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
    pointer-events: none;
    transition: opacity .25s;
}

.dd-ud-gorsel:hover .dd-ud-buyutec-ipucu {
    opacity: 0;
}

/* --- Galeri: küçük görseller --- */
.dd-ud-wrapper .product-thumb-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 0 !important;
}

.dd-ud-wrapper .thumb-filter {
    width: 74px;
    height: 74px;
    max-width: 74px;
    margin: 0 !important;
    padding: 4px;
    border: 1px solid #eceef2 !important;
    border-radius: 9px !important;
    background: #fff;
    opacity: 1 !important;
    transition: border-color .2s, box-shadow .2s;
}

.dd-ud-wrapper .thumb-filter img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dd-ud-wrapper .thumb-filter:hover {
    border-color: var(--color-primary) !important;
}

.dd-ud-wrapper .thumb-filter.active {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), .18);
}

/* --- Sağ bilgi paneli --- */
.dd-ud-ustbilgi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.dd-ud-etiket {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), .09);
    transition: .2s;
}

a.dd-ud-etiket:hover {
    background: var(--color-primary);
    color: #fff;
}

.dd-ud-etiket--stok {
    color: #15803d;
    background: rgba(21, 128, 61, .1);
}

.dd-ud-baslik {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #16181d;
}

@media (max-width: 767px) {
    .dd-ud-baslik {
        font-size: 23px;
    }
}

.dd-ud-ozet {
    font-size: 15px;
    line-height: 1.8;
    color: #55555f;
    margin-bottom: 22px;
}

/* Fiyat yerine geçen bilgi kutusu — sitede fiyat gösterilmiyor */
.dd-ud-teklif-kutu {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), .07), rgba(var(--color-primary-rgb), .02));
    border: 1px solid rgba(var(--color-primary-rgb), .16);
}

.dd-ud-teklif-kutu i {
    font-size: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.dd-ud-teklif-kutu p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #55555f;
}

.dd-ud-teklif-kutu strong {
    display: block;
    font-size: 14.5px;
    color: #16181d;
    margin-bottom: 2px;
}

/* --- Adet + sepete ekle --- */
.dd-ud-aksiyon {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 22px;
}

.dd-ud-adet {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.dd-ud-adet button {
    width: 40px;
    height: 100%;
    min-height: 48px;
    border: 0;
    background: #f7f8fa;
    color: #55555f;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}

.dd-ud-adet button:hover {
    background: var(--color-primary);
    color: #fff;
}

.dd-ud-adet input {
    width: 56px;
    height: 48px;
    border: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #16181d;
    background: #fff;
    /* Tarayıcının kendi ok tuşları kutuyu bozuyor */
    -moz-appearance: textfield;
}

.dd-ud-adet input::-webkit-outer-spin-button,
.dd-ud-adet input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dd-ud-sepet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 210px;
    min-height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    cursor: pointer;
    transition: .25s;
}

.dd-ud-sepet-btn:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), .3);
}

.dd-ud-sepet-btn:disabled {
    opacity: .65;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.dd-ud-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #128c7e;
    background: rgba(18, 140, 126, .09);
    border: 1px solid rgba(18, 140, 126, .2);
    transition: .25s;
}

.dd-ud-wa-btn:hover {
    background: #128c7e;
    color: #fff;
}

/* --- Ürün künyesi --- */
.dd-ud-kunye {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 22px;
    border: 1px solid #eceef2;
    border-radius: 10px;
    overflow: hidden;
    background: #eceef2;
}

@media (max-width: 575px) {
    .dd-ud-kunye {
        grid-template-columns: 1fr;
    }
}

.dd-ud-kunye-satir {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 11px 15px;
    background: #fff;
    font-size: 13.5px;
}

.dd-ud-kunye-satir dt {
    flex-shrink: 0;
    font-weight: 500;
    color: #86868f;
    margin: 0;
}

.dd-ud-kunye-satir dd {
    margin: 0;
    font-weight: 600;
    color: #16181d;
    overflow-wrap: anywhere;
}

/* --- Paylaşım --- */
.dd-ud-paylas {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eceef2;
}

.dd-ud-paylas > span {
    font-size: 13px;
    font-weight: 700;
    color: #16181d;
}

.dd-ud-paylas a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f4f5f7;
    color: #55555f;
    font-size: 13px;
    transition: .25s;
}

.dd-ud-paylas a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* --- Sekmeler --- */
.dd-ud-sekmeler .nav-tabs {
    border: 0;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 20px !important;
}

.dd-ud-sekmeler .nav-link {
    border: 1px solid #e2e5ea !important;
    border-radius: 8px !important;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #2c3c28;
    background: #fff;
    transition: .25s;
}

.dd-ud-sekmeler .nav-link:hover,
.dd-ud-sekmeler .nav-link.active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
}

.dd-ud-sekme-icerik {
    font-size: 15px;
    line-height: 1.85;
    color: #55555f;
}

.dd-ud-sekme-icerik > *:last-child {
    margin-bottom: 0;
}

.dd-ud-sekme-icerik img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.dd-ud-sekme-icerik table {
    width: 100%;
    margin-bottom: 18px;
    border-collapse: collapse;
}

.dd-ud-sekme-icerik table td,
.dd-ud-sekme-icerik table th {
    padding: 10px 14px;
    border: 1px solid #eceef2;
}

.dd-ud-sekme-icerik table th {
    background: #f7f8fa;
    font-weight: 700;
    color: #16181d;
}

/* Video sekmesi */
.dd-ud-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.dd-ud-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Sağ sütun (yapışkan yardım kartları) --- */
.dd-ud-yan-kart {
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #eceef2;
    border-radius: 14px;
    background: #fff;
}

.dd-ud-yan-kart .dd-ud-yan-baslik {
    font-size: 15px;
    font-weight: 700;
    color: #16181d;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #eceef2;
}

.dd-ud-yan-madde {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.dd-ud-yan-madde:last-child {
    margin-bottom: 0;
}

.dd-ud-yan-madde .dd-ud-yan-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 9px;
    font-size: 14px;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), .09);
}

.dd-ud-yan-madde span {
    font-size: 13.5px;
    line-height: 1.6;
    color: #55555f;
}

.dd-ud-yan-madde strong {
    display: block;
    font-size: 14px;
    color: #16181d;
    margin-bottom: 2px;
}

.dd-ud-yan-madde a {
    color: var(--color-primary);
    font-weight: 700;
}

.dd-ud-yan-kart--vurgu {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.dd-ud-yan-kart--vurgu .dd-ud-yan-baslik {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .16);
}

.dd-ud-yan-kart--vurgu .dd-ud-yan-madde span {
    color: rgba(255, 255, 255, .78);
}

.dd-ud-yan-kart--vurgu .dd-ud-yan-madde strong,
.dd-ud-yan-kart--vurgu .dd-ud-yan-madde a {
    color: #fff;
}

.dd-ud-yan-kart--vurgu .dd-ud-yan-ikon {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.dd-ud-yan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    background: #fff;
    transition: .25s;
}

.dd-ud-yan-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* --- Breadcrumb --- */
.dd-ud-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #86868f;
}

.dd-ud-breadcrumb a {
    color: #55555f;
    transition: color .2s;
}

.dd-ud-breadcrumb a:hover {
    color: var(--color-primary);
}

.dd-ud-breadcrumb i {
    font-size: 9px;
    color: #b9bcc4;
}

.dd-ud-breadcrumb .dd-ud-bc-aktif {
    color: var(--color-primary);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .dd-ud-sepet-btn:hover {
        transform: none;
    }
}
