.easy-autocomplete-container>ul li {
    margin: 10px;
}

.easy-autocomplete-container>ul li:hover,
.easy-autocomplete-container>ul li.selected {
    text-decoration: underline;
}

.search-box {
    height: calc(2.5em + 1rem + 2px) !important;
}

.social-icon .fab {
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    width: 30px;
    height: 30px !important;
    line-height: 1;
    font-size: 14px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    color: #fff;
    background: none
}

.social-icon:hover .fab {
    opacity: .8
}

.social-icon .fa-facebook-f {
    background-color: #3b5998
}

.social-icon .fa-twitter {
    background-color: #00aced
}

.social-icon .fa-linkedin {
    background-color: #007bb6
}

.social-icon .fa-youtube {
    background-color: #bb0000
}

.social-icon .fa-instagram {
    background-color: #517fa4
}
.social-icon .fa-tiktok {
    background-color: #270096
}

.social-icon .fa-whatsapp {
    background-color: #73c87d;
}

.social-icon-large {
    margin-right: 20px
}

.social-icon-large .fab {
    font-size: 25px;
    background: transparent;
    color: #000;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    width: 60px;
    height: 60px !important;
    line-height: 1;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease
}

.social-icon-large:hover .fab {
    color: #fff
}

.social-icon-large:hover .fa-facebook-f {
    background-color: #3b5998
}

.social-icon-large:hover .fa-twitter {
    background-color: #00aced
}

.social-icon-large:hover .fa-linkedin {
    background-color: #007bb6
}

.social-icon-large:hover .fa-youtube {
    background-color: #bb0000
}


.social-icon-large:hover .fa-instagram {
    background-color: #517fa4
}

.social-icon-large:hover .fa-tiktok {
    background-color: #270096
}

.pagination {
    margin: 20px 0;
}

.pagination li {
    margin: 0 2px;
    display: inline-block;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination .active a {
    background: #0B1F3A;
    color: #fff;
    border-color: #0B1F3A;
}

@media (max-width: 991px) {
    .navbar .navbar-nav {
        margin-left: 0;
    }
}

/* =============================================
   MOBILE LAYOUT FIXES V3 - Garasi Kami Homepage
   Complete rewrite with priority overrides
   Added: 2026-06-17
   ============================================= */

/* ==================================================
   BASE MOBILE STYLES (max-width: 767px)
   ================================================== */
@media screen and (max-width: 767px) {
    /* Wrap padding */
    .hp-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Hero section */
    .hp-hero {
        height: auto !important;
        min-height: 400px !important;
        max-height: none !important;
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }

    .hp-hero-inner {
        padding: 0 16px !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .hp-hero-h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }

    .hp-hero-h1 br {
        display: none !important;
    }

    .hp-hero-badge {
        font-size: 0.7rem !important;
        padding: 6px 12px !important;
        margin-bottom: 12px !important;
    }

    /* Search bar - single row; page-level mobile CSS stacks it as a column
       with input/button width:100%, which collapses the input to 0px when
       the row direction is forced. Reset those widths explicitly. */
    .hp-hero-search {
        max-width: 100% !important;
        margin: 0 auto 16px auto !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 5px 5px 5px 14px !important;
    }

    .hp-hero-search i {
        display: block !important;
        font-size: 0.9rem !important;
        margin-right: 2px !important;
    }

    .hp-hero-search input {
        width: auto !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        font-size: 16px !important; /* >=16px prevents iOS zoom-on-focus */
        padding: 10px 0 !important;
    }

    .hp-hero-search button {
        width: auto !important;
        flex: 0 0 auto !important;
        padding: 11px 16px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }

    /* Category pills */
    .hp-hero-cats {
        gap: 8px !important;
    }

    .hp-hero-cats a {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }

    /* Hero nav hidden on mobile */
    .hp-hero-nav {
        display: none !important;
    }

    .hp-hero-dots {
        bottom: 16px !important;
    }

    /* Stats strip - 2x2 grid; the old horizontal-scroll layout clipped the
       last column with no visible scroll affordance */
    .hp-stats-inner {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        overflow: visible !important;
        padding: 10px 16px !important;
    }

    .hp-stat-item {
        padding: 14px 8px !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .hp-stat-item strong {
        font-size: 1.35rem !important;
    }

    .hp-stat-item span {
        font-size: 0.75rem !important;
    }

    .hp-stat-sep {
        display: none !important;
    }

    /* Section headers */
    .hp-section {
        padding: 40px 0 !important;
    }

    .hp-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 24px !important;
    }

    .hp-head-center {
        align-items: center !important;
        text-align: center !important;
    }

    .hp-title {
        font-size: 1.4rem !important;
    }

    .hp-subtitle {
        font-size: 0.9rem !important;
    }

    /* Products grid */
    .hp-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .hp-prod-card {
        border-radius: 12px !important;
    }

    .hp-prod-info {
        padding: 12px !important;
    }

    .hp-prod-info h3 {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .hp-prod-price strong {
        font-size: 0.9rem !important;
    }

    /* How it works */
    .hp-how-grid {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .hp-how-step {
        display: flex !important;
        flex-direction: row !important;
        text-align: left !important;
        gap: 16px !important;
    }

    .hp-how-num {
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .hp-how-connector {
        display: none !important;
    }

    /* Panels - THIS IS THE CRITICAL FIX */
    .hp-panels {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 16px !important;
    }

    .hp-panel {
        border-radius: 16px !important;
    }

    .hp-panel-head {
        padding: 16px 16px 12px !important;
    }

    .hp-panel-title {
        font-size: 1.1rem !important;
    }

    .hp-panel-list {
        padding: 8px 0 !important;
    }

    .hp-panel-item {
        padding: 10px 16px !important;
    }

    .hp-panel-item img {
        width: 52px !important;
        height: 52px !important;
    }

    /* Brands grid */
    .hp-brands-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    .hp-brand-item {
        padding: 16px 10px !important;
    }

    .hp-brand-item img {
        max-width: 60px !important;
        max-height: 30px !important;
    }

    .hp-brand-name {
        font-size: 0.75rem !important;
    }

    /* Testimonials */
    .hp-testi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .hp-testi-body {
        padding: 12px !important;
    }

    .hp-testi-body h4 {
        font-size: 0.85rem !important;
    }

    .hp-testi-body p {
        font-size: 0.75rem !important;
    }
}

/* ==================================================
   SMALL MOBILE (max-width: 480px)
   ================================================== */
@media screen and (max-width: 480px) {
    .hp-hero {
        min-height: 380px !important;
        padding-top: 40px !important;
    }

    .hp-hero-h1 {
        font-size: 1.35rem !important;
    }

    .hp-hero-cats a {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    .hp-title {
        font-size: 1.25rem !important;
    }

    .hp-products-grid {
        gap: 10px !important;
    }

    .hp-prod-info h3 {
        font-size: 0.8rem !important;
    }

    .hp-brands-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .hp-brand-item {
        padding: 14px 8px !important;
    }

    .hp-testi-grid {
        gap: 10px !important;
    }
}

/* ==================================================
   EXTRA SMALL MOBILE (max-width: 360px)
   ================================================== */
@media screen and (max-width: 360px) {
    .hp-hero-h1 {
        font-size: 1.2rem !important;
    }

    .hp-hero-cats {
        gap: 6px !important;
    }

    .hp-hero-cats a {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }

    .hp-products-grid {
        gap: 8px !important;
    }

    .hp-prod-info {
        padding: 10px !important;
    }

    .hp-prod-info h3 {
        font-size: 0.75rem !important;
    }

    .hp-brands-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .hp-brand-item img {
        max-width: 50px !important;
        max-height: 25px !important;
    }

    .hp-testi-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==================================================
   TOUCH DEVICE OPTIMIZATIONS
   ================================================== */
@media (hover: none) and (pointer: coarse) {
    .hp-prod-card:hover,
    .hp-brand-item:hover,
    .hp-testi-card:hover {
        transform: none !important;
    }

    .hp-prod-card:active,
    .hp-brand-item:active {
        transform: scale(0.98) !important;
    }
}
