/* Font family declaration */
* {
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* Plus ikona pro pill tlačítka */

/* Plus ikona pro pill tlačítka */
.pill-btn {
    position: relative;
}

.pill-btn-plus-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    z-index: 10;
}

.pill-btn-plus-icon img {
    width: 20px;
    height: 20px;
    /* filter: brightness(0) invert(1); */
}

.price-info
{
    font-weight: 400;
    font-size: 14px;
}
    .p-detail-inner .p-price-wrapper .price-final {
        line-height: 32px !important;
    }

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 9999;
}

.lightbox-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    top: 25%;
    margin: auto;
}

.lightbox-close {
    position: absolute;
    top: 0px;
    right: 5px;
    width: 30px;
    height: 25px;
    background: transparent;
    border-radius: 50%;
    border: none;
    color: #936949;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.lightbox-close:hover {
    color: #7a5a3a;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
}

/* 1. PRVNÍ - Kontejner pro varianty (šířka a výška) */
.p-variants-block {
    order: 1;
    flex-direction: column;
    display: none !important;
}

/* Řádek pro šířku a výšku vedle sebe */

/*  Tlačítko do košíku */
.p-to-cart-block {
    order: 4 !important;
}

/*  Vypočtená cena */
.p-price-wrapper {
    order: 3 !important;
}

#custom-dimensions
{
     order: -1 !important;
}
.navod
{
    order: -1;
    text-decoration: underline;
    margin-top: 5px;
}
.navod a 
{
    margin-right: 5px;
}
.navod img
{
    margin-top: -15px;
}
.last-item
{
    order: 2;
}

.surcharge-list .select-pill-group .pill-btn:first-child {
    display: none !important;
}

.c-product-interconnection-detail-params__products a.is-current .item-type-img:before {
    display: none !important;
}

.c-product-interconnection-detail-params__products a.is-current .item-type-bg,
.c-product-interconnection-detail-params__products a.is-current .item-type-img {
    border: transparent !important
}

.p-detail-inner .surcharge-list {
    margin-bottom: 0px !important;
}

.detail-parameters,
.quantity {
    display: none !important;
}

#product-detail-form .variant-list {}

.c-product-interconnection-detail-params__type,
.c-product-interconnection-detail,
.p-detail-inner .surcharge-list .surcharge-label {
    text-transform: none !important;
}

.p-variants-block {
    margin-bottom: 0px !important;
}

#product-detail-form {
    margin: 0 auto 24px;
    padding: 24px;
    background: #fff;
    border-radius: 2px;
    border: 1px solid #e9eaf1;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    background-color: #F5F4F2;
}


#product-detail-form .variant-list:first-of-type {
    margin-right: 40px;
}

#product-detail-form .variant-list {
    display: block !important;
    float: left;
    margin-bottom: 10px;
    width: calc(50% - 20px);
}

#product-detail-form .variant-label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
    color: #313131;
}

.item-label span {
    color: #0D141C !important;
}
.question-tooltip {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #fff;
    top: -10px;
    position: relative;
    width: 25px;
    cursor: pointer;
    display: inline-block;
}

.question-tooltip img{
    width: 20px !important;
    height: 20px !important;
    vertical-align: middle;
    cursor: pointer;
    margin-left: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.question-tooltip:hover img {
    opacity: 1;
}

/* Custom tooltip styling */
.custom-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
}

/*inputy*/
#custom-dimensions {
    display: flex !important;
    justify-content: space-between;
}

#custom-dimensions label {
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    color: #313131;
    width: calc(50% - 20px);
    position: relative;
}

#custom-dimensions label .show-tooltip.question-tooltip {
    position: absolute;
    right: 0px;
    top: 0%;
    transform: translateY(-50%);
    grid-column: 1 / -1;
}

#custom-dimensions input {
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 2px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #313131;
    margin-top: 8px;
    cursor: pointer;
}
#custom-dimensions input::placeholder {
    font-weight: 400; /* nebo 'normal' */
}
.pill-group-error.select-pill-group .pill-btn, #custom-dimensions .input-error  {
    border: 2px solid #e74c3c !important;
    border-radius: 2px;
    transition: border 0.2s;
    }

.pill-btn #product-detail-form select {
    width: 145px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: #f4f7fb;
    font-size: 15px;
    font-weight: 600;
    color: #313131;
    transition: border 0.2s;
}

#product-detail-form select:focus {
    border: none;
    outline: none;
}

.c-product-interconnection-detail-params__type {
    font-weight: 700;
    font-size: 16px !important;
    color: #1d2330;
    margin-bottom: 7px;
    display: block;
}

.p-detail-inner .surcharge-list .surcharge-label
{
    font-size: 16px !important;
}

.c-product-interconnection-detail-params__products {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.c-product-interconnection-detail-params__products a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1.5px solid #e4e9f4;
    background-color: #fff;
    border-radius: 2px;
    width: 100px;
    height: 120px;
    text-decoration: none;
    color: #313131;
    padding: 10px 0 5px 0;
    transition: border 0.2s, background 0.2s;
    position: relative;
}

.c-product-interconnection-detail-params__products a.is-current,
.c-product-interconnection-detail-params__products a:hover {
    border-color: #936949;
}

.item-type-img,
.item-type-bg {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 2px;
    background: #e9eaf1;
    display: block;
}

.item-type-bg {
    border: 1.5px solid #e9eaf1;
}

.item-label {
    font-size: 14px;
    color: #22384c;
    font-weight: 600;
    text-align: center;
}

.surcharge-list {
    margin: 14px 0 14px 0;
}

.surcharge-label {
    font-weight: 700;
    font-size: 16px;
    color: #1d2330;
    margin-bottom: 8px;
    display: block;
}

.surcharge-list select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 2px;
    background: #f4f7fb;
    border: 1.5px solid #e4e9f4;
    font-size: 15px;
    font-weight: 600;
}

.p-price-wrapper {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 10px 0 8px 0 !important;
}

.surcharge-list .pill-btn-label {
    display: block;
    line-height: 1.2;
    margin-top: 7px;
}

.p-to-cart-block {
    margin-top: 6px;
}

.add-to-cart {
    display: block !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.p-detail-inner .p-price-wrapper {
    margin: 0px !important;
}
.p-detail-inner .p-price-wrapper .price-final {
    font-size: 38px;
    color: #121D28 !important;
    margin-bottom: -15px;
}

@media (max-width: 768px) {
    .p-detail-inner .p-price-wrapper .price-final {
        margin-top: 20px !important;
    }
}

.add-to-cart-button {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    background: #936949 !important;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-weight: 500;
    font-size: 17px;
    padding: 14px 0;
    transition: background 0.15s;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px 0 rgba(36, 56, 110, 0.07);
}

.vypocitana-cena {
    font-size: 18px !important;
    margin-bottom: 0px;
}

.select-pill-group {
    display: flex;
    gap: 12px;
    flex-flow: wrap;
    margin-bottom: 10px;
}

.pill-btn {
    border: 1px solid transparent;
    background-color: #fff;
    color: #313131;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 10px;
    min-width: 75px;
    border-radius: 2px;
    cursor: pointer;
    transition: border 0.15s, background 0.15s, color 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;

    justify-content: space-between;
}

.pill-btn.active,
.pill-btn:hover {
    border: 1px solid #936949;
}

.select-pill-group .pill-btn {
    width: 120px;
    min-width: 120px;
    padding: 12px;
    background-color: #fff;
    color: #313131;
}

.variant-list select {
    display: none !important;
}

.custom-select-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

.custom-param-input {
    width: 100%;
    background: #f4f7fb;
    border: none;
    border-radius: 2px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #4A709C;
    margin-top: 3px;
    cursor: pointer;
}

.custom-param-input:focus {
    border-color: #1c6dc1;
    outline: none;
}

.custom-select-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 105%;
    background: #fff;
    border: 1.5px solid #e4e9f4;
    border-radius: 2px;
    z-index: 99;
    box-shadow: 0 2px 8px 0 rgba(36, 56, 110, 0.06);
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}

.custom-select-option {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 15px;
    color: #1d2330;
    font-weight: 500;
    transition: background 0.16s;
}

.custom-select-option:hover {
    background: #e5f0fa;
    color: #4A709C;
}

.c-product-interconnection-detail-params__products .item-label {
    opacity: 1;
    font-weight: 400 !important;
    width: 100%;
    ;
    position: absolute;
    top: inherit;
    transform: translateX(-50%);
    bottom: 10px !important;

    line-height: 1;
    color: #0D141C !important;
    display: inline-block;
}

.c-product-interconnection-detail-params__products span[class^=item-type] {
    border-radius: 2px;
    width: 78px;
    height: 78px;

}

.c-product-interconnection-detail-params__products a:hover span[class^=item-type]+.item-label {
    background-color: transparent;
    padding: 0;
}

.c-product-interconnection-detail-params__products a:hover span[class^=item-type]+.item-label:after {
    display: none;
}

.dkLabNoteEditor
{
    display: none !important;
}

/* Tlačítko "Objednat vzorek" */
.sample-button {
    margin-top: 10px;
    display: block;
    text-align: center;
    padding: 13px 0;
    border: 1.5px solid #936949 !important;
    background: #F5F4F2;
    color: #936949;
    border-radius: 2px !important;
    font-weight: 700;
    font-size: 16px !important;
    text-decoration: none;
    transition: background 0.15s;
    width: 100%;
}

.sample-button:hover {
    background: #f5f5f5;
    color: #7a5a3a;
}

/* Dropdown pro materiál */
.material-dropdown {
    width: 100%;
    min-width: -webkit-fill-available;
    padding: 18px 12px;
    border: none;
    border-radius: 2px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #313131;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.material-dropdown:focus {
    outline: none;
    border-color: #936949;
}

/* Viditelný input element pro custom dropdown */
.material-dropdown-input {
    width: 100%;
    min-width: -webkit-fill-available;
    padding: 18px 12px;
    border: none;
    border-radius: 2px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #313131;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    position: relative;
}

.material-dropdown-input:focus {
    outline: none;
    border-color: #936949;
    box-shadow: none;
}

/* Custom dropdown list container */
.material-dropdown-container {
    position: relative;
    width: 100%;
}

/* Custom dropdown list */
.material-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e4e9f4;
    border-radius: 2px;
    box-shadow: 0 2px 8px 0 rgba(36, 56, 110, 0.06);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.material-dropdown-list.show {
    display: block;
}

/* Material item in dropdown */
.material-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.16s;
    border-bottom: 1px solid #f0f0f0;
}

.material-dropdown-item:last-child {
    border-bottom: none;
}

.material-dropdown-item:hover {
    background: #e5f0fa;
}

.material-dropdown-item.selected {
    background: #f8f9fa;
}

/* Material placeholder (image area) */
.material-dropdown-placeholder {
    width: 42px;
    height: 42px;
    background: #e9eaf1;
    border-radius: 2px;
    margin-right: 12px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Material content (name and code) */
.material-dropdown-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.material-dropdown-name {
    font-size: 15px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 2px;
}

.material-dropdown-code {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}
@media only screen and (max-width: 480px) {
#custom-dimensions {
    display: block !important
}

#custom-dimensions label {
    width: 100%!important;
    display: block;
    margin-bottom: 15px;
}}

@media (min-width: 1024px) {
    .wide .p-detail-inner .p-data-wrapper {
        width: 20%;
    }
}
.params-title
{
    margin-top: 15px;
    font-weight: 700;
}
.c-product-interconnection-custom--image-select-list-dropdown__item .code
{
       min-width: fit-content;
}
.c-product-interconnection-custom--image-select-list__inner .code
{
    display: none;
}
.c-product-interconnection-custom--image-select-list {
    display: flex;
    width: 100%;
    background: #fff;
    margin-top: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    min-height: 45px;
    cursor: pointer;
}

.c-product-interconnection-custom--image-select-list__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 7px;
    width: 100%;
}

.c-product-interconnection-custom--image-select-list__inner img {
    width: 20px;
    object-fit: contain;
    height: 20px;
}

.c-product-interconnection-custom--image-select-list__inner h3 {
    font-size: 13px;
    font-weight: 700 !important;
    white-space: pre;
    width: 100%;
    margin: 0;
    padding: 0 2rem 0 5px;
}

.c-product-interconnection-custom--image-select-list__inner .select-all-items-info {
    display: none;
}

.c-product-interconnection-custom--image-select-list__inner .select-all-items-info .price {
    color: #398000;
    display: block;
}



.c-product-interconnection-detail-params--custom {
    display: flex;
    flex-direction: column;
}

.c-product-interconnection-custom--image-select-list__inner .select-chevron {
    margin-left: 10px;
}

.c-product-interconnection-custom--image-select-list-dropdown__item {
    display: flex;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #efefef;
    min-height: 45px;
    cursor: pointer;
    border-left: 1px solid #d2d2d2;
    border-right: 1px solid #d2d2d2;
}

.c-product-interconnection-custom--image-select-list-dropdown__item .dropdown-item__inner {
    display: flex;
    align-items: center;
    flex-direction: row;
    align-items: center;
    padding: 7px;
    width: 100%;
}

.c-product-interconnection-custom--image-select-list-dropdown__item .dropdown-item__inner img {
    width: 45px;
    object-fit: cover;
    height: 45px;
}

.dropdown-item__inner h3 {
    font-size: 13px;
    white-space: pre;
    width: 100%;
    margin: 0;
    padding: 0 2rem 0 15px;
    font-weight: 800;
}

.c-product-interconnection-custom--image-select-list__inner h3 {
    font-weight: 500;
}

.c-product-interconnection-custom--image-select-list-dropdown__item .price {
    color: #000000;
    text-align: right;
    white-space: pre;
    font-weight: bold;
}

.c-product-interconnection-custom--image-select-list-dropdown__item span.availability.is--Skladem,
.c-product-interconnection-custom--image-select-list-dropdown__item span.availability.is--skladem {
    color: #3d8208;
}

.c-product-interconnection-custom--image-select-list-dropdown__item .availability {
    text-align: right;
    display: block;
    font-size: 13px;
}

.c-product-interconnection-custom--image-select-list-dropdown {
    position: absolute;
    top: 100%;
    background: #fff;
    z-index: 99;
    width: 100%;
    box-shadow: 0 4px 9px -1px #d5d5d5;
}

.c-product-interconnection-detail-params--custom {
    position: relative;
}

.c-product-interconnection-custom--image-select-list-dropdown__item:hover {
    background: #f5f5f5;
    transition: all .35s ease;
}

.c-product-interconnection-custom--image-select-list-dropdown__item span.availability.is--null {
    display:none;
}

.c-product-interconnection-custom--image-select-list-dropdown__item .price-availability {
    text-align: right;
}

@media (max-width:575px) {
    .c-product-interconnection-custom--image-select-list__inner .select-all-items-info {
        font-size: 1rem;
    }

    .c-product-interconnection-custom--image-select-list__inner h3,
    .dropdown-item__inner h3 {
        font-size: 1.125rem;
    }
}


@media only screen and (min-width: 992px) {
    .type-detail .p-data-wrapper{
    position: sticky !important;
    top: 24px;
    height: fit-content;
    scrollbar-width: none;
    -ms-overflow-style: none;
    }
  /* CSS pro grid layout */
  .thumbnail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dva sloupce */
    gap: 15px;
    padding: 20px 0;
}

.thumbnail-grid .p-thumbnail {
    display: block;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.thumbnail-grid .p-thumbnail:hover {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-grid .p-thumbnail.highlighted {
    border-color: 2px solid #ddd;
    box-shadow: none;
}

.thumbnail-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* Skryjeme původní container */
.p-thumbnails-inner {
    display: none;
}

.type-detail .thumbnail-prev,
.type-detail .thumbnail-next {
    display: none;
}
}


