/* Reset dan Pengaturan Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, Helvetica Neue, Helvetica, sans-serif;
    font-size: 12px;
    -webkit-text-size-adjust: none;
    background: #000000;
    min-width: 320px;
    /* Diubah untuk mendukung layar kecil */
}

a,
a:active,
a:hover,
a:link,
a:visited {
    text-decoration: none;
}

/* Header */
.head {
    width: 100%;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.head-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.head-bar img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.head-bar img:hover {
    transform: scale(1.05);
}

.te {
    display: flex;
    list-style: none;
    gap: 30px;
}

.te li a {
    color: #dadada;
}

.te li {
    position: relative;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.te li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.te li:hover::before {
    width: 80%;
}

.te li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

/* Container */
#container {
    visibility: visible;
    background: #000000;
    padding: 0 15px;
    /* Tambahkan padding untuk mobile */
}

#root.pdp-block {
    width: 100%;
    max-width: 1188px;
    background-color: #000000;
    margin: auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 24px;
    overflow: hidden;
}

/* Module Core */
#module_core {
    color: #ffffff;
}

/* Marquee */
marquee {
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

/* Main Information */
.pdp-block__main-information {
    background: #000000;
    padding-bottom: 16px;
}

/* Gallery */
.pdp-block__gallery {
    width: 338px;
    display: inline-block;
    vertical-align: top;
}

.item-gallery {
    position: relative;
}

.gallery-preview-panel {
    border-bottom: 1px solid #eff0f5;
    box-sizing: border-box;
    margin-bottom: 9px;
    position: relative;
    cursor: zoom-in;
}

.gallery-preview-panel__content {
    position: relative;
    overflow: hidden;
    height: 330px;
    width: 330px;
    text-align: center;
    margin: 8px 0 10px 8px;
}

.gallery-preview-panel__content:after {
    display: inline-block;
    content: "";
    width: 0;
    height: 100%;
    vertical-align: middle;
}

.pdp-mod-common-image {
    text-align: center;
}

.pdp-mod-common-image:before {
    display: inline-block;
    content: "";
    width: 0;
    height: 100%;
    vertical-align: middle;
}

/* ========================================= */
/* CSS EFEK VISUAL (Goyang & Kilau) */
/* ========================================= */
.pdp-mod-common-image {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.pdp-mod-common-image {
    display: block;
    border-radius: 12px;
    animation: goyang 1s ease-in-out 1;
    /* goyang sekali dulu */
}

/* ✨ kilau tipis */
.pdp-mod-common-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes goyang {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px) rotate(-1deg);
    }

    50% {
        transform: translateX(5px) rotate(1deg);
    }

    75% {
        transform: translateX(-3px) rotate(-1deg);
    }

    100% {
        transform: translateX(0) rotate(0);
    }
}

@keyframes shine {
    0% {
        left: -150%;
    }

    60% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}


.gallery-preview-panel__image {
    display: inline-block;
    max-height: 100%;
    max-width: 100%;
    vertical-align: middle;
}

/* Slider */
.next-slick.next-slick-outer.next-slick-horizontal.item-gallery-slider {
    position: relative;
}

.next-slick-inner {
    position: relative;
}

.next-slick-list {
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.next-slick-track {
    position: relative;
    left: 0;
    top: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.next-slick-slide {
    float: left;
    height: 100%;
    min-height: 1px;
    display: none;
}

.item-gallery__thumbnail {
    width: 52px;
    height: 52px;
    box-sizing: border-box;
    cursor: pointer;
}

.item-gallery__thumbnail:not(:last-child) {
    margin-right: 14px;
}

.item-gallery__thumbnail_state_active .item-gallery__image-wrapper,
.item-gallery__thumbnail_state_active {
    border: 1px solid #f57224;
}

.item-gallery__image-wrapper {
    width: 52px;
    height: 52px;
    display: table-cell;
    vertical-align: middle;
    margin: auto;
    box-sizing: border-box;
    border: 1px solid #dadada;
    border-radius: 2px;
    text-align: center;
}

/* Arrows */
.next-slick-arrow {
    position: absolute;
    background-color: #fff;
    border: none;
    outline: none;
    text-align: center;
    z-index: 1;
}

.next-slick-arrow:hover {
    background-color: #f0f0f0;
}

.next-slick-prev {
    top: 0;
    left: 0;
    bottom: 0;
    width: 48px;
}

.next-slick-next {
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
}

.next-slick-arrow.disabled {
    visibility: hidden;
}

.next-icon {
    display: inline-block;
    font-family: "next-icon" !important;
    font-style: normal;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
}

.next-icon-medium {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.next-icon-arrow-left:before {
    content: "←";
}

.next-icon-arrow-right:before {
    content: "→";
}

.next-icon-add:before {
    content: "+";
}

.next-icon-minus:before {
    content: "-";
}

/* Main Information Detail */
.pdp-block__main-information-detail {
    display: inline-block;
    width: calc(80% - 338px);
    vertical-align: top;
}

/* Product Title */
.pdp-product-title {
    margin-top: 13px;
    margin-bottom: 11px;
}

.pdp-mod-product-badge-wrapper {
    margin-top: 4px;
}

.pdp-mod-product-badge-title {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Review Summary */
.pdp-review-summary {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    /* Tambahkan untuk mobile */
}

.container-star {
    display: flex;
    margin-right: 10px;
}

.pdp-review-summary__stars {
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.pdp-stars_size_s .star {
    width: 13.3px;
    height: 13.3px;
}

.star {
    display: inline-block;
}

.pdp-link {
    color: #136cff;
}

.pdp-link_size_s {
    font-size: 12px;
}

.pdp-link_theme_blue {
    color: #136cff;
}

.pdp-review-summary__link {
    display: inline-block;
    vertical-align: middle;
}

/* Product Brand */
.pdp-product-brand {
    display: inline-block;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px solid #eff0f5;
    line-height: 20px;
}

.pdp-product-brand__name {
    color: #9e9e9e;
    font-size: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.pdp-product-brand__divider {
    height: 12px;
    width: 1px;
    background: #9e9e9e;
    margin-left: 7px;
    display: inline-block;
    vertical-align: middle;
}

.pdp-product-brand__brand-link {
    color: #ffbb00;
    text-decoration: none;
    font-weight: bold;
}

/* Product Price */
.pdp-mod-product-price {
    position: relative;
}

.pdp-product-price {
    display: inline-block;
    padding: 16px 0 17px;
}

.pdp-price {
    display: inline-block;
}

.pdp-price_type_normal {
    /* Normal price styling */
}

.pdp-price_color_orange {
    color: #f57224;
}

.pdp-price_size_xl {
    font-size: 30px;
}

.origin-block {
    display: flex;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    /* Tambahkan untuk mobile */
}

.pdp-price_type_deleted {
    text-decoration: line-through;
}

.pdp-price_color_lightgray {
    color: #9e9e9e;
}

.pdp-price_size_xs {
    font-size: 12px;
}

.pdp-product-price__discount {
    background-color: #f57224;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 10px;
}

/* Quantity Selection */
.sku-quantity-selection {
    padding: 8px 0;
}

.pdp-mod-product-info-section {
    padding: 8px 0;
}

.section-title {
    display: inline-block;
    margin: 0;
    width: 92px;
    color: #757575;
    word-wrap: break-word;
    font-size: 14px;
    font-weight: 400;
    vertical-align: top;
}

.section-content {
    display: inline-block;
    width: calc(100% - 92px);
}

.next-number-picker {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 120px;
}

.next-number-picker-inline {
    /* Inline styling */
}

.next-number-picker-handler-wrap {
    display: flex;
    flex-direction: column;
}

.next-number-picker-handler {
    width: 30px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f5f5f5;
}

.next-number-picker-handler-up {
    border-bottom: 1px solid #ddd;
}

.next-number-picker-handler-down-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-number-picker-handler-up-inner,
.next-number-picker-handler-down-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-icon-add:before {
    content: "+";
}

.next-icon-minus:before {
    content: "-";
}

.next-number-picker-input-wrap {
    flex: 1;
}

.next-input {
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    background-color: #fff;
    border: 1px solid #c4c6cf;
    border-radius: 3px;
    transition: all .3s;
    outline: none;
    box-sizing: border-box;
}

.next-input-single {
    width: 100%;
}

.next-input-medium {
    height: 36px;
    padding: 0 12px;
}

.next-number-picker-input input {
    width: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
}

/* Seller Info */
.seller-container {
    background-color: #fafafa;
    font-size: 12px;
    color: #212121;
    margin-top: 10px;
    padding: 13px 16px 10px;
}

.seller-name {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /* Tambahkan untuk mobile */
}

.seller-name__wrapper {
    flex: 1;
    min-width: 200px;
    /* Tambahkan untuk mobile */
}

.seller-name__title {
    color: #757575;
    font-size: 12px;
    margin-bottom: 4px;
}

.seller-name__detail {
    font-size: 16px;
}

.seller-name__detail-name {
    margin-right: 14px;
}

.pdp-link_size_l {
    font-size: 16px;
}

.pdp-link_theme_black {
    color: #212121;
}

.pdp-link_theme_black:active,
.pdp-link_theme_black:focus,
.pdp-link_theme_black:hover,
.pdp-link_theme_black:visited {
    color: #424242;
    text-decoration: none;
}

.center-bank {
    text-align: center;
    color: #fff;
    font-weight: 700;
    margin-left: -5px;
    margin-bottom: 12px
}

.aladincash-bank {
    display: inline-block;
    background-color: #ffffff;
    padding: 3px 10px 5px 10px;
    width: 45%;
    margin: 5px 0 0 0;
    text-align: left;
}

.aladincash-bank {
    border-bottom-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 0;
    height: 32px;
    width: 45%;
    margin-left: 7px;
    border: groove 3px;
    display: inline-block;
    vertical-align: middle
}

.aladincash-bank img:first-child {
    width: 65px;
    display: inline-block;
    vertical-align: middle;
    margin-left: auto;
    margin-right: 2px;
    margin-top: 6px;
    margin-bottom: auto
}

.aladincash-bank img:last-child {
    width: 70px;
    display: inline-block;
    vertical-align: middle;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4px
}

/* ===== Toggle Button (pojok kiri bawah) ===== */
.alcash-toggle-btn {
    position: fixed;
    left: 4px;
    bottom: 87px;
    background: linear-gradient(to bottom, #000000 0%, #000000 80%);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #202020;
    z-index: 10000;
    transition: all 0.3s ease;
}

.alcash-toggle-btn:hover {
    background: #202020;
}

/* ===== Sidebar Panel ===== */
.aladincash-social {
    position: fixed;
    left: -320px;
    bottom: 87px;
    width: 294px;
    background: linear-gradient(to bottom, #000000 0%, #000000 80%);
    box-shadow: 4px 0 20px #202020;
    z-index: 9999;
    transition: left 0.4s ease;
    padding: 6px;
    border-radius: 0 20px 20px 0;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: inset 0 0 0 1px #292929, inset 0 2px 0 0 #242424, inset 0 4px 4px 2px #202020, 3px 3px 3px 1px #202020;
}

.aladincash-social.aladincash-open {
    left: 0;
}

/* ===== Header Sidebar ===== */
.aladincash-social h3 {
    color: aquamarine !important;
    font-size: 20px;
    margin-bottom: 4px;
}

.aladincash-social p {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== Menu List ===== */
.aladincash-social ul {
    list-style: none;
}

.aladincash-social ul li {
    margin-bottom: 14px;
}

.aladincash-social ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 10px 14px;
    background: rgb(46, 46, 46);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.aladincash-social ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.aladincash-info {
    flex: 1;
    margin-left: 10px;
}

.aladincash-info span {
    color: aquamarine;
    font-weight: 500;
    font-size: 14px;
    display: block;
}

.aladincash-info small {
    color: #ffffff;
    font-size: 12px;
}

/* Gambar ikon */
.aladincash-social ul li img {
    width: 50px;
    height: 50px;
    border-radius: 7px;
}

/* ===== Footer Close Button ===== */
.aladincash-close-btn {
    display: block;
    position: unset !important;
    margin: 20px auto 0;
    padding: 8px 16px;
    border: 2px solid #4e4e4e;
    border-radius: 20px;
    font-size: 14px;
    color: #ffffff !important;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
}

@media (max-width: 400px) {
    .alcash-toggle-btn {
        position: fixed;
        left: 1px;
        bottom: 87px;
        background: linear-gradient(to bottom, #ff8500 0%, #ff4700 80%);
        color: #fff;
        padding: 3px 7px;
        border-radius: 30px;
        cursor: pointer;
        font-size: 16px;
        text-transform: uppercase;
        border: 2px solid gold;
        z-index: 10000;
        transition: all 0.3s ease;
    }
}

.aladincash-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .head-bar {
        padding: 12px 15px;
    }

    .head-bar img {
        height: 40px;
    }

    .te {
        gap: 20px;
    }

    .te li {
        padding: 6px 12px;
        font-size: 14px;
    }

    #root.pdp-block {
        padding: 0 10px;
    }

    .pdp-block__gallery {
        width: 300px;
    }

    .gallery-preview-panel__content {
        height: 300px;
        width: 300px;
    }

    .pdp-block__main-information-detail {
        width: calc(80% - 300px);
    }

    .pdp-mod-product-badge-title {
        font-size: 20px;
    }

    .pdp-price_size_xl {
        font-size: 26px;
    }

    .add-to-cart-buy-now-btn {
        width: 200px;
        padding: 0 40px;
    }

    .pdp-button_size_xl {
        font-size: 15px;
        height: 40px;
    }
}

/* Mobile: 480px - 768px */
@media (max-width: 768px) {
    body {
        min-width: 320px;
    }

    .head-bar {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .head-bar img {
        margin-bottom: 10px;
        height: 35px;
    }

    .te {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .te li {
        padding: 5px 10px;
        font-size: 12px;
    }

    #container {
        padding: 0 10px;
    }

    #root.pdp-block {
        padding-bottom: 15px;
    }

    .pdp-block__main-information {
        display: flex;
        flex-direction: column;
    }

    .pdp-block__gallery {
        width: 100%;
        margin-bottom: 20px;
    }

    .gallery-preview-panel__content {
        height: 250px;
        width: 100%;
        margin: 0;
    }

    .pdp-block__main-information-detail {
        width: 100%;
    }

    .pdp-mod-product-badge-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .pdp-review-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .container-star {
        margin-right: 0;
    }

    .add-to-cart-buy-now-btn {
        width: 100%;
        margin-right: 0;
        padding: 0 20px;
    }

    .pdp-button_size_xl {
        font-size: 14px;
        height: 40px;
        padding: 0 30px;
    }

    .pdp-price_size_xl {
        font-size: 24px;
    }

    .origin-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .next-number-picker {
        width: 100px;
    }

    .section-title {
        width: 80px;
        font-size: 12px;
    }

    .section-content {
        width: calc(100% - 80px);
    }

    .seller-name {
        flex-direction: column;
        align-items: flex-start;
    }

    .seller-name__wrapper {
        width: 100%;
        min-width: auto;
    }
}

/* Small Mobile: 320px - 480px */
@media (max-width: 480px) {
    .head-bar {
        padding: 10px;
    }

    .head-bar img {
        height: 30px;
    }

    .te {
        gap: 8px;
    }

    .te li {
        padding: 4px 8px;
        font-size: 11px;
    }

    #container {
        padding: 0 5px;
    }

    .gallery-preview-panel__content {
        height: 200px;
    }

    .pdp-mod-product-badge-title {
        font-size: 16px;
    }

    .pdp-price_size_xl {
        font-size: 20px;
    }

    .pdp-button_size_xl {
        font-size: 13px;
        height: 36px;
        padding: 0 20px;
    }

    .next-number-picker {
        width: 90px;
    }

    .next-number-picker-handler {
        width: 25px;
    }

    .next-input-medium {
        height: 32px;
        padding: 0 8px;
    }

    .section-title {
        width: 70px;
        font-size: 11px;
    }

    .section-content {
        width: calc(100% - 70px);
    }

    .seller-container {
        padding: 10px;
    }

    .seller-name__detail {
        font-size: 14px;
    }

    .pdp-link_size_l {
        font-size: 14px;
    }
}

/* Extra Small Mobile: below 320px */
@media (max-width: 320px) {
    .head-bar img {
        height: 25px;
    }

    .te li {
        padding: 3px 6px;
        font-size: 10px;
    }

    .pdp-mod-product-badge-title {
        font-size: 14px;
    }

    .pdp-price_size_xl {
        font-size: 18px;
    }

    .pdp-button_size_xl {
        font-size: 12px;
        height: 32px;
        padding: 0 15px;
    }

    .next-number-picker {
        width: 80px;
    }

    .section-title {
        width: 60px;
        font-size: 10px;
    }

    .section-content {
        width: calc(100% - 60px);
    }
}