/**
 * WooCommerce Özel Stilleri
 * Fazfood-child temasından adapte edilmiştir
 */

/* Ülke alanını gizle (sadece Türkiye) */
#billing_country_field,
#shipping_country_field {
    display: none !important;
}

/* Custom field'lar - 100% genişlik */
.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row,
.woocommerce-additional-fields__field-wrapper .form-row {
    width: 100% !important;
}

/* Select, input, textarea'ları düzgün göster */
.woocommerce-checkout select,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout textarea {
    width: 100% !important;
    box-sizing: border-box;
}

/* Custom İl/İlçe/Mahalle field'ları */
#billing_il_field,
#billing_ilce_field,
#billing_mahalle_field,
#billing_adres_field,
#billing_ek_adres_field,
#shipping_il_field,
#shipping_ilce_field,
#shipping_mahalle_field,
#shipping_adres_field,
#shipping_ek_adres_field {
    display: block !important;
    width: 100% !important;
}

/* Sepete ekleme sonrası "Sepetim" linkini gizle */
.ege-product-card a.added_to_cart,
.woocommerce ul.products li.product a.added_to_cart,
.product-card a.added_to_cart,
a.added_to_cart.wc-forward,
.ege-product-actions a.added_to_cart,
.ege-product-bottom a.added_to_cart {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Gramaj seçimi için özel CSS */
.ege-weight-option:not(.active) .ege-weight-radio-label {
    background-color: transparent !important;
    color: #333 !important;
    border-color: #ddd !important;
    box-shadow: none !important;
    transform: none !important;
}

.ege-weight-option.active .ege-weight-radio-label {
    background-color: #c33130 !important;
    color: white !important;
    border-color: #c33130 !important;
    box-shadow: 0 3px 8px rgba(195,49,48,0.2) !important;
    transform: translateY(-2px) !important;
    position: relative;
    z-index: 1;
}

/* Ürün kartı stilleri */
.product-block, 
.woocommerce ul.products li.product {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
}

.product-block:hover, 
.woocommerce ul.products li.product:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Ürün resmi */
.product-transition, 
.woocommerce ul.products li.product a img {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 250px !important;
    display: block !important;
}

.product-transition img, 
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    object-position: center center !important;
    -webkit-object-fit: cover !important;
    -webkit-object-position: center center !important;
    transition: transform 0.5s ease;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-block:hover .product-transition img, 
.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Fiyat stilleri */
.products li.product .price,
.woocommerce ul.products li.product .price {
    font-weight: 700;
    color: #c33130 !important;
    font-size: 18px;
    text-align: center;
    display: block;
    margin-bottom: 12px;
}

.products li.product .price del,
.woocommerce ul.products li.product .price del {
    color: #999;
    font-weight: 400;
    font-size: 14px;
    margin-right: 5px;
}

.products li.product .price ins,
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #c33130;
    font-weight: 700;
}

/* Miktar kontrolleri */
.quantity-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #f8f9fa !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    width: 120px !important;
    height: 36px !important;
    margin: 0 auto 10px !important;
    border: 1px solid #dee2e6 !important;
    box-sizing: border-box !important;
}

.quantity-controls .ege-quantity-decrease,
.quantity-controls .ege-quantity-increase {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background-color: #f8f9fa !important;
    border: none !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #444 !important;
}

.quantity-controls .ege-quantity-decrease:hover,
.quantity-controls .ege-quantity-increase:hover {
    background-color: #e9ecef !important;
    color: #c33130 !important;
}

.quantity-controls .ege-quantity {
    flex: 1;
    height: 36px;
    text-align: center;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    -moz-appearance: textfield;
    margin: 0 !important;  
    padding: 0 5px !important;
    min-width: 40px;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
    background-color: #fff !important;
}

.quantity-controls .ege-quantity::-webkit-outer-spin-button,
.quantity-controls .ege-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Sepete ekle butonu */
.ege-variation-add-to-cart {
    width: 140px !important;
    min-width: 120px !important;
    height: 36px !important;
    background: #c33130 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    padding: 0 15px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: background-color 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ege-variation-add-to-cart:hover {
    background-color: #a52928 !important;
}

/* Ürün grid düzeni */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
    -webkit-display: grid;
    -ms-display: grid;
}

@media (max-width: 992px) {
    .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .products {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        display: grid !important;
        -webkit-display: grid !important;
    }
    
    .products li.product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Ücretsiz kargo bildirimi */
.ege-free-shipping-notice {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-align: center;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ege-free-shipping-progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px auto;
    max-width: 85%;
}

.ege-free-shipping-progress {
    height: 100%;
    background-color: #c33130;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .product-transition {
        height: 200px;
    }
    
    .ege-weight-radio-label {
        padding: 7px 10px;
        font-size: 13px;
        min-width: 50px;
    }
}

/* Ana Sayfa Section Stilleri - Tüm sectionlar için 30px padding */
.products-section,
.features-section,
.pre-footer-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

.products-section h2 {
    margin-bottom: 20px !important;
}

/* Products Section Grid Düzeni */
.products-section .ege-products-grid-container,
.ege-kasap-products-section .ege-products-grid-container {
    position: relative;
    width: 100%;
}

.products-section .ege-products-grid,
.products-section .ege-products-grid-container ul.products,
.ege-kasap-products-section .ege-products-grid,
.ege-kasap-products-section ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.products-section .ege-products-grid li.product,
.products-section .ege-products-grid-container ul.products li.product,
.ege-kasap-products-section .ege-products-grid li.product,
.ege-kasap-products-section ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* Safari grid fix */
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    display: block;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
}

.products-section .ege-products-grid li.product .ege-product-card,
.products-section .ege-products-grid-container ul.products li.product .ege-product-card,
.ege-kasap-products-section .ege-products-grid li.product .ege-product-card,
.ege-kasap-products-section ul.products li.product .ege-product-card {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
}

.products-section .ege-products-grid li.product .ege-product-image-wrapper img,
.products-section .ege-products-grid-container ul.products li.product .ege-product-image-wrapper img,
.ege-kasap-products-section .ege-products-grid li.product .ege-product-image-wrapper img,
.ege-kasap-products-section ul.products li.product .ege-product-image-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    -webkit-object-fit: cover !important;
    -webkit-object-position: center center !important;
}

@media (max-width: 1200px) {
    .products-section .ege-products-grid,
    .products-section .ege-products-grid-container ul.products,
    .ege-kasap-products-section .ege-products-grid,
    .ege-kasap-products-section ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .products-section .ege-products-grid,
    .products-section .ege-products-grid-container ul.products,
    .ege-kasap-products-section .ege-products-grid,
    .ege-kasap-products-section ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        display: grid !important;
    }
    
    .products-section .ege-products-grid li.product,
    .products-section .ege-products-grid-container ul.products li.product,
    .ege-kasap-products-section .ege-products-grid li.product,
    .ege-kasap-products-section ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    
    .products-section .ege-products-grid li.product .ege-product-card,
    .products-section .ege-products-grid-container ul.products li.product .ege-product-card,
    .ege-kasap-products-section .ege-products-grid li.product .ege-product-card,
    .ege-kasap-products-section ul.products li.product .ege-product-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    
    .products-section .ege-products-grid li.product .ege-product-image-wrapper,
    .products-section .ege-products-grid-container ul.products li.product .ege-product-image-wrapper,
    .ege-kasap-products-section .ege-products-grid li.product .ege-product-image-wrapper,
    .ege-kasap-products-section ul.products li.product .ege-product-image-wrapper {
        width: calc(100% - 16px) !important;
        margin: 8px !important;
    }
    
    .products-section .ege-products-grid li.product .ege-product-image-wrapper img,
    .products-section .ege-products-grid-container ul.products li.product .ege-product-image-wrapper img,
    .ege-kasap-products-section .ege-products-grid li.product .ege-product-image-wrapper img,
    .ege-kasap-products-section ul.products li.product .ege-product-image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        -webkit-object-fit: cover !important;
        -webkit-object-position: center center !important;
    }
}

.ege-main-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0 auto 40px;
    padding: 0;
    gap: 12px;
    background-color: transparent;
    border-bottom: none;
}

.ege-main-categories li {
    margin: 0;
    padding: 0;
}

.ege-main-categories a {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

.ege-main-categories a:hover {
    background-color: #f8f8f8;
    color: #333;
    border-color: #d0d0d0;
}

.ege-main-categories .active a {
    background-color: #c33130;
    color: #ffffff;
    border-color: #c33130;
    box-shadow: none;
}

@media (max-width: 768px) {
    .ege-main-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow: visible;
        padding: 10px 0 20px;
        margin: 0 0 24px;
    }
    
    .ege-main-categories a {
        padding: 12px 14px;
        font-size: 13px;
        white-space: normal;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.ege-products-grid-container {
    position: relative;
}

.ege-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ege-products-grid-container.loading .ege-loading-overlay {
    display: flex;
}

.ege-loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #c33130;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: ege-spin 1s linear infinite;
    margin-bottom: 10px;
}

.ege-loading-text {
    font-size: 18px;
    font-weight: bold;
    color: #c33130;
}

@keyframes ege-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ege-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    -webkit-display: grid;
    -ms-display: grid;
}

/* Safari için grid fallback */
@supports not (display: grid) {
    .ege-products-grid {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    .ege-products-grid li {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(33.333% - 16px);
        flex: 0 0 calc(33.333% - 16px);
        margin: 8px;
    }
}

/* Yatay Resimli Ürün Kartı */
.ege-product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: none;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
}

.ege-product-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Yatay Resim - 16:10 Oranı - Safari uyumlu */
.ege-product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 12px;
    /* Sabit padding-bottom - tüm tarayıcılarda çalışır */
    padding-bottom: 62.5%; /* 16:10 oranı için */
    height: 0;
    width: calc(100% - 24px);
    flex-shrink: 0;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    -ms-flex-negative: 0;
}

.ege-product-image-wrapper a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.ege-product-image-wrapper img,
.ege-product-image-wrapper .ege-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    -webkit-object-fit: cover;
    -webkit-object-position: center center;
    transition: transform 0.4s ease;
    border-radius: 12px;
    display: block;
    margin: 0;
    padding: 0;
    opacity: 0;
    animation: fadeInImage 0.3s ease-in forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

.ege-product-image-wrapper img[loading="lazy"] {
    opacity: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ege-product-image-wrapper img.loaded,
.ege-product-image-wrapper img[loading="lazy"].loaded {
    opacity: 1;
    animation: fadeInImage 0.3s ease-in forwards;
    background: transparent;
}

.ege-product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #999;
    font-size: 14px;
    border-radius: 12px;
}

.ege-product-card:hover .ege-product-image-wrapper img {
    transform: scale(1.03);
}

/* Ürün Bilgileri */
.ege-product-info {
    padding: 16px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
}

.ege-product-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    flex-shrink: 0;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    -ms-flex-negative: 0;
}

.ege-product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.ege-product-title a:hover {
    color: #c33130;
}

/* Adet Bilgisi */
.ege-product-unit {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    flex-shrink: 0;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    -ms-flex-negative: 0;
}

/* Fiyat */
.ege-product-price {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
    color: #c33130;
    flex-shrink: 0;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    -ms-flex-negative: 0;
}

.ege-product-price .amount {
    color: #c33130;
}

.ege-product-price del {
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

/* Gramaj Seçimi */
.ege-weight-selection {
    margin-bottom: 16px;
    flex-shrink: 0;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    -ms-flex-negative: 0;
}

.ege-weight-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ege-weight-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ege-weight-button-wrapper {
    position: relative;
}

.ege-weight-button-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ege-weight-button {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 80px;
}

.ege-weight-button-wrapper input[type="radio"]:checked + .ege-weight-button {
    background: #c33130;
    color: #ffffff;
    border-color: #c33130;
}

.ege-weight-button:hover {
    border-color: #999;
    background: #f0f0f0;
}

/* Miktar ve Sepete Ekle */
.ege-product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
    min-height: 52px;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    -ms-flex-negative: 0;
    -ms-flex-preferred-size: auto;
}

.ege-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    background: #ffffff;
    padding: 4px;
    flex-shrink: 0;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    -ms-flex-negative: 0;
}

.ege-quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ege-quantity-btn:hover {
    color: #333;
}

.ege-quantity-display {
    min-width: 70px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.ege-quantity-input {
    display: none;
}

/* Sepete Ekle Butonu - Kırmızı (Tema Rengi) */
.ege-add-to-cart-btn {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    background: #c33130;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Safari için flexbox düzeltmesi */
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    -ms-flex-negative: 1;
    -ms-flex-preferred-size: 0%;
}

.ege-add-to-cart-btn:hover {
    background: #a82828;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(195, 49, 48, 0.4);
}

.ege-add-to-cart-btn:active {
    transform: translateY(0);
    background: #8f2222;
}

.ege-add-to-cart-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive - Mobil */
@media (max-width: 768px) {
    .ege-products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        display: grid !important;
        -webkit-display: grid !important;
    }
    
    .ege-product-image-wrapper {
        margin: 8px;
        width: calc(100% - 16px);
        /* Safari mobil için sabit padding-bottom */
        padding-bottom: 56.25%; /* 16:9 oranı için */
        height: 0;
        flex-shrink: 0 !important;
    }
    
    .ege-product-image-wrapper a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .ege-product-image-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .ege-product-info {
        padding: 12px 16px 16px;
        min-height: 0 !important;
    }
    
    .ege-product-title {
        font-size: 16px;
        flex-shrink: 0 !important;
    }
    
    .ege-product-price {
        font-size: 20px;
        margin-bottom: 12px;
        flex-shrink: 0 !important;
    }
    
    .ege-product-actions {
        flex-direction: row;
        gap: 10px;
        flex-shrink: 0 !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }
    
    .ege-quantity-controls {
        flex-shrink: 0 !important;
    }
    
    .ege-add-to-cart-btn {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        font-size: 14px;
        flex: 1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    
    .ege-product-card {
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
    }
}

/* Header Logo Stilleri */
#main-header .header-logo {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    #main-header .header-logo {
        height: 50px !important;
        max-height: 50px !important;
    }
}

/* Header Menü Alt Menü Stilleri */
#main-header nav ul.menu,
#main-header nav .menu {
    position: relative;
}

#main-header nav li.has-submenu {
    position: relative;
}

#main-header nav li.has-submenu > a {
    display: flex;
    align-items: center;
}

#main-header nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

#main-header nav li.has-submenu:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#main-header nav .sub-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

#main-header nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #ffffff !important;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

#main-header nav .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24 !important;
    padding-left: 24px;
}

/* 3. Seviye Alt Menü */
#main-header nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 8px;
}

#main-header nav .sub-menu li.has-submenu:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobil Menü Alt Menü */
#mobile-menu .sub-menu {
    display: none;
    padding-left: 20px;
    margin-top: 8px;
}

/* Active class için CSS kuralı yok - Sadece JavaScript slideDown ile kontrol ediliyor */

#mobile-menu .sub-menu a {
    padding: 8px 0;
    font-size: 14px;
}

/* Mobil menüde + işareti - açık/kapalı durumuna göre değişir */
#mobile-menu li.menu-item-has-children > a::after,
#mobile-menu li.has-submenu > a::after {
    content: '+';
    float: right;
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    line-height: inherit;
    display: inline-block;
    vertical-align: middle;
}

#mobile-menu li.menu-item-has-children.active > a::after,
#mobile-menu li.has-submenu.active > a::after {
    content: '−';
}

/* SVG ok ikonunu gizle (CSS ::after kullanıyoruz) */
#mobile-menu li.menu-item-has-children > a svg,
#mobile-menu li.has-submenu > a svg {
    display: none !important;
}

/* ========================================
   Sidebar Sepet Stilleri
   ======================================== */

.ege-cart-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    visibility: hidden;
    pointer-events: none;
}

.ege-cart-sidebar.active {
    visibility: visible;
    pointer-events: auto;
}

/* Overlay */
.ege-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ege-cart-sidebar.active .ege-cart-overlay {
    opacity: 1;
}

/* Panel */
.ege-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.ege-cart-sidebar.active .ege-cart-panel {
    transform: translateX(0);
}

/* Header */
.ege-cart-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid #eee !important;
    flex-wrap: nowrap !important;
}

.ege-cart-header h3 {
    font-size: 24px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #1a1a1a !important;
    display: inline !important;
}

.ege-cart-close {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.ege-cart-close:hover {
    color: #c33130;
}

.ege-cart-close span {
    font-size: 24px;
    line-height: 1;
}

/* Sidebar Sepet Başlık Wrapper */
.ege-cart-title-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Sepeti Boşalt Butonu - Sidebar */
.ege-empty-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    padding: 4px !important;
    color: #666 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.ege-empty-cart-btn:hover {
    color: #c33130 !important;
}

/* Sepeti Boşalt Butonu - Sepet Sayfası */
.ege-cart-items .cart-items-header .ege-empty-cart-btn-page {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #c33130 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.ege-empty-cart-btn-page:hover {
    color: #a52928 !important;
}

.ege-empty-cart-btn-page svg {
    flex-shrink: 0 !important;
}

/* Cart Items Header - Sepet Sayfası */
.ege-cart-items .cart-items-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.ege-cart-items .cart-items-header h2 {
    margin: 0 !important;
    flex: 1 !important;
}

/* Content */
.ege-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Empty Cart */
.ege-cart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

.ege-cart-empty p {
    font-size: 16px;
    color: #888;
}

/* Cart Items */
.ege-cart-items {
    padding: 0;
}

.ege-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.ege-cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
}

.ege-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ege-cart-item-details {
    flex: 1;
    min-width: 0;
}

.ege-cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-transform: uppercase;
}

.ege-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ege-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.ege-qty-btn:hover {
    background: #c33130;
    border-color: #c33130;
    color: white;
}

.ege-qty-btn:hover svg {
    stroke: white;
}

.ege-qty-btn svg {
    stroke: #666;
    transition: stroke 0.2s ease;
}

.ege-qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.ege-cart-item-price {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.ege-cart-item-remove {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.ege-cart-item-remove:hover {
    color: #c33130;
}

/* Footer */
.ege-cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: #fff;
}

.ege-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ege-cart-subtotal span:first-child {
    font-size: 16px;
    color: #666;
}

.ege-cart-subtotal-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Shipping Notice */
.ege-cart-shipping-notice {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.ege-cart-shipping-notice p {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0 0 12px 0;
}

.ege-cart-progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.ege-cart-progress-bar {
    height: 100%;
    background: #c33130;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ege-cart-shipping-free {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.ege-cart-shipping-free p {
    font-size: 14px;
    color: #2e7d32;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    text-align: left;
}

.ege-cart-shipping-free p svg {
    flex-shrink: 0;
    color: #2e7d32;
    margin-top: 2px;
    align-self: flex-start;
}

/* Buttons */
.ege-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ege-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ege-cart-btn-outline {
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #c33130;
}

.ege-cart-btn-outline:hover {
    background: #f8f8f8;
    color: #c33130;
}

.ege-cart-btn-primary {
    background: #c33130;
    border: 2px solid #c33130;
    color: #ffffff;
}

.ege-cart-btn-primary:hover {
    background: #a82828;
    border-color: #a82828;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 480px) {
    .ege-cart-panel {
        max-width: 100%;
    }
    
    .ege-cart-header,
    .ege-cart-item,
    .ege-cart-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Sepet sayfası mobil hero görseli */
@media (max-width: 768px) {
    .woocommerce-cart .inner-page-hero-bg img {
        content: url('https://egesucuklari.com.tr/wp-content/uploads/2024/11/breadcrumb-egesucuklari.webp') !important;
    }
}
