/* product cards on the home page and in the catalog */
:is(.tabs-product, .product-category #content .product-grid) .product-thumb .image .inner > a {
    display: block;
    aspect-ratio: 370 / 225;
    overflow: hidden;
}

:is(.tabs-product, .product-category #content .product-grid) .product-thumb .image .inner > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:is(.tabs-product, .product-category #content .product-grid) .product-thumb .product-item .caption {
    padding-top: 10px;
}

:is(.tabs-product, .product-category #content .product-grid) .product-thumb .product-item .caption h4 {
    margin-bottom: 6px;
}

:is(.tabs-product, .product-category #content) .product-thumb .product-item .caption .price {
    font-size: clamp(18px, 15px + 0.6vw, 22px);
    font-weight: 700;
    line-height: 1.2;
}

/* home page product tabs */
.tabs-product .block-title{text-align:center}
.tabs-product .block-title .title span{text-transform:none}
@media (min-width:992px){
.tabs-product{display:flex;flex-wrap:wrap;align-items:flex-start}
.tabs-product .block-title{flex:0 0 100%;max-width:100%}
.tabs-product .tabs-style{flex:0 0 25%;max-width:25%;padding-right:25px}
.tabs-product .tabs-style .nav-tabs{display:block !important;border:0 !important;float:none !important;text-align:left !important}
.tabs-product .tabs-style .nav-tabs > li{float:none !important;display:block !important}
.tabs-product .pt-content{flex:0 0 75%;max-width:75%}
.tabs-product .swiper-wrapper{display:flex !important;flex-direction:row !important;flex-wrap:wrap !important;width:100% !important;height:auto !important;transform:none !important}
.tabs-product .swiper-slide .grid-style{margin-top:0 !important}
.tabs-product .swiper-slide{width:33.3333% !important;height:auto !important;margin:0 !important;float:none !important;order:0 !important;padding:0 10px 20px}
}

/* newsletter: popup opens only by click on the header bar button */
body:not(.stempel-nl-open) .newsletter-popup{display:none !important}
.stempel-nl-bar{position:absolute;left:0;top:0;height:71px;display:flex;align-items:center;z-index:10;font-size:13px;line-height:1.2;white-space:nowrap}
.stempel-nl-text{margin-right:10px;color:#313030}
.stempel-nl-btn{background:#313030;color:#fff;border:0;border-radius:0;padding:6px 14px;font-size:12px;cursor:pointer}
.stempel-nl-btn:hover{background:#575555}
@media (max-width:991px){.stempel-nl-bar{display:none}}
@media (min-width:992px) and (max-width:1199px){.stempel-nl-text{display:none}.stempel-nl-bar{left:50px}}

.mobile-layout .mobile-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.mobile-header-row .col-logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
}

.mobile-header-row #logo {
    float: none;
    display: block;
    max-width: 100%;
    padding: 0 0 0 34px;
    text-align: left;
}

.scroll-fixed .mobile-header-row #logo {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 50px;
}

.mobile-header-row #logo h1 {
    margin: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.mobile-header-row .col-cart {
    position: static;
    flex: none;
    margin: 0;
}

.col-cart > .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.col-cart > .mobile-header-actions > * {
    margin: 0;
}

.mobile-header-actions :is(.box-setting > button, #wishlist-total, #cart > button) {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    line-height: 1;
}

.mobile-header-actions .box-setting.open > button i {
    z-index: 992;
}

.mobile-header-actions #cart > button {
    font-size: 0;
}

.mobile-header-actions #wishlist-total > span,
.mobile-header-actions #cart #cart-total {
    position: absolute;
    inset: 0;
    padding: 0;
    pointer-events: none;
}

.mobile-header-actions :is(#wishlist-total, #cart) :is(.header-summary-text, .text-wishlist, .text-item, .text-cart) {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.mobile-header-actions :is(#wishlist-total, #cart) :is(.header-item-count, .txt-count) {
    position: absolute;
    inset: 0 0 auto auto;
    min-width: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--heading-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

.mobile-header-actions :is(#wishlist-total, #cart) .txt-count::before,
.mobile-header-actions :is(#wishlist-total, #cart) .txt-count::after {
    content: none;
}

.mobile-layout .header-middle .col-search {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0 0 16px;
}

.bottom-mobile-quicklicks .pt-menu > .ul-top-items {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    height: auto;
    min-height: 55px;
    padding: 5px 0;
}

.bottom-mobile-quicklicks .pt-menu > .ul-top-items > .li-top-item {
    display: flex;
    text-align: center;
}

.bottom-mobile-quicklicks .pt-menu > .ul-top-items > .li-top-item > .a-top-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    gap: 2px;
}

.bottom-mobile-quicklicks .pt-menu > .ul-top-items > .li-top-item > .a-top-link > img {
    width: 20px;
    height: 20px;
    margin-bottom: 0;
    object-fit: contain;
}

.bottom-mobile-quicklicks .pt-menu > .ul-top-items > .li-top-item > .a-top-link > span {
    max-width: 100%;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* stempel24 product page + breadcrumbs (2026-11-05) */
.breadcrumbs{padding:10px 0;background:#f0f0f0;text-align:center}
.product-product .additional-container{display:none !important}
.product-product .product-info-details .inner{position:relative}
.product-product .product-info-details .inner::before{content:"Zaprojektuj odbicie pieczątki";display:block;text-align:left;font-family:Jost,sans-serif;font-size:16px;color:#707070;margin-bottom:6px}
.product-product .product-info-details .inner p.price{font-size:28px !important;font-weight:700 !important;color:#313030 !important}
@media (min-width:768px){
.product-product .product-info-details .inner h1,.product-product .product-info-details .inner p.price{padding-right:200px}
.product-product .product-info-details .inner .launch-constructor{position:absolute;top:30px;right:0;margin:0 !important;width:auto !important}
}
.product-product .launch-constructor{background:#d62828 !important;border-color:#d62828 !important;color:#fff !important;font-weight:600;padding:12px 22px !important}
.product-product .launch-constructor:hover,.product-product .launch-constructor:focus{background:#b01f1f !important;border-color:#b01f1f !important;color:#fff !important}

@media (max-width: 767px) {
    #product-product .product-info-details .launch-constructor {
        width: 100%;
        margin: 12px 0 0;
    }

    #product-product .launch-constructor + .list-unstyled {
        margin-top: 20px;
        padding-top: 16px;
    }

    #product-product #product .product-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
    }

    #product-product .product-actions.form-group #input-quantity,
    #product-product .product-actions #button-cart,
    #product-product .product-actions .btn-group,
    #product-product .product-actions .btn-group > .btn {
        float: none;
        margin: 0;
    }

    #product-product .product-actions.form-group #input-quantity {
        width: 54px;
    }

    #product-product .product-actions #button-cart {
        flex: 1 1 160px;
        min-width: 0;
        min-height: 50px;
        line-height: 1.25;
        white-space: normal;
    }

    #product-product .product-actions .btn-group {
        display: flex;
        gap: 8px;
        overflow: visible;
    }

    #product-product .product-info-details-more {
        margin-top: 24px;
    }

    #product-product .product-info-details-more .nav-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    #product-product .product-info-details-more .nav-tabs::before,
    #product-product .product-info-details-more .nav-tabs::after {
        content: none;
    }

    #product-product .product-info-details-more .nav-tabs > li {
        flex: none;
        margin: 0;
    }

    #product-product .product-info-details-more .nav-tabs > li::after {
        bottom: 0;
    }

    #product-product .product-info-details-more .nav-tabs > li > a {
        padding: 10px 12px;
        font-size: 1.6rem;
        line-height: 24px;
        white-space: nowrap;
    }
}
