/* CSS untuk Halaman Detail Produk Baru */
.product-detail-page-new {
    padding-bottom: 80px; /* Ruang untuk action bar */
}

.product-image-container {
    width: 100%;
    padding-top: 100%; /* Membuat rasio 1:1 */
    position: relative;
    background-color: #f0f2f5;
}

.product-image-container .image-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 4rem;
}

.product-main-info {
    margin-top: -30px; /* Efek menumpuk di atas gambar */
    position: relative;
    z-index: 10;
}

.product-title-main {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-price-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-stats .stat-badge {
    display: inline-block;
    font-size: 0.8rem;
    color: #6c757d;
    background-color: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
}

.product-details-box .box-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

dl.product-detail-list {
    font-size: 0.9rem;
}

dl.product-detail-list dt {
    color: #6c757d;
    float: left;
    width: 120px;
    clear: left;
    padding: 0.5rem 0;
}

dl.product-detail-list dd {
    margin-left: 130px;
    padding: 0.5rem 0;
    font-weight: 500;
    border-bottom: 1px solid #f0f2f5;
}
dl.product-detail-list dd:last-child {
    border-bottom: none;
}
dl.product-detail-list dd a {
    color: #e83e8c; /* Warna pink/magenta */
    text-decoration: none;
}

.seller-info-card .seller-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

/* Action Bar Bawah */
.action-footer-new {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 0.5rem;
    z-index: 1020;
}

.action-footer-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr; /* Kolom ikon, tombol keranjang, tombol beli */
    gap: 0.5rem;
    align-items: stretch;
}
.action-footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6c757d;
    padding: 0 0.5rem;
}
.action-footer-grid .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}
.action-footer-grid .btn-danger {
    background-color: #e83e8c; /* Warna pink/magenta */
    border-color: #e83e8c;
}
.d-contents {
    display: contents;
}/* CSS Halaman Akun */
.account-page {
    background-color: #f4f6f9;
}

.user-info-header {
    background-color: #ffffff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.user-details .user-name {
    margin: 0;
    font-weight: 600;
}

.user-details .user-email {
    margin: 0;
    font-size: 0.9rem;
}

.logout-link {
    font-size: 0.8rem;
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.order-status-bar {
    display: flex;
    justify-content: space-around;
    background-color: #ffffff;
    padding: 1rem 0;
    margin-bottom: 0.75rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 0.75rem;
    position: relative;
}

.status-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #6c757d;
}

.status-item .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6em;
    padding: 0.3em 0.5em;
    border-radius: 50%;
}

.account-menu-list .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.account-menu-list .list-group-item i {
    color: #ced4da;
}/* === FONT & BODY === */

main.page-content {
    background-color: #ffffff; /* Konten utama berlatar putih */
    padding: 1rem;
}

/* === HEADER ATAS === */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    height: 56px;
}
.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.btn-icon {
    font-size: 1.2rem;
    color: #333;
}
.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
}

/* === BILAH PENCARIAN === */
.search-container {
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1020;
}
.search-bar {
    display: flex;
    align-items: center;
    background-color: #f4f6f9;
    border-radius: 25px;
    padding: 0.5rem 1rem;
}
.search-bar i {
    color: #888;
    margin-right: 0.5rem;
}
.search-bar input {
    border: none;
    background: none;
    width: 100%;
    outline: none;
}

/* === BANNER PROMOSI === */
.promo-banner-container {
    position: relative;
    margin-bottom: 1.5rem;
}
.promo-banner {
    background-color: #e9ecef;
    border-radius: 15px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}
.dot {
    height: 8px;
    width: 8px;
    margin: 0 3px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
}
.dot.active {
    background-color: #ffffff;
    width: 20px;
    border-radius: 5px;
}

/* === GRID KATEGORI === */
.category-section {
    background-color: #ffffff;
    padding: 1rem;
    margin: -1rem -1rem 1.5rem -1rem; /* Menutupi padding dari .page-content */
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.category-item {
    text-align: center;
}
.icon-wrapper {
    background-color: #f0f3ff;
    border-radius: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
    font-size: 1.5rem;
    color: #4a69ff;
}
.category-name {
    font-size: 0.75rem;
    color: #555;
    display: block;
}

/* === FLASH SALE === */
.flash-sale-section {
    background: linear-gradient(to bottom, #4a69ff, #2a41b1);
    border-radius: 15px;
    padding: 1rem;
    margin: 0 -1rem; /* Menutupi padding dari .page-content */
}
.section-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.product-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}
.discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ffc107;
    color: #000;
    padding: 5px;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    border-bottom-right-radius: 10px;
}
.product-image {
    height: 100px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #e0e0e0;
}

/* === NAVIGASI BAWAH (TAB BAR) === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    z-index: 1030;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    text-decoration: none;
    font-size: 0.7rem;
}
.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
}
.nav-item.active {
    color: #4a69ff; /* Warna biru sesuai tema */
}