* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

*::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}

::selection {
    background-color: #664dde;
    color: #ffffff;
}

html,
body {
    background: radial-gradient(circle at center, #f0e8ff 0%, #ffffff 100%);
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
}

h1 {
    text-align: center;
    background: linear-gradient(135deg, #520072, #664dde);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    width: 100%;
    padding: 0 20px 0 0;
    margin: 0;
}

.prompt-offset {
    width: 100%;
    padding-right: 20px;
}

button {
    display: flex;
    align-items: center;
}

.disclaimer {
    margin-top: 10px;
    display: none;
    font-size: 10px;
    text-align: center;
    color: #777;
}

.disclaimer a {
    color: #777;
}

.app {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-height: 60dvh;
    overflow-y: auto;
    display: flex;
    padding: 20px 0 20px 20px;
    align-items: start;
}

.msg {
    padding: 14px 18px;
    border-radius: 20px;
    max-width: 75%;
    animation: fade .3s ease;
    word-break: break-word;
}

.user {
    background: #664dde;
    color: #fff;
    align-self: flex-end;
    margin-right: 20px;
}

.ai {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 20px rgba(30, 0, 179, 0.08);
}

.prompt-wrapper {
    width: 100%;
    padding: 20px 0 20px 20px;
}

.input-wrap {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
    align-items: start;
    width: 100%;
    position: relative;
    padding: 20px 20px 70px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(30, 0, 179, 0.08);
    z-index: 2;
}

.input-wrap textarea {
    border: 0;
    padding: 0;
    font-size: 18px;
    width: 100%;
    align-items: start;
    display: flex;
    outline: 0;
    resize: none;
    overflow: hidden;
    min-height: 44px;
    max-height: 200px;
    line-height: 1.4;
    font-family: inherit;
}

.input-wrap input:focus {
    outline: 0;
    box-shadow: none;
}

.input-wrap button {
    padding: 12px 18px;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    background: rgba(102, 77, 222, 1);
    color: #fff;
    font-weight: 600;
    transition: background 0.2s ease;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.input-wrap button:hover,
.input-wrap button:focus {
    background: rgba(102, 77, 222, 0.8);
}

.quick button {
    border: 0;
    background-color: #fff;
    padding: 12px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    border: 0.5px solid #ddd;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.quick button:hover,
.quick button:focus {
    background: transparent;
}

.quick {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 30px 0 0;
    padding-bottom: 20px;
    justify-content: center;
}

@media (max-width: 600px) {
    .quick {
        justify-content: flex-start;
    }
}

.hidden {
    display: none;
}

.products {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
    padding-bottom: 20px;
    padding-left: 10px;
    overflow-x: auto;
    height: auto;
    min-height: 120px;
    flex-shrink: 0;
}

.card {
    width: 200px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(30, 0, 179, 0.08);
    transition: transform .3s;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: start;
    flex: 0 0 auto;
    min-height: 150px;
    flex-shrink: 0;
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 10px;
}

.card a {
    text-decoration: none;
    display: block;
}

.card button {
    border: 1px solid #ddd;
    background-color: transparent;
    margin-bottom: 8px;
    padding: 6px 12px;
    cursor: pointer;
}

.card button:hover,
.card button:focus {
    background-color: rgba(0, 0, 0, 0.03);
}

.card h3 {
    text-decoration: none;
    color: #111;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
}

.title {
    font-weight: 600;
    margin-bottom: 20px;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.loader .bar {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(100, 77, 222, 0.2);
    border-top-color: #664dde;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.close-btn {
    background-color: #FFF;
    border: none;
    color: #333;
    font-size: 20px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute;
    top: 10px;
    right: 10px;
}

.close-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

.close-btn:active {
    transform: scale(0.95);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}