/* Reset & Font Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    -webkit-tap-highlight-color: transparent; /* Hilangkan blok biru saat di-tap di HP */
}

body {
    background-color: #f5f5f5; /* Latar belakang luar kontainer abu muda */
    display: flex;
    justify-content: center;
}

/* Kontainer Utama Aplikasi */
.app-container {
    width: 100%;
    max-width: 480px;
    background-color: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 70px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow-x: hidden;
}

/* Header Biru Langit Kustom */
.header {
    background: linear-gradient(135deg, #00BFFF 0%, #87CEEB 100%);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Search Bar Interaktif */
.search-bar {
    flex: 1;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), 0 0 5px rgba(255,255,255,0.5);
}

.search-icon { color: #ee4d2d; font-size: 14px; }
.camera-icon { color: #888; font-size: 16px; cursor: pointer; }
.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    margin: 0 8px;
    font-size: 13px;
    color: #333;
}

/* Icons Header */
.header-icons {
    display: flex;
    gap: 15px;
}

.icon-wrap {
    position: relative;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.icon-wrap:active { transform: scale(0.8); }

.badge {
    background: white;
    color: #ee4d2d;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    top: -6px;
    right: -10px;
    padding: 2px 5px;
    border: 1px solid #ee4d2d;
}

/* Wallet Section (Mirip Asli) */
.wallet-section {
    background: white;
    margin: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 12px 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.wallet-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 12px;
}

.wallet-item.divider {
    border-right: 1px solid #eee;
}

.wallet-item strong { color: #333; font-size: 13px; margin-bottom: 2px; }
.wallet-item small { color: #888; font-size: 10px; }
.text-red { color: #ee4d2d !important; }
.qris-icon { font-size: 24px; color: #ee4d2d; }

/* Kategori Menu */
.category-menu {
    display: flex;
    flex-wrap: wrap;
    background: white;
    padding: 15px 5px;
    margin-bottom: 10px;
}

.menu-item {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    color: #333;
}

.menu-item:active { transform: scale(0.9); }

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Warna Icon */
.text-orange { color: #ff9800; }
.text-red { color: #f44336; }
.text-green { color: #4caf50; }
.text-blue { color: #2196f3; }
.text-gray { color: #9e9e9e; }

/* Animasi Sederhana */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* Konten Grid (Live & Video) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Membagi jadi 2 kolom sama besar */
    gap: 10px;
    padding: 0 10px 15px 10px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card h3 {
    font-size: 13px;
    color: #ee4d2d; /* Warna teks orange/merah */
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card h3 span {
    color: #888;
    font-size: 11px;
    font-weight: normal;
}

/* Kotak untuk isi konten vertikal di dalam kartu */
.card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.thumb-box {
    position: relative;
    border-radius: 6px;
    height: 130px;
    background-color: #ddd; /* Warna dasar kalau gambar belum load */
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Efek gradien hitam di bawah agar teks terbaca */
.thumb-info {
    position: relative;
    z-index: 2;
    padding: 5px;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 500;
}

/* Label LIVE merah */
.badge-live {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ee4d2d;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: bold;
    z-index: 2;
}

/* Label Views hitam transparan */
.badge-view {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 2px 5px;
    border-radius: 10px;
    font-size: 8px;
    z-index: 2;
}
/* =========================================
   GAYA UNTUK DAFTAR PRODUK (PRODUCT FEED)
   ========================================= */

.section-title {
    padding: 12px 15px;
    background: white;
    margin-top: 10px;
    border-bottom: 1px solid #eee;
}

.section-title h3 {
    font-size: 14px;
    color: #ee4d2d; /* Warna utama orange kemerahan */
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-feed {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dibagi 2 kolom sejajar */
    gap: 8px;
    padding: 8px;
    background-color: #f5f5f5; /* Background luar abu-abu muda */
}

.product-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-img {
    width: 100%;
    padding-top: 100%; /* Trik CSS agar gambar selalu kotak (rasio 1:1) */
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.product-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 12px;
    color: #222;
    line-height: 1.4;
    margin-bottom: 15px;
    
    /* Trik agar teks maksimal 2 baris, sisanya jadi titik-titik (...) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 15px;
    color: #ee4d2d;
    font-weight: bold;
    margin-top: auto; /* Mendorong harga agar selalu ada di bawah */
}

.product-sold {
    font-size: 10px;
    color: #888;
    margin-top: 5px;
}
/* =========================================
   GAYA UNTUK HALAMAN PROFIL (SAYA)
   ========================================= */

.profile-header {
    background: linear-gradient(135deg, #00BFFF 0%, #87CEEB 100%); /* Tema Biru Langit GAZESHOP */
    padding: 20px 15px 40px 15px;
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    position: relative;
}

.profile-top-icons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    font-size: 20px;
    margin-bottom: 20px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-pic {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00BFFF;
    font-weight: bold;
    border: 2px solid white;
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details h2 {
    font-size: 18px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-silver {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    border: 1px solid white;
}

.profile-stats {
    font-size: 12px;
    opacity: 0.9;
}

/* Banner Diskon */
.promo-banner {
    background: #FFD700;
    margin: -20px 15px 15px 15px;
    padding: 10px 15px;
    border-radius: 8px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8b6508;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Card Section (Pesanan & Dompet) */
.profile-section {
    background: white;
    margin: 0 15px 15px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.section-header h3 {
    font-size: 14px;
    color: #333;
}

.section-header a {
    color: #888;
    text-decoration: none;
    font-size: 12px;
}

.section-grid {
    display: flex;
    justify-content: space-between;
    padding: 15px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #555;
    flex: 1;
    position: relative;
    text-align: center;
}

.grid-item i {
    font-size: 24px;
    color: #444;
}

/* Badge untuk notifikasi di ikon profile */
.badge-profile {
    position: absolute;
    top: -5px;
    right: 15px;
    background: #ee4d2d;
    color: white;
    border-radius: 10px;
    font-size: 9px;
    padding: 1px 5px;
    border: 1px solid white;
}
/* Navigasi Seller di Atas Avatar */
.top-nav-seller {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.link-seller {
    color: white;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.link-seller i {
    font-size: 14px;
}

.profile-top-icons {
    display: flex;
    gap: 15px;
    font-size: 18px;
}
/* =========================================
   GAYA UNTUK FORMULIR & SELLER
   ========================================= */

.form-container {
    background: white;
    margin: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #00BFFF; /* Warna biru GAZESHOP saat diketik */
}

.btn-primary {
    background: linear-gradient(135deg, #00BFFF 0%, #87CEEB 100%);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary:active {
    transform: scale(0.98);
}

.header-back {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-back i {
    font-size: 20px;
    color: #ee4d2d;
    margin-right: 15px;
    cursor: pointer;
}

.header-back h2 {
    font-size: 16px;
    color: #333;
}
/* =========================================
   GAYA UNTUK LOGIN & DAFTAR
   ========================================= */
.auth-wrapper { 
    background: white; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding: 30px 20px; 
}

.auth-logo { 
    text-align: center; 
    color: #00BFFF; 
    font-size: 60px; 
    margin-bottom: 10px; 
}

.auth-header { 
    text-align: center; 
    margin-bottom: 30px; 
}

.auth-header h1 { 
    font-size: 24px; 
    color: #333; 
    margin-bottom: 5px; 
}

.auth-header p { 
    font-size: 13px; 
    color: #888; 
}

.auth-footer { 
    text-align: center; 
    margin-top: 25px; 
    font-size: 13px; 
    color: #666; 
}

.auth-footer a { 
    color: #00BFFF; 
    text-decoration: none; 
    font-weight: bold; 
}

.alert-box { 
    padding: 10px; 
    border-radius: 6px; 
    margin-bottom: 15px; 
    font-size: 12px; 
    text-align: center; 
}

.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }