.pb-wrapper, .pb-wrapper *, .pb-wrapper *::before, .pb-wrapper *::after {
    box-sizing: border-box;
}
.pb-wrapper {
    font-family: var(--udp-font-body, 'Inter', sans-serif);
    color: var(--udp-steel, #3D4247);
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
}

/* ---- Banner Utama ---- */
.pb-banners {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
    min-width: 0;
}
.pb-banners.pb-banners-double { grid-template-columns: 1fr 1fr; }
.pb-banners.pb-banners-single { grid-template-columns: 1fr; }

.pb-banner-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    min-height: 220px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.pb-banner-media {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--udp-alloy, #EDEBE6);
    transition: transform 0.4s ease;
}
.pb-banner-card:hover .pb-banner-media {
    transform: scale(1.04);
}
.pb-banner-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(20,23,26,0.75) 0%, rgba(20,23,26,0.15) 65%, rgba(20,23,26,0) 100%);
}
.pb-banner-body {
    position: relative;
    z-index: 1;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 70%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}
.pb-banner-eyebrow {
    font-family: var(--udp-font-display, 'Oswald', sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--udp-rust, #D6242A);
    margin-bottom: 8px;
}
.pb-banner-title {
    font-family: var(--udp-font-display, 'Oswald', sans-serif);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
}
.pb-banner-cta {
    display: inline-block;
    font-family: var(--udp-font-display, 'Oswald', sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid var(--udp-rust, #D6242A);
    padding-bottom: 2px;
    width: fit-content;
}

/* ---- Header item promo ---- */
.pb-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.pb-items-title {
    font-family: var(--udp-font-display, 'Oswald', sans-serif);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--udp-ink, #14171A);
}
.pb-arrows { display: flex; gap: 8px; }
.pb-arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid #DCD8D0;
    background: #fff;
    color: var(--udp-steel, #3D4247);
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pb-arrow:hover {
    background: var(--udp-rust, #D6242A);
    border-color: var(--udp-rust, #D6242A);
    color: #fff;
}

/* ---- Track kartu promo (geser kiri-kanan) ---- */
.pb-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pb-track::-webkit-scrollbar { display: none; }

.pb-item-card {
    flex: 0 0 calc(25% - 12px);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #DCD8D0;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pb-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(20,23,26,0.14);
}

.pb-item-thumb {
    aspect-ratio: 4 / 3;
    background: var(--udp-alloy, #EDEBE6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pb-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.pb-item-card:hover .pb-item-thumb img {
    transform: scale(1.08);
}

.pb-item-body { padding: 14px; }
.pb-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--udp-ink, #14171A);
    margin-bottom: 8px;
    line-height: 1.4;
}
.pb-item-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.pb-item-old-price {
    font-size: 12px;
    color: #8A9096;
    text-decoration: line-through;
}
.pb-item-price {
    font-family: var(--udp-font-display, 'Oswald', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--udp-rust, #D6242A);
}
.pb-item-valid {
    font-size: 11px;
    color: #8A9096;
}

.pb-admin-notice {
    padding: 16px;
    background: #FFF3CD;
    border: 1px solid #E0A800;
    color: #5A4400;
    border-radius: 3px;
    font-size: 13px;
}

@media (max-width: 860px) {
    /* Jarak kiri-kanan di mobile supaya banner & carousel tidak mepet ke tepi
       layar. Diberi di sini (dalam modul sendiri), bukan di CSS template,
       supaya modul ini tetap konsisten dan aman dipasang di posisi mana pun. */
    .pb-wrapper { padding: 0 16px; }
    .pb-banners.pb-banners-double { grid-template-columns: 1fr; }
    .pb-item-card { flex: 0 0 60%; }
    .pb-banner-body { max-width: 85%; padding: 20px; }
    .pb-banner-title { font-size: 20px; }
}
@media (max-width: 480px) {
    .pb-item-card { flex: 0 0 74%; }
}
