.col-md-3.hidden-sm-down {
    position: relative;
}
.col-md-3.hidden-sm-down:has(#catTop){
    padding: 0;
}
#headerCategories {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0);
    transition: max-height 0.3s ease-out, box-shadow 0.3s ease-out;
}

#headerCategories.expanded {
    max-height: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#catTop {
    cursor: pointer;
    user-select: none;
    font-size: 16px;
}

#catTop::after {
    content: '▼';
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
    font-size: 15px;
}

#catTop.active::after {
    transform: rotate(180deg);
}

#headerCategories .block-categories {
    padding: 15px;
}
#ct_matrix {
    font-size: 16px;
    padding-left: 15px;
    padding-right: 15px;
}

#ct_matrix .ctd_quantity {
    min-width: 80px;
    padding-left: 12px;
    padding-right: 12px;
}

#ct_matrix thead tr.ct_matrix_head {
    background: #F2F2F2 !important;
    background-image: none !important;
}

#ct_matrix thead th {
    background: #F2F2F2 !important;
    background-image: none !important;
}

#ct_matrix thead th {
    padding-top: 16px;
    padding-bottom: 16px;
}

#ct_matrix thead th.tablesorter-header {
    background: #F2F2F2 !important;
    background-image: none !important;
}
#ct_matrix .ctp_checked {
    background: #cacaca !important;
}
#ct_matrix .ctp_checked:hover {
    background: #a7a7a7  !important;
}
.text-sm-center{
    text-align: center;
}
.text-sm-center:has(.d-block.js-terms){
    margin-top: 15px;
}
.table-ct-filters-values{
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.table-ct-filters-values .btn {
    padding: 0;
}

.table-ct-filters-values .btn img {
    width: 40px;
    height: auto;
}

a.ctpf {
    opacity: 1;
}

a.ctpf.active img {
    opacity: 0.5;
}

a.ctpf.active {
    box-shadow: inset 0 0 0 2px #000;
}

.js-qv-mask.scroll {
    overflow: hidden;
    position: relative;
    height: 339px; /* 3 elementy po 113px */
}

.js-qv-product-images {
position: relative;
top: 0;
}
#main .images-container .js-qv-mask.scroll {  
padding-top: 0 !important;
padding-bottom: 0 !important;
margin-top: 30px;
} 
.scroll-box-arrows i {
cursor: pointer;
user-select: none;
opacity: 1;
transition: opacity 0.2s;
}

.scroll-box-arrows i:hover {
opacity: 0.7;
}
.scroll-box-arrows{
height: 105% !important;
left: 48px !important;
}
@media (max-width:768px){
.page-product .page-content{
    margin: 0 auto 50px auto !important;
}
}
.product-images>li.thumb-container .thumb {
max-width: unset !important;
}
body a{
color: #DD3842;
}
body a:hover, body a:focus{
color: #ca1521;
}
.page-content li{
margin-bottom: 5px;
}
.page-content h2{
margin-top: 1.5rem;
}
.page-content p{
margin-bottom: 0.5rem;
}
.page-content ul{
    padding-left: 15px;
}
.btn-primary{
background-color: #DD3842;
}
.btn-primary:active:focus, .btn-primary:active:hover{
background-color: #ca1521;
}
.links a:hover i, .search-widget form button[type=submit] .search:hover {
color: #DD3842 !important;
}   
.dropdown-item:focus, .dropdown-item:hover {
    color: #DD3842;
}
.header-menu-wrapper .menu, .header-menu-wrapper .menu>ul>li {
display: inline-block;
}
.header-menu-wrapper a {
color: #222;
}
.header-menu-wrapper .mt-1{
    margin-top: 0 !important;
    display: flex;
}
#header{
    padding-bottom: 15px;
}
.header-menu-wrapper {
position: sticky;
top: 0;
z-index: 999;
background: #fff;
padding: 5px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
#blockcart-modal .product-name {
    color: #DD3842;
}
.product-price {
    color: #DD3842;
}
.custom-radio input[type=radio]:checked+span {
    background-color: #DD3842 !important;
}
.product-container #group_16 {
    row-gap: 18px;
}
.btn-primary:hover{background-color:#ca1521 !important}
.btn-primary:focus{background-color:#DD3842 !important}
#askForm .flex {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
@media (max-width:768px){
    #custom-blocks {
        overflow-y: auto;
    }
    .customblock-item {
        width: max-content;    
    }
    .trustedus-grid {
        overflow-y: auto;
        padding: 20px 0;
    }
    .header-top #search_widget input {
        min-width: unset !important;
    }
    .header-top #search_widget {
        min-width: 100% !important;
    }
    #tops .col-md-3.col-sm-12.pt-1{
        display: none;
    }
    #infosF {
        flex-direction: column;
    }
    .graphicblocks-container{
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    .graphicblock-text h3 {
        font-size: 26px;
    }
    .graphicblock-text {
        gap: 16px;
    }
    .header-top #search_widget{
        font-size: 14px !important;
        border-radius: 5px;
    }
    .header-top #search_widget select{
        min-width: 150px;
        width: 100%;
    }
    #search_widget button.icon-only svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }
    #pagenotfound .page-not-found #search_widget button, #products .page-not-found #search_widget button, .header-top #search_widget button {
        padding: 14.5px 15px;
        background-color: #dd3842;
        border: 0;
        color: #fff;
    }
    .user-info svg {
        width: 29px;
        height: 26px;
        vertical-align: middle;
        display: inline-block;
        margin-top: -2px;
    }
    .user-info .account::before{
        content: '' !important;
    }
    .user-info a+a::before {
        content: '' !important;
    }
    .header-menu-wrapper{
        display: none;
    }
    #header .header-nav .blockcart {
        background: #ffffff !important;
        margin-left: 5px;
    }
    #header {
        /* position: sticky;
        top: 0; */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);

    }
    #footerPowered{
        flex-direction: column;
    }
    .graphicblock-item img {
        width: 100%;
    }
    .product-container > .row > .col-md-6:last-of-type > *{
        padding: 0 13px;
    }
    .product-container .product-cover{
        display: flex;
        align-items: center;
    }
    .product-container .h1{
        font-size: 24px;
    }
    .current-price-value{
        font-size: 22px;
    }
    #js-product-list .products.row, .page-home .products.row{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;

    }
    #js-product-list .products.row .js-product{
        width: 100%;
        max-width: 100% !important;
    }

    #search_widget {
    overflow: visible !important;
    }

    #search_widget form {
    overflow: visible !important;
    }

    .custom-category-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1001;
    }

    .category-selected {
    padding: 6.5px 20px 5px 50px;
    background: #fff;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
    color: #999;
    }

    .category-selected:hover {
    border-color: #999;
    }

    .category-selected.active {
    border-color: #999;
    }

    .category-selected i {
    font-size: 20px;
    transition: transform 0.3s ease;
    left: 10px;
    padding: 0 !important;
    }

    .category-selected.active i {
    transform: rotate(180deg);
    }

    .category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1002;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    width: 150%;
    }

    .category-dropdown-menu.show {
    display: block;
    }

    .category-dropdown-menu li {
    padding: 0;
    margin: 0;
    }

    .category-dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    }

    .category-dropdown-menu li a:hover {
    background: #f5f5f5;
    }

    .category-dropdown-menu li.active a {
    background: #000;
    color: #fff;
    }
    .links .title {
        padding: .625rem 15px;
        cursor: pointer;
        border-bottom: 1px solid #f6f6f6;
    }
    

    /* FORMULARZE */
    .contact-flex {
        display: flex;
        flex-direction: column;
        gap: 50px;
        margin-bottom: 30px;
      }
    
      .contact-flex #bank::after,
      .contact-flex #phones::after,
      .contact-flex #address::after {
        top: -40px;
        width: 50px;
        height: 50px;
      }
    
      #address,
      #bank,
      #phones {
        width: 100%;
        padding: 15px !important;
        background: #f5f5f5;
        border-radius: 5px;
        font-size: 14px;
        line-height: 1.6;
      }
    
      #phones a {
        display: block;
        margin: 5px 0;
        font-size: 16px;
        font-weight: 500;
      }
    
      #formularz_zapytania {
        padding: 0 10px;
      }
    
      .ask-form {
        margin: 0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      }
    
      .card-block {
        padding: 20px 15px;
      }
      #formularz_zapytania .card-block{
          margin-bottom: 20px;
      }
      .h2.txt {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
      }
    
      #askForm {
        display: flex;
        flex-direction: column;
        gap: 15px;
      }
    
      #askForm .flex,
      #askForm .flex-col,
      #askForm .col-span-2 {
        width: 100%;
      }
    
      #askForm strong.col-span-2 {
        font-size: 16px;
        margin: 10px 0 5px;
        display: block;
      }
    
      
    
      .form-control {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-sizing: border-box;
      }
    
      input[type="text"],
      input[type="email"],
      input[type="tel"] {
        appearance: none;
      }
    
      textarea.form-control {
        min-height: 120px;
        resize: vertical;
      }
    
      .dropzone {
        padding: 20px;
        border: 2px dashed #ddd;
        border-radius: 5px;
        text-align: center;
        background: #fafafa;
        cursor: pointer;
        transition: all 0.3s;
      }
    
      .dropzone:hover {
        border-color: #999;
        background: #f5f5f5;
      }
    
      .dropzone-text {
        font-size: 14px;
        margin: 10px 0;
        color: #666;
      }
    
      .dropzone input[type="file"] {
        display: none;
      }
    
      #file-info {
        padding: 10px;
        background: #e8f5e9;
        border-radius: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
      }
    
      #file-name {
        font-size: 13px;
        word-break: break-word;
        flex: 1;
      }
    
      input[type="checkbox"] {
        min-width: 18px;
        width: 18px;
        height: 18px;
        margin-top: 2px;
        cursor: pointer;
      }
    
      label.text-left {
        font-size: 13px;
        line-height: 1.5;
        text-align: left;
        cursor: pointer;
      }
    
      label.text-left a {
        color: #007bff;
        text-decoration: underline;
      }
    
      .btn-primary:active {
        transform: scale(0.98);
      }
    
      #komunikat {
        display: none;
        text-align: center;
        padding: 30px 15px;
        font-size: 14px;
      }
      
      #komunikat.active {
        display: block;
      }
    
      #komunikat img {
        max-width: 50px;
        margin-top: 10px;
      }
    
      .btn-danger {
        padding: 6px 12px;
        font-size: 12px;
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
      }
    
      .page-header {
        padding: 20px 15px;
      }
    
      .page-header h1 {
        font-size: 24px;
        margin: 0;
      }
    
      .page-content {
        padding: 15px 0 !important;
      }
      #infosF{
        align-items: flex-start;
        gap: 15px;
      }
      #fastDelivery, #discounts{
        font-size: 1rem;
      }
      .products-container {
        padding: 0px 5px;
    }
}


  @media (max-width: 479px) {
    .h2.txt {
      font-size: 18px;
    }
  
    .card-block {
      padding: 15px 10px;
    }
    #formularz_zapytania .card-block{
        margin-bottom: 15px;
    }
    label.text-left {
      font-size: 12px;
    }
  
    .btn-primary {
      font-size: 15px;
      padding: 12px 15px;
    }
  
    input[type="checkbox"],
    input[type="radio"] {
      min-width: 16px;
      width: 16px;
      height: 16px;
    }
    
  }
  