/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center; /* Menengahkan app di desktop */
}

.pointer {
    cursor: pointer;
}

/* Biar tombol-tombolnya kerasa 'kenyal' saat ditekan di HP */
button:active, .menu-item:active {
    transform: scale(0.98);
    transition: 0.1s;
}

/* Sembunyikan scrollbar tapi tetap bisa scroll di mobile */
.story-circles {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.story-circles::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Container Utama */
.app-shell {
    width: 100%;
    max-width: 450px; /* Mengunci lebar ala HP */
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

/* Header */
.header {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 108px; 
    box-sizing: border-box;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #5d4037; /* Cokelat khas Sumba */
    margin-bottom: 0;
}

.logo span {
    color: #2ecc71; /* Hijau segar */
}

.search-wrapper {
    position: relative; /* Penting agar dropdown nempel di bawahnya */
}

.search-wrapper input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 14px;
    box-sizing: border-box;
}

/* Ikon Notifikasi */
.notification-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.badge-notif {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #d35400;
    border: 2px solid white;
    border-radius: 50%;
}

/* Pembungkus Utama Konten */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Mencegah seluruh halaman geser ke samping */
    padding: 15px;
    padding-bottom: 80px;
}

/* Kategori Bar */
.category-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 5px;
    padding: 10px 5px 15px 5px;
    margin-bottom: 10px;
    width: 100%;
    background: #fff;
    scrollbar-width: none;
    position: sticky;
    top: -15px;
    z-index: 99;
    border-bottom: 1px solid #f5f5f5;
    cursor: grab;
    user-select: none;
}

.category-bar:active {
    cursor: grabbing;
}

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

/* Item Kategori */
.cat-item {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #eee;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.cat-item.active {
    background: #d35400;
    color: white;
    border-color: #d35400;
}

/* Grid Produk */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.card:active {
    background-color: #f9f9f9;
    transform: scale(0.98);
}

.card-img {
    height: 130px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 10px;
}

.tag {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

.card-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #5d4037;
    margin: 5px 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px; 
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.price {
    font-weight: 700;
    color: #d35400;
}

.add-btn {
    background: #2ecc71;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.price-old {
    text-decoration: line-through;
    color: #b2bec3;
    font-size: 10px;
    margin-right: 5px;
}

/* Navigasi Bawah (Bottom Navigation) */
.bottom-navigation {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 450px;
    height: 65px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    z-index: 999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a9a7a7;
    cursor: pointer;
    flex: 1;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
    text-decoration: none;
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.nav-item.active {
    color: #d35400;
    /*color: #5D4037;*/
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.nav-item:active {
    transform: scale(0.9);
}

/* Badge Keranjang */
.icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cart-badge-style {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d35400;
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Detail Page Styling */
.header-detail {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    background: white;
    /* border-bottom: 1px solid #eee; */
}

.back-link {
    color: #333;
    display: flex;
    align-items: center;
}

.main-content.detail-page {
    padding: 0;
    padding-bottom: 80px;
    overflow-x: hidden;
}

.product-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-hero {
    flex: 0 0 100%;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    scroll-snap-align: start;
    position: relative;
    z-index: 1;
}

.slider-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: 0.3s;
}

.dot.active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}

.product-info-section {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 25px 25px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.info-header {
    margin-bottom: 20px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #5d4037;
    /* margin: 8px 0; */
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d35400;
}

.product-description {
    margin-top: 10px;
}

.product-description h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #333;
    font-weight: 700;
}

.product-description p {
    line-height: 1.7;
    color: #666;
    margin-bottom: 15px;
}

.related-products {
    padding: 0 20px 30px 20px;
    background: #ffffff;
}

.section-title {
    font-size: 1.1rem;
    color: #5d4037;
    font-weight: 800;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.related-products .product-grid {
    margin-top: 10px;
}

/* Action Bar */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    padding: 15px;
    background: white;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    box-sizing: border-box;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    height: 45px;
}

.qty-control button {
    padding: 10px 12px;
    border: none;
    background: none;
    font-weight: bold;
}

.qty-control span {
    width: 30px;
    text-align: center;
    font-weight: bold;
}

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

.btn-cart-outline {
    width: 50px;
    height: 45px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-buy-now {
    flex: 1;
    height: 45px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-buy-now:active {
    transform: scale(0.95);
}

/* Keranjang Page */
.cart-page {
    background: #f8f9fa;
}

.cart-item {
    background: white;
    border-radius: 15px;
    padding: 12px;
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.item-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-details h4 {
    font-size: 14px;
    color: #333;
    font-weight: 700;
}

.item-price {
    color: #d35400;
    font-weight: 800;
    font-size: 14px;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.qty-stepper-small {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fdfdfd;
}

.qty-stepper-small button {
    padding: 5px 10px;
    border: none;
    background: none;
    font-weight: bold;
    color: #5d4037;
}

.qty-stepper-small span {
    font-size: 12px;
    font-weight: 800;
    padding: 0 8px;
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.cart-summary-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
}

.cart-summary-card h3 {
    font-size: 14px;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.summary-row.total {
    font-weight: 800;
    font-size: 15px;
    color: #333;
}

.free-shipping {
    color: #2ecc71;
    font-weight: bold;
}

.summary-divider {
    border: 0;
    border-top: 1px dashed #ddd;
    margin: 10px 0;
}

.action-bar-cart {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    padding: 15px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.total-info {
    display: flex;
    flex-direction: column;
}

.total-label {
    font-size: 11px;
    color: #888;
}

.total-amount {
    font-size: 16px;
    font-weight: 800;
    color: #d35400;
}

.checkout-btn {
    background: #5d4037;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* Checkout Page Styling */
.checkout-page {
    background: #fdfdfd;
    padding: 20px 15px 100px 15px;
}

.checkout-section {
    margin-bottom: 25px;
}

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

.checkout-section h4 {
    font-size: 15px;
    color: #5d4037;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header h4 {
    margin-bottom: 0;
}

.edit-text {
    background: none;
    border: none;
    color: #d35400;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.address-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.address-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.option-card {
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-card.active {
    border-color: #5d4037;
    background: #fdfaf9;
}

.option-icon {
    font-size: 24px;
    margin-right: 15px;
}

.option-content {
    flex: 1;
}

.option-content strong {
    display: block;
    font-size: 13px;
}

.option-content span {
    font-size: 11px;
    color: #888;
}

.option-price {
    font-weight: bold;
    color: #2ecc71;
    font-size: 14px;
}

.checkout-summary {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

.total-bold {
    font-weight: 800;
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.action-bar-checkout {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.pay-btn {
    width: 100%;
    background: #2ecc71;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

/* Success Page */
.success-bg {
    background: #ffffff;
}

.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.success-icon {
    margin-bottom: 20px;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 1.8rem;
    color: #5d4037;
    font-weight: 800;
    margin-bottom: 10px;
}

.success-msg {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 30px;
}

.order-id-box {
    background: #fdfaf9;
    border: 1px dashed #5d4037;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.order-id-box span {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-id-box strong {
    font-size: 18px;
    color: #5d4037;
}

.next-step-card {
    background: #f9f9f9;
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    text-align: left;
    margin-bottom: 40px;
}

.next-step-card h4 {
    font-size: 14px;
    margin-bottom: 15px;
}

.step-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.step-number {
    background: #5d4037;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-item p {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.success-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    background: #5d4037;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
}

.btn-secondary {
    background: white;
    color: #5d4037;
    border: 2px solid #5d4037;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
}

/* Transaction Page */
.transaction-page {
    background: #f8f9fa;
    padding: 15px;
    padding-bottom: 70px;
}

.transaction-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-item {
    background: white;
    border: 1px solid #eee;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
}

.filter-item.active {
    background: #5d4037;
    color: white;
    border-color: #5d4037;
}

.transaction-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.trx-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.trx-date-id span {
    display: block;
    font-size: 11px;
    color: #999;
}

.trx-date-id strong {
    font-size: 13px;
    color: #333;
}

.status-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
}

.status-badge.process {
    background: #fff8e1;
    color: #ffb300;
}

.status-badge.success {
    background: #e8f5e9;
    color: #2ecc71;
}

.trx-body {
    display: flex;
    gap: 15px;
}

.trx-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.trx-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.trx-info p {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.trx-price-total {
    display: flex;
    gap: 10px;
    align-items: center;
}

.trx-price-total span {
    font-size: 11px;
    color: #999;
}

.trx-price-total strong {
    color: #d35400;
    font-size: 14px;
}

.trx-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-outline-small {
    background: none;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.btn-filled-small {
    background: #5d4037;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* Detail Transaction Page */
.detail-trx-page {
    background: #f8f9fa;
}

.trx-status-banner {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.status-info .label,
.id-info .label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.status-text.orange {
    color: #d35400;
    font-weight: 800;
}

.detail-section {
    background: white;
    padding: 20px;
    margin-bottom: 10px;
}

.detail-section h4 {
    font-size: 14px;
    color: #5d4037;
    margin-bottom: 15px;
    font-weight: 800;
}

.ordered-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.item-pic {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-size: cover;
}

.item-desc {
    flex: 1;
}

.item-desc h5 {
    font-size: 13px;
    margin-bottom: 2px;
}

.item-desc p {
    font-size: 11px;
    color: #888;
}

.item-subtotal {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.info-card-lite strong {
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
}

.info-card-lite p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.pay-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
}

.dash-line {
    border: 0;
    border-top: 1px dashed #eee;
    margin: 15px 0;
}

.free {
    color: #2ecc71;
    font-weight: bold;
}

.grand-total {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
}

.grand-total strong {
    font-size: 16px;
    color: #d35400;
}

.action-bar-detail-trx {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.btn-help {
    flex: 1;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
}

.btn-invoice {
    flex: 1;
    background: #5d4037;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
}

/* Profile Page Styling */
.profile-page {
    background: #fdfdfd;
}

.profile-header {
    text-align: center;
    padding: 30px 20px;
    background: white;
    margin-bottom: 10px;
}

.avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    border: 3px solid #f0f0f0;
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #5d4037;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-header h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.profile-header p {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.member-tag {
    display: inline-block;
    background: #fff8e1;
    color: #ffa000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #ffe082;
}

.profile-menu-section {
    background: white;
    padding: 15px 0;
    margin-bottom: 10px;
}

.profile-menu-section h4 {
    font-size: 12px;
    color: #999;
    padding: 0 20px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-list {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:active {
    background: #f9f9f9;
}

.menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu-item span {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.menu-item.logout span {
    color: #d35400;
}

.arrow {
    color: #ccc;
    font-size: 20px;
}

.app-version {
    text-align: center;
    padding: 20px;
    font-size: 11px;
    color: #bbb;
}

/* Form & Settings Styling */
.form-section *,
.address-page *,
.payment-method-page * {
    box-sizing: border-box;
}

.form-section {
    padding: 20px;
    background: white;
    border-radius: 15px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.input-group {
    margin-bottom: 18px;
    width: 100%;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #a0a0a0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fdfdfd;
    color: #333;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #5d4037;
    background: #fff;
}

.input-group textarea {
    height: 100px;
    resize: none;
}

.btn-primary-full {
    width: calc(100% - 30px);
    background: #5d4037;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    margin: 0 15px;
}

/* Address & Payment List */
.address-page,
.payment-method-page {
    padding: 15px;
}

.address-card {
    background: white;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 15px;
    border: 1.5px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-body strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.address-body p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.edit-btn-pill {
    background: #f5f5f5;
    border: none;
    color: #5d4037;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn-pill:hover {
    background: #5d4037;
    color: white;
}

.address-card.active {
    border-color: #5d4037;
    background: #fdfaf9;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.05);
}

.address-card.active .edit-btn-pill {
    background: rgba(93, 64, 55, 0.1);
}

.address-tag {
    background: #5d4037;
    color: white;
    font-size: 9px;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 800;
}

.btn-add-address {
    width: 100%;
    padding: 15px;
    border: 2px dashed #ded2c5;
    background: #fff;
    border-radius: 16px;
    color: #a1887f;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

/* Payment Method Styling */
.payment-group {
    margin-bottom: 25px;
}

.payment-group h4 {
    font-size: 11px;
    font-weight: 800;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 5px;
}

.method-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px;
    border-radius: 18px;
    border: 1.5px solid #f0f0f0;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.method-card.active {
    border-color: #5d4037;
    background: #fdfaf9;
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.05);
}

.method-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.method-icon-box {
    width: 44px;
    height: 44px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.method-card.active .method-icon-box {
    background: rgba(93, 64, 55, 0.1);
}

.method-text strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.method-text span {
    font-size: 11px;
    color: #888;
}

.connect-btn-pill {
    background: #f0f0f0;
    border: none;
    color: #5d4037;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.connect-btn-pill:hover {
    background: #5d4037;
    color: white;
}

.check-circle {
    width: 22px;
    height: 22px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.connect-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #5d4037;
}

/* Security Banner & Password Page */
.security-banner {
    padding: 20px;
    text-align: center;
    background: #fdfaf9;
    border-radius: 15px;
    margin: 15px;
    border: 1px solid rgba(93, 64, 55, 0.1);
}

.security-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.security-banner p {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

.shadow-lite {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-top: 0;
}

.form-divider {
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin: 20px 0;
}

.password-hints {
    padding: 0 25px;
    color: #999;
}

.password-hints p {
    font-size: 12px;
    margin-bottom: 8px;
}

.password-hints ul {
    padding-left: 18px;
    margin: 0;
}

.password-hints li {
    font-size: 11px;
    margin-bottom: 5px;
}

input[type="password"] {
    letter-spacing: 4px;
    font-weight: bold;
    line-height: normal !important;
}

input[type="password"]:placeholder-shown {
    letter-spacing: normal !important;
    font-weight: 400 !important;
}

::placeholder {
    font-weight: 400 !important;
    color: #bbb;
    letter-spacing: normal !important;
}

/* Help Page Styling */
.help-hero {
    text-align: center;
    padding: 40px 25px;
    background: #fff;
}

.support-illustration {
    font-size: 50px;
    margin-bottom: 15px;
}

.help-hero h2 {
    font-size: 20px;
    color: #5d4037;
    margin-bottom: 10px;
    font-weight: 800;
}

.help-hero p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.help-main-card {
    display: flex;
    align-items: center;
    background: #25D366;
    margin: 0 20px 30px;
    padding: 20px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    cursor: pointer;
}

.wa-brand-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.card-info {
    flex: 1;
}

.card-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.card-info span {
    font-size: 11px;
    opacity: 0.9;
}

/* FAQ Accordion */
.faq-container {
    padding: 0 20px;
}

.faq-container h3 {
    font-size: 15px;
    color: #5d4037;
    margin-bottom: 15px;
    font-weight: 800;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    overflow: hidden;
}

.faq-q {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #333;
}

.faq-a {
    padding: 0 18px 18px;
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-a {
    display: block;
}

.faq-item.active .plus {
    transform: rotate(45deg);
    color: #d35400;
}

.plus {
    font-size: 20px;
    color: #5d4037;
    transition: 0.3s;
}

.social-links {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
    font-size: 12px;
}

.social-links .icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    font-weight: bold;
    color: #5d4037;
}

/* Terms of Service Styling */
.tos-page {
    background: #fff;
    padding-bottom: 50px;
}

.tos-header {
    text-align: center;
    padding: 30px 20px;
    background: #fdfaf9;
    border-bottom: 1px solid #f0f0f0;
}

.tos-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.tos-header h2 {
    font-size: 18px;
    color: #5d4037;
    font-weight: 800;
    margin-bottom: 5px;
}

.tos-header p {
    font-size: 11px;
    color: #999;
}

.tos-content {
    padding: 25px;
}

.tos-section {
    margin-bottom: 30px;
}

.tos-section h3 {
    font-size: 14px;
    color: #333;
    font-weight: 800;
    margin-bottom: 12px;
    border-left: 3px solid #5d4037;
    padding-left: 10px;
}

.tos-section p,
.tos-section li {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.tos-section ul {
    padding-left: 18px;
}

.tos-section li {
    margin-bottom: 8px;
}

.tos-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
}

.tos-footer a {
    color: #5d4037;
    font-weight: bold;
    text-decoration: none;
}

/* Modal Bottom Sheet */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 1000;
    align-items: flex-end;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 25px 25px 0 0;
    padding: 20px 25px 40px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 5px;
    background: #eee;
    border-radius: 10px;
    margin: 0 auto 20px;
}

.modal-body {
    text-align: center;
    margin-bottom: 25px;
}

.modal-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.modal-body h3 {
    font-size: 18px;
    color: #5d4037;
    margin-bottom: 8px;
    font-weight: 800;
}

.modal-body p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-cancel {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    border: 1.5px solid #eee;
    background: white;
    font-weight: 800;
    color: #888;
    cursor: pointer;
}

.btn-confirm-logout {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: #d35400;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

/* Auth Pages (Login & Register) */
.auth-body {
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
}

.auth-header {
    margin-bottom: 40px;
}

.auth-logo {
    font-size: 50px;
    margin-bottom: 15px;
}

.auth-header h1 {
    font-size: 24px;
    color: #5d4037;
    margin-bottom: 10px;
    font-weight: 800;
}

.auth-header p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    padding: 0px 40px;
}

.auth-form {
    text-align: left;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-pass {
    position: absolute;
    right: 15px;
    cursor: pointer;
    font-size: 14px;
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #5d4037;
    margin-top: 8px;
    text-decoration: none;
    font-weight: 700;
}

.mt-20 {
    margin-top: 20px;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    font-size: 12px;
    color: #bbb;
    position: relative;
    z-index: 2;
}

.btn-google {
    width: 100%;
    background: white;
    border: 1.5px solid #eee;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #555;
    cursor: pointer;
}

.terms-text {
    font-size: 11px;
    color: #999;
    margin: 15px 0 25px;
    line-height: 1.5;
}

.auth-footer {
    margin-top: 40px;
    font-size: 13px;
    color: #888;
}

.auth-footer a {
    color: #5d4037;
    font-weight: 800;
    text-decoration: none;
}

/* Notification Page Styling */
.read-all-btn {
    background: none;
    border: none;
    color: #5d4037;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.notif-tabs {
    display: flex;
    background: white;
    padding: 10px 20px;
    gap: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.tab-item {
    font-size: 13px;
    font-weight: 700;
    color: #999;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.tab-item.active {
    color: #5d4037;
    border-bottom-color: #5d4037;
}

.notif-item {
    display: flex;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #f8f8f8;
    gap: 15px;
    align-items: flex-start;
    transition: background 0.2s;
}

.notif-item.unread {
    background: #fdfaf9;
}

.notif-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.notif-icon-box.blue {
    background: #e3f2fd;
}

.notif-icon-box.orange {
    background: #fff3e0;
}

.notif-icon-box.green {
    background: #e8f5e9;
}

.notif-info {
    flex: 1;
}

.notif-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.notif-top strong {
    font-size: 14px;
    color: #333;
}

.notif-time {
    font-size: 11px;
    color: #bbb;
}

.notif-info p {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

.suggestions-box {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid #eee;
}

.suggestion-item {
    padding: 12px 15px;
    font-size: 14px;
    color: #5d4037;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    justify-content: space-between;
}

.suggestion-item:last-child {
    border: none;
}

.suggestion-item:hover {
    background: #fdfaf9;
}

.suggestion-item span {
    color: #bbb;
    font-size: 11px;
}

/* Empty State Minimal */
.empty-state-minimal {
    text-align: center;
    padding: 0 40px;
}

.empty-state-minimal svg {
    margin-bottom: 20px;
    opacity: 0.8;
}

.empty-state-minimal h2 {
    color: #5d4037;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.empty-state-minimal p {
    color: #a1887f;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.btn-back-shop {
    display: inline-block;
    background: #5d4037;
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-back-shop:active {
    background: #3e2723;
    transform: scale(0.98);
}
/* PHASE 27E — Checkout visual consistency */
.checkout-page {
    background: #fdfdfd;
}

.checkout-section {
    margin-bottom: 24px;
}

.checkout-section h4 {
    color: #5d4037;
    letter-spacing: -0.15px;
}

/* JNE destination input: follows the same rounded, soft-card language as checkout */
.jne-location-section {
    padding-top: 2px;
}

.jne-location-field {
    position: relative;
    width: 100%;
}

.jne-location-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b6b43;
    font-size: 19px;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

.jne-destination-input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid #ece7e2;
    border-radius: 13px;
    background: #fff;
    color: #3d3531;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    box-shadow: 0 2px 8px rgba(93, 64, 55, 0.035);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.jne-destination-input::placeholder {
    color: #a3a0a0;
}

.jne-destination-input:focus {
    border-color: #8b6b43;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 107, 67, .10);
}

.jne-location-help {
    margin: 8px 2px 0;
    color: #8b8580;
    font-size: 11px;
    line-height: 1.5;
}

.jne-autocomplete-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 220px;
    overflow: auto;
    background: #fff;
    border: 1px solid #e8e1dc;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(50, 35, 28, .12);
    z-index: 30;
    padding: 5px 0;
}

.jne-autocomplete-results button {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #f3efec;
    background: #fff;
    color: #3d3531;
    text-align: left;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.jne-autocomplete-results button:last-child {
    border-bottom: 0;
}

.jne-autocomplete-results button:hover,
.jne-autocomplete-results button:focus {
    background: #fdf8f4;
    color: #5d4037;
    outline: none;
}

.jne-services {
    margin-top: 12px;
}

.jne-empty-state {
    margin: 0;
    padding: 12px 13px;
    border: 1px dashed #ded7d2;
    border-radius: 11px;
    background: #faf9f8;
    color: #8b8580;
    font-size: 12px;
    line-height: 1.5;
}

.jne-service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    margin-bottom: 8px;
    border: 1.5px solid #e9e4e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.jne-service-card:hover {
    border-color: #cbb9aa;
    background: #fdfaf8;
}

.jne-service-card:has(input:checked) {
    border-color: #8b6b43;
    background: #fdf8f4;
    box-shadow: 0 3px 10px rgba(93, 64, 55, .06);
}

.jne-service-main {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.jne-service-main input {
    margin: 2px 0 0;
    accent-color: #5d4037;
}

.jne-service-main span {
    min-width: 0;
}

.jne-service-main strong {
    display: block;
    color: #3d3531;
    font-size: 13px;
}

.jne-service-main small {
    display: block;
    margin-top: 3px;
    color: #8b8580;
    font-size: 10px;
}

.jne-service-price {
    flex-shrink: 0;
    color: #5d4037;
    font-size: 13px;
    font-weight: 800;
}

/* Shipping option consistency */
.shipping-option {
    min-height: 64px;
}

.shipping-option.active {
    border-color: #5d4037;
    background: #fdfaf9;
    box-shadow: 0 3px 10px rgba(93, 64, 55, .045);
}

/* Confirmation button: local delivery stays green; JNE/outside Sumba remains neutral gray
   until a JNE service is selected. */
.pay-btn {
    transition: background-color .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.pay-btn-local {
    background: #2ecc71;
}

.pay-btn-local:hover:not(:disabled) {
    background: #27ae60;
    box-shadow: 0 5px 14px rgba(46, 204, 113, .20);
}

.pay-btn-outside,
.checkout-outside-sumba .pay-btn {
    background: #b8b8b8;
}

.pay-btn-outside.is-ready,
.checkout-outside-sumba .pay-btn.is-ready {
    background: #b8b8b8;
    cursor: pointer;
    opacity: 1;
}

.pay-btn-outside.is-disabled,
.checkout-outside-sumba .pay-btn.is-disabled {
    background: #cfcfcf;
    color: #f7f7f7;
    cursor: not-allowed;
    opacity: .9;
}

.pay-btn.is-ready,
.pay-btn-outside.is-ready {
    background-color: #2ecc71 !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

.pay-btn.is-disabled,
.pay-btn-outside.is-disabled {
    background-color: #cfcfcf !important;
    color: #f7f7f7 !important;
    cursor: not-allowed !important;
}

.pay-btn:disabled {
    cursor: not-allowed;
}

@media (max-width: 380px) {
    .jne-destination-input {
        min-height: 46px;
        font-size: 12px;
    }

    .jne-service-card {
        padding: 12px;
    }

    .jne-service-price {
        font-size: 12px;
    }
}
