.product-item-image-wrapper
{
    padding: 0 !important;
}
.product-item-info-container {
    margin-bottom: 0px;
}

.productCard {
    width: 100%;
    /*max-width: var(--card-width);*/
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Добавляем это свойство */
}


.imageContainer {
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 0; /* Removes bottom space under image */
}


.productImage {
    width: 100%;
    height: auto;
    display: block;
    background-color: #FFFFFF;
}


.badgesContainer {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 100;
}


.badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    background-color: #fff;
    box-sizing: border-box;
}


.badgeNew {
    border: 1px solid #000000;
    color: #000000;
}


.badgeDiscount {
    border: 1px solid #C89F84;
    color: #C89F84;
}


.detailsContainer {
    padding: 20px;
}


.titleRow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.titleGroup h1, .titleGroup p {
    margin: 0;
    font-weight: 400;
    color: #4A4A4A;
}

.titleGroup h1 {
    font-size: 22px;
    line-height: 1.2;
}

.titleGroup p {
    font-size: 20px;
    line-height: 1.3;
}

.availability {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666666;
    white-space: nowrap;

}

.availabilityDot {
    margin-top: 2px;
    width: 8px;
    height: 8px;
    background-color: #2E7D32;
    border-radius: 50%;
}
.availabilityEmpty {
    margin-top: 2px;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border:1px solid #2E7D32;
    border-radius: 50%;
}


.priceRow {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}


.currentPrice {
    font-size: 28px;
    font-weight: 500;
    color: #333333;
}

.originalPrice {
    font-size: 20px;
    color: #AAAAAA;
    text-decoration: line-through;
}
.colorsRow {
    display: flex;
    gap: 10px;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.colorSwatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.colorSwatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px #BDBDBD;
}

.colorSwatch.selected {
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px #BDBDBD;
}

.product-item-scu-item-color-block {
    width: 100%;
    height: 100%;
}

.product-item-scu-item-color {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    top:0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}








.product-item-list-col-3 {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.product-item-list-col-3 .product-item-small-card {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
}

.product-item-small-card .product-item {

    display: flex;
    flex-direction: column;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
    position: relative;
}
.product-item-small-card  .productCard {
   /* width: 453px;*/
    height: 491px;
    z-index: 1;
    overflow: hidden;
}
.product-item-small-card .product-item:hover .productCard {
    position: absolute;
    height: 612px;
    background: #FFFEFD;
    z-index: 17;
    box-shadow: 0px 0px 24px 0px #D49C7A40;
    border-radius:  20px;
    display: flex;
    flex-direction: column;
}

.product-item-small-card .product-item:hover {

}

@media (max-width: 1199px) {
    .product-item-small-card .product-item {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 991px) {
    .product-item-list-col-3 .product-item-small-card {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 767px) {
    .product-item-list-col-3 .product-item-small-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .product-item-list-col-3 .product-item-small-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



.main-page-content-inner section:not(:first-child){
    margin-top: 0px;
}




.img-slider-new-wrapper {
    position: relative;
    height: 320px;
    z-index: 17;
    overflow: hidden;
    padding: 15px;
}

.img-slider-new {
    position: absolute;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    top: 15px;
    left: 15px;
    display:flex;
    align-items: center;
    justify-content: center;
}

.img-slider-new img {
    /*position: absolute;*/
    top: 0;
    left: 0;
    max-width: 100%;
    height: auto;

    opacity: 0;
    transition: opacity 0.3s ease;
}
.img-slider-new img.productImage {
    opacity: 1;
}

.img-slider-new img.active {
    opacity: 1;
}

.img-slider-new-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    box-sizing: border-box;
}

.img-slider-new-control {
    flex: 1;
    height: 2px;
    background-color: #D49C7A40;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.img-slider-new-control.active {
    background-color: #D49C7A;
}




/*  buttons */

.product-item-button-container {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin: 25px 20px;
    margin-top: auto;
}
.product-item-small-card .product-item:hover .product-item-button-container {
    display: flex;
    margin-top: auto;
}
.product-item-detail-link
{
    text-decoration: none;
}
.btn-add-to-project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #D5B098;
    color: #FFFEFD;
    border: none;
    border-radius: 50px;
    padding: 24px 40px;
    font-size: 21px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.btn-add-to-project:hover {
    background-color: #C09A82;
}

.btn-add-to-project .btn-text {
    margin-right: 40px;
    color:#FFFEFD;
}

.btn-add-to-project .btn-icon {
    background-color: #FFFEFD;
    color: #D5B098;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

}

.btn-add-to-favorites {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-add-to-favorites svg {
    width: 32px;
    height: 32px;
    color: #D5B098;
    transition: color 0.3s ease;
    margin-right: 30px;
}

.btn-add-to-favorites:hover svg {
    color: #C09A82;
}











.modal-room {
    max-width: 540px;
    margin: 30px auto;
}

.modal-room .modal-content {
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.room-modal-block {
    padding: 0;
}

.room-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 32px 0;
    margin-bottom: 8px;
}

.room-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #303B45;
    margin: 0;
    line-height: 1.2;
}

.room-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    margin: -8px -8px -8px 16px;
}

.room-modal-close:hover {
    color: #333;
}

.room-modal-body {
    padding: 0 32px 32px;
}

.room-modal-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.4;
}

/* Кнопка создания новой комнаты */
.room-create-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #D49C7A40;
    border-radius: 100px;
    font-size: 16px;
    color: #D49C7A;
    cursor: pointer;
    transition: all 0.2s ease;
}

.room-create-btn:hover {
    background: #f0f0f0;
    border-color: #c8906a;
}

.room-create-icon {
    font-size: 20px;
    font-weight: 300;
    margin: -10px -10px -10px 12px;
}

/* Список комнат */
.room-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #D49C7A40;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
}

.room-item:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
}

.room-item.selected {
    background: #D49C7A80;
    border-color: #D49C7A80;
}

.room-item-name {
    font-size: 16px;
    color: #D49C7A;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-item.selected .room-item-name {
    color: #fff;
}

.room-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
    background: #d49c7a;
    border-radius: 50%;
    margin: -10px -10px -10px 12px;
}
.room-item-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Делает иконку белой */
}
.room-item.selected .room-item-icon img {
    filter: brightness(1); /* Возвращает иконку к нормальному цвету */
}
.room-item.selected .room-item-icon
{
    color: #d49c7a;
    background: #fff;
}
.room-item.selected .room-item-name
{
    color: #fff;
}

/* Блок количества и кнопки добавления */
.room-quantity-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.room-quantity-controls {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 100px;
    border: 1px solid #D49C7A40;
    padding: 4px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    background: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.quantity-input:focus {
    outline: none;
}

.room-add-btn {
    flex: 1;
    padding: 12px 24px;
    background: #d49c7a;
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.room-type-item.selected,
.room-item.selected {
    background-color: #D49C7A;
    color: white;
}

.room-add-btn:hover {
    background: #c8906a;
}

/* Блок создания комнаты */
.room-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.room-type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #D49C7A40;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 auto;
}

.room-type-item:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
}

.room-type-item.selected {
    background: #D49C7A80;
    border-color: #D49C7A80;
    color: #fff;
}

.room-type-name {
    font-size: 16px;
    color: #D49C7A;
    font-weight: 500;
}

.room-type-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
    background: #d49c7a;
    border-radius: 50%;
    margin: -10px -10px -10px 12px;
}
.room-type-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Делает иконку белой */
}
.room-type-item.selected .room-type-icon img {
    filter: brightness(1); /* Возвращает иконку к нормальному цвету */
}
.room-type-item.selected .room-type-icon
{
    color: #d49c7a;
    background: #fff;
}
.room-type-item.selected .room-type-name
{
    color: #fff;
}

/* Поле ввода названия комнаты */
.room-name-input-wrapper {
    margin-bottom: 32px;
}

.room-name-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease;
}

.room-name-input:focus {
    outline: none;
    border-color: #d49c7a;
}

.room-name-input::placeholder {
    color: #999;
}

/* Кнопки действий */
.room-create-actions {
    display: flex;
    gap: 12px;
}

.room-create-cancel,
.room-create-submit {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 100px; /* Изменено с 16px на 100px */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.room-create-cancel {
    background: #f5f5f5;
    color: #666;
}

.room-create-cancel:hover {
    background: #e8e8e8;
    color: #333;
}

.room-create-submit {
    background: #d49c7a;
    color: white;
}

.room-create-submit:hover {
    background: #c8906a;
}

.room-create-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .modal-room {
        margin: 15px;
        max-width: none;
    }

    .room-modal-header {
        padding: 24px 24px 0;
    }

    .room-modal-body {
        padding: 0 24px 24px;
    }

    .room-modal-title {
        font-size: 20px;
    }

    .room-types-grid {
        gap: 8px;
    }

    .room-type-item {
        padding: 12px 16px;
    }

    .room-type-name {
        font-size: 14px;
    }

    .room-quantity-block {
        flex-direction: column;
        gap: 12px;
    }

    .room-quantity-controls {
        align-self: center;
    }

    .room-add-btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .room-modal-header {
        padding: 20px 20px 0;
    }

    .room-modal-body {
        padding: 0 20px 20px;
    }
}

