#search-box:focus,
.filters {
    background: #fff;
}
#ai-btn,
#ai-send {
    background: linear-gradient(135deg, #079, #2575fc);
    cursor: pointer;
}
#ai-btn,
#ai-send,
.close-modal {
    cursor: pointer;
}
#search-box,
.category-btn {
    font-weight: 600;
    text-align: center;
}
.filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 10px;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.filters select {
    grid-row: 1;
}
#search-box {
    grid-column: 1/-1;
    color: #222;
    letter-spacing: 0.3px;
}
.filters input,
.filters select {
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    outline: 0;
    transition: 0.2s;
}
.filters input:hover,
.filters select:hover {
    border-color: #2575fc;
}
#search-box:not(:placeholder-shown),
.filters input:focus,
.filters select:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.15);
}
#ai-btn {
    position: fixed;
    bottom: 200px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 0.2s;
}
#ai-btn:hover {
    transform: scale(1.1);
}
#search-box::placeholder {
    color: #999;
    font-weight: 500;
}
.ai-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    animation: 0.3s forwards fadeIn;
}
.ai-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    max-height: 500px;
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.ai-modal-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
    text-align: center;
}
.ai-chat-box {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #eee;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 5px;
    scroll-behavior: smooth;
}
.ai-msg,
.user-msg {
    padding: 8px 12px;
    max-width: 80%;
    animation: 0.2s popIn;
}
.ai-chat-box::-webkit-scrollbar {
    width: 6px;
}
.ai-chat-box::-webkit-scrollbar-thumb {
    background: #6a11cb;
    border-radius: 3px;
}
.ai-modal-content button,
.ai-modal-content input {
    font-family: Poppins, sans-serif;
    font-size: 14px;
}
#ai-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 15px;
    border: 1px solid #ccc;
    outline: 0;
}
#ai-send {
    margin-left: 8px;
    padding: 10px 12px;
    border-radius: 15px;
    border: none;
    color: #fff;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
#ai-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.5);
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    color: #999;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #6a11cb;
}
.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border-radius: 15px 15px 5px;
}
.ai-msg {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
    border-radius: 15px 15px 15px 5px;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.ai-msg.placeholder {
    color: #888;
    font-style: bold;
}
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
    padding: 0 10px;
    overflow-x: auto;
}
.category-buttons::-webkit-scrollbar {
    height: 6px;
}
.category-buttons::-webkit-scrollbar-thumb {
    background: #6a11cb;
    border-radius: 3px;
}

.category-btn {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  
  /* Əsas gradient + animasiya */
  background: linear-gradient(45deg, #079, #2575fc, #6a11cb);
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite;
  
  /* hover effekti */
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Animasiya keyframes (shop-btn ilə eynidir) */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (min-width: 768px) {
    .category-buttons {
        justify-content: center;
    }
    .category-btn {
        padding: 14px 22px;
        font-size: 16px;
    }
}
