/* Ürün İnceleme Sayfası Arka Plan */
body.single-product {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* ==========================================
   ÜRÜN DETAY SAYFASI - BUTON DÜZENİ
   WhatsApp üstte, Miktar+Sepet+Favori altta
   ========================================== */

/* Summary alanı düzeni - FLEX DEĞİL BLOCK! */
.woocommerce div.product div.summary,
.summary.entry-summary {
    display: block !important;
    flex-wrap: unset !important;
}

/* Summary içindeki her eleman block olsun */
.woocommerce div.product div.summary > * {
    display: block;
    width: 100%;
    flex: none !important;
}

/* WhatsApp butonu tam genişlik */
.woocommerce div.product .product-whatsapp-button-wrapper,
.summary .product-whatsapp-button-wrapper {
    width: 100% !important;
    display: block !important;
    margin: 15px 0 !important;
    clear: both !important;
    flex: none !important;
}

/* Sepet formu - Miktar, Sepete Ekle, Favori yan yana */
.woocommerce div.product form.cart:not(.variations_form) {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin-top: 0 !important;
}

/* Varyasyonlu ürünler - form column, içi row */
.woocommerce div.product form.cart.variations_form {
    display: block !important;
}

.woocommerce div.product .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

/* İlgili Ürünler */
.related.products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.related.products h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.related.products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #ff4757;
    border-radius: 3px;
}

/* WooCommerce Varsayılan Sınıfları */
.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    list-style: none !important;
}

.products.columns-4::before,
.products.columns-4::after {
    display: none !important;
}

.products.columns-4 > li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* WooCommerce Link Stilleri - Daha Spesifik Seçiciler */
.woocommerce .related.products li.product a,
.woocommerce-page .related.products li.product a,
.woocommerce .related.products li.product .woocommerce-loop-product__title,
.woocommerce-page .related.products li.product .woocommerce-loop-product__title,
.woocommerce .related.products li.product .price,
.woocommerce-page .related.products li.product .price,
.woocommerce .related.products li.product .button,
.woocommerce-page .related.products li.product .button,
.woocommerce .related.products li.product a:hover,
.woocommerce-page .related.products li.product a:hover,
.woocommerce .related.products li.product a:focus,
.woocommerce-page .related.products li.product a:focus,
.woocommerce .related.products li.product a:active,
.woocommerce-page .related.products li.product a:active {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ürün Başlığı Link Stilleri */
.woocommerce .related.products li.product .woocommerce-loop-product__title {
    color: #333 !important;
    text-decoration: none !important;
}

.woocommerce .related.products li.product .woocommerce-loop-product__title:hover,
.woocommerce .related.products li.product .woocommerce-loop-product__title:focus {
    color: #333 !important;
    text-decoration: none !important;
}

/* Fiyat Link Stilleri */
.woocommerce .related.products li.product .price {
    color: #333 !important;
    text-decoration: none !important;
}

/* Buton Link Stilleri */
.woocommerce .related.products li.product .button {
    color: #fff !important;
    text-decoration: none !important;
}

/* Ürün Kartı Link Stilleri */
.woocommerce .related.products li.product a.woocommerce-LoopProduct-link {
    text-decoration: none !important;
}

/* Ürün Kartı */
.related.products li.product {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid #eee;
    padding: 15px !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related.products li.product:hover {
    transform: translateY(-5px);
}

/* Ürün Görseli */
.related.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* Ürün Başlığı */
.related.products li.product .woocommerce-loop-product__title {
    padding: 0 !important;
    margin: 15px 0 10px 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Fiyat Alanı */
.related.products li.product .price {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 10px 0 !important;
    padding: 0 !important;
    color: #333 !important;
    height: 30px !important;
    min-height: 30px !important;
}

.related.products li.product .price .amount {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Minimum Adet */
.related.products li.product .min-quantity {
    display: inline-block !important;
    font-size: 13px !important;
    color: #fff !important;
    font-weight: 500 !important;
    padding: 4px 8px !important;
    background: #ff4757 !important;
    border-radius: 5px !important;
    text-decoration: none !important;
}

/* Çok Al Az Öde Butonu */
.related.products li.product .button {
    background: #000 !important;
    color: #fff !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    text-align: center !important;
    border-radius: 4px !important;
    margin-top: auto !important;
    transition: background 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    text-decoration: none !important;
}

.related.products li.product .button:hover {
    background: #333 !important;
    color: #fff !important;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .products.columns-4,
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .products.columns-4,
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .products.columns-4,
    .related.products ul.products {
        grid-template-columns: 1fr !important;
    }
    
    .related.products {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
}

/* Ürün Kartı */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 15px;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-image .secondary-image {
    opacity: 0;
}

.product-card:hover .primary-image {
    opacity: 0;
}

.product-card:hover .secondary-image {
    opacity: 1;
}

.product-title {
    padding: 15px 15px 10px;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    height: auto;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price-container {
    padding: 0 15px 15px;
}

.price-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.min-quantity {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    padding: 4px 8px;
    background: #ff4757;
    border-radius: 5px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.bulk-discount {
    background: #000;
    padding: 12px 15px;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.bulk-discount i {
    color: #ff4757;
}

/* WooCommerce Link Stilleri */
.woocommerce ul.products li.product a,
.woocommerce-page ul.products li.product a,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    text-decoration: none !important;
    color: #333 !important;
}

.woocommerce ul.products li.product a:hover,
.woocommerce-page ul.products li.product a:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title:hover {
    color: #333 !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    color: #333 !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    text-decoration: none !important;
}

/* Global Link Stilleri - En Üste Ekle */
.woocommerce a,
.woocommerce-page a,
.woocommerce a:hover,
.woocommerce-page a:hover,
.woocommerce a:focus,
.woocommerce-page a:focus,
.woocommerce a:active,
.woocommerce-page a:active,
.woocommerce a:visited,
.woocommerce-page a:visited,
.woocommerce .related.products a,
.woocommerce-page .related.products a,
.woocommerce .related.products .woocommerce-loop-product__title,
.woocommerce-page .related.products .woocommerce-loop-product__title,
.woocommerce .related.products .price,
.woocommerce-page .related.products .price,
.woocommerce .related.products .button,
.woocommerce-page .related.products .button,
.woocommerce ul.products li.product a,
.woocommerce-page ul.products li.product a,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Ürün Başlığı Özel Stilleri */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Fiyat Özel Stilleri */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.woocommerce ul.products li.product .price *,
.woocommerce-page ul.products li.product .price * {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Buton Özel Stilleri */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Ürün Linki Özel Stilleri */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* TL Sembolü İçin Özel Stil */
.woocommerce-Price-currencySymbol {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Breadcrumb ve Product Meta'yı Gizle */
.woocommerce-breadcrumb,
.product_meta {
    display: none !important;
}

/* Ürün Galerisi Stilleri */
.woocommerce-product-gallery {
    position: relative !important;
    margin-bottom: 30px !important;
}

.woocommerce-product-gallery__wrapper {
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Ana Görsel Zoom Efekti */
.woocommerce-product-gallery__image {
    position: relative !important;
    cursor: zoom-in !important;
}

.woocommerce-product-gallery__image a {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce-product-gallery__image img {
    transition: transform 0.3s ease !important;
    width: 100% !important;
    height: auto !important;
}

.woocommerce-product-gallery__image:hover img {
    transform: scale(1.05) !important;
}

/* Fancybox Özelleştirmeleri */
.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.95) !important;
}

.fancybox__toolbar {
    --fancybox-color: #fff !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.fancybox__nav {
    --fancybox-color: #fff !important;
}

.fancybox__button {
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
}

.fancybox__button:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Küçük Görseller */
.flex-control-nav {
    margin-top: 15px !important;
    padding: 0 !important;
    display: flex !important;
    gap: 10px !important;
    list-style: none !important;
}

.flex-control-nav li {
    width: auto !important;
    flex: 1 !important;
}

.flex-control-nav img {
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
}

/* Aktif/Seçili Görsel Stili */
.flex-control-nav img.flex-active,
.flex-control-nav img:hover {
    border-color: #ff4757 !important;
    opacity: 1 !important;
}

/* Kısa Açıklama Alanı Stilleri */
.woocommerce-product-details__short-description {
    position: relative;
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.woocommerce-tabs .wc-tabs {
    display: none !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel--description {
    display: none !important;
}

.woocommerce-product-details__short-description p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    padding-top: 15px;
}

/* Güvenli Alışveriş Özellikleri */
.shopping-features {
    margin-top: 50px;
    padding: 30px 0;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: #ff4757;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-item i {
        font-size: 2rem;
    }
    
    .feature-item h3 {
        font-size: 1rem;
    }
}