/* pages/static/pages/css/shop_frontend/user_experience.css */
/* Уникальные стили страницы «UX-блоки».
   Всё общее (.hero, section, .block-card, .callout, .lead,
   .chip, .feature-list, .reason-grid) — в shop_general.css. */

/* ============================================================
   BREADCRUMBS DEMO — хлебные крошки
   ============================================================ */
.breadcrumbs-demo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.breadcrumbs-demo__item {
    color: var(--accent);
    font-weight: 500;
    transition: color 0.35s ease;
    cursor: pointer;
}

.breadcrumbs-demo__item:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.breadcrumbs-demo__item--current {
    color: var(--text-muted);
    font-weight: 600;
    cursor: default;
}

.breadcrumbs-demo__item--current:hover {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs-demo__sep {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.35s ease;
}

/* ============================================================
   TAG GROUPS — группы тегов
   ============================================================ */
.tag-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0 4px;
}

.tag-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.tag-group__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.tag-group__items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ============================================================
   CHAT DEMO — онлайн-консультант
   ============================================================ */
.chat-demo {
    margin: 18px 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    max-width: 480px;
    box-shadow: var(--shadow-card);
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.chat-demo__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--accent-soft);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.chat-demo__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.chat-demo__name {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.95rem;
    transition: color 0.35s ease;
}

.chat-demo__status {
    font-size: 0.78rem;
    color: #22c55e;
    font-weight: 600;
}

.chat-demo__messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
}

.chat-demo__msg {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.chat-demo__msg--client {
    align-self: flex-end;
    background: var(--accent);
    color: var(--accent-contrast);
    border-bottom-right-radius: 4px;
}

.chat-demo__msg--shop {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

/* ============================================================
   SALES GRID — кросс-сейл / апсейл / даунсейл
   ============================================================ */
.sales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 4px;
}

.sales-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.35s ease, border-color 0.35s ease;
}

.sales-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.sales-card--cross {
    border-color: rgba(108, 140, 255, 0.25);
    background: rgba(108, 140, 255, 0.05);
}

.sales-card--up {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.05);
}

.sales-card--down {
    border-color: rgba(249, 115, 22, 0.25);
    background: rgba(249, 115, 22, 0.05);
}

.sales-card__tag {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sales-card--cross .sales-card__tag {
    background: rgba(108, 140, 255, 0.15);
    color: var(--accent);
}

.sales-card--up .sales-card__tag {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.sales-card--down .sales-card__tag {
    background: rgba(249, 115, 22, 0.15);
    color: #ea580c;
}

:root[data-theme="dark"] .sales-card--up .sales-card__tag { color: #4ade80; }
:root[data-theme="dark"] .sales-card--down .sales-card__tag { color: #fb923c; }

.sales-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    transition: color 0.35s ease;
}

.sales-card__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    transition: color 0.35s ease;
}

.sales-card__text strong {
    color: var(--text-heading);
}

.sales-card__examples {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    transition: border-color 0.35s ease;
}

.sales-card__example {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    transition: color 0.35s ease;
}

.sales-card__rule {
    padding: 10px 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.sales-card__rule strong {
    color: var(--text-heading);
}

/* ============================================================
   ANNOUNCE GRID — announcement bar
   ============================================================ */
.announce-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 16px 0 20px;
}

.announce-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.announce-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.35s ease, border-color 0.35s ease;
}

.announce-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-strong);
}

.announce-card--promo {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.05);
}

.announce-card--info {
    border-color: rgba(108, 140, 255, 0.25);
    background: rgba(108, 140, 255, 0.05);
}

.announce-card__title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.98rem;
    transition: color 0.35s ease;
}

.announce-card__text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
    transition: color 0.35s ease;
}

.announce-card__sample {
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.announce-card__sample--static {
    border-left-color: #22c55e;
}

.announce-card__sample--marquee {
    overflow: hidden;
    white-space: nowrap;
    border-left-color: #f97316;
}

.announce-card__sample--marquee span {
    display: inline-block;
    animation: marquee-scroll 12s linear infinite;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.announce-card__sample--slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-left-color: var(--accent);
}

.announce-card__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: background-color 0.35s ease;
}

.announce-card__dot--active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
}

.announce-card__note {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    transition: color 0.35s ease;
}

/* ============================================================
   POPUP GRID — всплывающие окна
   ============================================================ */
.popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 18px 0;
}

.popup-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 20px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.35s ease, border-color 0.35s ease;
}

.popup-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-strong);
}

.popup-card__icon {
    font-size: 1.7rem;
    margin-bottom: 10px;
    line-height: 1;
}

.popup-card__title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 1.05rem;
    margin-bottom: 8px;
    transition: color 0.35s ease;
}

.popup-card__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 14px;
    transition: color 0.35s ease;
}

.popup-card__stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    transition: border-color 0.35s ease;
}

.popup-card__stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.86rem;
    color: var(--text-muted);
    transition: color 0.35s ease;
}

.popup-card__stat span:last-child {
    font-weight: 700;
    color: var(--accent);
}

/* ============================================================
   SHARE DEMO — кнопка «Поделиться»
   ============================================================ */
.share-demo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.share-demo__label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.35s ease;
}

.share-demo__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.25s, color 0.25s, border-color 0.25s;
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
}

.share-btn--tg:hover {
    background: rgba(41, 161, 219, 0.15);
    border-color: #29a1db;
    color: #29a1db;
}

.share-btn--vk:hover {
    background: rgba(74, 118, 168, 0.15);
    border-color: #4a76a8;
    color: #4a76a8;
}

.share-btn--wa:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    color: #25d366;
}

.share-btn--copy:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   RECENT DEMO — недавно просмотренные
   ============================================================ */
.recent-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.recent-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.35s ease, border-color 0.35s ease;
}

.recent-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent);
}

.recent-item__thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.recent-item__name {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.4;
    transition: color 0.35s ease;
}

.recent-item__price {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
}

.recent-benefits {
    margin: 18px 0 4px;
    padding-left: 22px;
}

.recent-benefits li {
    margin-bottom: 10px;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-primary);
    transition: color 0.35s ease;
}

.recent-benefits li strong {
    color: var(--text-heading);
}

.recent-benefits li:last-child {
    margin-bottom: 0;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
    .sales-grid {
        grid-template-columns: 1fr;
    }

    .announce-grid,
    .announce-grid--three {
        grid-template-columns: 1fr;
    }

    .popup-grid {
        grid-template-columns: 1fr;
    }

    .tag-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .recent-demo {
        grid-template-columns: 1fr;
    }

    .breadcrumbs-demo {
        font-size: 0.82rem;
        padding: 12px 14px;
    }

    .share-demo {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-demo__buttons {
        width: 100%;
    }

    .share-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}