/* Tozzy AI asistan — olurbutik klonu */
.tozzy-fab-stack {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.tozzy-fab {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f2791c;
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px 10px 10px;
    box-shadow: 0 8px 24px rgba(242, 121, 28, .45);
    font-weight: 700;
    font-size: 13px;
}
.tozzy-fab-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.tozzy-panel[hidden] { display: none !important; }
.tozzy-panel {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 1085;
    width: min(380px, calc(100vw - 24px));
}
.tozzy-panel-inner {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(640px, calc(100vh - 110px));
    border: 1px solid #eee;
}
.tozzy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.tozzy-head-left { display: flex; align-items: center; gap: 10px; }
.tozzy-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.tozzy-online {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
}
.tozzy-name { font-weight: 800; font-size: 15px; line-height: 1.1; color: #111; }
.tozzy-status { font-size: 11px; color: #777; margin-top: 2px; }
.tozzy-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
}
.tozzy-body {
    overflow-y: auto;
    padding: 18px 16px;
    flex: 1;
    background: #fff;
}
.tozzy-welcome { text-align: center; }
.tozzy-hero-logo {
    width: 72px;
    height: 72px;
    margin: 8px auto 14px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}
.tozzy-welcome h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #111;
}
.tozzy-welcome p {
    font-size: 13px;
    color: #666;
    line-height: 1.45;
    margin: 0 auto 18px;
    max-width: 280px;
}
.tozzy-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
}
.tozzy-quick {
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    min-height: 84px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tozzy-quick:hover { border-color: #111; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.tozzy-quick i { color: #111; font-size: 14px; }
.tozzy-messages { display: flex; flex-direction: column; gap: 10px; }
.tozzy-msg {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
}
.tozzy-msg--bot { align-self: flex-start; background: #f5f5f5; color: #222; }
.tozzy-msg--user { align-self: flex-end; background: #111; color: #fff; }
.tozzy-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.tozzy-product {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.tozzy-product img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    background: #f3f3f3;
}
.tozzy-product-meta { padding: 7px 8px 9px; }
.tozzy-product-name {
    font-size: 11px;
    font-weight: 600;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.tozzy-product-price { font-size: 12px; font-weight: 800; margin-top: 4px; color: #111; }
.tozzy-foot {
    border-top: 1px solid #f0f0f0;
    padding: 12px 14px 14px;
    background: #fff;
}
.tozzy-login-hint {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 0 0 10px;
}
.tozzy-login-btn {
    display: block;
    text-align: center;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px;
    padding: 13px 16px;
    font-weight: 800;
    font-size: 14px;
}
.tozzy-compose {
    display: flex;
    gap: 8px;
    align-items: center;
}
.tozzy-compose input {
    flex: 1;
    min-height: 44px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
}
.tozzy-compose button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #111;
    color: #fff;
    cursor: pointer;
}
.tozzy-disclaimer {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    margin: 10px 0 0;
}
.tozzy-toast-host {
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(340px, calc(100vw - 32px));
    pointer-events: none;
}
.tozzy-toast {
    pointer-events: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    animation: tozzyIn .25s ease;
}
.tozzy-toast img {
    width: 44px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #f3f3f3;
}
.tozzy-toast-text { font-size: 12px; color: #333; line-height: 1.35; }
.tozzy-toast-text strong { display: block; font-size: 12px; margin-bottom: 2px; color: #111; }
.tozzy-toast-cta {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #f2791c;
    text-decoration: none;
    white-space: nowrap;
}
@keyframes tozzyIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 575.98px) {
    .tozzy-panel { right: 12px; left: 12px; width: auto; bottom: 80px; }
    .tozzy-fab-stack { right: 12px; bottom: 16px; }
    .tozzy-fab-text { display: none; }
    .tozzy-fab { padding: 10px; border-radius: 50%; }
    .tozzy-toast-host { left: 12px; right: 12px; max-width: none; bottom: 78px; }
}
/* WhatsApp ile çakışmasın */
.whatsapp-float { bottom: 86px !important; }
body:has(.tozzy-fab-stack) .whatsapp-float { bottom: 150px !important; }
