/* Ürün Detay Sayfası Güncellenmiş Stilleri */

/* Ürün Detay Alanı */
.product-detail-section {
    padding: 40px 0 0px;
}

.product-detail-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

/* Ürün Görselleri */
/* Ürün Görselleri - Modern Lüks Slider */
.product-gallery {
    flex: 1;
    max-width: 600px;
    width: 100%;
}

.product-slider-wrapper {
    position: relative;
    width: 100%;
}

/* Ana Görsel Slider Alanı */
.product-main-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 2 / 3;
    max-height: 900px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    border: none;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

.product-main-slider.is-dragging {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #ffffff;
    padding: 0;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Slider Navigasyon Okları */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0.85;
}

.product-main-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-50%) scale(1.08);
    box-shadow: none;
}

.slider-arrow.prev-arrow {
    left: 16px;
}

.slider-arrow.next-arrow {
    right: 16px;
}

/* Sayfa / Resim Sayacı */
.slider-counter-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===================================================
   Küçük Resimler (Thumbnails) Şeridi / Carousel
   =================================================== */
.thumbnails-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 14px;
    gap: 8px;
    width: 100%;
}

.thumbnails-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
    width: 100%;
}

.thumbnails-track::-webkit-scrollbar {
    display: none;
}

.thumbnail-card {
    flex: 0 0 64px;
    width: 64px;
    height: 92px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    background: #ffffff;
    padding: 0;
    opacity: 0.65;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-card:hover {
    opacity: 1;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.thumbnail-card.active {
    opacity: 1;
    border-color: var(--gold-primary, #c5a96f);
    box-shadow: 0 0 0 2px rgba(197, 169, 111, 0.25);
    transform: translateY(-2px);
}

.thumbnail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    pointer-events: none;
}

.thumb-arrow {
    width: 32px;
    height: 92px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: none;
}

.thumb-arrow:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.thumb-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================================================
   Lüks Tam Ekran Lightbox
   =================================================== */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
}

.lightbox-content.is-dragging {
    cursor: grabbing;
}

#lightboxImg {
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

#lightboxImg.is-dragging {
    cursor: grabbing;
    transition: none !important;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.lightbox-arrow:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.prev {
    left: 28px;
}

.lightbox-arrow.next {
    right: 28px;
}

.lightbox-badge {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* Ürün Bilgileri */
.product-info-container {
    flex: 1;
    position: -webkit-sticky;
    position: sticky;
    top: 170px;
    align-self: flex-start;
}

.product-titlee {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

.product-code {
    color: #64748b;
    font-size: 13.5px;
    margin-bottom: 4px;
    text-align: left;
}

.product-code span {
    color: #1e293b;
    font-weight: 500;
}

.product-stock-qty {
    color: #64748b;
    font-size: 13.5px;
    margin-bottom: 20px;
    text-align: left;
}

.product-stock-qty .stock-status.in-stock {
    color: #166534;
    font-weight: 600;
}

.product-stock-qty .stock-status.out-of-stock {
    color: #dc2626;
    font-weight: 600;
}

/* Fiyat Alanı - Modern Lüks Tipografi */
.detail-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 14px;
    margin-bottom: 22px;
}

.detail-current-price {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1;
}

.detail-old-price {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #cbd5e1;
    line-height: 1;
}

.detail-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.08);
}

.detail-discount-badge i {
    font-size: 10px;
}

.detail-product-quantity {
    margin-bottom: 30px;
}

.detail-product-quantity h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left;
}

.detail-quantity-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.detail-quantity-selector {
    display: flex;
    align-items: center;
    width: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 45px;
}

.detail-quantity-btn {
    width: 40px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-quantity-btn:hover {
    color: var(--red-color);
}

.detail-quantity-input {
    width: 40px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    -moz-appearance: textfield;
    appearance: textfield;
    background-color: transparent;
    outline: none;
}

.detail-quantity-input::-webkit-outer-spin-button,
.detail-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.detail-add-to-cart {
    background-color: var(--red-color);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    flex: 1;
    text-transform: uppercase;
    height: 45px;
}

.detail-add-to-cart:hover {
    background-color: var(--red-color-dark);
}

.detail-whatsapp-btn {
    background-color: #25d366 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.detail-whatsapp-btn:hover {
    background-color: #1ebe57 !important;
    color: #fff !important;
}

@media (max-width: 480px) {
    .detail-quantity-actions {
        flex-wrap: wrap;
    }

    .detail-add-to-cart,
    .detail-whatsapp-btn {
        flex-basis: 100%;
    }
}

.detail-wishlist-btn {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #666;
}

.detail-wishlist-btn:hover {
    background-color: #fff;
    border-color: #ddd;
}

.detail-wishlist-btn i {
    color: #666;
    transition: color 0.3s ease;
}

.detail-wishlist-btn:hover i {
    color: var(--red-color);
    font-weight: 900;
}

/* Sosyal Medyada Paylaş */
.product-share-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.share-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    position: relative;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn.share-whatsapp:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
    transform: translateY(-2px);
}

.share-btn.share-facebook:hover {
    background: #1877F2;
    color: #ffffff;
    border-color: #1877F2;
    transform: translateY(-2px);
}

.share-btn.share-twitter:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-2px);
}

.share-btn.share-pinterest:hover {
    background: #E60023;
    color: #ffffff;
    border-color: #E60023;
    transform: translateY(-2px);
}

.share-btn.share-telegram:hover {
    background: #24A1DE;
    color: #ffffff;
    border-color: #24A1DE;
    transform: translateY(-2px);
}

.share-btn.share-copy:hover {
    background: #334155;
    color: #ffffff;
    border-color: #334155;
    transform: translateY(-2px);
}

.share-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #0f172a;
}

.share-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.product-short-desc {
    line-height: 1.7;
    color: #666;
    text-align: left;
}

/* Ürün Açıklaması - Sade ve Doğal Tasarım */
.product-description {
    margin-bottom: 25px;
    background: transparent;
    border: none;
    padding: 0;
}

.product-description h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
    letter-spacing: 0.2px;
}

.description-content {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.75;
}

.description-content p {
    margin-bottom: 8px;
}

.description-content p:last-child {
    margin-bottom: 0;
}




/* Responsive Tasarım */
@media (max-width: 992px) {
    .product-detail-container {
        flex-direction: column;
        align-items: stretch;
    }

    .product-info-container {
        position: static !important;
        top: auto !important;
    }

    .product-gallery {
        max-width: 500px;
        margin: 0 auto;
    }

    .product-main-slider {
        max-height: 750px;
    }
}

@media (max-width: 768px) {
    .product-titlee {
        font-size: 24px;
    }

    .product-features {
        flex-direction: column;
        gap: 15px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .slider-arrow.prev-arrow {
        left: 10px;
    }

    .slider-arrow.next-arrow {
        right: 10px;
    }

    .thumbnail-card {
        flex: 0 0 54px;
        width: 54px;
        height: 78px;
    }

    .thumb-arrow {
        height: 78px;
        width: 26px;
    }

    .lightbox-arrow {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .lightbox-arrow.prev {
        left: 12px;
    }

    .lightbox-arrow.next {
        right: 12px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .product-gallery {
        max-width: 100%;
    }

    .thumbnail-card {
        flex: 0 0 46px;
        width: 46px;
        height: 66px;
    }

    .thumb-arrow {
        height: 66px;
        width: 24px;
    }
}

@media (max-width: 576px) {
    .product-gallery {
        max-width: 100%;
    }

    .thumbnail-card {
        flex: 0 0 46px;
        width: 46px;
        height: 66px;
    }

    .thumb-arrow {
        height: 66px;
        width: 24px;
    }
}