.hikmat-pv-gallery,
.hikmat-pv-selector,
.hikmat-pv-compact-selector,
.hikmat-pv-cart-form {
    box-sizing: border-box;
}

.hikmat-pv-gallery *,
.hikmat-pv-selector *,
.hikmat-pv-compact-selector *,
.hikmat-pv-cart-form * {
    box-sizing: border-box;
}

.hikmat-pv-gallery {
    position: relative;
    width: 100%;
}

.hikmat-pv-gallery-viewport {
    width: 100%;
}

.hikmat-pv-gallery-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hikmat-pv-gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    background: #f6f6f6;
}

.hikmat-pv-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.hikmat-pv-gallery-counter {
    display: none;
}

.hikmat-pv-zoom-panel {
    position: fixed;
    z-index: 2147482500;
    top: 50%;
    left: calc(50% + 20px);
    width: min(46vw, 720px, calc(100vh - 120px));
    height: auto;
    aspect-ratio: 1 / 1;
    transform: translateY(-50%);
    overflow: hidden;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
}

.hikmat-pv-zoom-panel.is-active {
    visibility: visible;
    opacity: 1;
}

.hikmat-pv-viewer {
    display: none;
}

.hikmat-pv-selector {
    width: 100%;
}

/* Compact Color/Size selectors used in shortcode-based Single Product layouts. */
.hikmat-pv-compact-selector {
    width: 100%;
}

.hikmat-pv-compact-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    justify-content: center;
}

.hikmat-pv-compact-color .hikmat-pv-compact-trigger, .hikmat-pv-compact-size .hikmat-pv-compact-trigger {
    display: flex;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.hikmat-pv-compact-label {
    flex: 0 0 auto;
}

.hikmat-pv-compact-color-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 20px;
}

.hikmat-pv-compact-swatch {
    display: inline-block;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: width .16s ease, height .16s ease;
}

.hikmat-pv-compact-swatch.is-current {
    width: 18px;
    height: 18px;
}

.hikmat-pv-compact-swatch svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hikmat-pv-compact-swatch circle {
    stroke: none;
}

.hikmat-pv-compact-swatch.is-white circle {
    stroke: #cfcfcf;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.hikmat-pv-compact-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12px;
    font-size: 13px;
    line-height: 1;
}

.hikmat-pv-compact-value {
    min-width: 0;
}

.hikmat-pv-selector-label {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.hikmat-pv-selector-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #d9d9d9;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.hikmat-pv-selector-chevron {
    flex: 0 0 auto;
    margin-left: 16px;
}

.hikmat-pv-sheet {
    position: fixed !important;
    z-index: 2147483000 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden;
    pointer-events: none;
    isolation: isolate;
}

.hikmat-pv-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
}

.hikmat-pv-sheet-backdrop {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0,0,0,.38);
    opacity: 0;
    transition: opacity .22s ease;
}

.hikmat-pv-sheet.is-open .hikmat-pv-sheet-backdrop {
    opacity: 1;
}

.hikmat-pv-sheet-panel {
    z-index: 2;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(82vh, 760px);
    padding: 10px 20px 28px;
    overflow-y: auto;
    border-radius: 18px 18px 0 0;
    background: #fff;
    transform: translateY(102%);
    transition: transform .24s ease;
}

.hikmat-pv-sheet.is-open .hikmat-pv-sheet-panel {
    transform: translateY(0);
}

.hikmat-pv-sheet-handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #d4d4d4;
}

.hikmat-pv-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.hikmat-pv-sheet-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.hikmat-pv-color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hikmat-pv-color-option {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.hikmat-pv-color-option img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 7px;
    object-fit: cover;
    background: #f4f4f4;
}

.hikmat-pv-color-option-label,
.hikmat-pv-color-option-availability {
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.hikmat-pv-color-option-label {
    font-weight: 500;
}

.hikmat-pv-color-option-availability {
    margin-top: 2px;
    color: #777;
    font-size: 11px;
}

.hikmat-pv-color-option-availability.is-soldout {
    color: #777;
}

.hikmat-pv-color-option.is-selected .hikmat-pv-color-option-label {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hikmat-pv-color-option.is-soldout img {
    opacity: .68;
}

.hikmat-pv-size-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.hikmat-pv-size-item {
    width: 100%;
    min-width: 0;
}

.hikmat-pv-size-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    width: 100%;
    min-height: 48px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #ededed;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.hikmat-pv-size-option-label {
    min-width: 0;
    justify-self: start;
}

.hikmat-pv-size-option-status {
    min-width: 0;
    justify-self: end;
    color: #777;
    font-size: 11px;
    white-space: nowrap;
}

.hikmat-pv-size-option.is-soldout {
    color: #888;
    cursor: not-allowed;
}

.hikmat-pv-size-option.is-selected {
    color: #111;
    font-weight: 600;
}

.hikmat-pv-size-option.is-selected .hikmat-pv-size-option-label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

html.hikmat-pv-overlay-open,
body.hikmat-pv-overlay-open,
body.hikmat-pv-sheet-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.hikmat-pv-cart-warning {
    margin: 0 0 8px;
    color: #d63638;
    font-size: 12px;
    line-height: 1.4;
}

.hikmat-pv-cart-warning[hidden] {
    display: none;
}

.hikmat-pv-add-to-cart {
    width: 100%;
}

.hikmat-pv-add-to-cart:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.hikmat-pv-cart-message {
    min-height: 1px;
    margin-top: 8px;
    font-size: 12px;
}

.hikmat-pv-product-gallery-list,
.hikmat-pv-color-gallery-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
}

.hikmat-pv-product-gallery-list img,
.hikmat-pv-color-gallery-list img,
.hikmat-pv-product-image,
.hikmat-pv-color-image {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    /*
     * Mobile/Tablet gallery:
     * mengikuti aspect ratio seperti gallery lama agar tinggi section mengikuti
     * tinggi gambar dan element setelah gallery langsung berada di bawahnya.
     * Swipe horizontal tetap dipertahankan.
     */
    .hikmat-pv-gallery {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-bottom: 0 !important;
        overflow: hidden;
    }

    .hikmat-pv-gallery-viewport {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden;
        touch-action: pan-y;
    }

    .hikmat-pv-gallery-track {
        display: flex;
        flex-direction: row;
        gap: 0;
        height: auto !important;
        will-change: transform;
        transition: transform .28s ease;
    }

    .hikmat-pv-gallery-track.is-no-transition {
        transition: none;
    }

    .hikmat-pv-gallery-item {
        position: relative;
        flex: 0 0 100%;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0;
        overflow: hidden;
    }

    .hikmat-pv-gallery-image {
        position: relative !important;
        inset: auto !important;
        display: block;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: cover;
        object-position: center center;
    }


    .hikmat-pv-gallery-counter {
        position: absolute;
        z-index: 5;
        right: 12px;
        bottom: 12px;
        display: block;
        padding: 5px 8px;
        border-radius: 999px;
        background: rgba(255,255,255,.82);
        font-size: 11px;
    }

    .hikmat-pv-zoom-panel {
        display: none;
    }

    /*
     * Mobile/Tablet fullscreen viewer.
     * Ported from the legacy functions.php viewer that was already stable on HIKMAT.
     * The viewer itself fills the complete visual viewport; product photos cover the
     * viewport and thumbnails float over the image at the bottom.
     */
    .hikmat-pv-viewer {
        position: fixed !important;
        z-index: 2147483646 !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-width: 100vw !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: none;
        flex-direction: column;
        overflow: hidden !important;
        background: rgba(255,255,255,.98);
        overscroll-behavior: none;
        transform: none !important;
        isolation: isolate;
    }

    .hikmat-pv-viewer.is-open {
        display: flex !important;
    }

    .hikmat-pv-viewer-top {
        position: relative;
        flex: 1 1 auto;
        width: 100%;
        min-height: 100vh;
        height: 100vh;
        min-height: 100dvh;
        height: 100dvh;
        overflow: hidden;
    }

    .hikmat-pv-viewer-stage,
    .hikmat-pv-viewer-track {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hikmat-pv-viewer-stage {
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
    }

    .hikmat-pv-viewer-slide {
        position: absolute;
        z-index: 1;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: translateX(100%);
        transition: transform .35s ease;
        pointer-events: none;
        overflow: hidden;
    }

    .hikmat-pv-viewer-slide.is-active {
        z-index: 2;
        transform: translateX(0);
        pointer-events: auto;
    }

    .hikmat-pv-viewer-image,
    .hikmat-pv-viewer-next-image {
        display: block;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center 25%;
        transform: translate3d(0,0,0) scale(1);
        transform-origin: center center;
        will-change: transform;
        user-select: none;
        -webkit-user-select: none;
        -webkit-user-drag: none;
    }

    .hikmat-pv-viewer-close {
        position: fixed !important;
        z-index: 2147483647 !important;
        top: max(16px, env(safe-area-inset-top));
        right: max(16px, env(safe-area-inset-right));
        display: block;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        color: #111;
        font-size: 42px;
        font-weight: 200;
        line-height: 1;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    /* Counter is intentionally hidden to match the previously proven mobile viewer. */
    .hikmat-pv-viewer-counter {
        display: none !important;
    }

    .hikmat-pv-viewer-thumbnails {
        position: absolute;
        z-index: 5;
        right: 16px;
        bottom: calc(5px + env(safe-area-inset-bottom));
        left: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hikmat-pv-viewer-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .hikmat-pv-viewer-thumb {
        flex: 0 0 auto;
        width: 76px;
        height: 96px;
        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 0;
        background: #fff;
        opacity: 1;
        cursor: pointer;
    }

    .hikmat-pv-viewer-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    .hikmat-pv-viewer-thumb:hover,
    .hikmat-pv-viewer-thumb.is-active {
        border-color: #111;
        opacity: 1;
    }

    .hikmat-pv-color-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* Tablet gallery ratio */
@media (min-width: 768px) and (max-width: 1024px) {
    .hikmat-pv-gallery-item {
        aspect-ratio: 4 / 5 !important;
    }

    .hikmat-pv-gallery-image {
        aspect-ratio: auto !important;
    }
}

/* Mobile gallery ratio */
@media (max-width: 767px) {
    .hikmat-pv-gallery-item {
        aspect-ratio: 3 / 4 !important;
    }

    .hikmat-pv-gallery-image {
        aspect-ratio: auto !important;
    }
}

@media (min-width: 1025px) {
    .hikmat-pv-sheet-panel {
        right: 24px;
        bottom: 24px;
        left: auto;
        width: min(620px, calc(100vw - 48px));
        max-height: calc(100vh - 48px);
        border-radius: 16px;
        transform: translateY(30px);
        opacity: 0;
        transition: transform .2s ease, opacity .2s ease;
    }

    .hikmat-pv-sheet.is-open .hikmat-pv-sheet-panel {
        transform: translateY(0);
        opacity: 1;
    }
}



/*=====================================
=====================================
CUSTOM STYLE
======================================
======================================*/

/*=====================================
SAVE PERCENT
======================================*/
.product_details .hikmat-pv-product-discount-percent {
    padding: 5px 10px;
    font-size: 10px;
    color: #B4901D;
    background-color: #B4901D14;
    
}

.product_details .hikmat-pv-product-collections{
    padding: 5px 10px;
    font-size: 10px;
    color: #000;
    background-color: #f3f3f3;
    text-transform: uppercase;
}

.product_details .hikmat-pv-product-terms-exclusive{
    padding: 5px 10px;
    font-size: 10px;
    color: #a8a01c;
    background-color: #f3f3f3;
    text-transform: uppercase;
}

.product_details .hikmat-pv-product-tags a{
    padding: 5px 10px;
    font-size: 10px;
    color: #fff;
    background-color: #000;
    text-transform: uppercase;
}

.product_details .hikmat-pv-product-name{
    font-size: 30px;
    font-weight: 300;
}

.product_details .hikmat-pv-product-sku, .product_details .hikmat-pv-product-terms-set-product
{
    font-size: 13px;
    color: #a9a9a9;
    font-weight: 300;
}

.product_details .hikmat-pv-strikethrough-price
{
    font-size: 13px;
    color: #999;
}

.product_details .hikmat-pv-product-sale-price
{
    font-size: 16px;
}

/* Tablet + Mobile */
@media (max-width: 1024px)
{

.product_details .hikmat-pv-product-name
{
    font-size: 25px;
    font-weight: 300;
}

    
}





