/* ==========================================================================
   ÜRÜN DETAY — PREMIUM TASARIM  (urun.detay.css)
   Bağlanma: urun.detay.php başında <link> ile yüklenir
   ========================================================================== */

/* --------------------------------------------------------------------------
   GENEL KAPSAYICI & LAYOUT
   -------------------------------------------------------------------------- */
.ud-wrap {
    font-family: inherit;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#frmUrun {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Galeri + Sağ panel iki sütun (Flex tabanlı, Swiper ile %100 güvenli) */
.ud-layout {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    align-items: flex-start;
    width: calc(100% + 30px);
    max-width: calc(100% + 30px);
    min-width: 0;
    box-sizing: border-box;
}

.ud-gallery-col {
    flex: 0 0 45%;
    max-width: 45%;
    width: 45%;
    min-width: 0; /* Swiper genişlik taşmasını önleyen kritik kural */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.ud-info {
    flex: 0 0 55%;
    max-width: 55%;
    width: 55%;
    min-width: 0;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 991.98px) {
    .ud-gallery-col {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-bottom: 28px;
    }
    .ud-info {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   SOL PANEL — GALERİ (SWIPER)
   -------------------------------------------------------------------------- */
.ud-gallery-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 20px -4px rgba(1, 41, 79, 0.08);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 440px;
    display: block;
    box-sizing: border-box;
}

@media (max-width: 575.98px) {
    .ud-gallery-main {
        height: 320px;
    }
}

.ud-gallery-main .swiper-wrapper {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.ud-gallery-main .swiper-slide {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

.ud-gallery-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.ud-gallery-main .swiper-slide img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.ud-gallery-main .swiper-slide img:hover {
    transform: scale(1.04);
}

/* Swiper nav arrows premium */
.ud-gallery-main .swiper-button-next,
.ud-gallery-main .swiper-button-prev {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    color: #1e293b;
    transition: all 0.2s ease;
}

.ud-gallery-main .swiper-button-next:hover,
.ud-gallery-main .swiper-button-prev:hover {
    background: rgba(1, 124, 198, 0.95);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(1, 124, 198, 0.3);
}

.ud-gallery-main .swiper-button-next::after,
.ud-gallery-main .swiper-button-prev::after {
    font-size: 13px;
    font-weight: 800;
}

/* Thumbnail strip */
.ud-gallery-thumbs {
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 2px 0;
    box-sizing: border-box;
}

.ud-gallery-thumbs .swiper-slide {
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #eef2f7;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ud-gallery-thumbs .swiper-slide img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ud-gallery-thumbs .swiper-slide-thumb-active {
    border-color: #017cc6;
    box-shadow: 0 0 0 2px rgba(1, 124, 198, 0.25);
}

.ud-gallery-main .swiper-slide iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   SOL GALERİ ALTI GÜVENCE KARTLARI (SOL BOŞLUĞU DOLDURUR)
   -------------------------------------------------------------------------- */
.ud-gallery-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-sizing: border-box;
}

.ud-gb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    transition: all 0.22s ease;
}

.ud-gb-item:hover {
    border-color: rgba(1, 124, 198, 0.3);
    box-shadow: 0 4px 14px rgba(1, 124, 198, 0.08);
    transform: translateX(4px);
}

.ud-gb-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(1, 124, 198, 0.12) 0%, rgba(1, 79, 151, 0.06) 100%);
    color: #017cc6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.ud-gb-item:hover .ud-gb-icon {
    background: linear-gradient(135deg, #014f97, #017cc6);
    color: #ffffff;
}

.ud-gb-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ud-gb-text strong {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.ud-gb-text span {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   SAĞ PANEL — ÜRÜN BİLGİSİ
   -------------------------------------------------------------------------- */

/* Başlık */
.ud-title {
    font-size: clamp(18px, 2.2vw, 25px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
}

/* Kod / Meta satırı */
.ud-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ud-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ud-badge-code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.ud-badge-stock-ok {
    background: #ecfdf3;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.ud-badge-stock-no {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.ud-badge-viewers {
    background: rgba(1, 124, 198, 0.06);
    border: 1px solid rgba(1, 124, 198, 0.18);
    color: #017cc6;
}

/* Puan satırı */
.ud-points-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* CV/PV blokları (üye için) */
.ud-cv-pv {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ud-cv-pv-card {
    flex: 1;
    min-width: 90px;
    background: linear-gradient(135deg, rgba(1, 79, 151, 0.07) 0%, rgba(1, 124, 198, 0.04) 100%);
    border: 1px solid rgba(1, 124, 198, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ud-cv-pv-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ud-cv-pv-value {
    font-size: 17px;
    font-weight: 800;
    color: #014f97;
}

/* Fiyat */
.ud-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.ud-price-old {
    font-size: 18px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

.ud-price-new {
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 900;
    color: #014f97;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ud-price-euro {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

/* Fiyat tablosu (üye için) */
.ud-price-table {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.ud-price-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13.5px;
}

.ud-price-row-item:last-child {
    border-bottom: none;
}

.ud-price-row-item .label {
    font-weight: 600;
    color: #64748b;
}

.ud-price-row-item .value {
    font-weight: 800;
    color: #0f172a;
}

.ud-price-row-item.highlight .value {
    color: #014f97;
    font-size: 15px;
}

.ud-price-row-item.earning .value {
    color: #059669;
}

/* Adet + Sepete Ekle */
.ud-cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ud-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
}

.ud-qty-btn {
    width: 38px;
    height: 44px;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.ud-qty-btn:hover {
    background: #e0f2fe;
    color: #017cc6;
}

.ud-qty-input {
    width: 44px;
    height: 44px;
    border: none;
    border-left: 1.5px solid #e2e8f0;
    border-right: 1.5px solid #e2e8f0;
    background: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    padding: 0;
}

/* Sepete Ekle butonu */
.ud-add-btn {
    flex: 1;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #014f97 0%, #017cc6 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(1, 124, 198, 0.28);
    white-space: nowrap;
}

.ud-add-btn:hover {
    background: linear-gradient(135deg, #013a71 0%, #015fa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(1, 124, 198, 0.40);
}

.ud-add-btn i {
    font-size: 16px;
}

/* Tükendi butonu */
.ud-sold-btn {
    flex: 1;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: #f1f5f9;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: not-allowed;
}

/* Gelince Haber Ver */
.ud-notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    border: 1.5px solid #017cc6;
    color: #017cc6;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ud-notify-btn:hover {
    background: #017cc6;
    color: #ffffff;
}

/* Favori */
.ud-fav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s ease;
    font-size: 18px;
    flex-shrink: 0;
}

.ud-fav-btn:hover,
.ud-fav-btn.active {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #e11d48;
    transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   HIZLI TESLİMAT & GÜVENCE ŞERİDİ
   -------------------------------------------------------------------------- */
.ud-trust-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(1, 124, 198, 0.06) 0%, rgba(1, 79, 151, 0.02) 100%);
    border: 1px solid rgba(1, 124, 198, 0.16);
    border-radius: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ud-ts-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #014f97;
}

.ud-ts-item i {
    color: #017cc6;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   ÜRÜN İÇERİĞİ / KISA AÇIKLAMA KARTI (KOMPAKT & AKICI)
   -------------------------------------------------------------------------- */
.ud-desc-card {
    background: #ffffff;
    border: 1.5px solid #eef2f7;
    border-radius: 16px;
    box-shadow: 0 4px 18px -4px rgba(1, 41, 79, 0.06);
    overflow: hidden;
    margin-top: 16px;
    transition: all 0.25s ease;
}

.ud-desc-card:hover {
    border-color: rgba(1, 124, 198, 0.28);
    box-shadow: 0 8px 24px -4px rgba(1, 124, 198, 0.12);
}

.ud-desc-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 11px 16px;
    border-bottom: 1px solid #eef2f7;
    font-size: 13px;
    font-weight: 800;
    color: #014f97;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.ud-desc-card-header i {
    color: #017cc6;
    font-size: 15px;
}

.ud-desc-short {
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #334155;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.ud-desc-short::-webkit-scrollbar {
    width: 5px;
}

.ud-desc-short::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.ud-desc-short p {
    margin-bottom: 8px;
}

.ud-desc-short p:last-child {
    margin-bottom: 0;
}

/* Görsel ve tablo geliştirmeleri */
.ud-desc-short img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(1, 41, 79, 0.07);
    margin: 8px auto 14px auto;
    display: block;
    background: #ffffff;
    padding: 6px;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.ud-desc-short img:hover {
    transform: scale(1.02);
}

.ud-desc-short table {
    width: 100% !important;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    font-size: 13px;
    margin: 12px 0;
}

.ud-desc-short table th {
    background: linear-gradient(135deg, #014f97, #017cc6);
    color: #ffffff;
    padding: 10px 14px;
    font-weight: 700;
    text-align: left;
}

.ud-desc-short table td {
    padding: 9px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.ud-desc-short table tr:nth-child(even) {
    background: #f8fafc;
}

/* --------------------------------------------------------------------------
   SOSYAL PAYLAŞIM ÇUBUĞU
   -------------------------------------------------------------------------- */
.ud-social-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    margin-top: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.ud-social-label {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ud-social-label i {
    color: #017cc6;
    font-size: 14px;
}

.ud-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ud-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.22s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ud-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ud-social-btn.fb:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.ud-social-btn.tw:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.ud-social-btn.li:hover {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}

.ud-social-btn.wa:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

/* Eşleştirilen ürünler (RefKodu) */
.ud-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ud-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    text-decoration: none !important;
    flex: 1;
    min-width: 140px;
}

.ud-related-item:hover {
    border-color: #017cc6;
    box-shadow: 0 4px 12px rgba(1, 124, 198, 0.12);
    transform: translateY(-1px);
}

.ud-related-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
    flex-shrink: 0;
}

.ud-related-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   GÜVENLİ HİZMET / ÖZELLİK ROZETLERİ (FEATURES GRID)
   -------------------------------------------------------------------------- */
.ud-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
    width: 100%;
}

@media (max-width: 991.98px) {
    .ud-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 575.98px) {
    .ud-features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.ud-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: 0 2px 14px -2px rgba(1, 41, 79, 0.05);
    transition: all 0.25s ease;
}

.ud-feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(1, 124, 198, 0.3);
    box-shadow: 0 6px 20px -2px rgba(1, 124, 198, 0.12);
}

.ud-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(1, 124, 198, 0.12) 0%, rgba(1, 79, 151, 0.06) 100%);
    color: #017cc6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.ud-feature-card:hover .ud-feature-icon {
    background: linear-gradient(135deg, #014f97 0%, #017cc6 100%);
    color: #ffffff;
    transform: scale(1.06);
}

.ud-feature-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.ud-feature-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   ALT BÖLÜM — PREMIUM SEKMELER (TABS SECTION)
   -------------------------------------------------------------------------- */
.ud-tabs-section {
    margin-top: 24px;
    width: 100%;
}

.ud-tabs-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    box-shadow: 0 4px 24px -4px rgba(1, 41, 79, 0.07);
    overflow: hidden;
}

.ud-tabs-header-wrap {
    padding: 12px 20px 0 20px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}

.ud-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: -1px;
}

.ud-tabs-nav::-webkit-scrollbar {
    display: none;
}

.ud-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.22s ease;
    letter-spacing: 0.01em;
    border-radius: 8px 8px 0 0;
}

.ud-tab-btn i {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.ud-tab-btn:hover {
    color: #017cc6;
    background: rgba(1, 124, 198, 0.04);
}

.ud-tab-btn:hover i {
    transform: scale(1.15);
}

.ud-tab-btn.active {
    color: #014f97;
    border-bottom-color: #014f97;
    background: #ffffff;
    font-weight: 800;
}

.ud-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 12px;
    background: rgba(1, 79, 151, 0.1);
    color: #014f97;
    font-size: 11px;
    font-weight: 800;
    margin-left: 2px;
}

.ud-tab-btn.active .ud-tab-count {
    background: #014f97;
    color: #ffffff;
}

.ud-tabs-body {
    padding: 28px 24px;
}

@media (max-width: 575.98px) {
    .ud-tabs-body {
        padding: 20px 16px;
    }
}

.ud-tab-pane {
    display: none;
    animation: udFadeIn 0.28s ease;
}

.ud-tab-pane.active {
    display: block;
}

@keyframes udFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ud-tab-pane-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.ud-tab-pane-title i {
    color: #017cc6;
    font-size: 17px;
}

/* Değerler tablosu */
.ud-values-table-wrapper {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.ud-values-table-wrapper table,
.ud-tab-pane table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ud-tab-pane table thead tr th {
    background: linear-gradient(135deg, #014f97, #017cc6);
    color: #ffffff;
    padding: 13px 18px;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    letter-spacing: 0.03em;
}

.ud-tab-pane table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.ud-tab-pane table tbody tr:hover {
    background: #f0f9ff;
}

.ud-tab-pane table tbody tr td {
    padding: 12px 18px;
    font-size: 13.5px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.5;
}

/* Açıklama */
.ud-desc-content {
    font-size: 14.5px;
    line-height: 1.8;
    color: #334155;
}

.ud-desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}

.ud-desc-content p {
    margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   YORUMLAR / DEĞERLENDİRMELER
   -------------------------------------------------------------------------- */
.ud-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 22px 24px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    flex-wrap: wrap;
}

.ud-review-summary-box {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ud-review-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #014f97 0%, #017cc6 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 16px 24px;
    min-width: 110px;
    box-shadow: 0 4px 16px rgba(1, 124, 198, 0.25);
}

.ud-review-score-num {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.ud-review-score-stars {
    font-size: 14px;
    margin-top: 4px;
    color: #fbbf24;
}

.ud-review-score-sub {
    font-size: 11.5px;
    opacity: 0.88;
    margin-top: 4px;
}

.ud-review-summary-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.ud-review-summary-text {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0;
    max-width: 450px;
}

.ud-review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ud-review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 22px;
    transition: all 0.22s ease;
}

.ud-review-card:hover {
    border-color: rgba(1, 124, 198, 0.3);
    box-shadow: 0 4px 18px -4px rgba(1, 41, 79, 0.08);
}

.ud-review-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ud-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #014f97 0%, #017cc6 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(1, 79, 151, 0.25);
}

.ud-review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ud-review-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ud-review-verified {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ud-review-date {
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ud-review-rating-stars {
    margin-left: auto;
    font-size: 13.5px;
}

.ud-review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid #f1f5f9;
}

.ud-review-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.ud-review-empty-icon {
    font-size: 38px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.ud-review-empty-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.ud-review-empty-desc {
    font-size: 13px;
    margin-top: 4px;
}

/* Satın almadıysa uyarı */
.ud-review-info-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 12.5px;
    color: #78350f;
}

/* Değerlendir butonu */
.ud-evaluate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: linear-gradient(135deg, #014f97, #017cc6);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 3px 10px rgba(1, 124, 198, 0.25);
}

.ud-evaluate-btn:hover {
    background: linear-gradient(135deg, #013a71, #015fa0);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1, 124, 198, 0.38);
}

/* --------------------------------------------------------------------------
   YORUM PANELI (slide-in drawer)
   -------------------------------------------------------------------------- */
.ud-comment-overlay {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 19, 38, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
}

.ud-comment-overlay.active {
    visibility: visible;
    opacity: 1;
}

.ud-comment-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 95vw);
    background: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(1, 41, 79, 0.18);
}

.ud-comment-overlay.active .ud-comment-drawer {
    transform: translateX(0);
}

.ud-comment-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #014f97, #017cc6);
    color: #ffffff;
}

.ud-comment-drawer-title {
    font-size: 16px;
    font-weight: 700;
}

.ud-comment-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.ud-comment-drawer-close:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: rotate(90deg);
}

.ud-comment-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.ud-comment-drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ud-comment-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #014f97, #017cc6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.22s ease;
}

.ud-comment-submit-btn:hover {
    background: linear-gradient(135deg, #013a71, #015fa0);
}

.ud-stars-input {
    display: flex;
    gap: 4px;
    margin: 8px 0;
}

.ud-stars-input .productPoists {
    display: flex;
    gap: 4px;
}

.ud-comment-textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1e293b;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
    min-height: 100px;
    font-family: inherit;
    box-sizing: border-box;
}

.ud-comment-textarea:focus {
    border-color: #017cc6;
    box-shadow: 0 0 0 3px rgba(1, 124, 198, 0.1);
}

/* --------------------------------------------------------------------------
   HATA DURUMU (ürün bulunamadı)
   -------------------------------------------------------------------------- */
.ud-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    gap: 16px;
}

.ud-not-found-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fef2f2;
    border: 2px solid #fca5a5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #e11d48;
}

.ud-not-found-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.ud-not-found-text {
    font-size: 14px;
    color: #64748b;
}

/* --------------------------------------------------------------------------
   VARYASYON (mevcut sistem uyumu)
   -------------------------------------------------------------------------- */
.diger-varyasyonlar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.diger-varyasyonlar li {
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    padding: 6px;
    width: calc(20% - 10px);
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .diger-varyasyonlar li {
        width: calc(33.33% - 8px);
    }
}

.diger-varyasyonlar li:hover {
    border-color: #017cc6;
}
.diger-varyasyonlar li.selected {
    border-color: #014f97;
}

.diger-varyasyonlar .selected-active {
    visibility: hidden;
    opacity: 0;
    background: #014f97;
    color: white;
    font-size: 9px;
    width: 14px;
    height: 14px;
    position: absolute;
    right: -3px;
    top: -3px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.diger-varyasyonlar li.selected .selected-active {
    visibility: visible;
    opacity: 1;
}

.diger-varyasyonlar .resim img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.diger-varyasyonlar a {
    display: flex;
    position: relative;
    text-decoration: none !important;
}

.diger-varyasyonlar .detay {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.diger-varyasyonlar .adi {
    height: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1e293b;
    font-size: 12px;
    width: 50px;
}

.diger-varyasyonlar .fiyat {
    display: block;
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .ud-title {
        font-size: 18px;
    }
    .ud-price-new {
        font-size: 28px;
    }
    .ud-add-btn {
        font-size: 13px;
        padding: 11px 20px;
    }
    .ud-comment-drawer-body {
        padding: 16px;
    }
}
