/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* Add your custom styles below */

/* Warenkorb-Counter Styling */
.cart-contents {
    position: relative;
    display: block;
}

.cart-contents-count {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    background-color: #ff671d !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    z-index: 9999 !important;
}

/* Stelle sicher, dass der Counter über anderen Elementen angezeigt wird */
.basket-wrap {
    position: relative !important;
}

.basket-wrap a.cart-contents {
    position: relative !important;
    display: block !important;
}

/* Tabellen mit weniger Spalten - Breitere Darstellung */
.table.table-products .tr.change-width .td,
.table.table-products .tr.change-width .th,
.table.table-products .table-header.change-width .th,
.table.table-search-results .table-header.change-width .th {
    width: auto !important;
}

.table.table-products .tr.change-width .td.product-number,
.table.table-products .tr.change-width .th.product-number,
.table.table-products .table-header.change-width .th.product-number,
.table.table-search-results .table-header.change-width .th.product-number {
    width: 25% !important;
    min-width: 180px !important;
}

.table.table-products .tr.change-width .td.product-title,
.table.table-products .tr.change-width .th.product-title,
.table.table-products .table-header.change-width .th.product-title,
.table.table-search-results .table-header.change-width .th.product-title {
    width: 50% !important;
    min-width: 300px !important;
}

.table.table-products .tr.change-width .td.product-mfr,
.table.table-products .tr.change-width .th.product-mfr,
.table.table-products .table-header.change-width .th.product-mfr,
.table.table-search-results .table-header.change-width .th.product-mfr {
    width: 25% !important;
    min-width: 120px !important;
}

/* Force hide aircraft columns for battery shop categories */
.table.table-products[id="46-batteries"] .product-aircraft-mfr,
.table.table-products[id="46-batteries"] .product-type,
.table.table-products[id="47-batteries"] .product-aircraft-mfr,
.table.table-products[id="47-batteries"] .product-type,
.table.table-products[id="48-batteries"] .product-aircraft-mfr,
.table.table-products[id="48-batteries"] .product-type,
.table.table-products[id="49-batteries"] .product-aircraft-mfr,
.table.table-products[id="49-batteries"] .product-type,
.table.table-products[id="50-batteries"] .product-aircraft-mfr,
.table.table-products[id="50-batteries"] .product-type {
    display: none !important;
}

/* Hide RFQ/Cart column in battery tables */
.wrap-placeholders,
.cart-header,
div[class*="-batteries"] .wrap-placeholders {
    display: none !important;
}

/* Ensure table container has proper width */
.product-table-container {
    width: 100%;
    max-width: 100%;
}

.wrap-shortcode-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Adjust column widths for battery tables (3 columns only) */
.table.table-products .tr.change-width .td.product-number,
.table.table-products .tr.change-width .th.product-number,
.table.table-products .table-header.change-width .th.product-number,
.table.table-search-results .table-header.change-width .th.product-number {
    width: 25% !important;
    min-width: 180px !important;
}

.table.table-products .tr.change-width .td.product-title,
.table.table-products .tr.change-width .th.product-title,
.table.table-products .table-header.change-width .th.product-title,
.table.table-search-results .table-header.change-width .th.product-title {
    width: 50% !important;
    min-width: 300px !important;
}

.table.table-products .tr.change-width .td.product-mfr,
.table.table-products .tr.change-width .th.product-mfr,
.table.table-products .table-header.change-width .th.product-mfr,
.table.table-search-results .table-header.change-width .th.product-mfr {
    width: 25% !important;
    min-width: 120px !important;
}





