/* =====================================================
   TURTLE STORE - tampilan-lanjutan.css
   Footer, Bottom Nav Penuh ke Bawah, Detail Popup, Modal Tawar
   ===================================================== */

/* 1. Tampilan Awal & Akun Lainnya (Kartu Katalog Depan) */
.harga-asli,
.katalog-akun .harga-asli,
.akun-card .harga-asli {
    color: #094da6 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
}

/* 2. Tampilan Pas Dipencet (Modal Popup Detail - Merah Bold) */
.d-harga-asli {
    color: #dc2626 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -0.4px !important;
}

/* 3. Tampilan Harga Promo di Modal Tawar */
.tawar-val-diskon {
    color: #dc2626 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-top: 2px !important;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    margin-top: 40px;
    padding: 28px 0 8px;
    border-top: 1px solid var(--line);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    margin-top: 10px;
    max-width: 460px;
    font-size: 13px;
    color: var(--ink-soft);
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.social-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 17px;
    transition: background .2s, color .2s, border-color .2s;
}

.social-btn.wa:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.social-btn.ig:hover {
    background: #d6249f;
    border-color: #d6249f;
    color: #fff;
}

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-faint);
}

/* =====================================================
   BOTTOM NAV (NEMPEL PENUH KE DASAR LAYAR, TANPA CELAH)
   ===================================================== */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    z-index: 80;
    width: 100%;
    max-width: 100%;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: #ffffff;
    border-top: 1px solid var(--line);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, .06);
}

.nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    border-radius: 0;
    transition: color .2s, background .2s;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active {
    color: #094da6;
    background: #e8f0fe;
}

/* =====================================================
   MODAL DETAIL
   ===================================================== */
.modal-detail {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #f4f6f9;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-inner-scroll {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100%;
    background: #f4f6f9;
    padding-bottom: calc(var(--nav-h) + 40px);
}

.modal-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
}

.btn-kembali {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: #e8f0fe;
    color: #094da6;
    font-size: 15px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.btn-kembali:active {
    transform: scale(0.92);
    background: #d2e3fc;
}

.modal-title-top {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overlay-zoom-banner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.modal-body-detail {
    padding: 16px 14px 0 14px;
}

.detail-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.d-harga-coret {
    font-size: 14px !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
    font-weight: 500 !important;
}

.d-badge-diskon {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 7px !important;
    border-radius: 5px !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    border: none !important;
    line-height: 1.2 !important;
}

.d-judul {
    margin-top: 8px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #111827 !important;
}

.d-rating-row {
    margin-top: 8px;
}

.d-rating-row span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e8f0fe;
    color: #094da6;
    font-size: 12.5px;
    font-weight: 700;
}

/* KOTAK DESKRIPSI */
.box-deskripsi {
    margin-top: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.box-deskripsi h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.deskripsi-isi {
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.65;
    color: #4b5563;
    word-break: break-word;
}

/* TOMBOL BELI & TAWAR */
.action-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.15s ease, background 0.15s ease;
}

.btn-action:active {
    transform: scale(.98);
}

.btn-beli {
    background: #094da6;
    color: #ffffff;
}

.btn-beli:hover {
    background: #06397d;
}

.btn-tawar {
    background: #ffffff;
    color: #094da6;
    border: 1.5px solid #094da6;
}

.btn-tawar:hover {
    background: #e8f0fe;
}

/* KARTU 3 FITUR DI BAWAH BELI & TAWAR */
.detail-features-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 4px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.detail-feature-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 2px 6px;
    border-right: 1px solid #e5e7eb;
}

.detail-feature-col:last-child {
    border-right: none;
}

.detail-feature-col span {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.df-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
}

.df-icon.blue {
    color: #2563eb;
}

.df-icon.yellow {
    color: #facc15;
}

.df-icon.purple {
    color: #6366f1;
}

/* AKUN LAINNYA */
.akun-lainnya-wrapper {
    margin-top: 24px;
}

.grid-akun-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

/* =====================================================
   MODAL TAWAR
   ===================================================== */
.modal-tawar-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    contain: strict;
    will-change: visibility, opacity;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-tawar-overlay.buka-instan {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-tawar-card {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid #dfe6ef;
    transform: translateZ(0);
    contain: content;
}

.modal-tawar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.modal-tawar-title {
    font-size: 19px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.modal-tawar-sub {
    font-size: 12px;
    color: #4b5563;
    margin-top: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-tutup-tawar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #e8f0fe;
    color: #094da6;
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
}

.btn-tutup-tawar:active {
    background: #d2e3fc;
}

.tawar-info-box {
    background: #eff6ff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 16px;
}

.tawar-label-harga {
    font-size: 11.5px;
    color: #6b7280;
    font-weight: 600;
}

.tawar-val-asli {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    margin-top: 2px;
}

.tawar-form-group {
    margin-top: 16px;
}

.tawar-input-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.tawar-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #094da6;
    border-radius: 14px;
    padding: 0 14px;
    height: 48px;
    background: #ffffff;
    cursor: text;
    touch-action: manipulation;
}

.tawar-rp-prefix {
    font-size: 15px;
    font-weight: 800;
    color: #4b5563;
    margin-right: 8px;
    pointer-events: none;
    user-select: none;
}

.tawar-input-wrap input {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    font-family: inherit;
    background: transparent;
    -webkit-appearance: none;
}

.tawar-input-wrap input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.tawar-preview-row {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.tawar-preview-row strong {
    color: #111827;
    font-weight: 700;
}

.btn-kirim-tawar {
    width: 100%;
    height: 46px;
    margin-top: 16px;
    border-radius: 14px;
    border: none;
    background: #e2e8f0;
    color: #64748b;
    font-size: 14.5px;
    font-weight: 700;
    cursor: not-allowed;
    touch-action: manipulation;
}

.btn-kirim-tawar.aktif {
    background: #dc2626;
    color: #ffffff;
    cursor: pointer;
}

/* =====================================================
   DESKTOP / TABLET
   ===================================================== */
@media (min-width: 720px) {
    .modal-tawar-overlay {
        align-items: center;
        padding: 16px;
    }

    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .footer-bottom {
        width: 100%;
    }
}