/* ==========================================================================
   HERSTELLA WISHLIST TRADITIONAL TABLE OVERRIDE (DESKTOP & MOBILE FIX)
   ========================================================================== */

/* 1. Global Font ve Değişken Tanımlamaları */
:root {
  --olive: #2D3120;
  --olive2: #3E4630;
  --green: #3D6B3A;
  --green-lt: #EAF3E9;
  --text: rgba(45, 49, 32, .75);
  --muted: rgba(45, 49, 32, .44);
  --border: rgba(45, 49, 32, .09);
  --white: #FEFCF8;
  --shadow: 0 2px 16px rgba(45, 49, 32, .08);
}

/* 2. Ortak Temel Yapı */
body table.shop_table.wishlist_table {
    font-family: 'Jost', sans-serif !important;
    width: 100% !important;
    background: var(--white) !important;
    box-shadow: var(--shadow) !important;
}

/* ==========================================================================
   BÜYÜK EKRAN (DESKTOP) DÜZENLEMESİ
   ========================================================================== */
@media screen and (min-width: 769px) {
    body table.shop_table.wishlist_table {
        border-collapse: separate !important; 
        border-spacing: 0 !important;
        border: 1px solid var(--border) !important;
        border-radius: 25px !important; 
        overflow: hidden !important;
        margin: 30px 0 !important;
    }

    /* Başlık Alanı */
    body table.shop_table.wishlist_table thead th {
        font-family: 'Jost', sans-serif !important;
        background: var(--olive) !important;
        color: #F7EEE1 !important;
        font-size: 11px !important;
        letter-spacing: .1em !important;
        text-transform: uppercase !important;
        padding: 16px 20px !important;
        font-weight: 500 !important;
        border: none !important;
    }

    /* Köşe Ovalliği Kaybolmasın Diye */
    body table.shop_table.wishlist_table thead tr:first-child th:first-child { border-top-left-radius: 24px !important; }
    body table.shop_table.wishlist_table thead tr:first-child th:last-child { border-top-right-radius: 24px !important; }

    /* Masaüstü Hücre Düzeni */
    body table.shop_table.wishlist_table tbody td {
        padding: 16px 20px !important;
        font-family: 'Jost', sans-serif !important;
        font-size: 14px !important;
        color: var(--text) !important;
        border-bottom: 1px solid var(--border) !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        vertical-align: middle !important;
        background: transparent !important;
    }

    body table.shop_table.wishlist_table tbody tr:last-child td {
        border-bottom: none !important;
    }
    body table.shop_table.wishlist_table tbody tr:last-child td:first-child { border-bottom-left-radius: 24px !important; }
    body table.shop_table.wishlist_table tbody tr:last-child td:last-child { border-bottom-right-radius: 24px !important; }

    /* Ürün Adı - Cormorant Garamond */
    body table.shop_table.wishlist_table td.product-name a {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 20px !important; 
        font-weight: 600 !important;
        color: var(--olive) !important;
        text-decoration: none !important;
        display: inline-block !important;
    }

    /* Masaüstünde Aksiyon Sütunu (Hücre yapısını kırmadan sağa yaslama) */
    body table.shop_table.wishlist_table td.product-add-to-cart {
        text-align: right !important;
        white-space: nowrap !important;
    }

    /* "In winkelwagen" Butonu */
    body table.shop_table.wishlist_table td.product-add-to-cart a.button.add_to_cart {
        background-color: var(--olive) !important;
        color: #F7EEE1 !important;
        border: 1px solid var(--olive) !important;
        border-radius: 30px !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        padding: 8px 18px !important;
        font-size: 11px !important;
        letter-spacing: .05em !important;
        display: inline-block !important;
        vertical-align: middle !important;
        margin-right: 15px !important; /* Silme butonu ile arasına boşluk */
        width: auto !important;
    }

    /* Görünmeyen "Verwijderen" Butonunu Çözme */
    body table.shop_table.wishlist_table td.product-add-to-cart a.remove_from_wishlist.button {
        display: inline-block !important;
        background: transparent !important;
        color: var(--muted) !important;
        border: none !important;
        font-size: 12px !important;
        text-decoration: underline !important;
        padding: 0 !important;
        margin: 0 !important;
        text-transform: none !important;
        font-weight: 400 !important;
        box-shadow: none !important;
        vertical-align: middle !important;
        width: auto !important;
    }
}

/* ==========================================================================
   GÖRSEL, FİYAT VE STOK ORTAK STİLLERİ
   ========================================================================== */
body table.shop_table.wishlist_table td.product-thumbnail img {
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    max-width: 60px !important;
    height: auto !important;
}
body table.shop_table.wishlist_table td.product-price span.amount {
    font-weight: 600 !important;
    color: var(--green) !important;
}
body table.shop_table.wishlist_table td.product-stock-status span.wishlist-in-stock {
    font-size: 12px !important;
    color: var(--green) !important;
    background: var(--green-lt) !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}
body table.shop_table.wishlist_table td.product-name a:hover {
    color: var(--green) !important;
}
body table.shop_table.wishlist_table td.product-add-to-cart a.button.add_to_cart:hover {
    background-color: var(--olive2) !important;
    border-color: var(--olive2) !important;
}
body table.shop_table.wishlist_table td.product-add-to-cart a.remove_from_wishlist.button:hover {
    color: #ff4d4d !important;
}

/* ==========================================================================
   KÜÇÜK EKRAN (MOBİL KART YAPISI)
   ========================================================================== */
@media screen and (max-width: 768px) {
    body table.shop_table.wishlist_table {
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    body table.shop_table.wishlist_table thead {
        display: none !important;
    }
    body table.shop_table.wishlist_table tbody {
        display: block !important;
        width: 100% !important;
    }
    body table.shop_table.wishlist_table tbody tr {
        display: block !important;
        background: var(--white) !important;
        border: 1px solid var(--border) !important;
        border-radius: 25px !important; 
        margin-bottom: 20px !important;
        padding: 15px !important;
        box-shadow: var(--shadow) !important;
    }
    body table.shop_table.wishlist_table tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 5px !important;
        border: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    body table.shop_table.wishlist_table td.product-name a {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: var(--olive) !important;
    }
    body table.shop_table.wishlist_table tbody td.product-thumbnail {
        justify-content: center !important;
    }
    body table.shop_table.wishlist_table tbody td.product-add-to-cart {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        border-top: 1px dashed var(--border) !important;
        padding-top: 15px !important;
        margin-top: 5px !important;
    }
    body table.shop_table.wishlist_table tbody td.product-add-to-cart a.button.add_to_cart {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
    }
    body table.shop_table.wishlist_table tbody td.product-add-to-cart a.remove_from_wishlist.button {
        text-align: center !important;
        margin: 0 auto !important;
    }
    body table.shop_table.wishlist_table tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 500 !important;
        color: var(--muted) !important;
        font-size: 13px !important;
    }
    body table.shop_table.wishlist_table tbody td.product-remove::before,
    body table.shop_table.wishlist_table tbody td.product-thumbnail::before,
    body table.shop_table.wishlist_table tbody td.product-name::before,
    body table.shop_table.wishlist_table tbody td.product-add-to-cart::before {
        content: "" !important;
    }
}