/* ============================================
   MODERN WISHLIST SAYFASI TASARIMI
   Cartzilla Child Theme - Favoriler Sayfası
   Modern, Şık, Kurumsal ve Profesyonel Tasarım
   
   ⚠️ ÖNEMLİ GÜVENLİK NOTU ⚠️
   ============================================
   Bu CSS dosyası SADECE favoriler sayfasında yüklenir.
   Functions.php'de yith_wcwl_is_wishlist_page() kontrolü ile
   sadece wishlist sayfasında enqueue edilir.
   
   Tüm selector'ler wishlist-specific class'lar kullanır:
   - #yith-wcwl-form
   - .yith-wcwl-form.wishlist-fragment
   - table.wishlist_table
   - .wishlist-title
   - .wishlist-empty
   vb.
   
   Bu selector'ler sadece favoriler sayfasında bulunur,
   tema'nın diğer sayfalarına hiçbir etkisi yoktur.
   ============================================ */

/* Ana Container - Sadece wishlist sayfasında */
#yith-wcwl-form,
.yith-wcwl-form.wishlist-fragment {
    position: relative;
    padding: 1.75rem 0;
}

/* Wishlist Başlık Bölümü - Modern Header - Sadece wishlist sayfasında */
#yith-wcwl-form .wishlist-title-container,
.yith-wcwl-form.wishlist-fragment .wishlist-title-container {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #e3e9ef;
    position: relative;
}

#yith-wcwl-form .wishlist-title-container::after,
.yith-wcwl-form.wishlist-fragment .wishlist-title-container::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #e3e9ef;
    border-radius: 2px;
}

#yith-wcwl-form .wishlist-title h2,
.yith-wcwl-form.wishlist-fragment .wishlist-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #373f50;
    margin-bottom: 0;
    padding: 0;
    position: relative;
    display: inline-block;
}

#yith-wcwl-form .wishlist-title h2::before,
.yith-wcwl-form.wishlist-fragment .wishlist-title h2::before {
    display: none;
}

/* Edit Title Button - GİZLENDİ - Sadece wishlist sayfasında */
#yith-wcwl-form .wishlist-title .show-title-form,
#yith-wcwl-form .wishlist-title a.show-title-form,
.yith-wcwl-form.wishlist-fragment .wishlist-title .show-title-form,
.yith-wcwl-form.wishlist-fragment .wishlist-title a.show-title-form {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Hidden Title Form */
.hidden-title-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #f6f9fc;
    border-radius: 12px;
    border: 2px solid #e3e9ef;
}

.hidden-title-form input[type="text"] {
    border: 2px solid #e3e9ef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.hidden-title-form input[type="text"]:focus {
    border-color: #fe696a;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(254, 105, 106, 0.15);
}

.edit-title-buttons {
    display: inline-flex;
    gap: 0.5rem;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.hide-title-form,
.save-title-form {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hide-title-form {
    background: #f34770;
    color: #fff;
}

.hide-title-form:hover {
    background: #d93a5f;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(243, 71, 112, 0.3);
}

.save-title-form {
    background: #42d697;
    color: #fff;
}

.save-title-form:hover {
    background: #35b882;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(66, 214, 151, 0.3);
}

/* Wishlist Table - Modern Card Design */
table.wishlist_table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: none;
    margin-bottom: 1.5rem;
}

table.wishlist_table thead {
    background: #e3e9ef;
}

table.wishlist_table thead th {
    color: #373F50 !important;
    font-weight: 600;
    font-size: 0.8125rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.875rem;
    border: none;
    vertical-align: middle;
}

/* Product Add to Cart Header - Special Color */
table.wishlist_table thead th.product-add-to-cart {
    color: #373F50 !important;
    font-size: 0.8125rem !important;
}

/* Ensure all header text has same font size and color */
table.wishlist_table thead th span.nobr {
    font-size: 0.8125rem !important;
    color: #373F50 !important;
}

table.wishlist_table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f5f9;
}

table.wishlist_table tbody tr:last-child {
    border-bottom: none;
}

table.wishlist_table tbody tr:hover {
    background: #f6f9fc;
}

table.wishlist_table tbody td {
    padding: 1.125rem 0.875rem;
    vertical-align: middle;
    border: none;
}

/* Product Checkbox */
table.wishlist_table td.product-checkbox {
    width: 50px;
    text-align: center;
}

table.wishlist_table td.product-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #fe696a;
}

/* Product Remove Button */
table.wishlist_table td.product-remove {
    width: 50px;
    text-align: center;
}

table.wishlist_table td.product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f5f9;
    color: #7d879c;
    font-size: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

table.wishlist_table td.product-remove a.remove::before {
    content: "\e987";
    font-family: 'cartzilla-icons';
    font-size: 14px;
    display: block;
}

table.wishlist_table td.product-remove a.remove:hover {
    background: rgba(254, 105, 106, 0.1);
    color: #fe696a;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(254, 105, 106, 0.2);
}

/* Product Thumbnail */
table.wishlist_table td.product-thumbnail {
    width: 140px;
    padding: 0.75rem;
}

table.wishlist_table td.product-thumbnail a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f6f9fc;
}

table.wishlist_table td.product-thumbnail a:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

table.wishlist_table td.product-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

table.wishlist_table td.product-thumbnail a:hover img {
    transform: scale(1.03);
}

/* Product Name */
table.wishlist_table td.product-name {
    min-width: 250px;
}

table.wishlist_table td.product-name a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #373f50;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    line-height: 1.4;
}

table.wishlist_table td.product-name a:hover {
    color: rgba(254, 105, 106, 0.85);
}

/* Product Price */
table.wishlist_table td.product-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #4e54c8;
    white-space: nowrap;
}

/* Product Quantity */
table.wishlist_table td.product-quantity input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #e3e9ef;
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

table.wishlist_table td.product-quantity input[type="number"]:focus {
    border-color: #fe696a;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(254, 105, 106, 0.15);
}

/* Stock Status */
table.wishlist_table td.product-stock-status {
    text-align: center;
}

table.wishlist_table td.product-stock-status .wishlist-in-stock {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(66, 214, 151, 0.1);
    color: #42d697;
    border: 1px solid rgba(66, 214, 151, 0.2);
}

table.wishlist_table td.product-stock-status .wishlist-out-of-stock {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f3f5f9;
    color: #7d879c;
    border: 1px solid #e3e9ef;
}

/* Product Add to Cart */
table.wishlist_table td.product-add-to-cart {
    min-width: 200px;
}

table.wishlist_table td.product-add-to-cart .button-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

table.wishlist_table td.product-add-to-cart .button-wrapper > * {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

table.wishlist_table td.product-add-to-cart .add_to_cart_button,
table.wishlist_table td.product-add-to-cart .button {
    flex: 1;
    min-width: 120px;
    padding: 0.625rem 1rem;
    border-radius: 0.3125rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s ease-in-out;
    border: none;
    background-color: #fe696a;
    border-color: #fe696a;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    line-height: 1.2;
}

table.wishlist_table td.product-add-to-cart .add_to_cart_button:hover,
table.wishlist_table td.product-add-to-cart .add_to_cart_button:focus,
table.wishlist_table td.product-add-to-cart .button:hover,
table.wishlist_table td.product-add-to-cart .button:focus {
    background-color: #e85a5b !important;
    border-color: #e85a5b !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(254, 105, 106, 0.9);
}

table.wishlist_table td.product-add-to-cart .add_to_cart_button:active,
table.wishlist_table td.product-add-to-cart .button:active {
    transform: translateY(0);
}

table.wishlist_table td.product-add-to-cart .remove_from_wishlist,
table.wishlist_table td.product-add-to-cart .product-remove-link {
    flex: 1;
    min-width: 120px;
    padding: 0.625rem 1rem;
    border-radius: 0.3125rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e3e9ef;
    color: #4b566b;
    background: #fff;
    transition: all 0.25s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 38px;
    line-height: 1.2;
}

table.wishlist_table td.product-add-to-cart .remove_from_wishlist::before,
table.wishlist_table td.product-add-to-cart .product-remove-link::before {
    content: "\e987";
    font-family: 'cartzilla-icons';
    display: inline-block;
    margin-right: 0.5rem;
}

table.wishlist_table td.product-add-to-cart .remove_from_wishlist span,
table.wishlist_table td.product-add-to-cart .product-remove-link span {
    display: inline-block;
}

table.wishlist_table td.product-add-to-cart .remove_from_wishlist:hover,
table.wishlist_table td.product-add-to-cart .remove_from_wishlist:focus,
table.wishlist_table td.product-add-to-cart .product-remove-link:hover,
table.wishlist_table td.product-add-to-cart .product-remove-link:focus {
    background-color: rgba(254, 105, 106, 0.1);
    border-color: rgba(254, 105, 106, 0.35);
    color: #fe696a;
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(254, 105, 106, 0.3);
}

/* Date Added */
table.wishlist_table td.product-add-to-cart .dateadded {
    display: block;
    font-size: 0.6875rem;
    color: #7d879c;
    margin-top: 0.75rem;
    font-style: italic;
    width: 100%;
}

/* Empty Wishlist */
table.wishlist_table .wishlist-empty {
    padding: 4rem 2rem;
    text-align: center;
    color: #4b566b;
    font-size: 1.125rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    margin: 2rem 0;
}

table.wishlist_table .wishlist-empty::before {
    content: '\f004';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    display: block;
    font-size: 4rem;
    color: #7d879c;
    margin-bottom: 1rem;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Wishlist Footer */
.yith_wcwl_wishlist_footer {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f6f9fc;
    border-radius: 12px;
    border: 1px solid #e3e9ef;
}

/* Hide footer when share is disabled or wishlist is empty - Sadece wishlist sayfasında */
#yith-wcwl-form .yith_wcwl_wishlist_footer.share-disabled,
.yith-wcwl-form.wishlist-fragment .yith_wcwl_wishlist_footer.share-disabled {
    display: none !important;
}

/* Hide footer when wishlist is empty - handled by JavaScript */

/* Bulk Actions */
.yith_wcwl_wishlist_bulk_action {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.yith_wcwl_wishlist_bulk_action label {
    font-weight: 600;
    color: #373f50;
    margin: 0;
}

.yith_wcwl_wishlist_bulk_action select {
    padding: 0.75rem 1rem;
    border: 2px solid #e3e9ef;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    color: #373f50;
    min-width: 200px;
    transition: all 0.3s ease;
}

.yith_wcwl_wishlist_bulk_action select:focus {
    border-color: #fe696a;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(254, 105, 106, 0.15);
}

.yith_wcwl_wishlist_bulk_action input[type="submit"] {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #fe696a, #4e54c8);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.yith_wcwl_wishlist_bulk_action input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 105, 106, 0.4);
    filter: brightness(1.05);
}

/* Update Wishlist Button */
.yith_wcwl_wishlist_update {
    margin-bottom: 1.5rem;
}

.yith_wcwl_wishlist_update input[type="submit"] {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    background: #42d697;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.yith_wcwl_wishlist_update input[type="submit"]:hover {
    background: #35b882;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 214, 151, 0.3);
}

/* Share Section */
.yith-wcwl-share {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e3e9ef;
}

.yith-wcwl-share h4.yith-wcwl-share-title {
    font-size: 1rem;
    font-weight: 600;
    color: #373f50;
    margin-bottom: 1rem;
    margin-right: 0;
}

.yith-wcwl-share ul {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.yith-wcwl-share a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e3e9ef;
    color: #4b566b;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.yith-wcwl-share a:hover {
    transform: translateY(-4px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.yith-wcwl-share a.facebook:hover {
    background: #3b5998;
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 89, 152, 0.4);
}

.yith-wcwl-share a.twitter:hover {
    background: #1da1f2;
    color: #fff;
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.yith-wcwl-share a.pinterest:hover {
    background: #bd081c;
    color: #fff;
    box-shadow: 0 6px 20px rgba(189, 8, 28, 0.4);
}

.yith-wcwl-share a.email:hover {
    background: #FBB102;
    color: #fff;
    box-shadow: 0 6px 20px rgba(251, 177, 2, 0.4);
}

.yith-wcwl-share a.whatsapp:hover {
    background: #00A901;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 169, 1, 0.4);
}

/* Footer Additional Actions */
.yith_wcwl_footer_additional_action {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e3e9ef;
}

.yith_wcwl_footer_additional_action .ask-an-estimate-button,
.yith_wcwl_footer_additional_action input[type="submit"][name="add_all_to_cart"] {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    background: linear-gradient(135deg, #fe696a, #4e54c8);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yith_wcwl_footer_additional_action .ask-an-estimate-button:hover,
.yith_wcwl_footer_additional_action input[type="submit"][name="add_all_to_cart"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 105, 106, 0.4);
    filter: brightness(1.05);
}

/* Pagination */
.wishlist-pagination {
    text-align: center;
    padding: 2rem 0;
}

.wishlist-pagination .page-numbers {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wishlist-pagination .page-numbers li a,
.wishlist-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #e3e9ef;
    color: #4b566b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wishlist-pagination .page-numbers li a:hover {
    background: linear-gradient(135deg, #fe696a, #4e54c8);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 105, 106, 0.3);
}

.wishlist-pagination .page-numbers li span.current {
    background: linear-gradient(135deg, #fe696a, #4e54c8);
    color: #fff;
    border-color: transparent;
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 992px) {
    table.wishlist_table tbody td.product-remove {
        display: none !important;
    }

    table.wishlist_table tbody td.product-add-to-cart .button-wrapper {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
    }
    
    table.wishlist_table tbody td.product-add-to-cart .add_to_cart_button,
    table.wishlist_table tbody td.product-add-to-cart .button,
    table.wishlist_table tbody td.product-add-to-cart .remove_from_wishlist,
    table.wishlist_table tbody td.product-add-to-cart .product-remove-link {
        flex: 1;
        min-width: auto;
        width: auto;
    }
}

/* Mobile List View (ul.wishlist_view.responsive.mobile) */
.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    margin-top: 1rem;
}

.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-remove {
    display: none !important;
}

.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart {
    width: 100%;
    display: block;
}

.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .button-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    margin-top: 0.5rem;
}

.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .button-wrapper > * {
    flex: 1 1 50%;
    width: 50%;
    box-sizing: border-box;
}

/* Create remove button from product-remove link for mobile list view */
.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .remove-button-mobile {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    width: 50% !important;
    max-width: 50% !important;
    padding: 0.5rem 0.875rem !important;
    border-radius: 0.3125rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    border: 1px solid #e3e9ef !important;
    color: #4b566b !important;
    background: #fff !important;
    transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out, border-color 0.25s ease-in-out, box-shadow 0.2s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-height: 36px !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    user-select: none !important;
    vertical-align: middle !important;
    margin-bottom: 0.5rem !important;
    box-shadow: none !important;
    font-family: "Rubik", sans-serif !important;
    list-style: none !important;
    word-break: break-word !important;
    -webkit-font-smoothing: antialiased !important;
}

.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .remove-button-mobile::before {
    content: "\e987";
    font-family: 'cartzilla-icons';
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .remove-button-mobile span {
    display: inline-block;
}

.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .remove-button-mobile:hover,
.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .remove-button-mobile:focus {
    background-color: rgba(254, 105, 106, 0.1);
    border-color: rgba(254, 105, 106, 0.35);
    color: #fe696a;
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(254, 105, 106, 0.3);
}

.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .add_to_cart_button,
.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .button,
.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .remove-button-mobile {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    width: 50% !important;
    max-width: 50% !important;
    padding: 0.5rem 0.875rem !important;
    border-radius: 0.3125rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    min-height: 36px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    user-select: none !important;
    vertical-align: middle !important;
    margin-bottom: 0.5rem !important;
    box-shadow: none !important;
    font-family: "Rubik", sans-serif !important;
    list-style: none !important;
    word-break: break-word !important;
    -webkit-font-smoothing: antialiased !important;
    transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out, border-color 0.25s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

/* Keep add to cart button red color */
.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .add_to_cart_button,
.wishlist_table.wishlist_view.responsive.mobile .additional-info-wrapper .product-add-to-cart .button {
    background-color: #fe696a !important;
    border-color: #fe696a !important;
    color: #fff !important;
    border: none !important;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .wishlist-title h2 {
        font-size: 1.5rem;
    }

    .wishlist-title h2::before {
        left: -1rem;
        height: 1.5rem;
    }

    table.wishlist_table {
        border-radius: 12px;
    }

    table.wishlist_table thead {
        display: none;
    }

    table.wishlist_table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        padding: 1rem;
        border: 1px solid #e3e9ef;
    }

    table.wishlist_table tbody tr:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }

    table.wishlist_table tbody td {
        display: block;
        padding: 0.75rem 0;
        text-align: left;
        border: none;
        position: relative;
        padding-left: 40%;
    }

    table.wishlist_table tbody td[data-title]::before {
        content: attr(data-title);
        position: absolute;
        left: 0;
        width: 35%;
        font-weight: 600;
        color: #373f50;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    table.wishlist_table tbody td:not([data-title])::before {
        display: none;
    }

    table.wishlist_table tbody td.product-thumbnail {
        padding-left: 0;
        text-align: center;
        margin-bottom: 1rem;
    }

    table.wishlist_table tbody td.product-thumbnail::before {
        display: none;
    }

    table.wishlist_table tbody td.product-remove {
        display: none !important;
    }

    table.wishlist_table tbody td.product-remove::before {
        display: none;
    }

    table.wishlist_table tbody td.product-add-to-cart {
        padding-left: 0;
        text-align: center;
        margin-top: 1rem;
    }

    table.wishlist_table tbody td.product-add-to-cart::before {
        display: none;
    }
    
    table.wishlist_table tbody td.product-add-to-cart .button-wrapper {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
    }
    
    table.wishlist_table tbody td.product-add-to-cart .add_to_cart_button,
    table.wishlist_table tbody td.product-add-to-cart .button,
    table.wishlist_table tbody td.product-add-to-cart .remove_from_wishlist,
    table.wishlist_table tbody td.product-add-to-cart .product-remove-link {
        flex: 1;
        min-width: auto;
        width: auto;
    }

    .yith_wcwl_wishlist_bulk_action {
        flex-direction: column;
        align-items: stretch;
    }

    .yith_wcwl_wishlist_bulk_action select,
    .yith_wcwl_wishlist_bulk_action input[type="submit"] {
        width: 100%;
    }

    .yith_wcwl_footer_additional_action {
        flex-direction: column;
    }

    .yith_wcwl_footer_additional_action .ask-an-estimate-button,
    .yith_wcwl_footer_additional_action input[type="submit"] {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

table.wishlist_table tbody tr {
    animation: fadeInUp 0.5s ease-out;
}

table.wishlist_table tbody tr:nth-child(1) { animation-delay: 0.1s; }
table.wishlist_table tbody tr:nth-child(2) { animation-delay: 0.2s; }
table.wishlist_table tbody tr:nth-child(3) { animation-delay: 0.3s; }
table.wishlist_table tbody tr:nth-child(4) { animation-delay: 0.4s; }
table.wishlist_table tbody tr:nth-child(5) { animation-delay: 0.5s; }

/* Loading State */
.wishlist_table.loading {
    opacity: 0.6;
    pointer-events: none;
}

.wishlist_table.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #e3e9ef;
    border-top-color: #fe696a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   WISHLIST SAYFASI BİLDİRİMLERİ
   WooCommerce bildirim formatına dönüştürme
   ============================================ */

/* YITH add to cart mesajlarını WooCommerce formatına çevir - Üstte, sayfa başlığının üstünde */
#yith-wcwl-form .woocommerce-notices-wrapper.yith-converted {
    position: relative !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
    display: block !important;
    bottom: auto !important;
    right: auto !important;
    z-index: auto !important;
}

#yith-wcwl-form .woocommerce-notices-wrapper.yith-converted .alert {
    border: none !important;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
    background: #e1f8ee !important;
    padding: 1rem calc((0.875rem * 3) + 1.125em) 1rem calc((0.875rem * 3) + 1.125em) !important;
    min-height: 3.5rem !important;
    position: relative !important;
}

#yith-wcwl-form .woocommerce-notices-wrapper.yith-converted .alert-icon-box {
    background-color: #c8f0e0 !important;
    border: none !important;
    border-width: 0 !important;
    width: calc((0.875rem * 2) + 1.125em) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    padding: 0 0.875rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

#yith-wcwl-form .woocommerce-notices-wrapper.yith-converted .alert-icon {
    color: #42d697 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 1.125em !important;
}

#yith-wcwl-form .woocommerce-notices-wrapper.yith-converted .woocommerce-message {
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    width: 100%;
    color: #373f50 !important;
    font-size: 0.875rem !important;
}

#yith-wcwl-form .woocommerce-notices-wrapper.yith-converted .close {
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    position: absolute !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    background: transparent !important;
    border: none !important;
    font-size: 1.25rem !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    padding: 0 !important;
}

#yith-wcwl-form .woocommerce-notices-wrapper.yith-converted .close:hover {
    opacity: 1;
}

