.bg-header-top {
    background-color: var(--bs-indigo) !important;
}

.text-berry {
    color: #660ff1;
}

/* ------------------------------- FAG ACCORDION ------------------------------- */

.faq-card:hover {
    /* background-color: #ecefec61; */
}

.faq-category-item {
    padding: 2px 6px;
    font-weight: bold;
    border-radius: 6px;;
}

.faq-category-item-selected {
    background-color: #dcf7e1;
}

.faq-sub-category-item-selected {
    background-color: #cdf2d4;
}

.faq-category-item:hover {
    background-color: #cde2f2;
    cursor: pointer;
}

.faq-answer:hover {
    background-color: #e6f4ff;
}

.accordion .card:first-of-type {
    border-bottom: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.accordion .card {
    margin-bottom: .75rem;
    box-shadow: 0px 1px 15px 1px rgba(230, 234, 236, 0.35);
    border-radius: .25rem;
    border: none;
}

.accordion .card .card-header {
    background-color: transparent;
    border: none;
    padding: 2rem;
}

.card-header:first-child {
    border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}

.accordion .card .card-header * {
    font-weight: 400;
    font-size: 1rem;
}

.mb-0, .my-0 {
    margin-bottom: 0 !important;
}

.accordion .card .card-header a {
    display: block;
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    position: relative;
    -webkit-transition: color 0.5s ease;
    -moz-transition: color 0.5s ease;
    -ms-transition: color 0.5s ease;
    -o-transition: color 0.5s ease;
    transition: color 0.5s ease;
    padding-right: 1.5rem;
}

.accordion .card .card-header * {
    font-weight: 400;
    font-size: 1rem;
}

.accordion .card .card-header a[aria-expanded="false"]:before {
    content: "\2794";
}

.accordion .card .card-header a[aria-expanded="true"]:before {
    content: "\25be";
}

.accordion .card .card-header a:before {

    position: absolute;
    right: 7px;
    top: 0;
    font-size: 18px;
    display: block;
    font-family: FontAwesome;
     display: inline-block;
     padding-right: 3px;
     vertical-align: middle;
     font-size: .756em;
     color: #405189
}


/* ------------------------------- STEP ORDER ------------------------------- */

.step-order-item {
    --card-background-color: #f0f0f0;
    --card-text-color: #0F0F0F;
    --card-border-radius: 0.5rem;
    --card-padding-block: 1.5rem;
    --card-padding-inline: 1rem;

    --outset-size: 0.75rem;
    --outset-background-color: #e5e5e5;

    --number-font-size: 3rem;
    --number-overlap: 0.5rem;
    --number-font-family: 'Oswald', sans-serif;
    --number-font-weight: 500;

    margin: var(--outset-size);
    margin-top: calc(var(--number-font-size) - var(--number-overlap));
    border-radius: var(--card-border-radius);
    padding-block: var(--card-padding-block);
    padding-inline: var(--card-padding-inline);

    color: var(--card-text-color);
    background-color: var(--card-background-color);
    box-shadow:
        inset 1px 1px 0px rgb(255 255 255 / .5),
        inset -1px -1px 0px rgb(0 0 0 / .25),
        calc(var(--outset-size) * .25) calc(var(--outset-size) * .25) calc(var(--outset-size) * .5) rgb(0 0 0 / .25);
    position: relative;
    counter-increment: count;
    height: 100%;
}

.step-order-item::after{
    content: var(--order-number);
    position: absolute;

    bottom: calc(100% - var(--number-overlap));
    left: 50%;
    transform: translateX(-50%);

    color: var(--accent-color);
    font-family: var(--number-font-family);
    font-weight: var(--number-font-weight);
    font-size: var(--number-font-size);
    line-height: 1;
    z-index: -1;
  }
  .step-order-item::before{
    content: "";
    position: absolute;
    width: calc(100% + (var(--outset-size) * 2));
    height: 100%;
    bottom: calc(var(--outset-size) * -1);
    left: calc(var(--outset-size) * -1);
    z-index: -1;

    border-bottom-left-radius: calc(var(--card-border-radius) + var(--outset-size));
    border-bottom-right-radius: calc(var(--card-border-radius) + var(--outset-size));

    background-color: var(--outset-background-color);

    background-image:
      linear-gradient(to left, var(--outset-background-color) calc(var(--outset-size) * 2), transparent 0),
      linear-gradient(135deg, var(--accent-color) 80%, var(--outset-background-color) 0);
  }

/* card content */
.step-order .icon{
  font-size: 3rem;
  text-align: center;
  color: var(--accent-color);
  /* margin-bottom: calc(var(--card-padding-block) * .5); */
}
.step-order .title {
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  text-align: center;
  color: var(--accent-color);
  padding-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;

}
.step-order .descr {
  /* color: var(--text-color); */
  color: #525354;
  /* text-align: center; */
}

.ribbon {
    --default-right: 10px;
    --default-top: -3px;
    --default-color: #2ca7d8;
    --default-width: 32px;
    --default-height: 36px;

    position: absolute;
    right: var(--right, --default-right);
    top: var(--top, --default-top);

    filter: drop-shadow(2px 3px 2px rgba(black, 0.5));
}

.step-order .ribbon-content {
    color: white;
    font-size: 1.25rem;
    text-align: center;
    font-weight: 400;
    background: var(--accent-color) linear-gradient(45deg, rgba(black, 0) 0%, rgba(white, 0.25) 100%);
    padding: 8px 2px 4px;


    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 0 100%);

    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% calc(100% - 6px), 0 100%);

    width: var(--width, 50);
    min-height: var(--height, 50);

    transition: clip-path 1s, padding 1s, background 1s;
  }

/* ------------------------------- BLOG CARDS ------------------------------- */
.blog-cards  img {
    max-width: 100%;
    display: block;
    object-fit: cover;
  }

.blog-cards  .card {
    display: flex;
    flex-direction: column;
    /* width: clamp(18rem, calc(20rem + 2vw), 18rem); */
    overflow: hidden;
    box-shadow: 0 .1rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 1em;
    background: #f4f6f8;
  /* background: linear-gradient(to right, #FFFFFF, #ECE9E6); */

  }

  .blog-cards  .card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
  }


  .blog-cards  .tag {
    align-self: flex-start;
    padding: .25em .75em;
    border-radius: 1em;
    font-size: .75rem;
  }

  .blog-cards  .tag + .tag {
    margin-left: .5em;
  }

  .blog-cards .tag-blue {
    background: #56CCF2;
  background: linear-gradient(to bottom, #2F80ED, #56CCF2);
    color: #fafafa;
  }

  .blog-cards  .tag-brown {
    background: #D1913C;
  background: linear-gradient(to bottom, #FFD194, #D1913C);
    color: #fafafa;
  }

  .blog-cards .tag-red {
    background: #cb2d3e;
  background: linear-gradient(to bottom, #ef473a, #cb2d3e);
    color: #fafafa;
  }

  .blog-cards .card__body h4 {
    font-size: 1.5rem;
    text-transform: capitalize;
  }

  .blog-cards .card__footer {
    display: flex;
    padding: 1rem;
    margin-top: auto;
  }

  .blog-cards  .user {
    display: flex;
    gap: .5rem;
  }

  .blog-cards .user__image {
    border-radius: 50%;
  }

  .blog-cards  .user__info > small {
    color: #666;
  }


.comment-by {
	display: block;
	font-size: 14px;
	line-height: 21px;
	margin: 0 0 10px;
}
.comments-list .comment-block p {
    font-size: 14px;
    margin-bottom: 5px;
}

.blog-comments .comments-list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}
.blog-comments .comments-list li {
	clear: both;
	padding-left: 40px;
}
.blog-comments .comments-list li .comment {
	margin-bottom: 10px;
}
.blog-comments .comments-list li .comment-author {
	left: 0;
	position: absolute;
}
.blog-comments .comments-list li img.avatar {
	height: 32px;
	width: 32px;
	border-radius: 32px;
}
.blog-comments .comment-btn {
    color: #1e88e5;
    display: inline-block;
    font-weight: 500;
    font-size: 15px;
}
.blog-author-name {
    color: #26292c;
    font-size: 16px;
    font-weight: 600;
}
.new-comment label {
	font-weight: 500;
}
.comment-submit .btn {
	background-color: #1e88e5;
	border-color: #1e88e5;
	border-radius: 0;
	font-size: 18px;
	padding: 8px 26px;
	color: #fff;
}


.raise:hover,
.raise:focus {
  box-shadow: 0 0.5em 0.5em -0.4em #4372f3;
  transform: translateY(-0.25em);
}

/* ------------------------------- Left Modal ------------------------------- */

.modal-left {
    display: flex;
    flex-direction: column;
    height: 550px;
    left: 50%;
    max-height: calc(100vh - 100px);
    max-width: calc(100vw - 20px);
    opacity: 0;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: .2s;
    visibility: hidden;
    width: 600px;
    z-index: -1;
}

.modal_conditions {
    background: #fff;
    bottom: 0;
    height: auto;
    left: auto;
    max-height: none;
    max-width: 100%;
    opacity: 1;
    right: -110%;
    top: 0;
    transform: none;
    visibility: visible;
    width: 466px;
}

.modal-left.js-modal-shown {
    opacity: 1;
    visibility: visible;
    z-index: 9992;
}

.modal_conditions.js-modal-shown {
    right: 0;
}

.modal__content {
    background: #fff;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modal__header {
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    padding: 10px 54px;
    position: relative;
    width: 100%;
}

.modal__body {
    flex-grow: 1;
    padding: 25px 15px;
    position: relative;
}

.modal__footer {
    border-top: 1px solid #f0f0f0;
    padding: 15px 17px;
}

.modal__scrollable {
    bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 15px;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1;
}

.modal__closer.closer {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.closer {
    align-items: center;
    cursor: pointer;
    display: flex;
    height: 20px;
    justify-content: center;
    position: relative;
    width: 20px;
}

.modal__closer_left {
    left: 20px;
    right: auto;
}

.overlay-left {
    pointer-events: initial;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, .55);
    bottom: 0;
    height: 100vh;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: .2s;
    visibility: hidden;
    width: 100vw;
}

.overlay-left-show {
    opacity: 1;
    visibility: visible;
}

.cart-product-title {
    font-weight: 600;
    font-size: 16px;
    color: #00082a !important;
}

.cart-product-counter {
    font-weight: 600;
    font-size: 16px;
    color: #00082a !important;
}

.cart-product-price {
    font-weight: 600;
    font-size: 16px;
    color: #00a046 !important;
}

.cart-product-discount {
    font-size: 14px;
    text-decoration: line-through;
    color: #afacac !important;
    font-weight: 400;
}

.catalog-product-discount {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: #f0b352 !important;
    font-weight: 600;
}

.cart-text-warning {
    color: #dc9409;
    font-weight: 400;
}

.order-success-part-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #00082a99;
}

.order-success-part-value {
    font-weight: 600;
    font-size: 1.25rem;
    color: #00082a;
}

.order-success-part-border-bottom {
    border-bottom: 1px solid #e8e3e3;
}

.cart-product-border-bottom {
    border-bottom: 1px solid #e8e3e3;
}

/* ------------------------------- Alerts ------------------------------- */

.alert-new {
    display: flex;
    position: fixed;
    z-index: 100000;
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 18px 20px;
    max-width: calc(100vw - 60px);
    width: 400px;
    right: 30px;
    top: 100px;
    font-size: 15px;
}

.alert-new > .fas {
    font-size: 21px;
    padding-right: 10px;
}

.alert-new-success {
    background-color: rgba(231, 244, 238, 0.4);
    border: 1px solid #40C284;
    color: #40C284;
}

.alert-new-warning {
    background-color: rgba(254, 241, 234, 0.4);
    border: 1px solid #F57A31;
    color: #F57A31;
}

.alert-new-danger {
    background-color: rgba(248, 231, 231, 0.4);
    border: 1px solid #FF3A3A;
    color: #FF3A3A;
}

/* ------------------------------- Custom select ------------------------------- */

.select-group__select .custom-select {
    width: 100%;
}

.select-group__err-msg {
    margin-top: 5px;
    padding: 0 15px;
}

.select-group_error > .custom-select {
    border-color: red;
}

.select-group_error > .custom-select__label {
    border-color: red;
}

.select-group_error > .custom-select::before {
    border-color: red transparent transparent transparent;
}

.select-group_error > .custom-select__label .select-group__err-msg {
    color: red;
}

.select-group_error > .select-group__err-msg {
    color: red;
}

.custom-select-liwevire {
    height: 34px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding-left: 0px;
    padding-right: 0px;
    position: relative;
}

.custom-select-liwevire {
    outline:none!important;
}

.custom-select_selected {
    border-color: black;
}

.custom-select__label {
    flex-grow: 1;
    height: 100%;
    width: 100%;
    padding-bottom: 3px;
    padding-left: 20px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid rgb(134, 136, 134);
}

.custom-select__dropdown {
    background-color: white;
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 3px);
  z-index: 3;
  width: 100%;
  box-shadow: inset 0 0 0 1px rgb(134, 136, 134);
  border-top: none;
  border-radius: 5px;
  overflow: hidden;
  max-height: 300px;
}

.custom-select__options {
    max-height: 200px;
    overflow-y: auto;
    padding-bottom: 5px;
    list-style-type: none;
    padding-left: 0px;
}

.custom-select__option {
    //padding: 5px 5px 6px;
    padding: 0px 6px 1px;
    transition: .2s;
    cursor: pointer;
}

.custom-select__option:hover {
   background-color: #363b4821;
}

.custom-select_show {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent
}

.custom-select_selected > .custom-select__dropdown {
    display: block;
}

.multi-select {
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    padding-right: 25px;
    position: relative;
}

.multi-select_selected {
        border-color: black;
}

.multi-select:before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 4px 0 4px;
    border-color: #9a9a9a transparent transparent transparent;
    display: block;
    position: absolute;
    right: 10px;
    z-index: 1;
}

.multi-select__label {
    flex-grow: 1;
    height: 100%;
    width: 100%;
    border: none;
    padding-bottom: 3px;
    background-color: transparent;
}

.multi-select__search {
    margin: 10px;
}

.multi-select__dropdown {
        display: none;
        position: absolute;
        left: -1px;
        top: 100%;
        z-index: 3;
        background-color: white;
        width: calc(100% + 2px);
        border-top: none;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        overflow: hidden;
        max-height: 200px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.08);
}

.input-group__wrapper {
        display: flex;
        align-items: center;
        border-radius: 5px;
        overflow: hidden;
        width: 100% !important;
}

.input-group__wrapper_width {
    width: 100% !important;
}

.input-group__input {
  @apply bg-white dark:bg-inputBg;
  height: 34px;
  flex-grow: 1;
  padding: 0 17px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid rgb(134, 136, 134);
}

.input-group__textarea {
    height: 64px;
    flex-grow: 1;
    padding: 0 17px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid rgb(134, 136, 134);
}

.input-group__error > .input {
    border-color: red;
}

.input-group__error > .input::before {
    border-color: red transparent transparent transparent;
}

.input-group__error > .select-group__err-msg {
    color: red;
}

.form-search__submit {
    align-items: center;
    background: transparent;
    border: none;
    display: flex;
    height: 20px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
}

.form-search {
    position: relative;
}


.form-search__submit {
    display: flex;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 12px;
}

.form-search__submit::before {
    content: "";
}

.data-picker-modal {
  @apply text-black dark:text-white bg-white dark:bg-black;
  display: block;
  position: fixed;
  z-index: 199;
  left: 50%;
  top: 50%;
  padding: 30px;
  margin-top: -150px;
  margin-left: -190px;
  min-height: 200px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 39%);
  border-radius: 20px;
}

.overlay {
    background-color: rgba(0,0,0,.45);
    bottom: 0;
    height: 100vh;
    left: 0;
    opacity: 1;
    position: fixed;
    right: 0;
    top: 0;
    transition: .2s;
    visibility: visible;
    width: 100vw;
    z-index: 99;
}

.sort-icon {
    display: inline-block;
}

.sort-icon > .active {
    transform: rotate(180deg);
}

.title-editable {
    display: inline-block;
    border-bottom: 1px dotted grey;
    cursor: pointer;
}

.title-editable:hover {
    font-weight: bold;
}

.filter-button-section {
    display: flex;
    justify-content: right;
    padding-bottom: 2px;
}

.filter-button {
  align-self: flex-end;
  width: 34px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-input-liwevire {
    height: 34px;
    border-radius: 5px;
    display: flex;
    padding-left: 0px;
    padding-right: 0px;
    position: relative;
}

.custom-input__dropdown {
    display: block;
    position: absolute;
    left: -1px;
    top: 100%;
    z-index: 999;
    background-color: white;
    width: calc(100% + 2px);
    border-top: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: hidden;
    max-height: 300px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.08);
}

.custom-input__options {
    max-height: 200px;
    overflow-y: auto;
    padding-bottom: 5px;
    list-style-type: none;
    padding-left: 0px;
}

.custom-input__option {
    padding: 5px 5px 6px;
    transition: .2s;
    cursor: pointer;
}

.custom-input__option:hover {
    background-color: #e3e9f8;
}

.multiselect-wraper {
    max-height: 280px;
    overflow-x:auto;
}

.multiselect-item {
    display: block;
    padding: 2px; margin: 2px;
    background-color: #e0f3f9;
    border: 1px solid #0292bf;
    border-radius: 4px;
}

.multiselect-button-delete {
    color: red;
}

.custom-input_show {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent
}


@keyframes wave {
    0% { transform: skewY(0deg); }
    50% { transform: skewY(5deg); }
    100% { transform: skewY(0deg); }
}

@keyframes blur {
    0%, 100% { filter: blur(0px); }
    50% { filter: blur(5px); }
}

@keyframes wind {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

@keyframes soft-wind {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(2px) rotate(1deg); }
    50% { transform: translateX(-2px) rotate(-1deg); }
    75% { transform: translateX(2px) rotate(1deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.bbb {
    animation: flicker 3 infinite alternate;
}

@keyframes wave-shadow {
    0% { box-shadow: -5px -5px 10px rgba(0, 0, 0, 0.5); }
    25% { box-shadow: 5px -5px 10px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); }
    75% { box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.5); }
    100% { box-shadow: -5px -5px 10px rgba(0, 0, 0, 0.5); }
}

.box-bb {
    animation: wave-shadow 4s infinite linear;
}

.navbar-link-weight {
    font-weight: 600;
}

.text-bold {
    font-weight: bold;
}

.contact-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
}

.btn-outline-viber {
    color: #fff;
    border-color: #7360f2;
}

.btn-outline-viber:hover {
    color: #fff;
    background-color: #7360f2;
    border-color: #7360f2;
}

.btn-outline-telegram {
    color: #fff;
    border-color: #60c4f2;
}

.btn-outline-telegram:hover {
    color: #60c4f2;
}

.btn-outline-phone {
    color: #fff;
}

.btn-outline-phone:hover {
    color: #27a723;
}

.phone-number-label {
    color: whitesmoke;
    font-weight: bold;
    font-size: 1rem;
}

.phone-number-label:hover {
    color: rgb(177, 243, 161);
}

.email-label {
    color: whitesmoke;
    font-weight: bold;
    font-size: 1rem;
}

.email-label:hover {
    color: rgb(177, 243, 161);
}

.address-label {
    color: whitesmoke;
    font-weight: bold;
    font-size: 0.9rem;
}

.address-label:hover {
    color: rgb(177, 243, 161);
}

.testimonial-carousel .owl-nav {
    width: 100%;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    float: none !important;
}

.testimonial-carousel .owl-nav .owl-prev {
    position: absolute;
    right: 80px;
}

.testimonial-carousel .owl-nav .owl-next {
    position: absolute;
    right: 0px;
}

.vegetable-carousel .owl-nav {
    width: 100%;
}

.vegetable-carousel .owl-nav .owl-prev,
.vegetable-carousel .owl-nav .owl-next {
    float: none !important;
}

.vegetable-carousel .owl-nav .owl-prev {
    position: absolute;
    right: 80px;
}

.vegetable-carousel .owl-nav .owl-next {
    position: absolute;
    right: 0px;
}


/* Catalog modal */

.catalog-wrapper {
    position: relative;
}

.catalog-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;

    width: 1050px;
    min-height: 520px;

    background: #fff;
    border-radius: 24px;
    border: 1px solid #f1f1f1;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.12),
        0 4px 12px rgba(0,0,0,0.06);

    overflow: hidden;
    z-index: 999;

    display: none;

    transform: translateX(-35%) translateY(10px);
}

.catalog-wrapper:hover .catalog-dropdown {
    display: flex;
    transform: translateX(-35%) translateY(0);
}

@media (max-width: 1199.98px) {
    .catalog-dropdown {
        display: none !important;
    }
}

.catalog-sidebar {
    width: 360px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border-right: 1px solid #ececec;
    padding: 18px 0;
}

.catalog-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    transition: all .2s ease;
    cursor: pointer;
}

.catalog-category:hover,
.catalog-category.active {
    background: #edf7f0;
    color: #198754;
}

.catalog-category-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-category i {
    font-size: 20px;
    width: 24px;
}

.catalog-category-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.catalog-content {
    flex: 1;
    padding: 36px 40px;
    background: #fff;

    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.catalog-content::-webkit-scrollbar {
    width: 6px;
}

.catalog-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.catalog-content::-webkit-scrollbar-track {
    background: transparent;
}

.subcategory-block {
    display: none;
}

.subcategory-block.active {
    display: block;
}

.subcategory-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.subcategory-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 16px;

    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 16px;

    color: #333;
    text-decoration: none;

    transition: all .2s ease;
}

.subcategory-card:hover {
    background: #edf7f0;
    border-color: #b8e0c2;
    color: #198754;

    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.subcategory-card img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
}

.subcategory-card span {
    font-weight: 600;
    font-size: 15px;
}

/* ------------------------------- FLOATING CONTACTS ------------------------------- */

/* контейнер за розміром самої кнопки — щоб не перехоплювати кліки по сторінці */
.floating-contacts {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1035;

    width: 60px;
    height: 60px;
}

/* кнопка "нагору" стає ліворуч від віджета, щоб не перекриватись зі списком */
.back-to-top {
    right: 100px !important;
    bottom: 32px !important;
}

.floating-contacts__toggle {
    position: relative;

    width: 60px;
    height: 60px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #81c408 0%, #5f9406 100%);
    color: #fff;
    font-size: 24px;
    cursor: pointer;

    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transition: transform .25s ease, box-shadow .25s ease;
}

.floating-contacts__toggle:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .32);
}

.floating-contacts__toggle:focus-visible {
    outline: 3px solid #660ff1;
    outline-offset: 3px;
}

/* пульсуючий ореол, поки віджет закритий */
.floating-contacts__toggle::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: 50%;
    background: #81c408;

    animation: floating-contacts-pulse 2.4s ease-out infinite;
}

.floating-contacts.is-open .floating-contacts__toggle::before,
.floating-contacts__toggle:hover::before {
    animation: none;
    opacity: 0;
}

@keyframes floating-contacts-pulse {
    0%   { transform: scale(1);   opacity: .55; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

.floating-contacts__toggle-icon {
    position: absolute;
    transition: transform .25s ease, opacity .25s ease;
}

.floating-contacts__toggle-icon--close {
    opacity: 0;
    transform: rotate(-90deg) scale(.5);
}

.floating-contacts.is-open .floating-contacts__toggle-icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(.5);
}

.floating-contacts.is-open .floating-contacts__toggle-icon--close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* список абсолютний: закритим не займає місця й нічого не перекриває,
   нижній padding перекриває проміжок до кнопки, щоб hover не зривався */
.floating-contacts__list {
    position: absolute;
    right: 0;
    bottom: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    padding-bottom: 12px;

    /* закрито: приховано без реакції на курсор */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);

    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.floating-contacts.is-open .floating-contacts__list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* на десктопі розкриваємо ще й по наведенню */
@media (hover: hover) and (pointer: fine) {
    .floating-contacts:hover .floating-contacts__list,
    .floating-contacts:focus-within .floating-contacts__list {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.floating-contacts__item {
    position: relative;

    display: flex;
    align-items: center;

    padding: 0;
    border: none;
    background: none;
    text-decoration: none;
}

.floating-contacts__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    color: #fff;
    font-size: 21px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.floating-contacts__item:hover .floating-contacts__icon {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

.floating-contacts__item:focus-visible .floating-contacts__icon {
    outline: 3px solid #660ff1;
    outline-offset: 3px;
}

.floating-contacts__item--viber    .floating-contacts__icon { background-color: #7360f2; }
.floating-contacts__item--telegram .floating-contacts__icon { background-color: #229ed9; }
.floating-contacts__item--phone    .floating-contacts__icon { background-color: #27a723; }
.floating-contacts__item--chat     .floating-contacts__icon { background-color: #660ff1; }

/* підпис виводимо поза потоком — список лишається завширшки в одну іконку
   і не перехоплює кліки по сусідніх елементах сторінки */
.floating-contacts__label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;

    padding: 7px 12px;

    pointer-events: none;

    border-radius: 8px;
    background: rgba(33, 37, 41, .92);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;

    opacity: 0;
    transform: translate(10px, -50%);
    transition: opacity .2s ease, transform .2s ease;
}

.floating-contacts__item:hover .floating-contacts__label,
.floating-contacts__item:focus-visible .floating-contacts__label {
    opacity: 1;
    transform: translate(0, -50%);
}

/* підказка ліворуч від кнопки — список розкривається вгору й не перетинається з нею */
.floating-contacts__hint {
    position: absolute;
    right: calc(100% + 12px);
    bottom: 4px;

    width: max-content;
    max-width: min(280px, calc(100vw - 110px));
    padding: 10px 14px;

    pointer-events: none;

    border-radius: 10px;
    background: rgba(33, 37, 41, .95);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.floating-contacts__hint.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .floating-contacts {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .floating-contacts__list {
        gap: 10px;
    }

    .floating-contacts__toggle {
        width: 54px;
        height: 54px;
        font-size: 21px;
    }

    .floating-contacts__icon {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }

    /* на дотику підписи не ховаємо — вони і є підказкою */
    .floating-contacts__label {
        opacity: 1;
        transform: translate(0, -50%);
        font-size: 13px;
    }

    .back-to-top {
        right: 82px !important;
        bottom: 20px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-contacts__toggle::before {
        animation: none;
        opacity: 0;
    }

    .floating-contacts__toggle,
    .floating-contacts__toggle-icon,
    .floating-contacts__list,
    .floating-contacts__icon,
    .floating-contacts__label,
    .floating-contacts__hint {
        transition-duration: .01ms;
    }
}

/* ------------------------------- CHAT PANEL ------------------------------- */

.chat-panel {
    position: fixed;
    right: 25px;
    /* над плаваючою кнопкою (60px) з відступом */
    bottom: 100px;
    z-index: 1036;

    display: flex;
    flex-direction: column;

    width: 360px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 150px);

    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    overflow: hidden;

    /* закрито: не займає місця для курсора й не перехоплює кліки */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(.98);
    transform-origin: bottom right;

    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.chat-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 14px 16px;

    background: linear-gradient(135deg, #81c408 0%, #5f9406 100%);
    color: #fff;
}

.chat-panel__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.chat-panel__subtitle {
    font-size: 12px;
    opacity: .85;
}

.chat-panel__close {
    width: 30px;
    height: 30px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 15px;
    cursor: pointer;

    transition: background .2s ease;
}

.chat-panel__close:hover {
    background: rgba(255, 255, 255, .32);
}

.chat-panel__body {
    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 16px;

    background: #f5f7f4;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.chat-panel__greeting {
    padding: 10px 12px;

    border-radius: 12px;
    background: #e8f3d9;
    color: #3f5c12;
    font-size: 13px;
    line-height: 1.4;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-message--visitor {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message--assistant,
.chat-message--manager {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-message--system {
    align-self: center;

    padding: 4px 10px;
    max-width: 100%;

    border-radius: 10px;
    background: rgba(33, 37, 41, .07);
    color: #6c757d;
    font-size: 12px;
    text-align: center;
}

.chat-message__bubble {
    padding: 9px 13px;

    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-message--visitor .chat-message__bubble {
    border-bottom-right-radius: 4px;
    background: #660ff1;
    color: #fff;
}

.chat-message--assistant .chat-message__bubble,
.chat-message--manager .chat-message__bubble {
    border-bottom-left-radius: 4px;
    background: #fff;
    color: #212529;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.chat-message--manager .chat-message__bubble {
    /* репліку живого менеджера видно окремо від бота */
    border-left: 3px solid #81c408;
}

.chat-message__meta {
    margin-top: 3px;
    padding: 0 4px;

    color: #8b9199;
    font-size: 11px;
}

.chat-message__bubble--typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 13px;
}

.chat-message__bubble--typing span {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #adb5bd;

    animation: chat-typing 1.2s infinite ease-in-out;
}

.chat-message__bubble--typing span:nth-child(2) { animation-delay: .15s; }
.chat-message__bubble--typing span:nth-child(3) { animation-delay: .3s; }

@keyframes chat-typing {
    0%, 60%, 100% { opacity: .25; transform: translateY(0); }
    30%           { opacity: 1;   transform: translateY(-3px); }
}

.chat-panel__footer {
    display: flex;
    align-items: flex-end;
    gap: 8px;

    padding: 10px 12px;

    border-top: 1px solid #e6e8e4;
    background: #fff;
}

.chat-panel__input {
    flex: 1;

    padding: 9px 12px;
    max-height: 96px;

    border: 1px solid #dfe2dc;
    border-radius: 12px;
    color: #212529;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
}

.chat-panel__input:focus {
    outline: none;
    border-color: #81c408;
}

.chat-panel__send {
    width: 40px;
    height: 40px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;
    background: #81c408;
    color: #fff;
    font-size: 15px;
    cursor: pointer;

    transition: background .2s ease, transform .2s ease;
}

.chat-panel__send:hover:not(:disabled) {
    background: #6ea607;
    transform: scale(1.05);
}

.chat-panel__send:disabled {
    opacity: .55;
    cursor: default;
}

.chat-panel__notice {
    padding: 14px 16px;

    border-top: 1px solid #e6e8e4;
    background: #fff;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 575.98px) {
    .chat-panel {
        right: 16px;
        left: 16px;
        bottom: 84px;

        width: auto;
        max-width: none;
        height: calc(100vh - 190px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-panel,
    .chat-panel__send,
    .chat-panel__close {
        transition-duration: .01ms;
    }

    .chat-message__bubble--typing span {
        animation: none;
    }
}

/* посилання на товари у відповідях асистента */
.chat-message__bubble a {
    color: inherit;
    text-decoration: underline;
    word-break: break-all;
}

.chat-message--assistant .chat-message__bubble a,
.chat-message--manager .chat-message__bubble a {
    color: #4a8f06;
    font-weight: 600;
}

.chat-message--visitor .chat-message__bubble a {
    color: #fff;
}

/* картка товару у відповіді бота */
.chat-product-card {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 6px;
    padding: 8px;
    width: 100%;
    max-width: 290px;

    border: 1px solid #e3e8dd;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.chat-product-card:hover {
    border-color: #81c408;
    box-shadow: 0 4px 14px rgba(129, 196, 8, .22);
    transform: translateY(-1px);
    text-decoration: none;
}

.chat-product-card__image {
    width: 52px;
    height: 52px;
    flex-shrink: 0;

    border-radius: 8px;
    background: #f2f4f0;
    overflow: hidden;
}

.chat-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-product-card__info {
    flex: 1;
    min-width: 0;
}

.chat-product-card__title {
    color: #212529;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;

    /* назви товарів довгі — обрізаємо на двох рядках */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-product-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 3px;
}

.chat-product-card__price-now {
    color: #4a8f06;
    font-size: 14px;
    font-weight: 700;
}

.chat-product-card__price-old {
    color: #9aa0a6;
    font-size: 12px;
    text-decoration: line-through;
}

.chat-product-card__badge {
    margin-top: 2px;
    color: #c0392b;
    font-size: 11px;
}

.chat-product-card__arrow {
    flex-shrink: 0;
    padding-right: 2px;
    color: #b6c2a8;
    font-size: 12px;
}

.chat-product-card:hover .chat-product-card__arrow {
    color: #81c408;
}

/* у переписці в адмінці картки трохи ширші */
.admin-chat-card {
    max-width: 340px;
}

/* honeypot: приховане поле, яке заповнюють лише боти */
.chat-panel__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Горизонтальне меню розкривається з xl (navbar-expand-xl). Дев'ять пунктів
   вміщуються в контейнер лише якщо текст усередині пункту не переноситься —
   інакше рядок ламається навпіл і шапка стає вдвічі вищою. */
@media (min-width: 1200px) {
    #navbarCollapse .navbar-nav > a.nav-link,
    #navbarCollapse .navbar-nav > .nav-item.dropdown > a {
        white-space: nowrap;
    }
}
