:root {
    --main-orange: #ff5200;
    --soft-gray: #29aae2;
}
a { text-decoration: none; }
body {
    font-family: "Inter", Arial;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
    color: #666;
    touch-action: pan-x pan-y;
}
.page-title {
    font-weight: 400;
    font-size: 20px;
}
.bg-main-orange { background-color: var(--main-orange); }
.text-main-orange { color: var(--main-orange); }

/* Header Search Bar Focus */
.search-bar:focus {
    border-color: var(--main-orange);
    box-shadow: 0 0 0 0.25 darkgrey;
}

main { flex: 1; padding-bottom: 100px; }
.text-primary { color: var(--main-orange) !important; }
.btn-primary {
    background-color: var(--main-orange);
    border-color: var(--main-orange);
}
.btn-primary:hover {
    background-color: #e64a00;
    border-color: #e64a00;
}
footer { 
    color: white;
    padding: 40px 0;
}
.container { max-width: 1150px !important; }
.form-search .form-control { border-radius: 8px;  }
.form-search {
    position: relative;
    max-width: 350px;
}
.form-control::placeholder {
  color: rgba(0,0,0,.54);
  font-size: 13px;
}
.form-search button {
    position: absolute; top: 0px; right: 3px; padding: 6px 5px 5px 5px;
}
.btn-cart { padding: 3px 5px; } 
.navbar-bottom { background-color: #fff; padding:0px 10px 0px 10px; position: fixed; bottom: 0px; width: 100%; box-shadow: #d1d1d1 0px 0px 5px 0px; }
.navbar-bottom .btn { padding: 6px 15px 4px 15px; border-radius: 0; margin-top: -1px; }
.navbar-bottom .menu-label { font-size: 11px; margin-top: 5px; color:#666; }
.navbar-bottom .menu-active { background-color: #ffdac9; }
header { box-shadow: #bcbcbc 0px 0px 7px 0px; }
.card { border-radius: 0px !important; border: none; box-shadow: #e7e7e7 0px 2px 5px 0px; }
.card-header { 
    border-color:  #f2f2f2;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color:#fff;  
    color: #0000008a;
    font-size: 1rem;
    font-weight: 500;
}
.col-category a:hover { box-shadow: #ffdac9 0px 0px 7px 0px;  }
.col-category a {
    font-size: 12px;
    color: #757575;
    text-decoration: none; 
    display: table;
}
.card-category { overflow: auto; }
.section-category { min-width: 700px; }
.col-category {
    text-align: center;
 }


/* Filter horizontal scroll */
.filter-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 5px 0;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.btn-filter {
    border-radius: 8px;
    border: 1px solid #e5e7e9;
    background: white;
    font-size: 13px;
    padding: 6px 12px;
    color: #6c757d;
}

/* Product Card Styling */
.product-card {
    background: white;
    border-radius: 10px;
    border: none;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.2s;
}
.product-img-wrapper {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info { padding: 10px; }
.product-name {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    height: 38px;
    color: #212121;
}
.product-price {
    font-weight: 700;
    font-size: 15px;
    color: #ff5200; /* Warna utama Sellera */
    margin-bottom: 4px;
}
.product-meta {
    font-size: 11px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}
.badge-merchant {
    background: #e5f7ee;
    color: #03ac0e;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Tab Design */
.search-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7e9;
    background: white;
    pointer-events: auto;
}
.search-tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.search-tab-item.active {
    color: #ff5200;
    border-bottom: 2px solid #ff5200;
}

/* Sorting & Filter Bar */
.sort-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: white;
}

.btn-sort {
    border: 1px solid #e5e7e9;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    background: white;
}

/* Shop Card Style (Untuk Tab Toko) */
.shop-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.shop-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

/* Product Image Carousel */
.product-carousel-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Price & Info Section */
.detail-price {
    font-size: 24px;
    font-weight: 800;
    color: #ff5200; /* Warna utama Sellera */
}
.detail-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* Shop Info Section */
.shop-section { 
    padding: 15px 0;
}

/* Floating Bottom Action Bar */
.bottom-action {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1050;
}
.btn-buy-now:hover { background-color: #c13d00; }
.btn-buy-now {
    background-color: #ff5200;
    border: none;
    font-weight: 500;
    flex-grow: 1;
}
.btn-add-cart {
    border: 1px solid #ff5200;
    color: #ff5200;
    font-weight: 700;
    flex-grow: 1;
}

/* Swipeable Carousel menggunakan CSS Scroll Snap */
.swipe-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.swipe-container::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.swipe-item {
    min-width: 100%;
    scroll-snap-align: start;
}
.swipe-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Indikator Gambar (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
}
.dot.active { background: #ff5200; width: 20px; border-radius: 10px; transition: 0.3s; }

/* Produk Terkait Horizontal Scroll */
.related-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
}
.related-scroll::-webkit-scrollbar { display: none; }
.related-item {
    min-width: 140px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}
/* Custom styling untuk Checkout */
.bg-light-gray { background-color: #f8f9fa; }

/* Radio button hijau bulat */
.custom-checkbox-round {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50% !important;
}
.custom-checkbox-round:checked {
    background-color: #198754;
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

/* Badge styling */
.badge {
    font-weight: 500;
}

/* Text Truncate 2 lines */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Garis hijau di samping card alamat */
.border-start-green {
    border-left: 4px solid #198754 !important;
}

/* Penyesuaian modal fullscreen untuk mobile */
@media (max-width: 576px) {
    .modal-fullscreen-sm-down .modal-content {
        height: 100%;
        border-radius: 0;
    }
}

/* Background modal body */
.bg-light-gray {
    background-color: #f8f9fa;
}

/* Gaya Input Alamat */
.form-group-custom {
    position: relative;
    border: 1.5px solid #ced4da;
    border-radius: 12px;
    padding: 5px 10px;
}

.form-group-custom label {
    position: absolute;
    top: -12px;
    left: 15px;
    z-index: 1;
    font-size: 12px;
}

.custom-input {
    border: none !important;
    padding: 8px 5px !important;
    box-shadow: none !important;
    font-size: 14px;
}

.custom-input-icon {
    border: none !important;
    font-size: 20px;
    color: #495057;
}

/* Spacer abu-abu antar section */
.mx-n3 { margin-left: -1rem; margin-right: -1rem; } 
.product-card a { color: inherit; text-decoration: none; }
.card-product-img { height: 82px; position: relative; }

.btn-orange { background-color: #ff5200; color: #fff; }
.btn-orange:hover { background-color: #ff7c40; color: #fff;  }

.btn-orange-light { background-color: #ff9c6e; color: #fff; }
.btn-orange-light:hover { background-color: #ff5200;  }

.btn-orange-outline { color: #ff5200; border-color: #ff5200; }  
.btn-orange-outline:hover { background-color: #ff9c6e; color: #ffffff; }

.text-orange { color: #ff5200; }
.btn-outline-success { color: #ff5200; }
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
.btn-blank { background-color: transparent; border: none; padding: 0; }
.form-check-input:checked { background-color: #ff5200; border-color: #ff5200; }
.small, small {
  font-size: .8em;
}
.fs-10 { font-size: 10px; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-17 { font-size: 17px; }
.fs-18 { font-size: 18px; }
.fs-19 { font-size: 19px; }
.fs-20 { font-size: 20px; }

/* Style untuk Preview Section */
.variant-preview {
    cursor: pointer;
    transition: background 0.2s;
}
.variant-preview:active {
    background-color: #f8f9fa;
}

/* Style untuk Modal Bottom Sheet (Tampilan Mobile) */
.modal.bottom-sheet .modal-dialog {
    position: fixed;
    margin: 0;
    width: 100%;
    height: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.3s ease-out;
}
.modal.bottom-sheet.show .modal-dialog {
    transform: translate3d(0, 0, 0);
}
.modal.bottom-sheet .modal-content {
    border-radius: 1.5rem 1.5rem 0 0;
    border: none;
    max-height: 85vh;
    overflow-y: auto;
}

/* Style Tombol Varian Warna */
.btn-variant-color {
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 8px;
    padding: 6px 12px 6px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #212529;
    transition: all 0.2s;
}
.btn-variant-color img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}
.btn-variant-color.active {
    border-color: #ff5200;
    background-color: #fff0e6;
    color: #ff5200;
    font-weight: 600;
}

/* Style Tombol Varian Ukuran */
.btn-variant-size {
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 8px;
    min-width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #212529;
    transition: all 0.2s;
}
.btn-variant-size.active {
    border-color: #ff5200;
    background-color: #fff0e6;
    color: #ff5200;
    font-weight: 600;
}
.btn-variant-size.disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    border-color: #f1f3f5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Counter Button */
.counter-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ced4da;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.counter-input {
    width: 40px;
    text-align: center;
    border: none;
    border-top: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
    height: 30px;
}
.bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {
    line-height: revert;
}
.header-product-detail { 
    width: 100%; 
    padding-left: 20px;
    z-index: 1;
}
.all-ratings .btn { padding:1px 10px; }
.btn:disabled {background-color: #7e7e7e;}
 /* Global & Category Styles */
.overflow-auto::-webkit-scrollbar { display: none; }
.cat-item { min-width: 85px; transition: transform 0.2s; }
.cat-item:active { transform: scale(0.95); }
.cat-icon-wrapper { width: 60px; height: 60px; background: #f0f3f7; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.cat-icon-wrapper img { width: 35px; height: 35px; object-fit: contain; }
.cat-text { font-size: 0.75rem; color: #333; font-weight: 500; text-align: center; display: block; }

/* Pinterest Masonry Layout */
.masonry-grid {
    column-count: 2; /* 2 Kolom di mobile */
    column-gap: 12px;
    width: 100%;
}
@media (min-width: 768px) {
    .masonry-grid { column-count: 3; }
}
@media (min-width: 992px) {
    .masonry-grid { column-count: 4; }
}
.masonry-item { 
    width: 100%;
    margin-bottom: 15px;
}
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    background: #fff;
}
.product-card:active { transform: scale(0.97); }
.product-img-pinterest {
    width: 100%;
    height: auto;
    display: block;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.auth-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    margin-top: 80px;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: green;
}

.form-control:focus {
    border-color: var(--main-orange);
    box-shadow:none;
}

.btn-google {
    background-color: white;
    border: 1px solid #dee2e6;
    color: #333;
    font-weight: 500;
}

.btn-google:hover {
    background-color: #f1f3f5;
    border-color: #ccedff;
} 
.label-btn-google { margin-top: 3px; color: #7c7c7c; }

/* --- OTP STYLING (GHOST INPUT METHOD) --- */
.otp-container {
    position: relative;
    width: 100%;
    max-width: 360px; /* Lebar maksimal area OTP */
    margin: 0 auto;
}

/* Input Asli (Transparan & Menutupi Area) */
.otp-real-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Tidak terlihat tapi bisa diklik/diketik */
    z-index: 10; /* Berada di lapisan paling atas */
    cursor: pointer;
    letter-spacing: 2rem; /* Agar kursor tidak aneh */
}

/* Visualisasi Kotak-Kotak */
.otp-visual-boxes {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.otp-box {
    width: 100%; /* Flexible width */
    height: 50px; /* Tinggi kotak */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    transition: all 0.2s;
}

/* Style saat kotak sedang aktif/fokus */
.otp-box.active {
    border-color: var(--main-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 82, 0, 0.15);
}

/* Style saat kotak sudah terisi */
.otp-box.filled {
    border-color: #ced4da;
    background-color: #fff8f5; /* Sedikit tint orange */
}

/* Style untuk tombol resend saat disabled/enabled */
#resendBtn {
    color: var(--main-orange);
    cursor: pointer;
    border: none;
    background: none;
    font-weight: 600;
    padding: 0;
    display: none; /* Hidden by default */
}

#timerText {
    font-weight: 600;
    color: #6c757d;
}

/* Countdown & Resend Link */
.resend-container {
    font-size: 0.9rem;
}
.btn-resend[disabled] {
    color: #6c757d;
    border: none;
    background: none;
    cursor: not-allowed;
    text-decoration: none;
}
.form-floating > label { font-weight: 100; }
/* Password Toggle Icon */
.password-toggle {
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    color: #6c757d;
}
.password-toggle:hover {
    color: var(--main-orange);
}

/* Custom Checkbox Color */
.form-check-input:checked {
    background-color: var(--main-orange);
    border-color: var(--main-orange);
}

.btn-variant-digital {
    border: 1px solid #ddd;
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    transition: 0.3s;
}
.btn-variant-digital.active {
    border-color: #ff5200;
    background: #fff5f0;
    color: #ff5200;
    font-weight: bold;
}
.bg-blur { background-color: rgba(0, 0, 0, 0.3); /* Latar belakang semi-transparan */
  backdrop-filter: blur(10px); /* Efek blur pada konten belakang */
  -webkit-backdrop-filter: blur(10px); /* Kompatibilitas Safari */
  border-radius: 10px; 
  color: #eee;
}

  /* Container utama untuk snap scroll */
.tiktok-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    background-color: #2e2e2e;
}

/* Setiap section produk */
.product-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start; 
    overflow: hidden;
}

/* Media handler (Foto/Video) */
.media-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2e2e2e; /* Background gelap jika ada blank space */
}

.media-content {
    max-width: 100%; 
    object-fit: contain; /* Menjaga aspect ratio tanpa terpotong */
    box-shadow: #101010 0px 0px 30px 1px;
}

/* Deskripsi di bagian bawah */
.description-overlay {
    position: absolute;
    top: 50px;
    right: 0px; 
    padding: 10px; 
    color: white;
    z-index: 10;
}

/* Tombol Back di kanan bawah */
.btn-gallery-back {
    position: fixed;
    left: 20px;
    bottom: 30px;
    z-index: 100;
    border-radius: 50px;
    padding: 5px 25px 5px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.scroll-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Sembunyikan scrollbar agar lebih clean */
.tiktok-container::-webkit-scrollbar {
    display: none;
}
.tiktok-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.photo-scroll-container { 
    height: 90vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .overflow-auto::-webkit-scrollbar {
        display: none;
    }

    /* --- Side Drawer Customization --- */
/* Update Lebar Drawer */
.offcanvas-start-custom {
    width: 75% !important; /* Diperkecil dari 85% */
    border-radius: 0 20px 20px 0 !important;
}

/* Mempercantik Checkbox */
.form-check-input:checked {
    background-color: #ff5200;
    border-color: #ff5200;
}

.form-check-label {
    color: #555;
    cursor: pointer;
}

/* Animasi sederhana agar munculnya halus */
.animate__fadeIn {
    animation: fadeIn 0.4s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
 
.filter-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #999;
    font-weight: 800;
    margin: 10px 0 15px;
    display: block;
}

.filter-label {
    font-size: 0.85rem; 
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.input-custom {
    background: #fdfdfd;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.input-custom:focus {
    border-color: var(--main-color);
    background: #fff; 
}

/* --- Buttons --- */
.btn-apply {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    width: 100%;
    transition: transform 0.2s;
}

.btn-apply:active {
    transform: scale(0.96);
}

.btn-reset {
    background: #fff;
    color: #666;
    border: 1.5px solid #eee;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    width: 100%;
}

/* --- Category & Product --- */
.cat-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cat-text {
    font-size: 0.75rem;
    color: #444;
    font-weight: 500;
}

.product-card {
    border-radius: 16px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.product-price {
    color: var(--main-color);
}

.text-main {
    color: var(--main-color) !important;
}
.fw-semibold {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 500 !important;
}
.checkbox-city .form-check-label {
    font-size: .8em;
    width: 100%;
}
.form-select {
    font-size: 0.85rem;
    color:#333;
}
.btn-check:checked + .btn {
    background-color: var(--main-orange); 
}
.balloon-notification-count{
    position: absolute;
    top: 0px;
    right: 5px;
    background-color: #faff81;
    color: #f00; 
    height: 18px;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center; 
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 9px;
    min-width: 18px;
}