@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: white;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.navbar {

    top: 0;
    background-color: #5e4dcd;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(94, 77, 205, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
}

.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
    margin: 0 15px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    padding-right: 40px;
    border-radius: 50px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background-color: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #5e4dcd;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #6b6b9e;
    font-size: 16px;
    display: none;
}

.no-results i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #8885b0;
}

/* Add this to make sure category sections are initially visible */
.category-section {
    display: block;
}

/* Add transition for smooth appearance */
.product-card {
    transition: all 0.3s ease;
}

.profile {
    text-align: center;
    margin-bottom: 30px;
}

.profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #5e4dcd;
    background-color: #f1f1f1;
}

.profile h1 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #3a2ca0;
    font-weight: 600;
}

.profile p {
    color: #6b6b9e;
    font-size: 14px;
    font-weight: 300;
}

.featured-product {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(94, 77, 205, 0.15);
    margin-bottom: 25px;
    position: relative;
    border: 1px solid #e9e8ff;
    z-index: 0;
}

.featured-product img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.featured-product-details {
    padding: 15px;
}

.featured-product-details h2 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #3a2ca0;
    font-weight: 600;
}

.featured-product-details p {
    font-weight: 300;
    font-size: 14px;
    color: #6b6b9e;
    margin-bottom: 10px;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #5e4dcd;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price-container {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

.original-price {
    text-decoration: line-through;
    color: #8885b0;
    font-size: 14px;
    margin-bottom: 3px;
    font-weight: 400;
}

.discount-price {
    color: #5e4dcd;
    font-weight: 700;
    font-size: 18px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(94, 77, 205, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9e8ff;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}


.product-card img {
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 13px;
    margin-bottom: 3px;
    line-height: 1.3;
    color: #3a2ca0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info .category {
    color: #6b6b9e;
    font-size: 11px;
    margin-bottom: 3px;
    font-weight: 300;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.product-original-price {
    text-decoration: line-through;
    color: #8885b0;
    font-size: 12px;
    font-weight: 400;
}

.product-discount-price {
    font-weight: 600;
    color: #5e4dcd;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.cta-button {
    display: block;
    background-color: #5e4dcd;
    color: white;
    text-align: center;
    padding: 10px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #3a2ca0;
}

.new-badge {
    background-color: #5e4dcd;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-block;
    font-weight: 500;
}

.discount-badge {
    background-color: #5e4dcd;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-block;
    font-weight: 500;
}

.best-seller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #5e4dcd;
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    z-index: 1;
}

/* Updated Testimonials section with smaller images in 3:4 ratio */
.testimonials {
    background-color: white;
    margin: 30px auto 15px;
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    z-index: 0;
}

.testimonials h1 {
    font-size: 24px;
    text-align: center;
    background-image: linear-gradient(to right, #9019ff, #9b00d8);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 900;
}

.testimonials p{
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    color: rgb(92, 92, 92);
    font-weight: 400;
}

.testimonial-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-container {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.testimonial {
    min-width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-image-container {
    width: 65%;  /* Reduced size */
    margin: 0 auto;
}

.testimonial-image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(94, 77, 205, 0.2);
    background-color: #f1f1f1;
    position: relative;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(94, 77, 205, 0.8);
    color: white;
    padding: 6px;
    font-size: 11px;
    text-align: center;
}

.testimonial-caption strong {
    font-weight: 500;
    display: block;
    font-size: 12px;
}



.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 89%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 2;
    pointer-events: none;
}

.nav-button {
    background-color: #5e4dcd;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    pointer-events: auto;
}

.nav-button:hover {
    opacity: 1;
    background-color: #3a2ca0;
}

.nav-button i {
    font-size: 12px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e9e8ff;
    margin: 0 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #5e4dcd;
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .featured-product-details h2 {
        font-size: 16px;
    }
    
    .testimonial {
        padding: 8px;
    }
    
    .testimonial-image-container {
        width: 70%;
    }
    
    .nav-button {
        width: 24px;
        height: 24px;
    }
}

/* iPhone SE specific adjustments */
@media (max-width: 375px) {
    .testimonial-container {
        width: 100%;
    }
    
    .testimonial {
        width: 100%;
    }
    
    .testimonial-image-container {
        width: 75%;
    }
}

.contact-us {
background: #ffffff;
padding: 20px;
border-radius: 10px;
margin: 20px 0;
text-align: center;
}

.contact-us p{
display: flex;
margin-left: 5px;
align-items: flex-start;
font-size: 14px;
margin-bottom: 20px;
text-align: left;
}

.contact-us h1 {
display: flex;
margin-left: 5px;
align-items: flex-start;
font-size: 24px;
font-weight: bold;
background-image: linear-gradient(to right, #8400ff, #cc00ff);
-webkit-background-clip: text;
color: transparent;

}

.contact-us form {
display: flex;
flex-direction: column;
gap: 5px;
}

.contact-us label {
font-weight: 500;
color: #333;
text-align: left;
}

.contact-us input,
.contact-us textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
font-family: 'Poppins', sans-serif;
font-size: 14px;
color: #333;
background: white;
transition: border-color 0.3s ease;
}

.contact-us input:focus,
.contact-us textarea:focus {
border-color: #6b46c1;
outline: none;
}

.contact-us textarea {
resize: vertical;
min-height: 100px;
}

.contact-us .terms {
display: flex;
align-items: center;
gap: 10px;
margin: 10px 0;
}

.contact-us .terms input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: #6b46c1; /* Warna checkbox sesuai tema */
}

.contact-us .terms label {
font-size: 14px;
color: #333;
}

.contact-us button {
background: #6b46c1;
color: white;
padding: 10px 20px;
border: none;
border-radius: 25px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease;
}

.contact-us button:hover {
background: #5a3aa8;
}

/* Chatbot SVG Icons */
.comment-icon,
.close-icon,
.arrow-down-icon,
.attach-icon,
.arrow-up-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all 0.3s ease;
}

#chatbot-toggler .comment-icon,
#chatbot-toggler .close-icon {
    position: absolute;
    color: #fff;
}

#chatbot-toggler .close-icon {
    opacity: 0;
}

body.show-chatbot #chatbot-toggler .comment-icon {
    opacity: 0;
}

body.show-chatbot #chatbot-toggler .close-icon {
    opacity: 1;
}

.arrow-down-icon {
    color: var(--primary-color);
}

.attach-icon {
    color: var(--primary-color);
    width: 10px;  /* Reduced from 24px */
    height: 10px;  /* Reduced from 24px */
    padding: 3px;  /* Added some padding */
}

.arrow-up-icon {
    color: #fff;
    background: var(--primary-color);
    border-radius: 50%;
    padding: 5px;
    width: 34px;
    height: 34px;
}

#file-cancel {
    display: none;
}

.file-uploaded #file-upload {
    display: none;
}

.file-uploaded #file-cancel {
    display: block;
}

#chatbot-toggler {
position: fixed;
bottom: 30px;
right: 35px;
border: none;
height: 50px;
width: 50px;
display: flex;
cursor: pointer;
align-items: center;
justify-content: center;
border-radius: 50%;
background: #5350C4;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
z-index: 3;
}

body.show-chatbot #chatbot-toggler {
transform: rotate(90deg);
}

#chatbot-toggler span {
color: #fff;
position: absolute;
}

#chatbot-toggler span:last-child,
body.show-chatbot #chatbot-toggler span:first-child {
opacity: 0;
}

body.show-chatbot #chatbot-toggler span:last-child {
opacity: 1;
}

.chatbot-popup {
z-index: 99;
position: fixed;
right: 35px;
bottom: 90px;
width: 420px;
overflow: hidden;
background: #fff;
border-radius: 15px;
opacity: 0;
pointer-events: none;
transform: scale(0.2);
transform-origin: bottom right;
box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
0 32px 64px -48px rgba(0, 0, 0, 0.5);
transition: all 0.1s ease;
}

body.show-chatbot .chatbot-popup {
opacity: 1;
pointer-events: auto;
transform: scale(1);
}

.chat-header {
display: flex;
align-items: center;
padding: 15px 22px;
background: #5350C4;
justify-content: space-between;
}

.chat-header .header-info {
display: flex;
gap: 10px;
align-items: center;
}

.header-info .chatbot-logo {
width: 35px;
height: 35px;
padding: 6px;
fill: #5350C4;
flex-shrink: 0;
background: #fff;
border-radius: 50%;
}

.header-info .logo-text {
color: #fff;
font-weight: 600;
font-size: 1.31rem;
letter-spacing: 0.02rem;
}

.chat-header #close-chatbot {
border: none;
color: #fff;
height: 40px;
width: 40px;
font-size: 1.9rem;
margin-right: -10px;
padding-top: 2px;
cursor: pointer;
border-radius: 50%;
background: none;
transition: 0.2s ease;
}

.chat-header #close-chatbot:hover {
background: #3d39ac;
}

.chat-body {
padding: 25px 22px;
gap: 20px;
display: flex;
height: 60vh;
overflow-y: auto;
margin-bottom: 82px;
flex-direction: column;
scrollbar-width: thin;
scrollbar-color: #ccccf5 transparent;
position: relative;
}

.chat-body,
.chat-form .message-input:hover {
scrollbar-color: #ccccf5 transparent;
}

.chat-body .message {
display: flex;
gap: 11px;
align-items: center;
}

.chat-body .message .bot-avatar {
width: 35px;
height: 35px;
padding: 6px;
fill: #fff;
flex-shrink: 0;
margin-bottom: 2px;
align-self: flex-end;
border-radius: 50%;
background: #5350C4;
}

.chat-body .message .message-text {
padding: 12px 16px;
max-width: 75%;
font-size: 0.95rem;
}

.chat-body .bot-message.thinking .message-text {
padding: 2px 16px;
}

.chat-body .bot-message .message-text {
background: #F2F2FF;
border-radius: 13px 13px 13px 3px;
}

.chat-body .user-message {
flex-direction: column;
align-items: flex-end;
}

.chat-body .user-message .message-text {
color: #fff;
background: #5350C4;
border-radius: 13px 13px 3px 13px;
}

.chat-body .user-message .attachment {
width: 50%;
margin-top: -7px;
border-radius: 13px 3px 13px 13px;
}

.chat-body .bot-message .thinking-indicator {
display: flex;
gap: 4px;
padding-block: 15px;
}

.chat-body .bot-message .thinking-indicator .dot {
height: 7px;
width: 7px;
opacity: 0.7;
border-radius: 50%;
background: #6F6BC2;
animation: dotPulse 1.8s ease-in-out infinite;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(1) {
animation-delay: 0.2s;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(2) {
animation-delay: 0.3s;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(3) {
animation-delay: 0.4s;
}

@keyframes dotPulse {

0%,
44% {
transform: translateY(0);
}

28% {
opacity: 0.4;
transform: translateY(-4px);
}

44% {
opacity: 0.2;
}
}

.chat-footer {
position: absolute;
bottom: 0;
width: 100%;
background: #fff;
padding: 15px 22px 20px;
}

.chat-footer .chat-form {
display: flex;
align-items: center;
position: relative;
background: #fff;
border-radius: 32px;
outline: 1px solid #CCCCE5;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
transition: 0s ease, border-radius 0s;
}

.chat-form:focus-within {
outline: 2px solid #5350C4;
}

.chat-form .message-input {
width: 100%;
height: 47px;
outline: none;
resize: none;
border: none;
max-height: 180px;
scrollbar-width: thin;
border-radius: inherit;
font-size: 0.95rem;
padding: 14px 0 12px 18px;
scrollbar-color: transparent transparent;
}

.chat-form .chat-controls {
gap: 3px;
height: 47px;
display: flex;
padding-right: 6px;
align-items: center;
align-self: flex-end;
}

.chat-form .chat-controls button {
height: 35px;
width: 35px;
border: none;
cursor: pointer;
color: #706DB0;
border-radius: 50%;
font-size: 1.15rem;
background: none;
transition: 0.2s ease;
}

.chat-form .chat-controls button:hover,
body.show-emoji-picker .chat-controls #emoji-picker {
color: #3d39ac;
background: #f1f1ff;
}

.chat-form .chat-controls #send-message {
color: #fff;
display: none;
background: #5350C4;
}

.chat-form .chat-controls #send-message:hover {
background: #3d39ac;
}

.chat-form .message-input:valid~.chat-controls #send-message {
display: block;
}

.chat-form .file-upload-wrapper {
position: relative;
height: 35px;
width: 35px;
}

.chat-form .file-upload-wrapper :where(button, img) {
position: absolute;
}

.chat-form .file-upload-wrapper img {
height: 100%;
width: 100%;
object-fit: cover;
border-radius: 50%;
}

.chat-form .file-upload-wrapper #file-cancel {
color: #ff0000;
background: #fff;
}

.chat-form .file-upload-wrapper :where(img, #file-cancel),
.chat-form .file-upload-wrapper.file-uploaded #file-upload {
display: none;
}

.chat-form .file-upload-wrapper.file-uploaded img,
.chat-form .file-upload-wrapper.file-uploaded:hover #file-cancel {
display: block;
}

em-emoji-picker {
position: absolute;
left: 50%;
top: -337px;
width: 100%;
max-width: 350px;
visibility: hidden;
max-height: 330px;
transform: translateX(-50%);
}

body.show-emoji-picker em-emoji-picker {
visibility: visible;
}

/* Responsive media query for mobile screens */
@media (max-width: 520px) {
#chatbot-toggler {
right: 20px;
bottom: 20px;
}

.chatbot-popup {
right: 0;
bottom: 0;
height: 100%;
border-radius: 0;
width: 100%;
}

.chatbot-popup .chat-header {
padding: 12px 15px;
}

.chat-body {
height: calc(90% - 55px);
padding: 25px 15px;
}

.chat-footer {
padding: 10px 15px 15px;
}

.chat-form .file-upload-wrapper.file-uploaded #file-cancel {
opacity: 0;
}
}

strong {
color: #403d4e;
}

/* New styles for category sections */
.category-section {
margin-bottom: 30px;
}

.category-title {
font-size: 18px;
color: #3a2ca0;
font-weight: 600;
margin-bottom: 15px;
padding-bottom: 5px;
border-bottom: 1px solid #392ca09a;
display: flex;
align-items: center;
}

.category-title::before {
content: "";
display: inline-block;
width: 5px;
height: 18px;
background-color: #5e4dcd;
margin-right: 10px;
border-radius: 3px;
}