body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: #f5f5f5;
    padding-top: 10px;
    padding-bottom: 60px;
}

/* Header */
.header {
    background: #ff5722;
    padding: 10px;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

/* Global header styles */
.header-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: linear-gradient(90deg, #ff5722, #ff7043);
}

.header .bi-arrow-left {
    padding-left: 15px;  /* masuk sedikit ke kanan */
}

.header .bi-cart {
    padding-right: 20px; /* masuk sedikit ke kiri */
}

/* Top Bar (desktop only) */
.header-top {
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
}

.header-main {
    padding: 15px 0;
    color: #fff;
}

/* Search */
.header-search input {
    border-radius: 5px 0 0 5px;
    border: none;
}

.header-search button {
    border-radius: 0 5px 5px 0;
    background: #ff7043;
    border: 1px solid #fff;
    color: #fff;
}

.header-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
}
.header-links a:hover {
    text-decoration: underline;
}

/* MOBILE STYLE — LIKE SHOPEE */
@media (max-width: 768px) {

    /* Hide desktop top bar */
    .header-top {
        display: none;
    }

    /* Compact mobile header */
    .header-main {
        padding: 10px 0;
    }

    .shopee-logo {
        font-size: 22px;
    }

    .header-search .input-group {
        height: 32px;
    }

    .header-search input {
        font-size: 13px;
    }

    .header-main .cart-icon {
        font-size: 22px;
    }
}

/* Default: Desktop */
.header-spacer {
    height: 130px;
}

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
    .header-spacer {
        height: 100px;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .header-spacer {
        height: 85px;
    }
}

/* Mobile kecil (≤ 576px) */
@media (max-width: 576px) {
    .header-spacer {
        height: 75px;
    }
}

.search-box input {
    border-radius: 20px;
    font-size: 14px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 999;
}

.bottom-nav a {
    text-decoration: none;
    color: #444;
}

.bottom-nav .nav-link.active {
    color: #ff5722;
}

.seller-card {
    background: linear-gradient(90deg, #3a3a7c, #5c5ca6);
    color: white;
    border-radius: 12px;
    padding: 20px;
}
.seller-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}
.btn-follow {
    background: #fff;
    color: #333;
    font-weight: 600;
}
.nav-tabs .nav-link.active {
    color: #ff5722 !important;
    border-bottom: 2px solid #ff5722 !important;
}
.seller-info span {
    font-weight: 600;
    color: #222;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: 0.2s;
}
.product-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.product-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}
.badge-promo {
    background: #ff3d00;
    font-size: 11px;
}
.badge-extra {
    background: #ffcc00;
    color: #000;
    font-size: 11px;
}
.badge-0 {
    background: #0154d1;
    font-size: 11px;
}

/* Fix tinggi card agar tidak jig jag */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Biar isi card rata dan tidak memanjang */
.product-card .p-2 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Judul produk max 2 baris */
.product-card p.small {
    height: 38px;               /* fix tinggi */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* maksimal 2 baris */
    -webkit-box-orient: vertical;
}

/* Harga tetap di bawah */
.product-card .price-block {
    margin-top: auto;           /* dorong ke bawah */
}

.product-card1{
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: .2s;
}
.product-card1:hover{
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.product-img1{
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.badge-discount1{
    background: #ff4242;
    font-size: 12px;
}
.badge-star1{
    background: #ffcc00;
    color: #000;
    font-size: 12px;
}
.price1{
    color: #ff4d4d;
    font-size: 1.2rem;
    font-weight: bold;
}
.old-price1{
    text-decoration: line-through;
    color: #888;
    font-size: .9rem;
}

/* Samakan tinggi card */
.product-card1 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Area badge diskon biar tingginya sama meski kosong */
.product-card1 .badge-discount1,
.product-card1 .mt-2 {
    min-height: 22px; /* biar tidak berubah-ubah */
    display: flex;
    align-items: center;
}

/* Judul minimal 2 baris */
.product-title1 {
    min-height: 36px; /* 14px font = 2 baris pas */
}

/* Area rating */
.product-card1 .d-flex.align-items-center {
    min-height: 22px;
}

/* Harga selalu di bawah */
.price1 {
    margin-top: auto;
}

.po-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    margin-bottom: 10px;
    transition: .2s;
}

.po-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.po-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.po-icon {
    font-size: 1.4rem;
    color: #ff7e5f;
}

.po-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
}

.po-time {
    font-size: .9rem;
    font-weight: 600;
    background: #ff7e5f20;
    padding: 4px 10px;
    border-radius: 6px;
    color: #e65b3a;
    white-space: nowrap;
}

/* Note kecil & soft */
.po-note {
    width: 100%;               /* turun ke bawah jika layar kecil */
    font-size: .78rem;         /* lebih kecil */
    color: #8a8a8a;            /* warna abu soft */
    margin-top: 4px;
}

footer a:hover {
    color: #ff5722 !important;
}