/*
Theme Name: weyer
Theme URI: https://weyer.areo
Author: Ammersee Media
Author URI: https://ammersee-media.de
Template: hello-elementor
Version:1.0
*/

/* =============================================================================
   Weyer Shop – Sidebar, Produktgrid, Infinite Scroll
   ============================================================================= */

/* ── Infinite Scroll: Pagination ausblenden ─────────────────────────────────── */
.woocommerce-shop .woocommerce-pagination,
.woocommerce-page .woocommerce-pagination {
    display: none !important;
}

/* ── Spinner-Animation ───────────────────────────────────────────────────────── */
@keyframes weyer-spin {
    to { transform: rotate(360deg); }
}

/* ── Sidebar-Widget ──────────────────────────────────────────────────────────── */
.woocommerce .elementor-widget-sidebar .widget {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.woocommerce .elementor-widget-sidebar .widget-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #0A1E3C;
    border-bottom: 2px solid #0A1E3C;
    padding-bottom: 10px;
    margin: 0 0 14px;
}

/* ── Kategorie-Liste im Widget ───────────────────────────────────────────────── */
.woocommerce .elementor-widget-sidebar ul,
.woocommerce .elementor-widget-sidebar .wp-block-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce .elementor-widget-sidebar li {
    border-bottom: 1px solid #f0f2f5;
}
.woocommerce .elementor-widget-sidebar li:last-child {
    border-bottom: none;
}
.woocommerce .elementor-widget-sidebar li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 2px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: color .15s;
}
.woocommerce .elementor-widget-sidebar li a:hover {
    color: #1A6BC1;
}
.woocommerce .elementor-widget-sidebar .current-cat > a {
    color: #1A6BC1;
    font-weight: 700;
}
.woocommerce .elementor-widget-sidebar ul ul {
    padding-left: 12px;
}
.woocommerce .elementor-widget-sidebar ul ul li a {
    font-size: 13px;
    color: #555;
}
.woocommerce .elementor-widget-sidebar li a .count,
.woocommerce .elementor-widget-sidebar li a .wp-block-categories__count {
    background: #F4F6F9;
    color: #888;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 600;
}

/* ── Produktgrid: 3 Spalten wenn Sidebar vorhanden ──────────────────────────── */
.woocommerce-shop ul.products.columns-4 {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* ── Produkt-Karte ───────────────────────────────────────────────────────────── */
.woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 6px 20px rgba(10,30,60,.1);
    transform: translateY(-2px);
}
.woocommerce ul.products li.product img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: #F4F6F9;
    padding: 14px;
    border-bottom: 1px solid #e2e6ea;
    margin: 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
    font-weight: 600;
    color: #0A1E3C;
    line-height: 1.45;
    padding: 12px 14px 6px;
    margin: 0;
    flex: 1;
}
.woocommerce ul.products li.product .price {
    display: block;
    padding: 4px 14px 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1A6BC1;
    margin: 0;
}
.woocommerce ul.products li.product .weyer-auf-anfrage {
    font-size: 12px;
    font-style: italic;
    color: #888;
    font-weight: 400;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .weyer-anfrage-btn {
    display: block !important;
    margin: 0 14px 14px !important;
    padding: 8px 14px !important;
    background: #0A1E3C !important;
    color: #fff !important;
    text-align: center;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .15s;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .weyer-anfrage-btn:hover {
    background: #142d54 !important;
    color: #fff !important;
}

/* ── Ergebniszeile + Sortierung ──────────────────────────────────────────────── */
.woocommerce-result-count {
    color: #666;
    font-size: 13px;
}
.woocommerce-ordering select {
    border: 1px solid #e2e6ea;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
}


/* =============================================================================
   Warenkorb – WooCommerce Block Cart
   ============================================================================= */

/* ── Cart-Items-Bereich (linke Spalte) ───────────────────────────────────────── */
.wc-block-cart .wc-block-cart-items {
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.wc-block-cart-items__header {
    background: #F4F6F9;
    border-bottom: 2px solid #e2e6ea;
    padding: 10px 16px !important;
}
.wc-block-cart-items__header span {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #0A1E3C !important;
}

/* ── Einzelne Produkt-Zeile ──────────────────────────────────────────────────── */
.wc-block-cart-item {
    border-bottom: 1px solid #f0f2f5 !important;
    padding: 14px 16px !important;
}
.wc-block-cart-item:last-child {
    border-bottom: none !important;
}

/* ── Produktbild ─────────────────────────────────────────────────────────────── */
.wc-block-cart-item__image img {
    border: 1px solid #e2e6ea !important;
    border-radius: 6px !important;
    background: #F4F6F9 !important;
    padding: 6px !important;
    object-fit: contain !important;
}

/* ── Produktname ─────────────────────────────────────────────────────────────── */
a.wc-block-cart-item__product-name,
.wc-block-cart-item__product-name {
    color: #0A1E3C !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
}
a.wc-block-cart-item__product-name:hover {
    color: #1A6BC1 !important;
}

/* ── Preise ──────────────────────────────────────────────────────────────────── */
.wc-block-cart-item__prices .wc-block-components-product-price,
.wc-block-cart-item__prices .wc-block-components-product-price .woocommerce-Price-amount,
.wc-block-cart-item__total-price .woocommerce-Price-amount {
    color: #1A6BC1 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* ── Mengen-Stepper ──────────────────────────────────────────────────────────── */
.wc-block-components-quantity-selector {
    border: 1px solid #e2e6ea !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
}
.wc-block-components-quantity-selector__input {
    border: none !important;
    border-left: 1px solid #e2e6ea !important;
    border-right: 1px solid #e2e6ea !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0A1E3C !important;
    padding: 6px 4px !important;
    width: 44px !important;
    -moz-appearance: textfield !important;
}
.wc-block-components-quantity-selector__input::-webkit-inner-spin-button,
.wc-block-components-quantity-selector__input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
}
.wc-block-components-quantity-selector__button {
    background: #F4F6F9 !important;
    border: none !important;
    color: #0A1E3C !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    cursor: pointer !important;
    transition: background .15s !important;
    font-size: 16px !important;
    line-height: 1 !important;
}
.wc-block-components-quantity-selector__button:hover {
    background: #e2e6ea !important;
}

/* ── Entfernen-Button ────────────────────────────────────────────────────────── */
.wc-block-cart-item__remove-link {
    color: #888 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: color .15s !important;
}
.wc-block-cart-item__remove-link:hover {
    color: #dc2626 !important;
}

/* ── Bestellübersicht (rechte Spalte) ────────────────────────────────────────── */
.wp-block-woocommerce-cart-totals-block .wc-block-cart__totals-title,
.wc-block-cart__totals-title {
    background: #F4F6F9;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #0A1E3C !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border-bottom: 2px solid #e2e6ea !important;
    display: block;
}
.wp-block-woocommerce-cart-order-summary-block {
    border: 1px solid #e2e6ea !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    margin-bottom: 12px !important;
}
.wc-block-components-totals-item {
    padding: 10px 16px !important;
    border-bottom: 1px solid #f0f2f5 !important;
    font-size: 16px !important;
    color: #333 !important;
}
.wc-block-components-totals-item:last-child {
    border-bottom: none !important;
}
.wc-block-components-totals-item__label {
    color: #555 !important;
    font-size: 16px !important;
}
.wc-block-components-totals-item__value .woocommerce-Price-amount,
.wc-block-components-totals-item__value {
    color: #1A6BC1 !important;
    font-weight: 700 !important;
    font-size: 17px !important;
}
/* Gesamtsumme fetter */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value .woocommerce-Price-amount {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0A1E3C !important;
}

/* ── Kasse-Button ────────────────────────────────────────────────────────────── */
.wp-block-woocommerce-proceed-to-checkout-block,
.wc-block-cart__submit-container {
    padding: 0 !important;
}
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button {
    display: block !important;
    width: 100% !important;
    background: #0A1E3C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 20px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background .15s !important;
    letter-spacing: .02em !important;
    text-decoration: none !important;
}
.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button:hover {
    background: #142d54 !important;
    color: #fff !important;
}
