/* Icon Cart dan Wishlist */
.icon-header-item .zmdi-shopping-cart,
.icon-header-item .zmdi-favorite-outline {
    font-size: 25px !important;
}

/* Header */
header {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Mengatur padding untuk body agar konten tidak tertutup header */
body {
    padding-top: 100px; /* Sesuaikan padding top agar konten tidak tertutup header */
    background-color: #f9f9f9;
}

/* === DESKTOP HEADER === */
.container-menu-desktop {
    background-color: transparent !important;
}

.wrap-menu-desktop {
    background-color: #fff !important;
    border-bottom: 1px solid #eee;
}

/* Styling menu utama */
header .main-menu>li>a {
    color: #333 !important;
    font-weight: 500;
    font-size: 15px;
    text-transform: capitalize;
    transition: color 0.3s ease;
    padding: 20px 18px;
}

header .main-menu>li>a:hover,
header .main-menu>li.active-menu>a {
    color: #007bff !important;
}

/* Logo desktop */
header .logo img {
    max-height: 55px;
    transition: all 0.3s ease;
}

/* === ICON HEADER === */
.wrap-icon-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-header-item {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.icon-header-item:hover {
    color: #007bff;
}

/* === SEARCH BAR DESKTOP === */
.search-bar-header {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.input-search {
    border: none;
    outline: none;
    padding: 8px 14px;
    font-size: 14px;
    width: 160px;
    color: #333;
    transition: width 0.3s ease;
}

.btn-search {
    background: #007bff;
    border: none;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-search:hover {
    background: #0056b3;
}

.input-search:focus {
    width: 200px;
}

/* === MOBILE HEADER FIX === */
.wrap-header-mobile {
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 8px 10px;
}

/* Flex baris ikon + menu mobile */
.wrap-header-mobile .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.wrap-header-mobile .search-bar-header {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
}

.wrap-header-mobile .input-search {
    width: 100%;
    font-size: 13px;
    padding: 6px 10px;
}

.wrap-header-mobile .btn-search {
    padding: 6px 10px;
    font-size: 13px;
    background: #007bff;
}

.wrap-header-mobile .icon-header-item {
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.wrap-header-mobile .icon-header-item:hover {
    color: #007bff;
}

.wrap-header-mobile .icon-header-item:not(:last-child) {
    margin-right: 6px;
}

/* Hamburger */
.wrap-header-mobile .btn-show-menu-mobile {
    margin-left: 4px;
}

/* === PRODUCT CARD FIX === */
.block2 {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.block2:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.block2-pic {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 250px;
    background-color: #fff;
}

.block2-pic img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.label-top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    color: #fff;
    z-index: 10;
    text-transform: uppercase;
}

.label-top-left.bg-primary {
    background-color: #007bff !important;
}

.label-top-left.bg-danger {
    background-color: #dc3545 !important;
}

.label-top-left.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.block2-txt {
    text-align: left;
    padding: 10px 5px 15px 5px;
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.block2-txt .stext-104 {
    font-weight: 500;
    color: #333;
}

.block2-txt .stext-105 {
    display: block;
    line-height: 1.4;
}

.block2-txt .text-decoration-line-through {
    text-decoration: line-through !important;
    color: #999 !important;
    font-size: 14px;
}

.block2-txt .text-primary {
    color: #007bff !important;
    font-weight: 600;
    font-size: 15px;
}

.block2-txt-child2 {
    margin-left: -6px;
}

.isotope-item {
    display: flex;
}

.isotope-item>.block2 {
    flex: 1;
}

/* === MODAL CUSTOM === */
.modal-box-custom {
    max-width: 700px;
    margin: 1rem auto;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
    background-color: #fff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.overlay-modal1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.wrap-modal1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    overflow-y: auto;
    display: none;
}

.show-modal1 {
    display: block !important;
}

/* Panel utama cart */
.wrap-header-cart .header-cart {
    margin-top: 70px; /* turunkan seluruh konten cart dari header tetap (fixed header) */
}

/* Pastikan konten cart tidak mentok juga */
.header-cart-title {
    padding-top: 20px;
    padding-bottom: 10px;
}

/* Tambahkan sedikit bayangan & radius agar tampak lebih rapi */
.wrap-header-cart .header-cart {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}
