/* Musik Gläsel: scoped overrides; original Porto files stay unchanged. */
.nav-open .page-header.type1::after {
    visibility: hidden !important;
}
.page-header.type1 .header-main .header-right {
    flex-shrink: 0;
    gap: 22px;
}
.page-header.type1 .header-main .header-contact {
    gap: 18px;
}
.page-header.type1 .header-main .header-contact > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 !important;
}
.page-header.type1 .header-main .minicart-wrapper {
    margin-left: 0 !important;
    flex-shrink: 0;
}
.page-header.type1 .main-panel-top .header.links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: auto;
}
.page-header.type1 .main-panel-top .header.links > li {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
.page-header.type1 .main-panel-top .header.links a,
.page-header.type1 .main-panel-top .header.links .greet {
    font-size: 12px;
    line-height: 30px;
}

@media (min-width: 992px) {
    .page-header.type1 .header-main .header-center {
        min-width: 0;
    }
    .page-header.type1 .header-main .block-search {
        width: 100%;
        min-width: 0;
    }
    .page-header.type1 .navigation.sw-megamenu,
    .page-header.type1 .navigation.sw-megamenu > ul {
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
    }
    .page-header.type1 .navigation.sw-megamenu > ul {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }
    .page-header.type1 .navigation.sw-megamenu > ul > li.level0 {
        float: none;
        flex: 0 1 auto;
        margin: 0 !important;
    }
    .page-header.type1 .navigation.sw-megamenu > ul > li.level0 > a {
        padding: 0 clamp(8px, 1.2vw, 22px);
        font-size: clamp(12px, 1.15vw, 16px);
        line-height: 52px;
        white-space: nowrap;
    }
}

.page-footer .footer-middle > .container > .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin: 0;
}
.page-footer .footer-middle > .container > .row > .col-lg-3 {
    width: auto;
    max-width: none;
    padding: 0;
}
.page-footer .footer-middle > .container > .row > .col-lg-6 {
    display: contents;
}
.page-footer .footer-middle .footer-double-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: span 2;
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0;
}
.page-footer .footer-middle .footer-service-card,
.page-footer .footer-middle .footer-friends-card,
.page-footer .footer-middle .footer-partner-card,
.page-footer .footer-middle .footer-contact-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    height: 100%;
    margin: 0;
    padding: 28px 22px;
    box-sizing: border-box;
}
.page-footer .footer-middle .footer-service-card h2,
.page-footer .footer-middle .footer-friends-card h2,
.page-footer .footer-middle .footer-partner-card h2,
.page-footer .footer-middle .footer-contact-card h2 {
    font-size: clamp(28px, 2.3vw, 42px);
    line-height: 1.15;
    margin: 0 0 28px;
}
.page-footer .footer-middle .footer-service-links a,
.page-footer .footer-middle .footer-friends-links a,
.page-footer .footer-middle .footer-partner-links a {
    overflow-wrap: anywhere;
}
.page-footer .footer-middle .footer-guarantee-card {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 0 !important;
    padding: 28px !important;
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 560px);
    justify-content: center;
    align-items: center;
    gap: 22px 36px;
}
.page-footer .footer-middle .footer-guarantee-card h2 {
    grid-column: 1 / -1;
    font-size: clamp(25px, 2.3vw, 36px) !important;
    margin: 0 !important;
}
.page-footer .footer-middle .footer-guarantee-card img {
    display: block !important;
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain;
}
.page-footer .footer-middle .footer-guarantee-note {
    width: 100%;
    max-width: 560px;
    margin: 0 !important;
    text-align: left;
}
.page-footer .footer-bottom img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 1199px) and (min-width: 768px) {
    .page-footer .footer-middle > .container > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-footer .footer-middle .footer-double-column {
        grid-column: 1 / -1;
    }
}
@media (max-width: 991px) {
    .page-header.type1 .header-main .header-right { gap: 12px; }
    .page-header.type1 .header-main .header-contact { gap: 8px; }
}
@media (max-width: 767px) {
    .nav-open .page-header.type1 .main-panel-top {
        visibility: hidden;
    }
    .page-header.type1 .header-main .header-right { gap: 8px; }
    .page-header.type1 .header-main .header-contact { gap: 4px; }
    .page-header.type1 .header-main .header-contact > a {
        width: 34px;
        min-height: 40px;
    }
    .page-footer .footer-middle > .container > .row,
    .page-footer .footer-middle .footer-double-column {
        grid-template-columns: minmax(0, 1fr);
    }
    .page-footer .footer-middle .footer-double-column { grid-column: 1; }
    .page-footer .footer-middle .footer-guarantee-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px 16px !important;
    }
    .page-footer .footer-middle .footer-guarantee-card h2 { grid-column: 1; }
}

/* Product listings: four desktop columns; do not enlarge 300px thumbnails. */
.page-products .column.main .products-grid > .product-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin: 0;
}
.page-products .column.main .products-grid > .product-items::before,
.page-products .column.main .products-grid > .product-items::after {
    display: none;
}
.page-products .column.main .products-grid > .product-items > .product-item {
    float: none;
    clear: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0;
}
.page-products .column.main .products-grid .product-item-info {
    width: 100%;
}
.page-products .column.main .products-grid .product-item-photo .product-image-container {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 300px !important;
    height: auto !important;
    margin: 0 auto;
}
.page-products .column.main .products-grid .product-image-photo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.page-products .column.main .products-grid .product-item-name {
    overflow-wrap: anywhere;
}
@media (min-width: 768px) {
    .page-products .column.main .products-grid > .product-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 20px;
    }
}
@media (min-width: 992px) {
    .page-products .column.main .products-grid > .product-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 24px;
    }
}
@media (max-width: 767px) {
    .page-products .column.main .products-grid {
        margin-left: 0;
        margin-right: 0;
    }
    .page-products .column.main .products-grid .actions-primary {
        width: 100%;
    }
    .page-products .column.main .products-grid .actions-primary .tocart {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        height: auto;
        padding: 12px 6px;
        line-height: 20px;
        white-space: normal;
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .page-products .column.main .products-grid .product-item-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        white-space: normal;
    }
    .page-products .column.main .products-grid .actions-primary {
        min-width: 0;
        max-width: 100%;
    }
    .page-products .column.main .products-grid .actions-primary .tocart {
        max-width: 100%;
        white-space: normal;
    }
    .page-products .column.main .products-grid .actions-secondary {
        margin-left: 0;
    }
}

/* Page content: match the homepage's centered 1400px landing wrapper. */
body:not(.cms-index-index) .page-main {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
}
body:not(.cms-index-index) .page-wrapper > .breadcrumbs {
    padding-left: 18px !important;
    padding-right: 18px !important;
}
body:not(.cms-index-index) .page-wrapper > .breadcrumbs > .items {
    width: 100%;
    max-width: 1364px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767px) {
    body:not(.cms-index-index) .page-main,
    body:not(.cms-index-index) .page-wrapper > .breadcrumbs {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
