* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    touch-action: manipulation;
    overscroll-behavior: none;
}

body {
    background-color: #f0f0f0;
}

/* Container to maintain mobile width on desktop */
.container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    background-color: #f0f0f0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.header {
    background-color: #980000;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.search-bar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    padding: 8px 12px;
}

.search-icon {
    color: #980000;
    font-size: 20px;
    margin-right: 10px;
}

.search-input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 16px;
    color: #333;
}

.camera-icon {
    color: #980000;
}
.cart-icon,
.message-icon {
    color: white;
    font-size: 22px;
    margin-left: 12px;
}

.message-badge {
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: white;
    color: #980000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.header-icons {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

/* greeting */
.greeting {
    color: #980000;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
}

.greeting-content {
    display: flex;
    align-items: center;
    gap: 5px;
}

.greeting-text {
    font-size: 14px;
    font-weight: bold;
    color: ff4b2b;
}

.greeting-icon {
    color: ff4b2b;
    font-size: 18px;
    margin-left: 5px;
}

/* Slider styles */
.slider-container {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    padding: 10px 0;
}

.slider-title {
    padding: 0 15px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all {
    color: #980000;
    font-size: 14px;
    text-decoration: none;
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 0 10px;
}

.slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.slide {
    flex: 0 0 auto;
    width: 140px;
    margin-right: 10px;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.slide-details {
    padding: 8px;
}

.slide-title {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.slide-price {
    color: #980000;
    font-size: 14px;
    font-weight: bold;
}

.banner-slider {
    margin: 15px 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.banner-images {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    width: 100%;
    height: 150px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-image.active {
    opacity: 1;
    z-index: 1;
}

.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 3px;
}

.indicator.active {
    background-color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.discount-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #980000;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.product-details {
    padding: 10px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: #980000;
    font-size: 18px;
    font-weight: bold;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.original-price {
    font-size: 12px;
    text-decoration: line-through;
    color: #888;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    margin: 5px 5px 5px 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.tag-red {
    background-color: #980000;
    color: white;
}

.tag-outline {
    border: 1px solid #980000;
    color: #980000;
}

.live-tag {
    background-color: #980000;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.live-icon {
    margin-right: 4px;
}

.rating {
    display: flex;
    align-items: center;
    color: #ffc107;
    font-weight: bold;
    background-color: #fff6e0;
    padding: 3px 6px;
    border-radius: 4px;
    width: fit-content;
}

.menu-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.menu-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.active {
    color: #980000;
}

.notification-badge {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #980000;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Sales info style */
.sales-info {
    font-size: 12px;
    color: #666;
}

/* Category slider */
.category-slider {
    padding: 15px 10px;
    background-color: white;
    margin-bottom: 10px;
}

.category-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-container::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    width: 60px;
    text-decoration: none;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #980000;
    font-size: 24px;
    margin-bottom: 5px;
}

.category-name {
    font-size: 11px;
    color: #333;
    text-align: center;
}

/* Section header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    margin-top: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.slide a,
.product-card a {
    color: inherit;
    text-decoration: none;
}

/* Search results info */
.search-info {
    background-color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.search-query {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.results-count {
    font-size: 14px;
    color: #666;
}

/* Filter section */
.filter-section {
    background-color: white;
    padding: 10px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-button.active {
    background-color: #980000;
    color: white;
    border-color: #980000;
}

.sort-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

/* CSS Banner Install */
#installBanner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2563eb; /* biru */
    color: white;
    padding: 16px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#installBanner span {
    font-size: 14px;
    font-weight: 500;
}

@media (min-width: 640px) {
    #installBanner span {
        font-size: 16px;
    }
}

#installBtn {
    margin-left: 16px;
    padding: 8px 16px;
    background-color: white;
    color: #2563eb;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#installBtn:hover {
    background-color: #ebf4ff; /* biru muda */
}

/* Tambahkan padding untuk konten agar tidak tertutup banner */
.content-spacing {
    padding-top: 80px;
}
