/* ===========================================================
   RESET & BASE STYLES
   =========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    background: #f6f6f6;
    font-family: "Inter", "Poppins", sans-serif;
    color: #222;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ===========================================================
   APP STRUCTURE
   =========================================================== */
.app-wrapper {
    width: 100%;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.app-container {
    flex: 1;
    padding: 12px;
    background: #fff;
}

/* ===========================================================
   HEADER (TOP BAR)
   =========================================================== */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #FFCA28;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.back-btn:active {
    background: rgba(0, 0, 0, 0.15);
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
}
/* =========================================================
   SEARCH OVERLAY (GLOBAL)
   ========================================================= */
.search-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.search-overlay.hidden {
    display: none;
}

/* HEADER OVERLAY */
.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #FFCA28;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.search-overlay-header input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    outline: none;
}

.search-overlay-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* RESULT LIST */
.search-overlay-result {
    flex: 1;
    overflow-y: auto;
    background: #f6f6f6;
    padding: 8px;
}

/* ITEM RESULT */
.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.search-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: #fafafa;
}

.search-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-item-name {
    font-size: 14px;
    font-weight: 600;
}

.search-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #E63946;
}
.search-item-price-old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.search-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #E63946;
}




/* ===========================================================
   UTILITY CLASSES
   =========================================================== */
.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

.btn-yellow {
    background: #FFCA28;
    color: #000;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-yellow:hover {
    opacity: 0.95;
}

.btn-yellow:active {
    opacity: 0.9;
}

.card-cabang {
    margin-top: 10px;
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* ===========================================================
   BANNER SECTION
   =========================================================== */
.banner-wrapper {
    margin-top: 16px;
    width: 100%;
}

.banner-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.banner-box {
    width: 100%;
    display: block;
}

.banner-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* ===========================================================
   SECTION HEADER
   =========================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    margin: 24px 0 12px;
    align-items: center;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.see-all {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.see-all:hover {
    color: #FFCA28;
}

/* ===========================================================
   KATEGORI SECTION
   =========================================================== */
.kategori-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.kategori-row::-webkit-scrollbar {
    height: 4px;
}

.kategori-row::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.kategori-item {
    width: 70px;
    text-align: center;
    text-decoration: none;
    color: #222;
    transition: transform 0.2s;
}

.kategori-item:hover {
    transform: translateY(-2px);
}

.kategori-thumb {
    width: 68px;
    height: 68px;
    background: #f2f2f2;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 auto;
    transition: box-shadow 0.2s;
}

.kategori-item:hover .kategori-thumb {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.kategori-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kategori-name {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* ===========================================================
   FILTER SECTION
   =========================================================== */
.filter-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 0;
    scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    padding: 8px 16px;
    background: #eaeaea;
    border-radius: 20px;
    font-size: 13px;
    color: #444;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
}

.filter-pill:hover {
    background: #e0e0e0;
}

.filter-pill.active {
    background: #FFCA28;
    color: #000;
    font-weight: 700;
}

/* ===========================================================
   PRODUCT SECTION
   =========================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 80px; /* Memberi ruang untuk bottom-nav */
}

.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-img-wrap {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #fafafa;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.badge.diskon-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff3b30;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1;
}

.product-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.4;
    flex: 1;
}

.product-title:hover {
    color: #FFCA28;
}

.price-new {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}

.price-old {
    font-size: 13px;
    text-decoration: line-through;
    color: #999;
    margin-bottom: 8px;
}

.product-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-add-cart {
    background: #E63946;
    padding: 8px 12px;
    color: #fff;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-add-cart:hover {
    background: #FFCA28;
}

.btn-add-cart:active {
    background: #FFCA28;
}

/* ===========================================================
   BOTTOM NAVIGATION
   =========================================================== */
.bottom-nav {
    position: fixed; /* Changed from sticky to fixed */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: #FFCA28;
    border-top: 1px solid #ddd;
    height: 65px;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.12);
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
}

.bottom-nav a {
    text-decoration: none;
    color: #0f0f0f;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.bottom-nav a:hover {
    background: rgba(228, 226, 226, 0.2);
}

.bottom-nav a.active {
    color: #0f0f0f;
    font-weight: 600;
}

.bottom-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #c50414;
    border-radius: 50%;
}

.bottom-nav i {
    font-size: 20px;
    margin-bottom: 4px;
}
.badge-cart {
    position: absolute;
    top: -4px;
    right: -4px;
    background: red;
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
    line-height: 16px;
}


/* ===========================================================
   RESPONSIVE BREAKPOINTS
   =========================================================== */
@media (min-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-img-wrap {
        height: 160px;
    }
    
    .kategori-item {
        width: 80px;
    }
    
    .kategori-thumb {
        width: 75px;
        height: 75px;
    }
}

@media (min-width: 600px) {
    .app-container {
        padding: 16px;
    }
    
    .top-bar {
        padding: 12px 16px;
    }
    
    .section-header h3 {
        font-size: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-img-wrap {
        height: 170px;
    }
    
    .product-title {
        font-size: 15px;
    }
    
    .price-new {
        font-size: 17px;
    }
}

@media (min-width: 900px) {
    body {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* ===========================================================
   ANIMATIONS
   =========================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.3s ease-out;
}

/* ===========================================================
   SCROLLBAR STYLING
   =========================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
/* ===== VARIABLES & RESET ===== */
:root {
    --primary-color: #FFCA28;
    --secondary-color: #E63946;
    --text-primary: #010101;
    --text-secondary: #333;
    --text-light: #777;
    --bg-white: #fff;
    --bg-light: #f8f9fa;
    --shadow: 0 4px 12px rgba(1, 1, 1, 0.08);
    --shadow-hover: 0 8px 20px rgba(1, 1, 1, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.5;
}

/* =======================================================
   MAIN PROFILE CONTAINER
   ======================================================= */
.profile-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .profile-container {
        margin: 30px auto;
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .profile-container {
        margin: 40px auto;
        padding: 0;
    }
}

/* =======================================================
   PROFILE CARD
   ======================================================= */
.profile-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    transition: var(--transition);
}

.profile-card:hover {
    box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
    .profile-card {
        padding: 32px;
        margin-bottom: 32px;
    }
}

/* =======================================================
   PROFILE HEADER — LAYOUT UTAMA FOTO + FORM
   ======================================================= */
.profile-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
}

@media (min-width: 640px) {
    .profile-header {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* =======================================================
   FOTO PROFIL
   ======================================================= */
.profile-photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    flex-shrink: 0;
    position: relative;
}

@media (min-width: 640px) {
    .profile-photo-wrapper {
        width: 140px;
        height: 140px;
    }
}

@media (min-width: 1024px) {
    .profile-photo-wrapper {
        width: 160px;
        height: 160px;
    }
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFCA28, #FFB300);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    font-size: 42px;
    font-weight: bold;
}

@media (min-width: 640px) {
    .profile-photo-empty {
        font-size: 48px;
    }
}

/* =======================================================
   FORM PROFILE (INI BAGIAN YANG PALING DIPERBAIKI)
   ======================================================= */
.profile-info {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

/* Label */
.profile-label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    display: block;
}

/* Input */
.profile-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid #ddd;
    background: #fff;
    font-size: 15px;
}

.profile-input-disabled {
    background: #f5f5f5;
    color: #777;
    border-color: #e2e2e2;
}

/* Hint  */
.profile-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* =======================================================
   TEXT PROFILE (tidak dipakai di edit, tetap dibiarkan)
   ======================================================= */
.profile-name {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

@media (min-width: 640px) {
    .profile-name {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .profile-name {
        font-size: 32px;
    }
}

.profile-email, .profile-phone {
    margin: 6px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.profile-email i, .profile-phone i {
    width: 20px;
    color: var(--text-light);
}

/* =======================================================
   BUTTONS
   ======================================================= */
.profile-buttons {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .profile-buttons {
        flex-direction: row;
        gap: 16px;
    }
}

.profile-btn {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn-primary {
    background: var(--primary-color);
    color: var(--text-primary);
}

.profile-btn-primary:hover {
    background: #FFB300;
    transform: translateY(-2px);
}

.profile-btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.profile-btn-secondary:hover {
    background: #D32F2F;
    transform: translateY(-2px);
}

@media (min-width: 640px) {
    .profile-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ===== ALAMAT SECTION ===== */
.profile-alamat-wrapper {
    margin-top: 24px;
}

.profile-section-title {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .profile-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

.profile-section-title i {
    color: var(--primary-color);
}

.profile-alamat-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .profile-alamat-header {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

.profile-alamat-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.profile-alamat-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #e0e0e0;
}

.profile-alamat-empty p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Alamat Card */
.profile-alamat-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.profile-alamat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.profile-alamat-utama {
    border-left: 6px solid var(--primary-color);
}

.profile-alamat-badge {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.profile-alamat-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.profile-alamat-detail {
    color: var(--text-secondary);
    margin: 8px 0;
    line-height: 1.6;
}

.profile-alamat-contact {
    margin-top: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Action Buttons */
.profile-alamat-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.profile-alamat-actions a {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.profile-alamat-btn-edit {
    background-color: #f0f0f0;
    color: var(--text-primary);
}

.profile-alamat-btn-edit:hover {
    background-color: #e0e0e0;
}

.profile-alamat-btn-delete {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--secondary-color);
}

.profile-alamat-btn-delete:hover {
    background-color: rgba(230, 57, 70, 0.2);
}

/* ===== TAMBAH ALAMAT BUTTON ===== */
.profile-tambah-alamat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.profile-tambah-alamat:hover {
    background: #FFB300;
    transform: translateY(-2px);
}

/* ===== FOOTER & SPACING ===== */
.profile-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* Animation for card loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card, .profile-alamat-card {
    animation: fadeInUp 0.5s ease-out;
}
/* ============================
   DETAIL PRODUK - CONTAINER
============================ */
.produk-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* ============================
   GALERI PRODUK (KIRI)
============================ */

.produk-gallery-main {
    width: 100%;
    max-height: 350px;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#produk-main-image {
    width: auto !important;
    height: 100% !important;
    max-height: 350px !important;
    object-fit: contain !important;
}

/* BATASI GAMBAR UTAMA AGAR TIDAK PERNAH FULL */
#produk-main-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}


/* ============================
   THUMBNAILS
============================ */
.produk-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.produk-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    background: #fff;
}

.produk-thumb.active,
.produk-thumb:hover {
    opacity: 1;
    border-color: #ff6600;
}

/* ============================
   TOMBOL NEXT / PREV
============================ */
.produk-gallery-btn {
    position: absolute;
    top: 40%;
    background: #00000080;
    color: #fff;
    border: 0;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    backdrop-filter: blur(2px);
    z-index: 10;
}

.produk-prev { left: 10px; }
.produk-next { right: 10px; }

/* ============================
   INFORMASI PRODUK (KANAN)
============================ */
.produk-info {
    width: 50%;
}

.produk-nama {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* HARGA */
.produk-harga-box {
    margin-bottom: 25px;
}

.produk-harga-normal {
    font-size: 28px;
    font-weight: bold;
    color: #d01900;
}

.produk-harga-asli {
    font-size: 18px;
    color: #888;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.produk-harga-diskon {
    margin-top: 5px;
}

.produk-diskon-label {
    background: #ff4500;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 6px;
}

.produk-harga-final {
    font-size: 26px;
    font-weight: bold;
    color: #E63946;
}

/* DESKRIPSI */
.produk-deskripsi {
    margin-top: 20px;
    color: #444;
    line-height: 1.6;
    white-space: pre-line;
}

/* TOMBOL KERANJANG */
.produk-btn-cart {
    margin-top: 25px;
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background: #FFCA28;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}
.produk-btn-cart:hover {
    background: #E63946;
}

/* ============================
   RESPONSIVE MOBILE
============================ */
@media (max-width: 768px) {
    .produk-container {
        flex-direction: column;
    }

    .produk-gallery,
    .produk-info {
        width: 100%;
    }

    .produk-gallery-main {
        max-height: 330px;
    }
}

/* =======================================
   KERANJANG — WRAPPER & LAYOUT
   ======================================= */
.keranjang-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 15px;
}

.keranjang-kosong {
    text-align: center;
    padding: 40px 10px;
    font-size: 16px;
    color: #555;
}

/* List produk */
.keranjang-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Item */
.keranjang-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

/* =======================================
   FOTO PRODUK
   ======================================= */
.keranjang-item-foto {
    width: 90px;
    min-width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fafafa;
}

.keranjang-item-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =======================================
   DETAIL ITEM
   ======================================= */
.keranjang-item-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Nama produk */
.keranjang-item-nama {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

/* =======================================
   HARGA PRODUK
   ======================================= */
.keranjang-item-harga {
    margin-bottom: 8px;
}

.keranjang-item-harga-normal {
    font-size: 15px;
    font-weight: 600;
    color: #28a745;
}

.keranjang-item-harga-asli {
    font-size: 13px;
    text-decoration: line-through;
    color: #888;
}

.keranjang-item-harga-diskon {
    font-size: 15px;
    font-weight: bold;
    color: #d9534f;
    margin-left: 6px;
}

/* =======================================
   QTY BOX
   ======================================= */
.keranjang-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.keranjang-qty-minus,
.keranjang-qty-plus {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    font-size: 18px;
    line-height: 25px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.keranjang-qty-minus:hover,
.keranjang-qty-plus:hover {
    background: #eee;
}

.keranjang-qty-input {
    width: 55px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* =======================================
   SUBTOTAL
   ======================================= */
.keranjang-item-subtotal {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
    color: #080808;
}

/* =======================================
   HAPUS ITEM
   ======================================= */
.keranjang-item-delete {
    margin-top: 8px;
    border: none;
    background: #ffdddd;
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    color: #c00;
    align-self: flex-start;
}

.keranjang-item-delete:hover {
    background: #ffcccc;
}

/* =======================================
   TOTAL BOX (Bawah)
   ======================================= */
.keranjang-total-box {
    margin-top: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}

.keranjang-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.keranjang-total-value {
    font-size: 20px;
    font-weight: bold;
    margin: 8px 0 15px;
    color: #E63946;
}

/* Tombol Checkout */
.keranjang-checkout-btn {
    width: 100%;
    padding: 13px;
    background: #FFCA28;
    color: #080808;
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.keranjang-checkout-btn:hover {
    background: #e64a19;
}

.keranjang-cabang-box {
    background: #fff;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
}

.keranjang-cabang-label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.keranjang-cabang-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.keranjang-cabang-warning {
    color: #d9534f;
    margin-top: 8px;
    font-size: 14px;
}

.keranjang-stok-info {
    margin-top: 6px;
    font-size: 14px;
    color: #444;
    font-weight: 600;
}



/* =======================================
   RESPONSIVE
   ======================================= */
@media (max-width: 600px) {
    .keranjang-item {
        flex-direction: row;
    }

    .keranjang-item-foto {
        width: 70px;
        min-width: 70px;
        height: 70px;
    }

    .keranjang-item-nama {
        font-size: 14px;
    }

    .keranjang-item-subtotal {
        font-size: 13px;
    }

    .keranjang-total-value {
        font-size: 18px;
    }

    .keranjang-checkout-btn {
        padding: 12px;
        font-size: 15px;
    }
}
/* =========================
   HISTORI PESANAN
========================= */
.histori-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}
.page-histori .histori-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.page-histori .histori-btn-track {
   background: #FFCA28;
    color: #080808;
}


.histori-header {
    margin-bottom: 16px;
}

.histori-title {
    font-size: 22px;
    font-weight: 600;
}

.histori-kosong {
    text-align: center;
    padding: 40px;
    color: #777;
}

.histori-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CARD */
.histori-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* HEADER */
.histori-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.histori-kode {
    font-weight: 600;
}

.histori-status-pembayaran {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.histori-status-pembayaran.paid {
    background: #e6f9f0;
    color: #1e9e6a;
}

.histori-status-pembayaran.unpaid {
    background: #fff4e5;
    color: #d98300;
}

.histori-status-pembayaran.failed {
    background: #fdeaea;
    color: #d93025;
}

/* PRODUK */
.histori-produk-list {
    margin-bottom: 10px;
}

.histori-produk-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* INFO */
.histori-info {
    border-top: 1px dashed #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.histori-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.histori-total {
    color: #d93025;
}

/* PENGIRIMAN */
.histori-pengiriman {
    margin-top: 10px;
    font-size: 14px;
}

.histori-pengiriman-status {
    font-weight: 600;
}

/* ACTION */
.histori-action {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.histori-btn {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
}

.histori-btn-detail {
    background: #f1f1f1;
    color: #333;
}

.histori-btn-track {
    background: #FFCA28;
    color: #080808;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .histori-action {
        flex-direction: column;
    }
}

/* MAP */

/* =========================
   HISTORI DETAIL & TRACKING
========================= */
.histori-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.histori-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.histori-subtitle {
    font-size: 14px;
    color: #777;
}

.histori-tracking-box {
    width: 100%;
    height: calc(100vh - 180px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.histori-tracking-iframe {
    width: 100%;
    height: 100%;
    border: none;
}



