@charset "UTF-8";

.sticky-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e7e7e7;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 10px 0;
    transform: translateY(100%);
    -webkit-transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
}

.sticky-bar-container.visible {
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

.sticky-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-bar-image img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
}

.sticky-bar-title {
    font-weight: bold;
    flex-grow: 1;
    padding-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Comment: Змінено. Додано flex-властивості для розташування цін одна над одною. */
.sticky-bar-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-right: 15px;
    white-space: nowrap;
    /* Додано: Вмикає flex-контейнер. */
    display: flex;
    /* Додано: Розташовує елементи в колонку у зворотному порядку (стара ціна буде зверху). */
    flex-direction: column-reverse;
    /* Додано: Вирівнює ціни по правому краю їх блоку. */
    align-items: flex-end;
    /* Додано: Зменшує висоту рядка для компактності. */
    line-height: 1.1;
}

.sticky-bar-price .price-new {
    color: #346194;
}

/* Comment: Змінено. Видалено відступ зліва. */
.sticky-bar-price .price-old {
    font-size: 0.8em;
    text-decoration: line-through;
    color: red;
    font-weight: normal;
    /* Змінено: відступ більше не потрібний при вертикальному відображенні. */
    margin-left: 0;
}

.sticky-bar-actions .button-group {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.sticky-bar-actions .button-group.btn-icon {
     margin-left: 10px;
}

.sticky-bar-actions #input-quantity-sticky {
    max-width: 50px;
    text-align: center;
    height: 38px; /* Match button height */
}

.sticky-bar-actions .theme-btn, 
.sticky-bar-actions .theme-btn-add-cart {
    margin: 0 2px;
}
#button-cart-sticky {
  border: 0;
  border-radius: 3px;
  padding: 7px 10px;
}
#minus-quantity-sticky, #plus-quantity-sticky, #heart-sticky {
  color: var(--dp-primary);
  border: none;
  background: none;
  margin: 10px;
}
#input-quantity-sticky {
  min-height: 32px;
  height: 32px !important;
}

/* Responsive adjustments */
/* Comment: Змінено. Додано зменшення шрифту для блоку цін на мобільних. */
@media (max-width: 991px) {
    .sticky-bar-price {
        font-size: 15px;
		position: absolute;
  right: 0;
  top: 10px;
    }
.price-normal-sticky {
  top: 20px;
  margin-top: 8px;
  color: #346194;
}
.sticky-bar-price .price-old {
  font-size: 14px;
}
.sticky-bar-price .autocalc-product-price {
    font-size: 14px; /* зменшений розмір */
}
}

@media (max-width: 767px) {
    .sticky-bar-image {
        display: none;
    }
    .sticky-bar-title {
        font-size: 14px;
    }
    .sticky-bar-actions .button-group.btn-icon {
        margin-left: 5px;
    }
}

@media (max-width: 480px) {
    .sticky-bar-title {
        display: none;
    }
    .sticky-bar-content {
        justify-content: center;
    }
}
