/* Genel wrapper */
.product-wrapper {
    width: 95%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 0;
}

/* Ana konteyner */
.product-single {
    width: 100%;
    padding: 0;
}

/* Ürün bilgileri container */
.product-container {
    width: 100%;
    padding: 0;
}

/* Ürün bilgileri wrapper */
.product-info-wrapper {
    display: flex;
    gap: 3rem;
}

/* Sol bölüm - Ürün görselleri */
.product-gallery-section {
    width: 65%;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sağ bölüm - Ürün detayları */
.product-details-section {
    width: 35%;
}

/* Mobil responsive */
@media (max-width: 768px) {
    .product-wrapper {
        width: 100%;
        padding: 1rem;
    }

    .product-single {
        width: 100%;
        padding: 0;
    }

    .product-container {
        width: 100%;
        padding: 0;
    }

    .product-info-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .product-gallery-section,
    .product-details-section {
        width: 100%;
    }

    .product-reviews-section {
        padding: 1rem;
    }
}

/* Ürün başlık ve fiyat stilleri */
.product_title {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: left;
    font-family: var(--primary-font);
}

/* Fiyat stilleri */
.price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 0.5rem;
}

/* İndirimli fiyat */
.price ins {
    font-size: 22px;
    font-weight: 600;
    color: #202020;
    text-decoration: none;
    line-height: 1;
}

/* İndirimsiz fiyat (üstü çizili) */
.price del {
    font-size: var(--text-sm);
    color: var(--text-light);
    text-decoration: line-through;
    line-height: 1;
}

/* Normal fiyat (indirim yokken) */
.price > .woocommerce-Price-amount {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #202020 !important;
    line-height: 1 !important;
}

/* Fiyat miktarı ve sembol */
.woocommerce-Price-amount {
    color: inherit !important;
}

.woocommerce-Price-currencySymbol {
    color: inherit !important;
}

/* Varyasyon seçimleri */
.variations {
    margin-bottom: 50px;
}

.variations tr {
    display: block;
    margin-bottom: 0;
}

.variations tr:first-child {
    margin-bottom: 25px !important;
}

.variations [data-attribute_name="attribute_pa_renk"] {
    margin-bottom: 25px !important;
}

.variations td {
    display: block;
}

.variations td.label {
    margin-bottom: 0.5rem;
}

.variations td.label label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--primary-font);
}

.variations td.label label::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--primary-accent) !important;
    border-radius: 2px;
}

.variations td.value {
    padding: 0;
}

.variations select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Miktar seçici */
.quantity {
    width: 100px;
    position: relative;
}

/* Miktar label - Container'ın üstünde */
.woocommerce-variation-add-to-cart::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--primary-accent) !important;
    border-radius: 2px;
    position: absolute;
    top: -25px;
    left: 0;
    transform: translateY(3px);
}

.woocommerce-variation-add-to-cart::after {
    content: 'Miktar';
    position: absolute;
    top: -25px;
    left: 17px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-accent) !important;
    font-family: var(--primary-font);
    line-height: 20px;
}

/* Container */
.woocommerce-variation-add-to-cart {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 50px !important;
    position: relative !important; /* Label için pozisyon */
}

/* Sepete ekle butonu */
.single_add_to_cart_button {
    flex: 1;
    height: 48px;
    background-color: #202020 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--text-base) !important;
    padding: 0 20px;
    transition: all 0.2s ease;
    font-family: var(--primary-font);
    line-height: 1;
}

.single_add_to_cart_button:hover {
    background-color: #151515 !important;
}

/* Renk seçenekleri */
.color-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-filter {
    position: relative;
}

.color-filter input[type="radio"] {
    display: none;
}

.color-filter label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.color-filter .color-box {
    width: 100%;
    position: relative;
}

.color-filter .color-box::before {
    content: '';
    display: block;
    padding-top: calc(4 / 16 * 100%);
}

.color-filter .color-box span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.color-filter .color-name {
    font-size: var(--text-xs);
    color: var(--text-color);
    font-family: var(--primary-font);
}

.color-filter input[type="radio"]:checked + label {
    border-color: #202020;
    background-color: transparent;
}

.color-filter input[type="radio"]:checked + label .color-name {
    color: var(--text-color);
}

/* Beden seçenekleri */
.size-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 0;
}

.size-filter {
    position: relative;
}

.size-filter input[type="radio"] {
    display: none;
}

.size-filter label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.size-filter label span {
    font-size: var(--text-xs);
    color: var(--text-color);
    font-family: var(--primary-font);
}

.size-filter input[type="radio"]:checked + label {
    border-color: #202020;
    background-color: transparent;
}

.size-filter input[type="radio"]:checked + label span {
    color: var(--text-color);
}

/* Hover efektleri */
.color-filter label:hover,
.size-filter label:hover {
    border-color: #202020;
}

/* Varyasyon başlıklar */
.variations .label label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-accent) !important;
}

.variations .label label::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--primary-accent) !important;
    border-radius: 2px;
}

/* Renk seçenekleri */
.variations .value {
    padding: 0;
}

/* Renk grid */
.variations [data-attribute_name="attribute_pa_renk"] .value {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Beden seçenekleri */
.variations [data-attribute_name="attribute_pa_beden"] .value {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 0;
}

/* Alt kısım - Sepete ekle, miktar ve favori */


.cart-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Favoriye ekle butonu */
.add-to-wishlist {
    flex: 1;
    height: 48px;
    background-color: #d06262;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: var(--text-base) !important;
    padding: 0 20px;
    transition: all 0.2s;
    font-family: var(--primary-font);
}

.add-to-wishlist:hover {
    background-color: #c55757;
}

/* Sepete ekle ve favori butonları container */
.woocommerce-variation-add-to-cart {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 50px !important;
}

/* Quantity alanını zorla */
.woocommerce div.product form.cart div.quantity,
.woocommerce-variation-add-to-cart .quantity {
    width: 100px !important;
    margin: 0 !important;
    flex: none !important;
}

.woocommerce .quantity .qty,
.woocommerce-variation-add-to-cart .quantity input {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    text-align: center !important;
    font-size: var(--text-base) !important;
}

/* Butonlar */
.single_add_to_cart_button,
.add-to-wishlist {
    flex: 1 !important;
    height: 48px !important;
    margin: 0 !important;
}

/* Varyasyonlar arası boşluk */
.variations > tbody > tr:first-child {
    margin-bottom: 25px !important;
}

/* Cart icon düzeltmesi */
.single-product .header-icon i,
.single-product .header-icon svg {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 18px !important;
}

/* Cart icon düzeltmesi */
.single-product .header-icon.cart i,
.single-product .header-icon.cart svg {
    display: flex !important;
}

/* Diğer ikonlar için düzeltme */
.single-product .header-icon.wishlist i,
.single-product .header-icon.profile i,
.single-product .header-icon.search-toggle i {
    display: flex !important;
}

/* Buton iconları düzeltmesi */
.single_add_to_cart_button::before,
.add-to-wishlist::before {
    display: none !important; /* İkonları gizle */
}

/* Diğer icon kodlarını kaldıralım */
.header-icon i,
.header-cart i,
.single_add_to_cart_button::before,
.add-to-wishlist::before {
    display: none !important;
}

/* Önce eski kodları temizleyelim */
.variations tr,
.variations tr:first-child,
.variations [data-attribute_name="attribute_pa_renk"],
.variations > tbody > tr:first-child {
    margin-bottom: 0;
}

/* Sonra tek bir yerde tanımlayalım */
.variations .variation-row {
    margin-bottom: 25px;
}

.variations .variation-row:last-child {
    margin-bottom: 0;
}

/* Yorumlar bölümü - Sadece container stili */
.product-reviews-section {
    width: 95%;
    margin: 3rem auto;
    max-width: var(--max-width);
}

/* Responsive */
@media (max-width: 768px) {
    .product-reviews-section {
        width: 100%;
        padding: 0 1rem;
    }
}

/* Fiyat rengi */
.woocommerce-Price-amount {
    color: #202020 !important;
}

/* TL sembolü */
.woocommerce-Price-currencySymbol {
    color: #202020 !important;
}

/* Stok rozeti stilleri */
.woocommerce-variation-availability {
    display: none !important;
}

/* Eski stok stili tanımlamalarını kaldır */
.woocommerce div.product .woocommerce-variation-availability p.stock,
.woocommerce div.product .woocommerce-variation-availability p.in-stock,
.woocommerce div.product .woocommerce-variation-availability p.low-stock,
.woocommerce div.product .woocommerce-variation-availability p.out-of-stock {
    display: none !important;
}

/* Buton grubu */
.button-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Sepete ekle butonu */
.single_add_to_cart_button {
    flex: 1;
    height: 48px;
    background-color: #202020 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--text-base) !important;
    padding: 0 20px;
    transition: all 0.2s ease;
    font-family: var(--primary-font);
    line-height: 1;
}

.single_add_to_cart_button:hover {
    background-color: #151515 !important;
}

.single_add_to_cart_button img {
    width: 20px;
    height: 20px;
}

/* Favoriye ekle butonu */
.add-to-wishlist-button {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 4px;
    background: #FFE8E8;
    color: #FF3B30;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.add-to-wishlist-button:hover {
    background: #FFD6D6;
    transform: translateY(-1px);
}

.add-to-wishlist-button.in-wishlist {
    background: #FF3B30;
    color: white;
}

/* İkon stili */
.add-to-wishlist-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.add-to-wishlist-button:hover svg {
    transform: scale(1.1);
}

.add-to-wishlist-button.in-wishlist svg {
    animation: heartPop 0.3s ease forwards;
}

/* Kalp animasyonu */
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Miktar input */
.quantity {
    margin-right: 0 !important;
}

.quantity input {
    height: 48px !important;
    width: 80px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    text-align: center !important;
}

/* İkon stilleri */
.single_add_to_cart_button svg {
    width: 20px;
    height: 20px;
    margin-top: -2px;
    vertical-align: middle;
}

/* Rozet stilleri */
.product-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 8px 0 16px;
}

/* Değerlendirme rozeti */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    background: #FFF8E8;
    color: #FFB800;
}

/* WooCommerce yıldız stilleri */
.rating-badge .star-rating {
    float: none !important;
    margin: 0 !important;
    font-family: star !important; /* WooCommerce yıldız fontu */
    font-size: 1em !important;
    height: 1em !important;
    line-height: 1 !important;
    width: 5.4em !important;
    color: #FFB800 !important;
}

.rating-badge .star-rating::before {
    color: #FFB800 !important;
    opacity: 0.3 !important;
}

.rating-badge .star-rating span::before {
    color: #FFB800 !important;
}

/* Favori rozeti */
.wishlist-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    width: auto;
    white-space: nowrap;
    background: #FFE8E8;
    color: #FF3B30;
}

.wishlist-count-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Rozetler arası boşluk */
.product-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 16px;
}

/* Rozetler */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px;
}

/* Badge grubu */
.badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* SKU rozeti */
.sku-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    background: #f3f4f6;
    color: #6b7280;
}

.sku-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.sku-label {
    font-weight: 600;
}

/* Stok rozeti */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    background: #dcfce7;
    color: #16a34a;
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

.stock-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Varyasyon stok badge'i */
.variation-stock-badge {
    margin-top: 12px;
}

.variation-stock-badge .stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    background: #dcfce7;
    color: #16a34a;
}

.variation-stock-badge .stock-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Fiyat stili */
.price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 0.5rem;
}

/* İndirim badge'i */
.product-discount-badge {
    margin-top: 0;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #E31837;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.15);
    animation: badgePulse 3s ease-in-out infinite;
}

/* Değerlendirme özeti */
.custom-review-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-average-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.rating-stars {
    display: flex;
    align-items: center;
}

.total-reviews {
    font-size: 14px;
    color: var(--text-light);
}

/* Mobil için düzenlemeler */
@media (max-width: 768px) {
    .custom-review-summary {
        gap: 8px;
    }
    
    .custom-average-rating {
        gap: 6px;
    }
    
    .rating-number {
        font-size: 20px;
    }
    
    .total-reviews {
        font-size: 12px;
    }
}

/* Ürün fiyat stili */
.single-product-price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* İndirimli fiyat için stil */
.single-product-price del {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: line-through;
    order: -1;
    line-height: 1;
    opacity: 0.7;
}

.single-product-price ins {
    text-decoration: none;
    line-height: 1;
    font-weight: 700;
}

/* Mobil için responsive ayarlar */
@media screen and (max-width: 768px) {
    .single-product-price {
        font-size: 1.5rem;
    }
   .single-product-price del {
        font-size: 1rem;
    }
}

/* Rozetler */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 16px;
}

/* İndirimli ürünlerde boşluğu kaldır */
.single-product-price.has-discount {
    margin-bottom: 0;
}

/* WooCommerce'in varsayılan stok gösterimini gizle */
.woocommerce-variation.single_variation {
    display: none !important;
}

/* veya daha spesifik olarak */
.woocommerce-variation-availability {
    display: none !important;
}

/* Breadcrumb Styles */
.product-breadcrumb {
    background-color: var(--header-button-color);
    padding: 0px 0;
    margin-top: -26px;
    margin-bottom: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.product-breadcrumb .container {

    width: 100%;
}

.woocommerce-breadcrumb {
    color: var(--primary-accent);
    font-size: 14px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 10px 10px 10px !important;
    padding: 0;
    line-height: 1;
}

.woocommerce-breadcrumb a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.woocommerce-breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    color: var(--primary-accent);
    opacity: 0.5;
    font-size: 12px;
    line-height: 1;
}

/* Mobil için breadcrumb düzenlemesi */
@media (max-width: 768px) {
    .product-breadcrumb {
        margin-top: -10px;
        margin-left: -4px;
        margin-right: -4px;
        margin-bottom: 20px;
    }

    .woocommerce-breadcrumb {

        gap: 6px;
    }
}
