.hero-form-layer {
    position: absolute;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}

.hero-search {
    position: absolute;
    left: var(--hero-x, 50%);
    top: var(--hero-y, 60%);
    transform: translate(-50%, 0);
    width: min(640px, 70vw);
    margin: 0;
    pointer-events: auto;
}

.hero-search,
.hero-search * {
    touch-action: auto;
}

.hero-search .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 999px;
    padding: 10px 12px 10px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
}

.hero-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.hero-actions .btn-view-all {
    display: inline-block;
    height: 42px;
    line-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #d0006f;
    color: #d0006f;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: filter 0.2s, transform 0.05s;
}

.hero-actions .btn-view-all:hover {
    filter: brightness(0.98);
}

.hero-search input[type="text"] {
    flex: 1 1 auto;
    height: 44px;
    border: 1px solid #e1e5ea;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 16px;
    background: #fff;
    outline: 0;
}

.hero-search input[type="text"]::placeholder {
    color: #7a7f87;
}

.hero-search button[type="submit"] {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    background: linear-gradient(90deg, #ff2d85, #d0006f);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 45, 133, 0.35);
    transition: transform 0.05s, filter 0.2s;
    cursor: pointer;
}

.hero-search button[type="submit"]:hover {
    filter: brightness(0.95);
}

.search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 8px;
    z-index: 50;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
}

.search-suggest.open {
    display: block;
}

.search-suggest .sug-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #0f172a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.search-suggest .sug-item:last-child {
    border-bottom: 0;
}

.search-suggest .sug-item:hover {
    background: rgba(255, 45, 133, 0.08);
}

.search-suggest .sug-type {
    font-size: 12px;
    color: #6b7280;
    margin-right: 8px;
}

.search-suggest .sug-label {
    font-weight: 700;
}

.search-suggest .sug-count {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.search-suggest.open ~ .hero-actions {
    display: none !important;
}

.hero-text-anchor {
    display: inline-block;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.anchor-p {
    margin-left: 0;
}

.section {
    padding: 0;
}

.section-header {
    margin-bottom: 0;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #d0006f;
    text-transform: uppercase;
}

.section-subtitle {
    color: #6b7280;
    margin-top: -6px;
}

.faq-list details {
    border: 1px solid rgba(255, 45, 133, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    background: rgba(255, 45, 133, 0.06);
    margin-bottom: 10px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list p {
    margin: 10px 0 0;
    color: #374151;
}

.blog-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card .badge {
    background: rgba(255, 45, 133, 0.12);
    color: #d0006f;
    font-weight: 600;
}

.blog-card .title {
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0;
}

.blog-card .meta {
    font-size: 13px;
    color: #6b7280;
}

.blog-card .excerpt {
    color: #374151;
    margin: 10px 0 14px;
}

.blog-card .readmore {
    color: #d0006f;
    font-weight: 700;
    text-decoration: none;
}

.blog-card .readmore:hover {
    text-decoration: underline;
}

/* .product-image-cover {
    position: relative;
    padding-top: 66%;
    background: #f8f9fa;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-image-cover img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
} */

.products .price {
    margin-top: 0.25rem;
    font-size: 0.92rem !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* @media (min-width: 1401px) {
    .hero-text-anchor {
        text-align: left;
        margin-left: -10%;
    }
    .hero-search {
        width: min(680px, 56vw);
    }
} */

@media (min-width: 1202px) and (max-width: 1435px) {
    .hero-text-anchor {
        text-align: center;
        max-width: 760px;
        margin: 0 auto;
    }

    .hero-search {
        width: min(640px, 64vw);
    }
}

/* 992–1199px: tablet landscape */
/* @media (min-width: 992px) and (max-width: 1380px) {
    .hero-text-anchor {
        text-align: center;
        max-width: 760px;
        margin: 0 auto;
    }

    .hero-search {
        width: min(640px, 64vw);
    }
} */

/* ≤991px: tablet portrait */
@media (max-width: 991.98px) {
    .hero-search {
        width: min(600px, 80vw);
    }

    .hero-search .search-box {
        gap: 6px;
        padding: 8px 10px 8px 12px;
    }

    .hero-search input[type="text"] {
        height: 42px;
        font-size: 15px;
    }

    .hero-search button[type="submit"] {
        height: 42px;
        padding: 0 14px;
        font-size: 14px;
    }

    .hero-actions .btn-view-all {
        height: 40px;
        line-height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }
}

/* ≤767px: mobile */
@media (max-width: 767.98px) {
    .hero-search {
        width: 92vw;
    }

    .search-suggest {
        border-radius: 10px;
    }

    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .blog-card .title {
        font-size: 17px;
    }

    .products .price {
        font-size: 0.9rem !important;
    }

    .hero-text-anchor {
        max-width: 92vw;
        margin: 0 auto;
        text-align: center;
    }

    .hero-text-anchor h1 {
        font-size: 10px;
    }
}

/* ≤575px: small phones */
@media (max-width: 575.98px) {
    .hero-search .search-box {
        gap: 6px;
        padding: 8px 10px;
    }

    .hero-search .search-box button {
        font-size: 0.6rem;
    }

    .hero-search input[type="text"] {
        padding: 0 12px;
    }
}

@media (min-width: 1377px) {
    .hero-text-anchor {
        align-self: center;
        text-align: center;
        margin-left: 0;
    }
}

/* Mobile: perkecil judul & subjudul pada hero-text-anchor */
@media (max-width: 767.98px) {
    .owl-carousel-light .hero-text-anchor h1 {
        font-size: clamp(24px, 9vw, 30px);
        line-height: 1.15;
        margin-bottom: 0.5rem;
    }

    .owl-carousel-light .hero-text-anchor h3 {
        font-size: clamp(13px, 4.6vw, 16px);
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    /* Bootstrap px-4 di h3 kadang kebesaran di mobile → ringankan */
    .owl-carousel-light .hero-text-anchor .px-4 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* Extra small phones */
@media (max-width: 575.98px) {
    .owl-carousel-light .hero-text-anchor h1 {
        font-size: clamp(22px, 9.5vw, 28px);
    }

    .owl-carousel-light .hero-text-anchor h3 {
        font-size: clamp(12px, 4.2vw, 15px);
    }
}

/* Best Selling – mobile tweaks: kartu besar & ikon wishlist tidak nabrak */
@media (max-width: 767.98px) {
    .addtocart-btn-wrapper {
        display: none;
    }

    .products .product .d-flex .wishlist-btn {
        display: none !important;
    }

    .product .mobile-cta {
        display: flex;
        gap: 8px;
        margin-top: 10px;
    }

    .product .mobile-cta .btn-wish,
    .product .mobile-cta .btn-cart {
        flex: 1 1 0;
        height: 42px;
        border-radius: 999px;
    }

    .product .mobile-cta .btn-wish {
        background: #fff;
        border: 1px solid #e5e7eb;
    }

    .product .mobile-cta .btn-wish i {
        margin-right: 6px;
    }

    .product .mobile-cta .btn-cart {
        background: linear-gradient(90deg, #ff2d85, #d0006f);
        color: #fff;
        border: 0;
    }

    #best-selling .product {
        position: relative;
    }

    #best-selling .product .d-flex {
        display: block !important;
    }

    /* jangan satu baris */
    #best-selling .product .d-flex > .wishlist-btn {
        position: absolute;
        right: 8px;
        top: 8px;
        z-index: 2;
    }

    #best-selling .product .mobile-cta .wishlist-btn {
        position: static !important;
    }

    #best-selling .product .product-thumb-info {
        overflow: visible;
    }

    /* Font lebih besar & rapi untuk kartu */
    #best-selling .products .text-0 {
        font-size: 0.78rem !important;
        letter-spacing: 0.02em;
    }

    #best-selling .products .product h3 {
        font-size: 1.02rem;
        line-height: 1.28;
        margin-bottom: 0.3rem;
    }

    #best-selling .products .price {
        font-size: 0.96rem !important;
        line-height: 1.25;
    }

    #best-selling .product .d-flex > div {
        padding-right: 28px;
    }
}

/* Desktop/Tablet – kembalikan posisi default ikon (ikut layout d-flex) */
@media (min-width: 768px) {
    #best-selling .product .wishlist-btn {
        position: static;
    }
}

.addtocart-btn-wrapper {
    margin-left: -20%;
}

@media (max-width: 767.98px) {
    .addtocart-btn-wrapper {
        display: none;
    }

    .products .product .d-flex .wishlist-btn {
        display: none !important;
    }

    .product .mobile-cta {
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }

    .product .mobile-cta .btn-wish,
    .product .mobile-cta .btn-cart {
        flex: 1 1 0;
        height: 42px;
        border-radius: 999px;
    }

    .product .mobile-cta .btn-wish {
        background: #fff;
        border: 1px solid #e5e7eb;
    }

    .product .mobile-cta .btn-wish i {
        margin-right: 6px;
    }

    .product .mobile-cta .btn-cart {
        background: linear-gradient(90deg, #ff2d85, #d0006f);
        color: #fff;
        border: 0;
    }
}

@media (min-width: 768px) {
    .product .mobile-cta {
        display: none;
    }
}

/* Mobile: tampilkan gambar utuh, tidak di-crop */
@media (max-width: 767.98px) {
    .owl-carousel-light .owl-stage .owl-item {
        /* background-size: contain !important; */
        /* background-repeat: no-repeat !important; */
        background-position: 75% 20% !important;
        /* boleh digeser: center top, 50% 20%, dll */
    }
    .quick-view {
        display: none !important;
    }
}
