/* WooCommerce ürün görselleri için özel düzeltme */
.deal-product .product-image img,
.deal-product .product-image .product-img,
.deal-product .product-image .woocommerce-product-gallery__image img,
.deal-product .product-image .wp-post-image {
    width: 100% !important;
    max-width: 95% !important;
    max-height: 110px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Haftanın fırsatları ürün kutusunu düzelt */
.deal-product {
    width: 100% !important;
    max-width: 170px !important;
    margin: 0 5px !important;
    background: #fff !important;
    border-radius: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    border: none !important;
}

/* Ürün başlığını düzelt */
.deal-product h3 {
    font-size: 12px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    color: #333 !important;
    background: none !important;
    text-align: left !important;
    padding: 5px 0 !important;
    min-height: 36px !important;
    display: block !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

/* Ürün bilgisi alanını düzelt */
.deal-product .product-info {
    width: 100% !important;
    padding: 0 10px 10px !important;
    text-align: left !important;
    background: #f9f9f9 !important;
    border-radius: 0 0 8px 8px !important;
}

/* Fiyat alanını düzelt */
.deal-product .product-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 8px !important;
    margin-top: 5px !important;
}

.deal-product .old-price {
    font-size: 10px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
    display: block !important;
}

.deal-product .price {
    font-size: 13px !important;
    color: #e74c3c !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Sepete ekle butonu */
.deal-product .add-to-cart {
    font-size: 11px !important;
    padding: 6px 10px !important;
    background-color: #ffcc00 !important;
    border: none !important;
    border-radius: 4px !important;
    color: #333 !important;
    font-weight: 600 !important;
    width: auto !important;
    cursor: pointer !important;
    text-align: center !important;
    display: inline-block !important;
}

/* İndirim etiketi */
.discount-badge {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    width: auto !important;
    margin: 0 !important;
    background-color: #e74c3c !important;
    color: white !important;
    text-align: center !important;
    padding: 3px 6px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    border-radius: 3px !important;
    z-index: 2 !important;
}

/* Ürün resmi konteyner */
.deal-product .product-image {
    width: 100% !important;
    height: auto !important;
    min-height: 120px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    border: none !important;
}

/* İç kart düzeni */
.deal-product .product-card-inner {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    height: 100% !important;
    background: #fff !important;
}

/* YITH Wishlist: Add to cart button styling (Sepete Ekle) */
/* Scope strictly to wishlist table to avoid affecting catalog */
body .wishlist_table.wishlist_view .product-add-to-cart a.button,
body .wishlist_table.wishlist_view .product-add-to-cart a.add_to_cart_button,
body .wishlist_table.wishlist_view .product-add-to-cart button,
body .wishlist_table.wishlist_view .add_to_cart.button,
body .wishlist_table.wishlist_view a.add_to_cart.button {
    background: #FFD400 !important; /* brand yellow */
    color: #1E2A3B !important;      /* dark text */
    border: 1px solid #E6BE00 !important;
    border-radius: 999px !important; /* pill */
    padding: 10px 16px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;  /* keep label on one line */
    min-width: 140px;                /* ensure readable width */
    text-align: center;
}

/* Hover/Focus states */
body .wishlist_table.wishlist_view .product-add-to-cart a.button:hover,
body .wishlist_table.wishlist_view .product-add-to-cart a.add_to_cart_button:hover,
body .wishlist_table.wishlist_view .product-add-to-cart button:hover,
body .wishlist_table.wishlist_view .add_to_cart.button:hover,
body .wishlist_table.wishlist_view a.add_to_cart.button:hover {
    background: #FFC300 !important;
    border-color: #D9B400 !important;
    color: #202A36 !important;
}

/* Ensure inline quantity aligns nicely when quantity field is visible */
body .wishlist_table.wishlist_view .product-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Compact dateadded spacing */
body .wishlist_table.wishlist_view .product-add-to-cart .dateadded { 
    display: block; 
    margin-bottom: 4px; 
}

/* Desktop: give last column more room so pill button doesn't squash */
@media (min-width: 768px) {
    body .wishlist_table.wishlist_view th.product-add-to-cart,
    body .wishlist_table.wishlist_view td.product-add-to-cart {
        width: 200px;      /* widen column */
        min-width: 200px;
    }
}

/* Wishlist table borders: remove doubled lines and use a single clean separator */
/* Reset any default Woo/YITH borders */
body .wishlist_table.wishlist_view,
body .wishlist_table.wishlist_view thead th,
body .wishlist_table.wishlist_view tbody td {
    border: 0 !important;
}

/* Ensure header has no borders/separators */
body .wishlist_table.wishlist_view thead,
body .wishlist_table.wishlist_view thead tr,
body .wishlist_table.wishlist_view thead th {
    border: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}
/* Nuke any pseudo-element lines some themes/plugins add */
body .wishlist_table.wishlist_view thead th::before,
body .wishlist_table.wishlist_view thead th::after,
body .wishlist_table.wishlist_view thead::before,
body .wishlist_table.wishlist_view thead::after { content: none !important; display: none !important; }

/* Draw a single hairline under each body row for alignment */
body .wishlist_table.wishlist_view tbody tr { position: relative; }
body .wishlist_table.wishlist_view tbody tr::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #e7e7e7;
}

/* Avoid line after the last row */
body .wishlist_table.wishlist_view tbody tr:last-child::after { display: none; }

/* Wishlist header: full-width dark background + white text */
body .wishlist_table.wishlist_view thead,
body .wishlist_table.wishlist_view thead tr,
body .wishlist_table.wishlist_view thead th {
    background: #2a395a !important; /* same dark blue as theme */
    color: #ffffff !important;
}

/* Make sure any nested spans/labels inherit white color (e.g., Birim fiyat) */
body .wishlist_table.wishlist_view thead th *,
body .wishlist_table.wishlist_view thead th { color: #ffffff !important; }

/* Remove any cell gaps that may show as white patches */
body table.wishlist_table.wishlist_view {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Keep nice rounded corners on header */
body .wishlist_table.wishlist_view thead th:first-child { border-top-left-radius: 10px; }
body .wishlist_table.wishlist_view thead th:last-child  { border-top-right-radius: 10px; }

/* VIN Şase Sorgulama sonuçları: Woo ürün ızgarasına uyum */
.sase-sorgula-page .vwmf-wrap{ margin-top:12px; }
.sase-sorgula-page .vwmf-results ul.products{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; list-style:none !important; padding-left:0; margin-left:0; }
.sase-sorgula-page .vwmf-results ul.products li::marker{ content:none; }
.sase-sorgula-page .vwmf-products .product{ background:#fff; border:1px solid #eee; border-radius:10px; padding:10px; }
.sase-sorgula-page .vwmf-products .woocommerce-loop-product__title{ font-size:14px; line-height:1.35; min-height:38px; margin:8px 0 4px; }
.sase-sorgula-page .vwmf-products img{ width:100%; height:auto; object-fit:contain; max-height:180px; }
.sase-sorgula-page .vwmf-products .price{ font-weight:600; }
.sase-sorgula-page .vwmf-sku{ font-size:12px; color:#556; opacity:.9; margin:2px 0 4px; }
.sase-sorgula-page .vwmf-products .button{ background:#FFD400; color:#1E2A3B; border:1px solid #E6BE00; border-radius:999px; padding:8px 14px; font-weight:600; }
.sase-sorgula-page .vwmf-products .button:hover{ background:#FFC300; border-color:#D9B400; }
