html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; 
    overflow-y: auto;
    width: 100%;
}

/* Navbar Blur Effect */
/* Navbar Apple Style */
.navbar-apple {
    background-color: rgb(251, 251, 253) !important;
    min-height: 44px; /* Tinggi standar Apple */
    padding: 0;
}

.bg-era{
    background-color: #ffd336 !important;
}
.btn-era{
    background-color: #ffd336 !important;
}

/* Container Ikon */
.nav-icon-wrapper {
    width: 18px;
    height: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.nav-icon-wrapper span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #1d1d1f;
    border-radius: 1px;
    /* Gunakan transition hanya pada transform */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center; /* Memastikan rotasi di titik tengah */
}

/* KONDISI SILANG: Hanya aktif jika class .collapsed TIDAK ADA */
/* Kita pakai selector yang sangat spesifik agar tidak tertimpa */
.navbar-toggler:not(.collapsed) .nav-icon-wrapper .line-1 {
    transform: translateY(5px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .nav-icon-wrapper .line-2 {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* Container Utama */
.product-shelf-container {
    display: flex;
    overflow-x: auto; /* Mengaktifkan geser horizontal */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 0px; /* Jarak antar produk */
    padding: 20px 0;
    scrollbar-width: none; /* Sembunyikan scrollbar Firefox */
}

.product-shelf-container::-webkit-scrollbar {
    display: none; /* Sembunyikan scrollbar Chrome/Safari */
}

/* Item Produk */
.product-item {
    flex: 0 0 auto; /* Mencegah item mengkerut */
    min-width: 100px;
    max-width: 130px;
    text-decoration: none;
    color: #1d1d1f;
    transition: opacity 0.3s;
    margin-right: 0px !important;
}

.product-item:hover {
    opacity: 0.7;
    color: #0071e3;
}

.product-item img {
    height: 56px; /* Konsistensi tinggi ikon */
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.product-item span {
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.product-item .label-new {
    font-size: 10px;
    margin-top: 4px;
    display: block;
}

/* Wrapper Khusus Tombol Panah di Mobile */
.shelf-wrapper {
    position: relative;
}

/* Tombol Panah HANYA muncul di Mobile */
@media (max-width: 768px) {
    .nav-arrow {
        display: flex !important;
        position: absolute;
        top: 10%; /* Posisi di area ikon */
        width: 30px;
        height: 100px;
        background: #f7f7f7;
        opacity: 0.95;
        border: 0px solid #d2d2d7;
        border-radius: 10%;
        z-index: 10;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 1px 0  rgba(0,0,0,0.1);
    }
    .arrow-left { left: 0; }
    .arrow-right { right: 0; }
    
    .product-shelf-container {
        padding: 5px 5px;
    }
}

/* Sembunyikan panah di Desktop */
@media (min-width: 769px) {
    .nav-arrow {
        display: none !important;
    }
}

.navbar-apple .nav-link {
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.8) !important;
    padding: 12px 16px !important;
    transition: opacity 0.3s ease;
}

.navbar-apple .nav-link:hover {
    opacity: 0.6;
}

.navbar-brand {
    font-size: 18px;
    padding: 0 15px !important;
}

/* Responsif: Menghilangkan padding berlebih di mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        /* Membuat menu melayang */
        position: absolute;
        top: 50px; /* Jarak dari navbar */
        left: 10px;
        right: 10px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        
        /* Estetika */
        border-radius: 18px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
        
        /* Animasi halus */
        transition: all 0.3s ease-in-out;
    }

    .navbar-apple .nav-link {
        font-size: 15px !important;
        padding: 12px 20px !important;
        border-bottom: 0 !important; /* Hilangkan garis bawah agar lebih clean */
        text-align: left;
    }

    /* Memberikan efek aktif yang simpel */
    .navbar-apple .nav-link:active {
        background-color: rgba(0,0,0,0.05);
        border-radius: 10px;
    }
}

/* Apple Hero Section Style */
.hero-section {
    padding-top: 100px;
    text-align: center;
    /*background-color: #ffffff;*/
    background-color: #f5f5f7;
    
}

.hero-section img {
    max-width: 80%; /* Agar gambar tidak mentok ke pinggir layar di PC */
    height: auto;
    margin: 0 auto;
    display: block;
}


/* Product Icon Carousel */
.product-shelf-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch; /* Untuk scroll halus di iOS */
    scrollbar-width: none; /* Sembunyikan scrollbar di Firefox */
}

.product-shelf-container::-webkit-scrollbar {
    display: none; /* Sembunyikan scrollbar di Chrome/Safari */
}

.product-item {
    display: inline-block;
    text-align: center;
    min-width: 90px;
    margin: 0 15px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #646464;
}

.product-item:hover {
    transform: translateY(-5px);
    color: #000000;
}

.product-item img {
    height: 54px; /* Ukuran ikon khas Apple */
    width: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-item span {
    display: block;
    font-size: 12px;
    font-weight: 400;
}

.product-item .label-new {
    color: #bf4800; /* Warna orange "Baru" khas Apple */
    font-size: 10px;
    margin-top: 2px;
}



.responsif-h1 { font-size: 3.5rem;}
.responsif-h2 { font-size: 1.5rem;}
@media (max-width: 768px) {
    .hero-section img {
        max-width: 100%; /* Gambar lebih lebar di HP agar detail terlihat */
        margin-top: 30px !important;
    }
    .hero-section h1 {
        font-size: 2.5rem; /* Mengecilkan teks di HP agar tidak berantakan */
    }
    .responsif-h1 { font-size: 2.0rem !important;}
    .responsif-h2 { font-size: 1.0rem !important;}
}




.btn-apple {
    background-color: #ffd336;
    color: rgb(61, 61, 61);
    border-radius: 980px;
    padding: 8px 16px;
    font-size: 14px;
}

.footer-apple {
    background-color: #f5f5f7;
    font-size: 12px;
    color: #6e6e73;
}


/* LOGIN/REGISTER */
.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #ffffff;
    padding: 40px;
}

.form-control-apple {
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid #d2d2d7;
    background-color: #fbfbfd;
    font-size: 16px;
}

.form-control-apple:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    background-color: #ffffff;
}

.btn-auth-primary {
    background-color: #0071e3;
    color: white;
    border-radius: 12px;
    padding: 12px;
    font-weight: 500;
    width: 100%;
    border: none;
    transition: background 0.3s;
}

.btn-auth-primary:hover {
    background-color: #0077ed;
    color: white;
}

.auth-title {
    font-weight: 600;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: #6e6e73;
    font-size: 14px;
}


/* Profile Page */
.bg-profile {
    background-color: #f5f5f7;
    min-height: 100vh;
}

.profile-sidebar-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
}

.profile-content-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    padding: 30px;
    margin-bottom: 20px;
}

.list-group-apple .list-group-item {
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    color: #1d1d1f;
    transition: background 0.2s;
}

.list-group-apple .list-group-item:hover {
    background-color: #f5f5f7;
}

.list-group-apple .list-group-item.active {
    background-color: #f5f5f7;
    color: #0071e3;
    font-weight: 600;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #6e6e73;
    margin: 0 auto 15px;
}

.profile-label {
    font-size: 12px;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.profile-value {
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 400;
}



/* PRODUCT PAGE */
.product-card {
    border: none;
    border-radius: 10px;
    background-color: #ffffff;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: scale(1.02);
}

.product-category {
    font-size: 10px;
    font-weight: 600;
    color: #bf4800; /* Warna khas sub-judul Apple */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em; /* Memberikan ruang cadangan untuk 2 baris */
    font-size: 14px;
    font-weight: 600;
}

.riwayat-title {
    font-size: 14px;
}

.product-price {
    font-size: 16px;
    color: #1d1d1f;
}

.img-wrapper {
    padding: 40px;
    background-color: #f5f5f7; /* Background abu-abu muda untuk placeholder gambar */
    border-radius: 28px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.badge-new {
    background-color: #bf4800;
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}



/* Tracking Timeline Style */
.tracking-card {
    border: none;
    border-radius: 24px;
    background: #ffffff;
    padding: 30px;
}

.timeline {
    position: relative;
    padding-left: 45px;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #e5e5e5;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e5e5e5;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e5e5;
}

.timeline-item.active .timeline-dot {
    background: #0071e3;
    box-shadow: 0 0 0 2px #0071e3;
}

.timeline-item.completed .timeline-dot {
    background: #0071e3;
}

.timeline-date {
    font-size: 12px;
    color: #6e6e73;
    font-weight: 500;
}

.timeline-content h6 {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 15px;
}

.timeline-content p {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 0;
}

/* Progress Bar Horizontal Simple */
.order-progress-bar {
    height: 6px;
    background-color: #f5f5f7;
    border-radius: 10px;
    overflow: hidden;
}
.order-progress-fill {
    height: 100%;
    background-color: #34c759; /* Hijau Khas Apple untuk status sukses */
}



/* Invoice Styling */
.invoice-container {
    background: #fff;
    padding: 30px;
    border-radius: 0; /* Flat untuk kesan dokumen */
    max-width: 800px;
    margin: auto;
}

.invoice-header-logo {
    font-size: 32px;
    font-weight: 600;
    color: #000;
}

.invoice-title {
    font-size: 14px;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.table-invoice thead th {
    border-top: 0;
    border-bottom: 1px solid #1d1d1f;
    font-size: 13px;
    color: #6e6e73;
    text-transform: uppercase;
}

.table-invoice tbody td {
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f7;
    font-size: 15px;
}

.total-section {
    font-size: 15px;
    line-height: 2;
}

.total-amount {
    font-size: 24px;
    font-weight: 600;
    border-top: 2px solid #1d1d1f;
    padding-top: 10px;
    margin-top: 10px;
}

/* Print Only Styles */
@media print {
    .navbar, .footer-apple, .btn-print-hidden {
        display: none !important;
    }
    body {
        background: #fff !important;
    }
}



/* Shopping Bag Style */
.bag-item {
    border-bottom: 1px solid #d2d2d7;
    padding: 30px 0;
}

.bag-item-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background-color: #f5f5f7;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.bag-item-title {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}

.bag-item-title:hover {
    color: #0071e3;
}

.bag-summary-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 30px;
}

.qty-select {
    width: 80px;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
    padding: 5px;
    font-size: 14px;
}

.btn-checkout {
    background-color: #0071e3;
    color: white;
    border-radius: 12px;
    padding: 15px;
    font-weight: 600;
    width: 100%;
    border: none;
    font-size: 17px;
}



/* Apple Slider Style */
.carousel-apple .carousel-item {
    height: 600px;
    background-color: #000;
}

.carousel-apple .carousel-caption {
    bottom: 20%;
    text-align: center;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators .active {
    background-color: #fff;
}

/* Apple Modal Style */
.modal-apple .modal-content {
    border-radius: 30px;
    border: none;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-apple .modal-header {
    border: none;
    padding-bottom: 0;
}

.modal-apple .modal-footer {
    border: none;
    flex-direction: column;
}

.btn-modal-primary {
    background-color: #0071e3;
    color: white;
    border-radius: 12px;
    width: 100%;
    padding: 12px;
    font-weight: 600;
    border: none;
}

.btn-modal-secondary {
    background: transparent;
    color: #0071e3;
    width: 100%;
    border: none;
    margin-top: 10px;
}

@media (max-width: 767px) {
    .apple-card-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory; /* Efek magnet agar berhenti di tengah */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Sembunyikan scrollbar Firefox */
    }

    .apple-card-scroll::-webkit-scrollbar {
        display: none; /* Sembunyikan scrollbar Chrome/Safari */
    }

    .apple-card-scroll .card-item {
        flex: 0 0 85%; /* Kartu mengambil 85% lebar layar agar kartu sebelahnya sedikit terlihat */
        scroll-snap-align: center;
    }
    
    /* Tambahkan sedikit padding pada container agar kartu tidak mepet layar */
    .apple-card-scroll {
        padding-left: 15px;
        padding-right: 15px;
    }

    
}

/* Mempercantik tampilan kartu agar lebih "Apple" */
.rounded-4 {
    border-radius: 24px !important;
}

.bg-light {
    background-color: #f5f5f7 !important;
}

/* Wrapper Gambar Default */
.img-wrapperr {
    background-color: #f5f5f7;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1; /* Tetap kotak agar konsisten */
    padding: 3px;
}

.img-wrapperr img {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 1/1; /* Memastikan semua gambar kotak sempurna */
    object-fit: cover;
}
.product-terjual {
    font-size: 14px;
}
/* Optimasi Khusus Smartphone (col-6) */
@media (max-width: 767px) {
    .img-wrapperr {
        padding: 1px; /* Mengurangi padding agar gambar lebih besar */
        border-radius: 10px; /* Radius sedikit dikecilkan agar proporsional */
    }

    .product-card {
        padding: 10px !important; /* Mengurangi padding card agar tidak sempit */
    }

    .product-title {
        font-size: 12px;
    }

    .product-category {
        font-size: 9px; /* Kategori lebih kecil */
    }

    .product-price {
        font-size: 12px;
    }
    
    .riwayat-title {
        font-size: 10px;
    }

    .product-terjual {
        font-size: 10px;
    }

    .btn-apple {
        padding: 6px 12px;
        font-size: 12px;
        width: 100%; /* Tombol jadi full width di dalam grid kecil */
    }


}


/* Sub-Navbar Sticky */
.sub-navbar {
    top: 44px; /* Menyesuaikan tinggi navbar utama Anda */
    z-index: 1020;
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Gallery Styling */
.product-detail-gallery {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.main-image {
    max-height: 500px;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
}

/* Option Cards (Paket) */
.option-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: #ffc400 !important;
}

.option-card.active {
    border-color: #ffc400 !important;
    border-width: 2px !important;
    background-color: rgba(227, 185, 0, 0.05);
}

.thumb-item {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    background: #f5f5f7;
    transition: all 0.2s ease;
    border: 2px solid #d2d2d7;
}

.thumb-item.active {
    border-color: #0071e3;
    background-color: #ffffff;
}

.thumb-img {
    width: 60px;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .display-5 {
        font-size: 2rem;
    }
    .thumb-img {
        width: 35px;
    }
}

