html {
    scroll-behavior: smooth;
}
#produk {
    scroll-margin-top: 120px;
}
/* ===============================
   THEME TOBUKEL (IMPROVED BROWN)
================================= */

:root {
    --bs-primary: #8b5e3c; /* coklat utama (lebih soft) */
    --bs-secondary: #c8a27c; /* coklat muda */
    --bs-light: #f5f1e9;
    --bs-dark: #5a3e2b; /* coklat text */
}

/* Background */
body {
    background-color: #f5f1e9;
}

/* HERO */
.hero-header {
    background:
        linear-gradient(rgba(245, 241, 233, 0.9), rgba(245, 241, 233, 0.9)),
        url("../img/hero-img.jpg");
}

/* Carousel */
.carousel-item a {
    background: rgba(139, 94, 60, 0.9);
}

/* Input focus */
.form-control:focus {
    border-color: #8b5e3c;
    box-shadow: 0 0 0 0.25rem rgba(139, 94, 60, 0.2);
}

/* Button */
.btn-primary {
    background-color: #8b5e3c;
    border-color: #8b5e3c;
}

.btn-primary:hover {
    background-color: #6f4a30;
    border-color: #6f4a30;
}

/* Modal */
#searchModal .modal-content {
    background: rgba(245, 241, 233, 0.95);
}

/* =========================
   OVERRIDE WARNA BOOTSTRAP
========================= */

/* Text */
.text-primary {
    color: #5a3e2b !important;
}

.text-success {
    color: #8b5e3c !important;
}

/* Background */
.bg-primary {
    background-color: #8b5e3c !important;
}

.bg-success {
    background-color: #c8a27c !important;
}

.bg-warning {
    background-color: #d6b89a !important;
}

/* Button success */
.btn-success {
    background-color: #c8a27c !important;
    border-color: #c8a27c !important;
}

.btn-success:hover {
    background-color: #8b5e3c !important;
    border-color: #8b5e3c !important;
}

/* Heading */
h1,
h2,
h3 {
    color: #5a3e2b !important;
}

/* =========================
   FOOTER IMPROVED CONTRAST
========================= */

/* Background footer */
.footer {
    background-color: #4e3b31 !important; /* coklat gelap (lebih warm, bukan hijau) */
}

/* Judul */
.footer h1,
.footer h4 {
    color: #ffffff !important;
}

/* Text biasa */
.footer p {
    color: #eadfd6 !important; /* cream soft */
}

/* Link */
.footer .btn-link {
    color: #eadfd6 !important;
}

.footer .btn-link:hover {
    color: #ffffff !important;
}

/* Subtitle kecil */
.footer .text-secondary {
    color: #d6b89a !important;
}

/* Border garis */
.footer hr,
.footer .border-bottom {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Tombol read more */
.footer .btn.border-secondary {
    color: #ffffff !important;
    border-color: #c8a27c !important;
}

.footer .btn.border-secondary:hover {
    background-color: #c8a27c !important;
    color: #3e2c23 !important;
}

/* =========================
   BANNER TOBUKEL (FIX)
========================= */

.banner {
    background: linear-gradient(
        rgba(139, 94, 60, 0.95),
        rgba(111, 74, 48, 0.95)
    ) !important;
    color: #fff;
}

/* Judul */
.banner h1 {
    color: #ffffff !important;
}

/* Sub text */
.banner p {
    color: #f5ede4 !important;
}

/* Tombol */
.banner-btn {
    background-color: transparent;
    border: 2px solid #f5ede4 !important;
    color: #ffffff !important;
}

.banner-btn:hover {
    background-color: #f5ede4 !important;
    color: #5a3e2b !important;
}

/* Lingkaran harga */
.banner .bg-white {
    background-color: #f5f1e9 !important;
    color: #5a3e2b;
}

/* =========================
   SERVICE / FEATURS FIX
========================= */

/* Card background */
.featurs-item {
    background-color: #ffffff !important;
    border: 1px solid #eadfd6;
    transition: 0.3s;
}

/* Hover effect biar hidup */
.featurs-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ICON CIRCLE (ganti orange jadi coklat) */
.featurs-icon {
    background-color: #c8a27c !important; /* coklat muda */
}

/* Diamond bawah icon */
.featurs-icon::after {
    background-color: #8b5e3c !important; /* coklat utama */
}

/* Icon warna */
.featurs-icon i {
    color: #fff !important;
}

/* Judul */
.featurs-content h5 {
    color: #5a3e2b;
    font-weight: 600;
}

/* Deskripsi */
.featurs-content p {
    color: #7a6a5a;
}
.featurs-icon {
    box-shadow: 0 5px 15px rgba(139, 94, 60, 0.2);
}

/* =========================
   PRODUCT CARD TOBUKEL
========================= */

/* Label kategori (Fruits -> Buku) */
.fruite-item .bg-secondary {
    background-color: #c8a27c !important; /* coklat muda */
    color: #fff;
}

/* Border card */
.fruite-item .border-secondary {
    border-color: #eadfd6 !important; /* soft cream border */
}

/* Card body */
.fruite-item {
    background-color: #fff;
    transition: 0.3s;
}

/* Hover effect */
.fruite-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Judul produk */
.fruite-item h4 {
    color: #5a3e2b;
}

/* Deskripsi */
.fruite-item p {
    color: #7a6a5a;
}

/* Harga */
.fruite-item .text-dark {
    color: #5a3e2b !important;
}

/* Button Add to Cart */
.fruite-item .btn {
    border: 1px solid #c8a27c !important;
    color: #8b5e3c !important;
    background-color: transparent;
}

.fruite-item .btn:hover {
    background-color: #8b5e3c !important;
    color: #fff !important;
}

/* Icon cart */
.fruite-item .fa-shopping-bag {
    color: #8b5e3c !important;
}

.fruite-img img {
    transition: 0.4s;
    transition: 0.3s;
}
.fruite-img {
    overflow: hidden;
}

.fruite-item:hover .fruite-img img {
    transform: scale(1.05);
}

/* =========================
   NAVBAR TOBUKEL FIX
========================= */

/* Logo */
.navbar .navbar-brand h1 {
    color: #5a3e2b !important;
}

/* Menu link */
.navbar .nav-link {
    color: #6f4a30 !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #8b5e3c !important;
}

/* Icon search */
.btn-search i {
    color: #8b5e3c !important;
}

/* Border search */
.btn-search {
    border-color: #c8a27c !important;
}

/* Icon cart & user */
.fa-shopping-bag,
.fa-user {
    color: #8b5e3c !important;
}

/* Badge angka cart */
.navbar .position-absolute.bg-secondary {
    background-color: #c8a27c !important;
    color: #fff !important;
}

/* Dropdown menu */
.dropdown-menu {
    background-color: #f5f1e9 !important;
}

.dropdown-item:hover {
    background-color: #eadfd6 !important;
    color: #5a3e2b !important;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand h1 {
    letter-spacing: 1px;
}

/* =========================
   TESTIMONIAL TOBUKEL FIX
========================= */

/* Card testimonial */
.testimonial-item {
    background-color: #ffffff !important;
    border: 1px solid #eadfd6;
    transition: 0.3s;
}

/* Hover effect */
.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Text isi */
.testimonial-item p {
    color: #6f5b4b;
}

/* Nama client */
.testimonial-item h4 {
    color: #5a3e2b !important;
}

/* Profession */
.testimonial-item .m-0 {
    color: #8b7a6b;
}

/* Border line */
.testimonial-item .border-secondary {
    border-color: #eadfd6 !important;
}

/* Icon quote */
.testimonial-item .fa-quote-right {
    color: #c8a27c !important;
}

/* Foto background */
.testimonial-item .bg-secondary {
    background-color: #c8a27c !important;
}

/* Rating bintang */
.testimonial-item .fa-star {
    color: #c8a27c !important;
}

/* Header */
.testimonial-header h1 {
    color: #5a3e2b !important;
}

.testimonial-header h4 {
    color: #a67c52 !important;
}

.testimonial-item {
    border-radius: 15px;
}

.owl-carousel .owl-item.center .testimonial-item {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* book */
.fruite-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
}

.fruite-img img {
    max-height: 100%;
    width: auto;
}

.fruite-item .bg-secondary {
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* =========================
   FACT / COUNTER FIX FINAL
========================= */

/* Background container */
.container-fluid .bg-light {
    background-color: #f5f1e9 !important;
}

/* Card */
.counter {
    background-color: #ffffff !important;
    border: 1px solid #eadfd6;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.counter:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ICON (fix dari orange ke coklat) */
.counter i {
    color: #8b5e3c !important;
    font-size: 45px;
    margin-bottom: 15px;
}

/* Judul */
.counter h4 {
    color: #6f4a30 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Angka */
.counter h1 {
    color: #5a3e2b !important;
    font-weight: bold;
}

.counter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #c8a27c;
}

.product-img {
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.product-detail-img {
    width: 100%;
    height: 420px;
    object-fit: contain; /* biar full cover buku kelihatan */
    background: #673b3b;
    padding: 10px;
}

.featured-item {
    align-items: center;
    margin-bottom: 20px;
}

.featured-img {
    width: 80px;
    height: 110px;
    flex-shrink: 0;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.featured-content h6 {
    font-size: 14px;
    color: #5a3e2b;
}

.banner-wrapper {
    overflow: hidden; /* cegah teks keluar */
}

.banner-img {
    height: 500px; /* kontrol tinggi banner */
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);

    max-width: 40%; /* BATAS AREA TEKS */
    text-align: right;
}

.banner-text h3 {
    font-size: 28px; /* kecilkan biar gak nabrak */
    line-height: 1.3;
    word-wrap: break-word;
}

.book-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    height: 260px; /* samakan tinggi */
    object-fit: cover; /* biar tidak gepeng */
    border-radius: 10px 10px 0 0;
}
.fruite-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;

    transition: all 0.3s ease;
}

.fruite-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.fruite-item:hover img {
    transform: scale(1.05);
}

.fruite-item .p-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fruite-item .mt-auto {
    margin-top: auto;
}

.product-detail-img {
    transition: 0.3s;
}

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

.quantity button {
    height: 45px;
}

.quantity input {
    height: 45px;
}

.badge {
    font-size: 14px;
}

/* =========================
   FOOTER TOBUKEL THEME
========================= */

.footer {
    background: linear-gradient(135deg, #4e342e, #6d4c41);
    color: #f5e6d3;
}

.footer h1,
.footer h4 {
    color: #ffffff;
    font-weight: 700;
}

.footer p {
    color: #e8d9c8;
    line-height: 1.9;
}

.footer a {
    color: #f3e5d8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: #ffd180;
    padding-left: 5px;
}

.footer .btn {
    border: 2px solid #ffd180;
    color: #ffd180;
    transition: 0.3s;
}

.footer .btn:hover {
    background-color: #ffd180;
    color: #4e342e;
}

.footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
}

.footer .btn-outline-light:hover {
    background-color: #ffd180;
    border-color: #ffd180;
    color: #4e342e !important;
}

.footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.footer .text-primary {
    color: #ffd180 !important;
}

.footer .text-secondary {
    color: #e6cdb4 !important;
}

.footer .footer-item img {
    background: white;
    padding: 8px;
    border-radius: 10px;
    margin-top: 5px;
}

/* COPYRIGHT */
.footer .copyright-text {
    color: #f5e6d3;
    font-size: 15px;
}

.footer .copyright-text span {
    color: #ffd180;
    font-weight: 700;
}

.category-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* padding-bottom: 5px; */
     width: 100%;
    scroll-behavior: smooth;
    padding: 0 45px;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

/* BIAR TIDAK MENGECIL */
.category-scroll .nav-item {
    flex: 0 0 auto;
}

/* BUTTON */
.nav-pills .nav-item a {
    transition: all 0.3s ease;
    border: 1.5px solid #c7b299;
    background: #fff;
    color: #6b4a36 !important;
    font-weight: 600;
    white-space: nowrap;
}

/* HOVER */
.nav-pills .nav-item a:hover {
    transform: translateY(-3px);
    background: #8b5e3c !important;
    color: white !important;
    border-color: #8b5e3c;
    box-shadow: 0 8px 20px rgba(139, 94, 60, 0.25);
}

/* ACTIVE */
.nav-pills .bg-primary {
    background: #8b5e3c !important;
    border: 1.5px solid #8b5e3c !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(139, 94, 60, 0.25);
}

/* TEXT */
.nav-pills span {
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* ANIMASI PRODUK */
#product-list,
#shop-product-list {
    transition: all 0.3s ease;
}

/* SAAT LOADING */
.product-loading {
    opacity: 0;
    transform: translateY(20px);
}

/* SAAT MUNCUL */
.product-show {
    animation: fadeProduct 0.4s ease;
}

@keyframes fadeProduct {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* BUTTON */
.scroll-btn {
    position: absolute;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #8b5e3c;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

/* HOVER */
.scroll-btn:hover {
    transform: scale(1.08);
}

/* POSISI */
.left-btn {
    left: 0;
}

.right-btn {
    right: 0;
}

/* MOBILE */
@media (max-width: 768px) {

    .scroll-btn {
        display: none;
    }

}


/* navbar logo */
.navbar-logo {
    width: 95px;
    height: 95px;
    object-fit: contain;
}


/* shop */
.product-card {
    transition: 0.3s ease;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h4 {
    font-size: 18px;
    font-weight: 600;
}

.product-card p {
    font-size: 14px;
    color: #777;
}

.btn-light.active {
    background-color: #8b5e3c !important;
    color: #fff !important;
    border: none;
}

.fruite-item,
.product-card {
    height: 100%;
}

.product-card {
    border-radius: 18px;
    overflow: hidden;
    transition: .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    transition: .3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.product-card img {
    height: 220px;
    object-fit: cover;
    transition: .3s ease;
}

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

.product-title {
    font-size: 16px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
}

.cart-btn {
    width: 42px;
    height: 42px;
    background: #8b5e3c !important;
       color: #fff !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.cart-btn:hover {
    background: #6f4a30 !important;
    color: #fff !important;
}

.badge {
    font-weight: 500;
    font-size: 12px;
}

.pagination a,
.pagination span {
    color: #5a3e2b;
    padding: 10px 16px;
    text-decoration: none;
    transition: 0.3s ease;
    border: 1px solid #c8a27c;
    margin: 0 4px;
    min-width: 48px;
    text-align: center;
}

.pagination .active {
    background-color: #8b5e3c;
    color: #fff;
    border-color: #8b5e3c;
}

.pagination a:hover {
    background-color: #8b5e3c;
    color: #fff;
}

.pagination .disabled {
    color: #b8aa9a;
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}
