/* Foslah Store Assistant page (store-assistant.html); builds on services.css */

.sa-page { overflow-x: hidden; }

.sa-page section { scroll-margin-top: 24px; }

/* Hero */
.sa-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 64px;
}

.sa-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.sa-brand img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(184, 48, 252, 0.25);
}

.sa-hero h1 {
    font-size: 2.4rem;
    line-height: 1.15;
}

.sa-hero .lead {
    margin: 0 0 24px;
}

.sa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Chat mock-up (static, not the real widget) */
.sa-chat {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(184, 48, 252, 0.2);
    overflow: hidden;
    max-width: 380px;
    width: 100%;
    justify-self: center;
    font-size: 0.92rem;
}

.sa-chat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #B830FC, #8a1fc4);
    color: #fff;
    font-weight: 600;
}

.sa-chat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00DF93;
}

.sa-chat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #faf8fc;
}

.sa-msg {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 14px;
    line-height: 1.4;
}

.sa-msg--shopper {
    align-self: flex-end;
    background: #B830FC;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.sa-msg--bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #eee;
    border-bottom-left-radius: 4px;
}

.sa-product,
.sa-confirm {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
}

.sa-product {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sa-product-img {
    flex: 0 0 56px;
    height: 56px;
    width: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #eee;
}

.sa-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sa-stock {
    color: #008f5d;
    font-size: 0.82rem;
}

.sa-confirm p:first-child {
    font-weight: 600;
    margin-bottom: 4px;
}

.sa-confirm-item span {
    color: #666;
    font-size: 0.85rem;
}

.sa-confirm-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.sa-btn {
    padding: 7px 14px;
    border-radius: 999px;
    background: #B830FC;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.sa-btn--ghost {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #ddd;
}

/* Settings */
.sa-sub-left {
    color: #444;
    margin-bottom: 16px;
}

.sa-settings ul {
    padding-left: 18px;
}

.sa-settings li {
    margin-bottom: 4px;
}

/* Benefits */
.sa-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
}

.sa-benefits li {
    padding-left: 18px;
    border-left: 3px solid #00DF93;
}

.sa-benefits li:nth-child(4n+2),
.sa-benefits li:nth-child(4n+3) { border-left-color: #B830FC; }

.sa-benefits strong {
    display: block;
    margin-bottom: 2px;
}

/* Pricing */
.sa-pricing { text-align: center; }

.sa-sub {
    color: #444;
    margin-bottom: 24px;
}

.sa-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: center;
    gap: 24px;
}

.sa-plan {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 3px 10px rgba(184, 48, 252, 0.15);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.sa-plan--featured {
    border: 2px solid #B830FC;
}

.sa-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #FFC000;
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.sa-price {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 4px;
}

.sa-price-alt {
    color: #555;
    margin-bottom: 16px;
}

.sa-plan ul {
    padding-left: 20px;
    margin-bottom: 24px;
    flex: 1;
}

.sa-plan ul li { margin-bottom: 6px; }

.sa-plan .cta { text-align: center; }

.sa-note {
    color: #666;
    font-size: 0.92rem;
    max-width: 620px;
    margin: 20px auto 0;
}

/* FAQ */
.sa-faq details {
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(184, 48, 252, 0.1);
}

.sa-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.sa-faq details p {
    margin-top: 8px;
    color: #444;
}

/* Final call to action and footer */
.sa-final {
    background: #fff;
    border-radius: 18px;
    padding: 36px 20px;
    box-shadow: 0 3px 10px rgba(184, 48, 252, 0.15);
}

.sa-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #afafaf !important;
    text-decoration: none;
    font-size: 0.85rem;
}

.sa-by img {
    width: 160px;
    height: 80px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .sa-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .sa-hero h1 { font-size: 2rem; }
    .sa-benefits { grid-template-columns: 1fr; }
    .sa-plans { grid-template-columns: minmax(0, 420px); }
}

@media (max-width: 480px) {
    .sa-hero h1 { font-size: 1.7rem; }
    .sa-actions .cta { flex: 1 1 100%; text-align: center; }
    .sa-plan { padding: 24px 18px; }
}
