@media (min-width: 1024px) {
    body.page-products .products-grid .product-item {
        box-sizing: border-box;
        margin-left: 2% !important;
        padding: 5px;
        width: calc((100% - 4%) / 3) !important;
    }

    body.page-products .products-grid .product-item:nth-child(4n + 1) {
        margin-left: 2% !important;
    }

    body.page-products .products-grid .product-item:nth-child(3n + 1) {
        margin-left: 0 !important;
    }
}


/* =========================================================
   Saz Hamburg – Preisgestaltung
   ========================================================= */

/* Kategorie / Produktlisten: aktueller Preis */
body.page-products .products-grid .price-box .price {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

/* Sonderpreis deutlich hervorheben */
body.page-products .products-grid .special-price .price {
    font-size: 25px;
    font-weight: 700;
}

/* Alter Preis bei reduziertem Artikel */
body.page-products .products-grid .old-price {
    display: inline-block;
    margin-left: 8px;
}

body.page-products .products-grid .old-price .price {
    font-size: 16px;
    font-weight: 400;
    color: #777;
    text-decoration: line-through;
}

/* Produktdetailseite: Preis noch etwas größer */
.catalog-product-view .product-info-main .price-box .price {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

/* Produktdetailseite: alter Preis */
.catalog-product-view .product-info-main .old-price {
    display: inline-block;
    margin-left: 10px;
}

.catalog-product-view .product-info-main .old-price .price {
    font-size: 19px;
    font-weight: 400;
    color: #777;
    text-decoration: line-through;
}


/* =========================================================
   Sonderpreis / alter Preis
   ========================================================= */

/* Magento-Label "Regular Price" ausblenden */
.price-box .old-price .price-label {
    display: none !important;
}

/* Alter Preis sauber durchstreichen */
.price-box .old-price .price {
    color: #777;
    font-weight: 400;
    text-decoration: line-through;
}

/* Kategorieansicht: Preis deutlich größer */
.products-grid .product-item .price-box .price {
    font-size: 22px !important;
    font-weight: 700;
    line-height: 1.25;
}

/* Kategorieansicht: Sonderpreis */
.products-grid .product-item .special-price .price {
    font-size: 23px !important;
}

/* Kategorieansicht: alter Preis */
.products-grid .product-item .old-price {
    display: inline-block;
    margin-left: 7px;
}

.products-grid .product-item .old-price .price {
    font-size: 16px !important;
    font-weight: 400;
    color: #777;
    text-decoration: line-through;
}

/* Produktdetailseite: alter Preis */
.catalog-product-view .product-info-main .old-price .price {
    font-size: 19px !important;
    color: #777;
    text-decoration: line-through;
}

/* =========================================================
   BSS Hide Price – Hinweis in Kategorie immer sichtbar
   ========================================================= */

.products-grid .product-item .hide_price_text {
    display: block !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 8px 0 0 !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

/* =========================================================
   BSS Hide Price – Hinweis bei Luma dauerhaft sichtbar
   ========================================================= */

.products-grid .product-item-inner:has(.hide_price_text) {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.products-grid .product-item-inner:has(.hide_price_text) .actions-secondary {
    display: none !important;
}

.products-grid .product-item-inner:has(.hide_price_text) .actions-primary {
    display: block !important;
}

.products-grid .product-item-inner:has(.hide_price_text) .hide_price_text {
    display: block !important;
    margin: 4px 0 0 !important;
}

/* =========================================================
   Checkout – kompakteres Luma Layout
   ========================================================= */

body.checkout-index-index .opc-wrapper .step-title {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
}

body.checkout-index-index .opc-wrapper .step-content {
    margin-bottom: 18px !important;
}

body.checkout-index-index .fieldset {
    margin-bottom: 15px !important;
}

body.checkout-index-index .fieldset > .field {
    margin-bottom: 10px !important;
}

body.checkout-index-index .fieldset > .field > .label {
    margin-bottom: 4px !important;
}

body.checkout-index-index input[type="text"],
body.checkout-index-index input[type="email"],
body.checkout-index-index input[type="tel"],
body.checkout-index-index input[type="password"],
body.checkout-index-index select {
    height: 36px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

body.checkout-index-index .form-shipping-address {
    margin-top: 8px !important;
}

body.checkout-index-index .checkout-shipping-address {
    margin-bottom: 15px !important;
}

body.checkout-index-index .checkout-shipping-method {
    margin-top: 10px !important;
}

body.checkout-index-index .opc-block-summary {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}


/* =========================================================
   Checkout – vertikale Abstände weiter reduzieren
   ========================================================= */

/* Großen Abstand nach E-Mail entfernen */
body.checkout-index-index .form-login {
    margin-bottom: 18px !important;
}

/* Adressformular kompakter */
body.checkout-index-index .form-shipping-address .fieldset {
    margin-top: 0 !important;
}

body.checkout-index-index .form-shipping-address .fieldset > .field {
    margin-bottom: 8px !important;
}

/* Hilfetext unter E-Mail kompakter */
body.checkout-index-index .form-login .note {
    margin-top: 5px !important;
    margin-bottom: 8px !important;
}

/* Allgemeine unnötige Abstände im Versand-Schritt */
body.checkout-index-index #shipping .field {
    padding-top: 0 !important;
}


/* =========================================================
   SAZ Checkout – One Page Layout Phase 1
   Desktop Grundlayout
   ========================================================= */

@media (min-width: 1024px) {

    /* Checkout auf dem Bildschirm besser ausnutzen */
    body.checkout-index-index .page-main {
        max-width: 1440px !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    /* Linker Magento Checkout-Bereich */
    body.checkout-index-index .opc-wrapper {
        width: 64% !important;
        padding-right: 25px !important;
        box-sizing: border-box;
    }

    /* Rechte Bestellübersicht */
    body.checkout-index-index .opc-sidebar {
        width: 36% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Adresse optisch als One-Page-Karte */
    body.checkout-index-index .checkout-shipping-address {
        background: #fff !important;
        border: 1px solid #e2e2e2 !important;
        border-radius: 4px !important;
        padding: 18px 20px !important;
        margin-bottom: 15px !important;
    }

    /* Versandart ebenfalls als Karte */
    body.checkout-index-index .checkout-shipping-method {
        background: #fff !important;
        border: 1px solid #e2e2e2 !important;
        border-radius: 4px !important;
        padding: 18px 20px !important;
        margin-top: 0 !important;
    }

    /* Bestellübersicht als rechte Karte */
    body.checkout-index-index .opc-block-summary {
        background: #fff !important;
        border: 1px solid #e2e2e2 !important;
        border-radius: 4px !important;
        padding: 18px 20px !important;
    }

    /* Überschriften kompakter */
    body.checkout-index-index .opc-wrapper .step-title,
    body.checkout-index-index .opc-block-summary > .title {
        font-size: 20px !important;
        line-height: 1.3 !important;
        padding-bottom: 10px !important;
        margin-bottom: 15px !important;
    }
}

/* Produktbilder im Kategorie-Grid optisch vergrößern */
@media (min-width: 1024px) {
    body.page-products .products-grid .product-image-photo {
        transform: scale(1.25);
        transform-origin: center center;
    }
}

/* Abstand zwischen den Produktreihen verkleinern */
@media (min-width: 1024px) {
    body.page-products .products-grid .product-item {
        margin-bottom: 10px !important;
    }
}
