.overflow-wrap {
    overflow-x: auto;
    padding-bottom: 10px;
}

.candles-list {
    display: flex;
    gap: 11px;
}

@media (max-width: 720px) {
    .candles-list {
        min-width: 525px;
    }
}

.candles-list-item {
    width: calc(25% - 8.5px);
    border: 1.5px solid #f5f5e9;
    border-radius: 12px;
    padding: 4px 4px 16px 4px;
    transition: 0.5s;
}

@media (max-width: 720px) {
    .candles-list-item {
        width: 120px;
    }
}

.candles-list-photo {
    margin-bottom: 16px;
}

.candles-list-photo img {
    display: block;
    border-radius: 9px;
    margin: auto;
}

.candles-list-btn {
    width: calc(100% - 36px);
    display: block;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: #2f243a;
    line-height: 1.2;
    padding-left: 32px;
    margin: auto;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

@media (max-width: 1600px) {
    .candles-list-btn {
        width: calc(100% - 22px);
        font-size: 14px;
        padding-left: 32px;
    }
}

@media (max-width: 720px) {
    .candles-list-btn {
        font-size: 12px;
    }
}

.candles-list-btn:before {
    content: '';
    width: 24px;
    height: 24px;
    position: absolute;
    top: calc(50% - 12px);
    left: 0;
    background-image: url(/wp-content/uploads/2026/06/candles-black-plus.svg);
    background-size: cover;
}

@media (max-width: 720px) {
    .candles-list-btn:before {
        width: 20px;
        height: 20px;
        top: calc(50% - 10px);
    }
}

.candles-block {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    background-color: #f5f5e9;
    border-radius: 12px;
    padding: 20px 20px 16px;
    margin-top: 17px;
}

@media (max-width: 1396px) {
    .candles-block {
        padding: 20px 16px 16px;
        padding: 20px 0;
    }
}

@media (max-width: 720px) {
    .candles-block {
        justify-content: center;
    }
}

.candles-box {
    width: calc(25% - 11px);
    background: #ffffff;
    border: 1px solid #f5f5e9;
    border-radius: 8px;
    padding: 4px 5px 7px;
    margin-bottom: 0;
    position: relative;
}

@media (max-width: 720px) {
    .candles-box {
        width: 104px;
    }
}

.candles-box-photo img {
    border-radius: 6px 6px 0 0;
    display: block;
    margin: auto;
}

@media (max-width: 720px) {
    .candles-box-content {
        padding: 4px 5px 7px;
    }
}

.candles-box-title {
    font-weight: 400;
    font-size: 14px;
    letter-spacing: -0.02em;
    text-align: center;
    color: #2f243a;
    line-height: 1.2;
    padding: 10px 0 0;
    margin-bottom: 8px;
    min-height: 60px;
}

@media (max-width: 1396px) {
    .candles-box-title {
        padding: 0;
    }
}

@media (max-width: 720px) {
    .candles-box-title {
        margin-bottom: 4px;
    }
}

@media (max-width: 720px) {
    .candles-box-title, .candles-box-cost {
        font-size: 12px;
    }
}

.candles-box-cost {
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.02em;
    color: #2f243a;
    font-family: 'Fixel ExtraBold';
    margin-bottom: 0;
}
.candles-box-cost .amount{
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.02em;
    color: #2f243a;
    font-family: 'Fixel ExtraBold';
}

@media (max-width: 720px) {
    .candles-box-title, .candles-box-cost {
        font-size: 12px;
    }
}

.candles-add-box {
    display: block;
    max-width: max-content;
    margin: 0 auto;
    margin-top: 10px;
}

.counter-box {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    display: flex;
    background: #fe4101;
    border-radius: 50px;
    margin-bottom: 5px;
}

.count-btn {
    font-size: 18px;
    color: #ffffff;
    padding: 3px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.count-number {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
}

.candles-add-btn {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: -0.02em;
    text-align: center;
    color: #ffffff;
    background: #2f243a;
    border-radius: 50px;
    padding: 10px 20px;
}

.candles-add-btn:hover{
    color: #fff;
    background: #fe4102;
}

.candles-add-box .added_to_cart{
display: none;
}
.candles-list-item.active .candles-list-btn:before {
    background-image: url(/wp-content/uploads/2026/06/candles-orange-arrow.svg);
}
