/* WooCommerce Mağaza Özel Stilleri */

/* Üst Kısım: Sonuç Sayısı ve Sıralama (Top Bar) */
.shop-top-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.shop-top-bar .woocommerce-result-count {
    margin: 0;
    font-size: 14px;
    color: #666;
    float: none;
    text-align: left;
    flex: 1 1 auto;
}

.shop-top-bar .woocommerce-ordering {
    margin: 0;
    float: none;
    text-align: right;
    flex: 0 1 auto;
}

.shop-top-bar .woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    outline: none;
    cursor: pointer;
}

/* Mobil için Top Bar Uyumluluğu */
@media (max-width: 768px) {
    .shop-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .shop-top-bar .woocommerce-result-count {
        margin-bottom: 15px;
        text-align: left;
    }
    .shop-top-bar .woocommerce-ordering {
        text-align: left;
        width: 100%;
    }
    .shop-top-bar .woocommerce-ordering select {
        width: 100%;
    }
}

/* 1:1 Görsel Oranı İçin Özel Class */
.custom-ratio-1-1 {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-color: #f9f9f9;
}

.custom-ratio-1-1 .ImageRatio__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.custom-ratio-1-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fiyat Rengi */
.BooksCard-content__subtitle .woocommerce-Price-amount.amount,
.BooksCard-content__subtitle ins .woocommerce-Price-amount.amount {
    color: #ff4319 !important;
    font-weight: bold;
    text-decoration: none;
}
.BooksCard-content__subtitle del .woocommerce-Price-amount.amount {
    color: #999 !important;
    text-decoration: line-through;
    font-weight: normal;
    margin-right: 5px;
}

/* Kartların yüksekliğini eşit tutarak içeriği esnetmek */
.BooksCard {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.BooksCard-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Sepete Ekle Butonu Konumlandırma Düzeltmeleri */
.BooksCard-content__action {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
}

.BooksCard-content__action .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0;
}

.BooksCard-content__action .added_to_cart {
    display: none !important;
}

/* Store Header Stilleri */
.StoreHeader {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.StoreHeader-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.StoreHeader-logo img {
    max-height: 50px;
    width: auto;
}
.StoreHeader-nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 20px;
}
.StoreHeader-nav > ul > li > a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}
.StoreHeader-nav > ul > li > a:hover {
    color: #00a88e;
}
.StoreHeader-cart-wrapper {
    position: relative;
}
.StoreHeader-cart {
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 5px;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #00a88e;
    color: #fff;
    font-size: 10px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-count:empty {
    display: none;
}

/* Mini Cart Dropdown */
.StoreHeader-mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    border: 1px solid #ddd;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(10px);
}
.StoreHeader-cart-wrapper:hover .StoreHeader-mini-cart {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.StoreHeader-mini-cart .widget_shopping_cart_content .woocommerce-mini-cart {
    display: block !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 450px;
    overflow-y: auto;
}
.StoreHeader-mini-cart .woocommerce-mini-cart-item {
    display: block !important;
    padding: 0 25px 20px 75px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #ebebeb !important; /* HR separator */
    position: relative;
    min-height: 85px;
    text-align: left;
}
.StoreHeader-mini-cart .woocommerce-mini-cart-item:last-child {
    border-bottom: none !important;
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
}
.StoreHeader-mini-cart .woocommerce-mini-cart-item a:not(.remove) {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    line-height: 1.3;
    margin-bottom: 8px;
}
.StoreHeader-mini-cart .woocommerce-mini-cart-item img {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 4px;
    background: #f5f5f5;
}
.StoreHeader-mini-cart .woocommerce-mini-cart-item a.remove {
    position: absolute !important;
    top: -5px !important;
    right: 0 !important;
    left: auto !important;
    color: #999 !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-bottom: 2px !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.StoreHeader-mini-cart .woocommerce-mini-cart-item a.remove:hover {
    background-color: #ff4319 !important;
    color: #fff !important;
}

.StoreHeader-mini-cart .woocommerce-mini-cart-item .quantity {
    display: block !important;
    font-size: 13px !important;
    color: #666 !important;
    margin-top: 5px !important;
}
.StoreHeader-mini-cart .woocommerce-mini-cart-item .quantity .woocommerce-Price-amount {
    color: #000 !important;
    font-weight: 700 !important;
}

/* KDV Toplam Alanı Stilleri */
.mc-cart-total-breakdown {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    display: block !important;
}
.mc-cart-total-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1;
}
.mc-cart-total-row span:last-child {
    color: #000;
    font-weight: 600;
}
.mc-cart-grand-total {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 2px solid #ddd !important;
    font-size: 15px !important;
}
.mc-cart-grand-total span:first-child {
    color: #000 !important;
    font-weight: 800 !important;
}
.mc-cart-grand-total span:last-child {
    color: #ff4319 !important;
    font-weight: 900 !important;
}

.StoreHeader-mini-cart .woocommerce-mini-cart__total {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}
.StoreHeader-mini-cart .woocommerce-mini-cart__buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.StoreHeader-mini-cart .woocommerce-mini-cart__buttons a {
    flex: 1;
    text-align: center;
    padding: 12px !important;
    font-size: 14px !important;
    border-radius: 4px;
    background: #000;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    display: block;
}
.StoreHeader-mini-cart .woocommerce-mini-cart__buttons a.checkout {
    background: #00a88e;
}
.StoreHeader-mini-cart .woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 30px 0;
    color: #888;
}

@media (max-width: 768px) {
    .StoreHeader-content {
        flex-direction: column;
        gap: 15px;
    }
    .StoreHeader-mini-cart {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 300px;
    }
    .StoreHeader-cart-wrapper:hover .StoreHeader-mini-cart {
        transform: translateX(-50%) translateY(0);
    }
}

/* Ürün Detay Sayfası Tasarımı (Single Product) */
.SingleProduct-custom {
    margin-bottom: 50px;
}
.SingleProduct-custom__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}
.SingleProduct-custom__gallery {
    flex: 0 0 45%;
    max-width: 45%;
}
.SingleProduct-custom__summary {
    flex: 1;
}

/* Ürün Başlığı - headlines-h3 dinamikleri */
.SingleProduct-custom__summary h1.product_title {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Fiyat - paragraph-14 dinamikleri + özel renk */
.SingleProduct-custom__summary p.price {
    font-size: 20px;
    color: #ff4319;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.SingleProduct-custom__summary p.price del {
    color: #999;
    font-size: 16px;
    font-weight: 400;
    text-decoration: line-through;
}
.SingleProduct-custom__summary p.price ins {
    text-decoration: none;
}

.SingleProduct-custom__summary .woocommerce-product-details__short-description {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Sepete Ekle Formu ve Miktar Seçici */
.SingleProduct-custom__summary form.cart {
    display: flex;
    align-items: center;
   
    margin-bottom: 40px;
    padding: 25px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.SingleProduct-custom__summary form.cart .quantity {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 6px;
    
}
.SingleProduct-custom__summary form.cart .quantity input.qty {
    width: 50px;
    height: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #000;
    outline: none;
}

/* Sepete Ekle Butonu - Button__primary Button__sm dinamikleri */
.SingleProduct-custom__summary form.cart button.single_add_to_cart_button {
    background-color: #00a88e !important;
    color: #fff !important;
    border: none !important;
    height: 50px !important;
    padding: 0 40px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.SingleProduct-custom__summary form.cart button.single_add_to_cart_button:hover {
    background-color: #008c76 !important;
    box-shadow: 0 5px 15px rgba(0, 168, 142, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* Ürün Meta */
.SingleProduct-custom__summary .product_meta {
    font-size: 13px;
    color: #888;
}
.SingleProduct-custom__summary .product_meta > span {
    display: block;
    margin-bottom: 8px;
}
.SingleProduct-custom__summary .product_meta a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}
.SingleProduct-custom__summary .product_meta a:hover {
    color: #00a88e;
}

@media (max-width: 991px) {
    .SingleProduct-custom__gallery {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}
@media (max-width: 576px) {
    .SingleProduct-custom__summary form.cart {
        flex-direction: column;
        align-items: stretch;
    }
    .SingleProduct-custom__summary form.cart button.single_add_to_cart_button {
        width: 100% !important;
    }
}


/* --- ÜRÜN DETAY EKSİK CSS DÜZELTMELERİ --- */
.SingleProduct-custom__gallery { flex: 0 0 50% !important; max-width: 50% !important; }
.SingleProduct-custom__gallery .woocommerce-product-gallery { width: 100% !important; max-width: 100% !important; margin: 0 !important; float: none !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; overflow: hidden; padding: 20px; background-color: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.SingleProduct-custom__summary form.cart .quantity { 
    margin-right: 10px !important; float: none !important; display: inline-flex; align-items: center; background: #f5f5f5; padding: 5px; border-radius: 6px; }
.woocommerce-tabs { margin-top: 50px; border-top: 2px solid #f0f0f0; padding-top: 30px; clear: both; }
.woocommerce-tabs ul.tabs { display: flex; list-style: none; padding: 0; margin: 0 0 30px 0; border-bottom: 1px solid #eee; gap: 10px; }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 25px; font-size: 16px; font-weight: 700; color: #666; text-decoration: none; border-bottom: 3px solid transparent; transition: all 0.3s; background: #f9f9f9; border-radius: 6px 6px 0 0; }
.woocommerce-tabs ul.tabs li.active a, .woocommerce-tabs ul.tabs li a:hover { color: #000; background: #fff; border-bottom-color: #ff4319; }
.woocommerce-tabs .woocommerce-Tabs-panel h2 { display: none !important; }
.woocommerce-tabs .woocommerce-Tabs-panel p { font-size: 15px; line-height: 1.7; color: #444; }
.related.products { margin-top: 70px; border-top: 2px solid #f0f0f0; padding-top: 50px; }
.related.products > h2 { font-size: 26px; font-weight: 800; margin-bottom: 35px; color: #000; text-transform: uppercase; }
.product-description-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-weight: 400;
    padding-bottom: 1rem;
}
.product-description-title:after{
    margin-top: 0.5rem;
    display: inline-block;
    height: 0.25rem;
    width: 3rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 70 44 / var(--tw-bg-opacity));
    --tw-content: "";
    content: var(--tw-content);
}

 /* -------------------------------------------------------------
 * SEPET TOPLAMLARI (CART TOTALS) KUTUSU
 * ------------------------------------------------------------- */
.woocommerce .cart-collaterals .cart_totals {
    background-color: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    float: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.woocommerce .cart-collaterals .cart_totals h2 {
    font-family: 'Elephant-Medium', sans-serif !important;
    font-size: 28px;
    text-transform: uppercase;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table {
    border: none;
    background: transparent;
    margin-bottom: 30px;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table th {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    font-family: 'Literata', serif;
    font-weight: 600;
    font-size: 16px;
    color: #555;
    text-transform: none;
    width: 40%;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    text-align: right;
    font-family: 'Literata', serif;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table td .amount {
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

/* Genel Toplam (Order Total) Satırı */
.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th,
.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td {
    border-bottom: none;
    padding-top: 30px;
}
.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th {
    font-size: 20px;
    color: #000;
    font-weight: 800;
}
.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td .amount {
    font-size: 28px;
    color: #ff4319; /* Vurgulu Tema Rengi */
    font-weight: 900;
}

/* Ödemeye Git Butonu (Proceed to Checkout) */
.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    background-color: #ff4319; /* MediaCat Turuncusu */
    color: #ffffff;
    font-family: 'Elephant-Medium', sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 67, 25, 0.2);
    margin-bottom: 0;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #e0320c;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 67, 25, 0.3);
}

/* Mobil Uyumluluk (Responsive) */
@media (max-width: 991px) {
    .woocommerce-cart .woocommerce {
        flex-direction: column;
        gap: 30px;
    }
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .woocommerce table.cart td.actions .coupon {
        flex-direction: column;
        align-items: stretch;
    }
    .woocommerce table.cart td.actions .coupon .input-text {
        width: 100%;
        margin-bottom: 10px;
    }
    .woocommerce-cart table.cart td.actions > .button {
        width: 100%;
        margin-top: 20px;
    }
}
