:root {
    --bg-gradient: rgb(63, 164, 146);
    --rufus-orange: #ff6b35;
    --rufus-blue: #1e88e5;
    --rufus-dark-blue: #0d47a1;
    --text-primary: #fff;
    --text-secondary: #666;
    --input-bg: rgba(255, 255, 255, 0.95);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 16px 64px rgba(0, 0, 0, 0.15);
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    flex-wrap: wrap;
}

.logo-section {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.subtitle {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 80px;
    width: 100%;
}

.search-container {
    position: relative; 
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 24px 80px 24px 32px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    background: var(--input-bg);
    box-shadow: var(--shadow-light);
    outline: none;
    transition: all 0.3s ease;
    color: #000;
    backdrop-filter: blur(20px);
}

.search-input::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.search-input:focus {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
    background: white;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #3fa492;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--rufus-dark-blue);
    transform: translateY(-52%) scale(1.05);
}

.chat-overlay {
    background: var(--bg-gradient);
    z-index: 1000;
    display: none;
    width: 100%;
    transition: opacity 0.3s ease;
}

.chat-container {
    background: rgb(63 164 146);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
    height: calc(100vh - 15vh);
}

.chat-header {
    border-bottom: 1px solid rgb(255 255 255);
    padding: 0px 25px 15px;
    display: flex;
    align-items: center;
    line-height: 0px;
    justify-content: space-between;
}

.chat-header-left {
    display: flex;
    align-items: center;
}

.chat-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.chat-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2px;
}

.close-btn {
    border: none;
    font-size: 1.1rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: #fff;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.message {
    margin-bottom: 24px;
    animation: messageSlide 0.4s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    text-align: right;
}

.message.bot {
    text-align: left;
}

.message-content {
    display: inline-block;
    max-width: 75%;
    padding: 16px 24px;
    border-radius: 24px;
    position: relative;
    word-wrap: break-word;
    font-size: 1rem;
    line-height: 1.5;
}

.message.user .message-content {
    background: #f8f9fa;
    color: #000;
    border-bottom-right-radius: 8px;
}

.message.bot .message-content {
    background: white;
    color: #000;
    border-bottom-left-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.message-time {
    font-size: 0.8rem;
    color: #fff;
    margin-top: 8px;
    opacity: 0.8;
}

.chat-input-container {
    padding: 0px 20px 0px;
}

.chat-input-group {
    position: relative;
    max-width: 100%;
}

.chat-input {
    width: 100%;
    padding: 16px 70px 16px 24px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.chat-send-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #3fa492;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background: #3fa492;
    transform: translateY(-50%) scale(1.05);
}

.typing-indicator {
    display: none;
    text-align: left;
    margin-bottom: 24px;
    padding-left: 25px;
}

.typing-indicator .message-content {
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 16px 24px;
}

.typing-dots {
    display: inline-block;
}

.typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    margin: 0 3px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.logo-section img {
    width: 9%;
    margin-left: 20px;
}

.chat-main {
    background-color: rgb(63, 164, 146);
    width: 75%;
    height: calc(100vh - 10vh);
    display: flex;
    z-index: 1000;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .subtitle {
        font-size: 1.3rem;
        margin-bottom: 60px;
    }

    .search-input {
        padding: 20px 70px 20px 24px;
        font-size: 1.1rem;
    }

    .chat-container {
        border-radius: 0;
    }

    .message-content {
        max-width: 85%;
    }
}

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 10px;
  scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
  display: none; /* hide scrollbar */
}

/* Navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  z-index: 10;
}

.prev-btn { left: -5px; }
.next-btn { right: -5px; }

/* Product card */
.product-card {
  min-width: 220px;
  max-width: 360px;
  flex: 0 0 auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 6px;
}

.product-info {
  margin-top: 8px;
}

.product-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.product-price {
  color: #007bff;
  font-weight: bold;
  margin-bottom: 6px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-features .feature {
  background: #f1f1f1;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}



/* Producr */

.product-details-card {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.details-card-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.details-left {
    flex: 1;
    text-align: center;
}

.details-left img.details-img {
    max-width: 200px;
    border-radius: 10px;
}

.details-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.details-btn,
.add-to-cart-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.details-btn {
    background: #007bff;
    color: white;
    text-decoration: none;
}

.add-to-cart-btn {
    background: #28a745;
    color: white;
}

.details-right {
    flex: 2;
}

.details-name {
    margin: 0 0 10px;
}

.details-price {
    font-size: 1.2em;
    color: #28a745;
    margin-bottom: 12px;
}

.details-features {
    list-style: none;
    padding: 0;
}

.details-features li {
    margin-bottom: 6px;
}

.details-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* space between buttons */
}

.details-features li {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: default;
  transition: 0.3s;
  font-size: 14px;
  font-weight: 500;
  flex: 1 1 auto; /* responsive */
  text-align: center;
}

.details-features li:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  transform: scale(1.05);
}   

.store-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.store-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.store-address {
  font-size: 14px;
  margin: 4px 0;
}
.store-timings {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}
.direction-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}
.direction-btn:hover {
  background: #0056b3;
}