:root {
    --primary-color: #007bff;
    --secondary-color: #004c9f;
    --hero-slider-height-desktop: 100vh;
    --hero-slider-height-tablet: 70vh;
    --hero-slider-height-phone: 560px;
}

.bg-gray {
    background-color: #e0e0e0;
}

.footer-item h4:after {
    content: "";
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
    display: block;
    margin-top: 15px;
}

.footer-contact i {
    width: 20px;
    text-align: center;
}

/* =========================
PRODUCT CARD CONTAINER
========================= */
.k-products .product-card {
    width: 100%;
    position: relative;
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden; /* penting untuk potong image scale */
    transition: all 0.4s ease;
}

/* Card hover naik + shadow */
.k-products .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* =========================
BADGE
========================= */
.k-products .badge {
    position: absolute;
    left: 20px;
    top: 20px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 4; /* pastikan badge atas semua */
}

.k-products .red {
    background: #f31729;
}
.k-products .blue {
    background: #2196f3;
}
.k-products .green {
    background: #4caf50;
}
.k-products .orange {
    background: #ff9800;
}

/* =========================
PRODUCT IMAGE
========================= */
.k-products .product-tumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
    z-index: 1; /* pastikan image di bawah logo */
}

.k-products .product-tumb img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
    transform-origin: center;
    will-change: transform;
    background: white;
}

/* Zoom image on hover */
.k-products .product-card:hover .product-tumb img {
    transform: scale(1.12);
}

/* =========================
LOGO
========================= */
.k-products .logo {
    position: absolute;
    bottom: 160px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    z-index: 3; /* pastikan logo atas image tapi bawah badge */
    opacity: 0.9;
}

.k-products .logo img {
    border-radius: 50%;
}

/* Hover logo effect */
.k-products .product-card:hover .logo {
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 1;
}

/* =========================
PRODUCT DETAILS
========================= */
.k-products .product-details {
    padding: 30px;
}

.k-products .product-category {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: 12px;
}

.k-products .product-details h5 a {
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
    color: #363636;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover title */
.k-products .product-card:hover .product-details h5 a {
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

.k-products .product-details p {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 18px;
    color: #999;
}

/* =========================
PRODUCT BOTTOM DETAILS (PRICE + LINKS)
========================= */
.k-products .product-bottom-details {
    overflow: hidden;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.k-products .product-bottom-details div {
    float: left;
    width: 50%;
}

.k-products .product-price small {
    font-size: 80%;
    font-weight: 400;
    text-decoration: line-through;
    display: inline-block;
    margin-right: 5px;
}

.k-products .product-links {
    text-align: right;
}

.k-products .product-links a {
    display: inline-block;
    margin-left: 8px;
    color: #ccc;
    transition: all 0.3s ease;
    font-size: 18px;
}

.k-products .product-links a:hover {
    color: #fbb72c;
    transform: scale(1.2);
}

/* =========================
CLEAR FLOATS
========================= */
.k-products .product-bottom-details::after {
    content: "";
    display: block;
    clear: both;
}


/* Brand Logo */

.slick-slide {
    margin: 0px 20px;
}

.slick-slide img {
    width: 100%;
    border: 1px solid #ddd;
}

.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.slick-list:focus {
    outline: none;
}
.slick-list.dragging {
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: block;
}

.slick-track:before,
.slick-track:after {
    display: table;
    content: '';
}
.slick-track:after {
    clear: both;
}
.slick-loading .slick-track {
    visibility: hidden;
}

.slick-slide {
    display: none;
    float: left;
    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide {
    float: right;
}
.slick-slide img {
    display: block;
}
.slick-slide.slick-loading img {
    display: none;
}
.slick-slide.dragging img {
    pointer-events: none;
}
.slick-initialized .slick-slide {
    display: block;
}
.slick-loading .slick-slide {
    visibility: hidden;
}
.slick-vertical .slick-slide {
    display: block;
    height: auto;
    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}

/* title */
.clients-title {
    text-align: center;
    margin-bottom: 30px;
    background: #d6b834;
    padding: 10px 8px;
}

.k-products .product-inner .product-tumb img {
    width: 100%;
    height: 320px;
}
.k-products .product-inner .product-details h5 {
    font-size: 16px !important;
}
.filter-sidebar hr {
    border: 1px solid white;
}
.sticky {
    position: sticky;
    top:20%;
}
.product-inner .logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-inner .logo img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}


/* modal */

#modalDesc {
    text-align: left;
}

.k-products .ink-table thead th {
    background-color: #7a7a7a;
    color: #ffffff;
    border-color: #505050;
}

.k-products .ink-table td {
    background-color: #e2e7ef;
    color: #25344d;
    border-color: #c7d0df;
}

.k-products .ink-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #d5dce8;
    color: #25344d;
}

.k-products .ink-table.table-hover > tbody > tr:hover > * {
    background-color: #c3cfe3;
    color: #1f2e45;
}

/* toner tabs */
.k-products #brandTabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.k-products #brandTabs .nav-link {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: none;
    color: #f3f3f3;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px 10px 0 0;
    transition: all 0.25s ease;
}

.k-products #brandTabs .nav-link:hover,
.k-products #brandTabs .nav-link:focus {
    color: #ffffff;
    background: rgba(0, 4, 210, 0.4);
    border-color: rgba(0, 67, 210, 0.8);
}

.k-products #brandTabs .nav-link.active {
    color: #ffffff;
    background: #053eda;
    border-color: #052a92;
}

.k-products .tab-content {
    background: #ffffff;
    border: 1px solid #6b7d98;
    border-radius: 10px;
    padding: 18px;
}

@media (max-width: 576px) {
    .k-products #brandTabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    
    .k-products #brandTabs .nav-link {
        white-space: nowrap;
    }
}

/* Hero slider responsive height */
.header-carousel .header-carousel-item {
    height: var(--hero-slider-height-desktop);
    min-height: 720px;
}

.header-carousel .header-carousel-item-img-1,
.header-carousel .header-carousel-item-img-2,
.header-carousel .header-carousel-item-img-3,
.header-carousel .header-carousel-item-img-1 img,
.header-carousel .header-carousel-item-img-2 img,
.header-carousel .header-carousel-item-img-3 img {
    height: 100%;
}

.header-carousel .header-carousel-item img {
    object-fit: cover;
    object-position: center;
}

.header-carousel .header-carousel-item .carousel-caption {
    width: min(70%, 960px);
    padding: 120px 24px 60px;
}

.header-carousel .carousel-caption-inner {
    max-width: 900px;
    margin: 0 auto;
}

.nav-link {
    font-size: 18px !important;
}


.header-carousel .carousel-caption-inner h1 {
    font-size: clamp(32px, 4vw, 64px);
    line-height: 1.2;
    font-weight: 700;
}

.header-carousel .carousel-caption-inner p {
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.5;
}

/* Base (mobile-first) */


.nav-link,
.dropdown-item {
    font-size: clamp(14px, 2.5vw, 18px);
}

/* Tablet */
@media (min-width: 576px) {
    .header-carousel .carousel-caption-inner h1 {
        font-size: 80px;
    }

    .header-carousel .carousel-caption-inner p {
        font-size: 30px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .header-carousel .carousel-caption-inner h1 {
        font-size: 70px;
        line-height: 1.15;
    }

    .header-carousel .carousel-caption-inner p {
        font-size: 20px;
        line-height: 1.4;
    }

    .nav-link,
    .dropdown-item {
        font-size: 18px;
    }
}

/* Small devices tweak */
@media (max-width: 576px) {
    .header-carousel .header-carousel-item {
        min-height: 520px;
    }

    .header-carousel .header-carousel-item .carousel-caption {
        width: 90%;
        padding: 80px 20px 40px;
    }
}

/* Hero slider arrows below on responsive */
@media (max-width: 992px) {
    .header-carousel {
        padding-bottom: 90px;
    }

    .header-carousel .owl-nav {
        position: absolute;
        left: 50%;
        bottom: 10%;
        transform: translateX(-50%);
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: center;
        width: max-content;
    }

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        position: static;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none;
        width: 52px;
        height: 52px;
    }
}
