div[data-type="out_link"] {
  display: inline-block;
}
div.icon-sc[data-type="out_link"] {
  width: 24px;
  height: 24px;
  background-image: url(/img/icons/social/social_icons.png);
  background-image: url(/img/icons/social/social_icons2.png);
  transition: none!important;
}
.aside-fixed div[data-type="out_link"] {
  text-decoration: none;
  color: var(--gray3);
  -webkit-transition: .5s;
  -o-transition: .5s;
  transition: .5s;
}
.aside-social div[data-type="out_link"]:last-child {
  margin-right: 0;
}
.aside-social .tc-grand div[data-type="out_link"],
.aside-social .tc-ray div[data-type="out_link"] {
  margin-right: 25px;
}

.shop-detail__contact-links div[data-type="out_link"] {
  margin-right: 25px;
}
.shop-detail__contact div[data-type="out_link"] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
}

.shop-detail__contact div[data-type="out_link"] .icon {
  width: 20px;
  margin-right: 12px;
  color: var(--gold);
}
.shop-detail__contact div[data-type="out_link"] .icon svg {
  display: block;
}
.footer__phone > div[data-type="out_link"] > svg,
.footer__social-link > div[data-type="out_link"] > svg {
  fill: #4F4F4F;
}

.filter__select-dropdown a span::before,
.filter__select-dropdown label > span::before {
  top: 0;
}

.seo_text{
  margin-bottom: 40px;
}
.seo_text img{
  max-width: 100%;
  margin-bottom: 10px;
  width: 250px;
}
.seo_text img.img_right{
  float: right;
  margin-left: 20px;
}
.seo_text img.img_left{
  float: left;
  margin-right: 30px;
}
@media (max-width: 600px) {
  .seo_text img{
    width: 100%;
    margin: 0 0 20px 0;
  }
}

@media (max-width: 370px) {
  header .header__logo {
    min-width: 94px;
  }
}
/* ─── AI Chat Widget ─────────────────────────────────────────────────────── */

/* Расширяем контейнер иконок под 3-ю иконку (+39px = 19px icon + 20px margin) */
.header__item_lk {
    width: 154px;
}
.header__item_lk .header__search {
    right: 118px; /* было 79px + 39px */
}

@media (max-width: 992px) {
    .header__list {
        grid-template-columns: 25px auto 159px; /* было 120px + 39px */
    }
}

@media (max-width: 769px) {
    .header__list {
        grid-template-columns: 18px auto 149px; /* было 115px + 34px (иконки 14px) */
    }
    .header__item_lk .header__search {
        right: 117px; /* было 83px + 34px */
    }
}

a.grand-ai-trigger.ai-active .icon {
    color: var(--gold);
}
#grand-ai-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    height: 520px;
    background: var(--white);
    border: 1px solid var(--gray2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    font-family: var(--text-font);
    overflow: hidden;
    transition: opacity 0.2s, transform 0.2s;
}
#grand-ai-widget.ai-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}
.ai-widget__header {
    background: var(--black);
    color: var(--white);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.ai-widget__title {
    font-family: var(--heading-font);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}
.ai-widget__close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    font-size: 17px;
    transition: opacity 0.15s;
}
.ai-widget__close:hover { opacity: 1; }
.ai-widget__messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--gray1);
}
.ai-msg {
    max-width: 86%;
    font-size: 13px;
    line-height: 1.55;
    padding: 9px 12px;
}
.ai-msg--bot {
    background: var(--white);
    color: var(--black);
    align-self: flex-start;
    border: 1px solid var(--gray2);
}
.ai-msg--bot a {
    color: var(--gold);
    text-decoration: underline;
}
.ai-msg--bot p {
    margin: 0 0 6px;
}
.ai-msg--bot p:last-child {
    margin-bottom: 0;
}
.ai-msg--bot ul {
    margin: 4px 0 6px;
    padding-left: 16px;
    list-style: disc;
}
.ai-msg--bot ul:last-child {
    margin-bottom: 0;
}
.ai-msg--bot code {
    background: var(--gray1);
    padding: 1px 4px;
    font-size: 12px;
    border-radius: 2px;
}
.ai-msg--user {
    background: var(--black);
    color: var(--white);
    align-self: flex-end;
}
.ai-msg--typing {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 12px 14px;
}
.ai-msg--typing span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gray4);
    border-radius: 50%;
    animation: ai-bounce 1s infinite;
}
.ai-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-msg--typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes ai-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}
.ai-widget__footer {
    padding: 10px 12px;
    background: var(--white);
    border-top: 1px solid var(--gray2);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.ai-widget__input {
    flex: 1;
    border: 1px solid var(--gray2);
    padding: 8px 10px;
    font-size: 13px;
    font-family: var(--text-font);
    outline: none;
    transition: border-color 0.15s;
}
.ai-widget__input:focus { border-color: var(--gold); }
.ai-widget__send {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.15s;
}
.ai-widget__send:hover { background: #333; }
.ai-widget__send:disabled { opacity: 0.4; cursor: default; }
@media (max-width: 480px) {
    #grand-ai-widget {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
    }
}
