/*
 * 08 Toko Online Pastitop - Frontend CSS
 * Distribution filename: 08-toko-online-pastitop-frontend-v1.0.20.css
 * Server target: wp-content/mu-plugins/assets/08-toko-online-pastitop-frontend.css
 *
 * Concept:
 * - Mobile Commerce Profile Shell (Full-Width Edge-to-Edge Enabled)
 * - Vertical Spacing Collapse Patch (Zero Header Gap)
 * - Clean Product WhatsApp Icon (Wrapper Box Removed)
 * - Split Image Policy: adaptive hero + square 1:1 product/gallery
 * - Hybrid Auto-Flow Product Grid
 * - Pastitop Lightbox Shell
 * - Hybrid Minimal WhatsApp CTA
 * - External Link Smart Button
 *
 * Scope:
 * - Storefront route /toko/
 * - Pastitop-safe namespace: .pt-toko-*
 */

/* =========================================================
 * 0. Base / Safety
 * ======================================================= */

.pt-toko-storefront-main,
.pt-toko-storefront-page,
.pt-toko-wrap,
.pt-toko-wrap *,
.pt-toko-wrap *::before,
.pt-toko-wrap *::after,
.pt-toko-lightbox,
.pt-toko-lightbox *,
.pt-toko-mobile-wa-cta,
.pt-toko-mobile-wa-cta * {
    box-sizing: border-box;
}

.pt-toko-wrap img {
    max-width: 100%;
    height: auto;
}

.pt-toko-wrap button,
.pt-toko-wrap a,
.pt-toko-mobile-wa-cta {
    font-family: inherit;
}

.pt-toko-storefront-main {
    width: 100%;
}

.pt-toko-storefront-page {
    width: min(100% - 28px, 900px);
    margin: 24px auto 52px;
}

.pt-toko-wrap {
    --pt-toko-shell-radius: 24px;
    --pt-toko-hero-radius: 18px;
    --pt-toko-card-radius: 14px;
    --pt-toko-image-radius: 12px;
    --pt-toko-action-radius: 14px;
    --pt-toko-shadow-soft: 0 14px 38px rgba(73, 0, 73, 0.08);
    --pt-toko-shadow-card: 0 10px 24px rgba(73, 0, 73, 0.07);
    --pt-toko-primary: var(--ast-global-color-0, #ff5289);
    --pt-toko-dark: var(--ast-global-color-2, #490049);
    --pt-toko-text: var(--ast-global-color-3, #766776);
    --pt-toko-surface: var(--ast-global-color-4, #ffffff);
    --pt-toko-soft: var(--ast-global-color-5, #fbf6fa);

    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 14px;
    border: 1px solid rgba(73, 0, 73, 0.075);
    border-radius: var(--pt-toko-shell-radius);
    background:
        radial-gradient(circle at top left, rgba(255, 82, 137, 0.10), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 250, 0.78));
    color: var(--pt-toko-text);
    box-shadow: var(--pt-toko-shadow-soft);
}

/* Flatten previous two-column wrappers so the storefront behaves like an app shell. */
.pt-toko-left-card,
.pt-toko-right-card {
    display: contents;
}

/* =========================================================
 * 1. Owner / Profile Header
 * ======================================================= */

.pt-toko-owner-head {
    order: 10;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 14px;
    border: 1px solid rgba(73, 0, 73, 0.075);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 22px rgba(73, 0, 73, 0.055);
}

.pt-toko-owner-avatar,
.pt-toko-owner-head .avatar {
    display: block;
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--pt-toko-soft);
    box-shadow:
        inset 0 0 0 1px rgba(73, 0, 73, 0.08),
        0 8px 18px rgba(73, 0, 73, 0.10) !important;
}

.pt-toko-owner-head h1 {
    margin: 0 0 4px;
    color: var(--pt-toko-dark);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.pt-toko-owner-head p {
    margin: 0;
    color: var(--pt-toko-text);
    font-size: 0.94rem;
    line-height: 1.35;
    font-weight: 800;
}

/* =========================================================
 * 2. Store Info List
 * ======================================================= */

.pt-toko-info-list {
    order: 15;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 720px);
    margin: 0 auto;
}

.pt-toko-info-list:empty {
    display: none;
}

.pt-toko-info-list > * {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(73, 0, 73, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--pt-toko-text);
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 700;
}

.pt-toko-info-list strong {
    display: block;
    margin: 0;
    color: rgba(73, 0, 73, 0.62);
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pt-toko-info-list span {
    display: block;
    min-width: 0;
    color: var(--pt-toko-text);
    font-size: 0.94rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================================================
 * 3. Hero Area
 * ======================================================= */

.pt-toko-hero {
    order: 20;
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(73, 0, 73, 0.075);
    border-radius: calc(var(--pt-toko-hero-radius) + 6px);
    background:
        linear-gradient(135deg, rgba(255, 82, 137, 0.08), rgba(74, 2, 144, 0.045)),
        var(--pt-toko-soft);
    box-shadow: 0 14px 36px rgba(73, 0, 73, 0.08);
    overflow: hidden;
}

.pt-toko-hero-frame {
    display: block;
    width: 100%;
    max-height: 520px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--pt-toko-hero-radius);
    background: rgba(255, 255, 255, 0.72);
}

.pt-toko-hero-img,
.pt-toko-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    border-radius: var(--pt-toko-hero-radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none !important;
    cursor: zoom-in;
    transition:
        transform 220ms ease,
        filter 220ms ease;
}

.pt-toko-hero:hover .pt-toko-hero-img,
.pt-toko-hero:hover img {
    transform: scale(1.01);
    filter: saturate(1.04);
}

.pt-toko-hero-img[role="button"]:focus-visible,
.pt-toko-hero img[role="button"]:focus-visible {
    outline: 3px solid rgba(255, 82, 137, 0.38);
    outline-offset: 3px;
}


/* =========================================================
 * 4. Promo Gallery Dock
 * ======================================================= */

.pt-toko-promo-grid {
    order: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 9px;
    border: 1px solid rgba(73, 0, 73, 0.075);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow:
        0 10px 24px rgba(73, 0, 73, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pt-toko-promo-grid img {
    flex: 0 0 76px;
    display: block;
    width: 76px !important;
    height: 76px !important;
    min-width: 76px;
    max-width: none !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    scroll-snap-align: start;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--pt-toko-soft);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.09) !important;
    cursor: pointer;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

.pt-toko-promo-grid img:hover,
.pt-toko-promo-grid img.is-active,
.pt-toko-promo-grid img:focus-visible {
    transform: translateY(-2px);
    border-color: var(--pt-toko-primary);
    background: #ffffff;
    filter: saturate(1.05);
    box-shadow:
        0 11px 22px rgba(73, 0, 73, 0.13),
        0 0 0 4px rgba(255, 82, 137, 0.09) !important;
    outline: none;
}

/* =========================================================
 * 5. Action Buttons / External Link Smart Buttons
 * ======================================================= */

.pt-toko-actions {
    order: 40;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    width: min(100%, 720px);
    margin: 0 auto;
}

.pt-toko-action,
.pt-toko-actions a,
.pt-toko-actions button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(73, 0, 73, 0.08);
    border-radius: var(--pt-toko-action-radius);
    background: rgba(255, 255, 255, 0.78);
    color: var(--pt-toko-dark) !important;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 900;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(73, 0, 73, 0.06);
    cursor: pointer;
    overflow: hidden;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease;
}

.pt-toko-action::before,
.pt-toko-actions a::before,
.pt-toko-actions button::before {
    content: attr(data-pt-action-icon);
    display: inline-grid;
    place-items: center;
    min-width: 1.15em;
    font-weight: 950;
    line-height: 1;
}

.pt-toko-action:hover,
.pt-toko-action:focus-visible,
.pt-toko-actions a:hover,
.pt-toko-actions button:hover,
.pt-toko-actions a:focus-visible,
.pt-toko-actions button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 82, 137, 0.24);
    background: #ffffff;
    color: var(--pt-toko-dark) !important;
    box-shadow: 12px 24px rgba(73, 0, 73, 0.10);
    outline: none;
}

.pt-toko-action-whatsapp,
.pt-toko-actions a[href*="wa.me"],
.pt-toko-actions a[href*="whatsapp"] {
    border-color: rgba(22, 163, 74, 0.18);
    background: #16a34a;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.20);
}

.pt-toko-action-whatsapp:hover,
.pt-toko-actions a[href*="wa.me"]:hover,
.pt-toko-actions a[href*="whatsapp"]:hover {
    background: #15803d;
    color: #ffffff !important;
}

.pt-toko-action--maps {
    border-color: rgba(37, 99, 235, 0.18) !important;
    background: rgba(37, 99, 235, 0.08) !important;
    color: #1d4ed8 !important;
}

.pt-toko-action--shopee {
    border-color: rgba(238, 77, 45, 0.22) !important;
    background: rgba(238, 77, 45, 0.09) !important;
    color: #c2410c !important;
}

.pt-toko-action--tokopedia {
    border-color: rgba(3, 166, 80, 0.22) !important;
    background: rgba(3, 166, 80, 0.09) !important;
    color: #047857 !important;
}

.pt-toko-action--lazada {
    border-color: rgba(26, 37, 150, 0.18) !important;
    background: rgba(26, 37, 150, 0.08) !important;
    color: #3730a3 !important;
}

.pt-toko-action--blibli {
    border-color: rgba(0, 174, 239, 0.20) !important;
    background: rgba(0, 174, 239, 0.09) !important;
    color: #0369a1 !important;
}

.pt-toko-action--bukalapak {
    border-color: rgba(229, 0, 83, 0.20) !important;
    background: rgba(229, 0, 83, 0.08) !important;
    color: #be185d !important;
}

.pt-toko-action--tiktok {
    border-color: rgba(15, 23, 42, 0.16) !important;
    background: rgba(15, 23, 42, 0.08) !important;
    color: #111827 !important;
}

.pt-toko-action--instagram {
    border-color: rgba(219, 39, 119, 0.20) !important;
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.10), rgba(124, 58, 237, 0.08)) !important;
    color: #be185d !important;
}

.pt-toko-action--facebook {
    border-color: rgba(24, 119, 242, 0.20) !important;
    background: rgba(24, 119, 242, 0.09) !important;
    color: #1d4ed8 !important;
}

.pt-toko-action--external {
    border-color: rgba(73, 0, 73, 0.10) !important;
}

/* =========================================================
 * 6. Optional Store Description / Tentang
 * ======================================================= */

.pt-toko-description,
.pt-toko-store-description,
.pt-toko-about,
.pt-toko-company-profile {
    order: 50;
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(73, 0, 73, 0.075);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--pt-toko-text);
    box-shadow: 0 10px 26px rgba(73, 0, 73, 0.055);
}

.pt-toko-description h2,
.pt-toko-store-description h2,
.pt-toko-about h2,
.pt-toko-company-profile h2,
.pt-toko-about-title {
    margin: 0 0 10px;
    color: var(--pt-toko-dark);
    font-size: 1.12rem;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.pt-toko-description p,
.pt-toko-store-description p,
.pt-toko-about p,
.pt-toko-company-profile p {
    margin-bottom: 0.75em;
    font-size: 0.96rem;
    line-height: 1.72;
    font-weight: 600;
}

.pt-toko-description > *:last-child,
.pt-toko-store-description > *:last-child,
.pt-toko-about > *:last-child,
.pt-toko-company-profile > *:last-child {
    margin-bottom: 0;
}

.pt-toko-about.is-collapsible .pt-toko-about-content,
.pt-toko-description.is-collapsible .pt-toko-about-content,
.pt-toko-store-description.is-collapsible .pt-toko-about-content,
.pt-toko-company-profile.is-collapsible .pt-toko-about-content {
    position: relative;
    max-height: 6.9em;
    overflow: hidden;
    transition: max-height 240ms ease;
}

.pt-toko-about.is-collapsible:not(.is-expanded) .pt-toko-about-content::after,
.pt-toko-description.is-collapsible:not(.is-expanded) .pt-toko-about-content::after,
.pt-toko-store-description.is-collapsible:not(.is-expanded) .pt-toko-about-content::after,
.pt-toko-company-profile.is-collapsible:not(.is-expanded) .pt-toko-about-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.4em;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.96));
}

.pt-toko-about.is-expanded .pt-toko-about-content,
.pt-toko-description.is-expanded .pt-toko-about-content,
.pt-toko-store-description.is-expanded .pt-toko-about-content,
.pt-toko-company-profile.is-expanded .pt-toko-about-content {
    max-height: 1200px;
}

.pt-toko-about-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 82, 137, 0.16);
    border-radius: 999px;
    background: rgba(255, 82, 137, 0.08);
    color: var(--pt-toko-primary);
    font-size: 0.86rem;
    line-height: 1.2;
    font-weight: 900;
    cursor: pointer;
}

/* =========================================================
 * 7. Product Grid / Hybrid Auto-Flow
 * ======================================================= */

.pt-toko-products {
    order: 60;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    align-items: stretch;
    align-content: start;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.pt-toko-products-title {
    order: 58;
    width: 100%;
    margin: 0;
    color: var(--pt-toko-dark);
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pt-toko-products-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 22px;
    border: 1px dashed rgba(73, 0, 73, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--pt-toko-text);
    font-weight: 900;
    text-align: center;
}

.pt-toko-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    padding: 9px;
    border: 1px solid rgba(73, 0, 73, 0.08);
    border-radius: var(--pt-toko-card-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 246, 250, 0.78));
    color: inherit;
    text-align: left;
    box-shadow: var(--pt-toko-shadow-card);
    cursor: pointer;
    overflow: hidden;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.pt-toko-product-card:hover,
.pt-toko-product-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 82, 137, 0.30);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(73, 0, 73, 0.12);
    outline: none;
}

.pt-toko-product-card.is-active {
    transform: scale(0.985);
    border-color: var(--pt-toko-primary);
    background: #ffffff;
    box-shadow:
        0 14px 34px rgba(73, 0, 73, 0.12),
        0 0 0 4px rgba(255, 82, 137, 0.10);
}

.pt-toko-product-card.is-active::after {
    content: "✓";
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--pt-toko-primary);
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
    box-shadow: 0 6px 14px rgba(73, 0, 73, 0.22);
}

.pt-toko-product-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 0 9px;
    border-radius: var(--pt-toko-image-radius);
    background:
        linear-gradient(135deg, rgba(255, 82, 137, 0.08), rgba(74, 2, 144, 0.055)),
        var(--pt-toko-soft);
    box-shadow: none !important;
    transition:
        transform 220ms ease,
        filter 220ms ease;
}

.pt-toko-product-card:hover img,
.pt-toko-product-card.is-active img {
    transform: scale(1.016);
    filter: saturate(1.04);
}

.pt-toko-product-name {
    display: -webkit-box;
    min-height: 2.55em;
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--pt-toko-dark);
    font-size: 0.92rem;
    line-height: 1.28;
    font-weight: 950;
    letter-spacing: -0.02em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pt-toko-product-price {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-top: auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 82, 137, 0.105);
    color: var(--ast-global-color-1, #4a0290);
    font-size: 0.86rem;
    line-height: 1.2;
    font-weight: 950;
    white-space: nowrap;
}

/* =========================================================
 * 8. Sticky Mobile WhatsApp CTA
 * ======================================================= */

.pt-toko-mobile-wa-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff !important;
    font-size: 0.98rem;
    line-height: 1.2;
    font-weight: 950;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 18px 42px rgba(22, 163, 74, 0.34);
    transform: translateY(0);
    opacity: 1;
    transition:
        transform 220ms ease,
        opacity 220ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.pt-toko-mobile-wa-cta:hover,
.pt-toko-mobile-wa-cta:focus-visible {
    background: #15803d;
    color: #ffffff !important;
    box-shadow: 0 20px 46px rgba(22, 163, 74, 0.40);
    outline: none;
}

.pt-toko-mobile-wa-cta.is-hidden,
.pt-toko-lightbox-open .pt-toko-mobile-wa-cta {
    pointer-events: none;
    opacity: 0;
    transform: translateY(18px);
}

/* =========================================================
 * 9. Toast
 * ======================================================= */

.pt-toko-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    max-width: 280px;
    padding: 11px 14px;
    border-radius: 14px;
    background: var(--pt-toko-dark, #490049);
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(73, 0, 73, 0.24);
}

/* =========================================================
 * 10. Pastitop Lightbox Shell
 * ======================================================= */

.pt-toko-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    touch-action: manipulation;
}

.pt-toko-lightbox.is-open {
    display: flex;
}

.pt-toko-lightbox__inner {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
}

.pt-toko-lightbox__image {
    display: block;
    max-width: 94vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    cursor: zoom-in;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 180ms ease;
}

.pt-toko-lightbox__image.is-zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
    transform: scale(1.65);
}

.pt-toko-lightbox__close {
    position: fixed;
    top: calc(18px + env(safe-area-inset-top));
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.pt-toko-lightbox__close:hover,
.pt-toko-lightbox__close:focus {
    background: #ffffff;
    color: var(--ast-global-color-0, #ff5289);
    outline: none;
}

.pt-toko-lightbox-open {
    overflow: hidden;
}

/* =========================================================
 * 11. Responsive (Full Screen & Zero Top Margin Patched)
 * ======================================================= */

@media (min-width: 1024px) {
    .pt-toko-storefront-page {
        margin-top: 24px;
        margin-bottom: 60px;
    }

    .pt-toko-products {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 767px) {
    /* CRITICAL PATCH v1.0.17: Runtuhkan seluruh margin/padding vertikal bawaan 
     * Astra Theme agar konten toko menempel pas ke batas bawah header
     */
    body.ast-separate-container .site-content,
    body .site-content,
    #content,
    #primary,
    #main,
    .site-main,
    .ast-article-single,
    .ast-article-post,
    .entry-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body.ast-separate-container .site-content .ast-container,
    body .site-content .ast-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.ast-separate-container .ast-article-single,
    body.ast-separate-container .ast-article-post {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .pt-toko-storefront-page {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 34px !important;
        padding: 0 !important;
    }

    .pt-toko-has-mobile-cta .pt-toko-storefront-page {
        padding-bottom: 82px;
    }

    .pt-toko-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 10px !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        box-shadow: none !important;
        gap: 12px;
    }

    .pt-toko-primary-wa-cta {
        flex-direction: row !important;
    }

    .pt-toko-owner-head {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        padding: 12px;
        border-radius: 16px;
    }

    .pt-toko-owner-avatar,
    .pt-toko-owner-head .avatar {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px;
    }

    .pt-toko-owner-head h1 {
        font-size: clamp(1.22rem, 6vw, 1.72rem);
    }

    .pt-toko-info-list {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 8px;
    }

    .pt-toko-info-list > * {
        padding: 10px 11px;
    }

    .pt-toko-hero {
        padding: 8px;
        border-radius: 20px;
    }

    .pt-toko-hero-img,
    .pt-toko-hero img {
        aspect-ratio: auto;
        max-height: none;
        border-radius: 16px;
    }

    .pt-toko-promo-grid {
        padding: 7px;
        border-radius: 14px;
    }

    .pt-toko-promo-grid img {
        flex-basis: 76px;
        width: 76px !important;
        height: 56px !important;
        min-width: 76px;
        border-radius: 10px;
    }

    .pt-toko-actions {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 9px;
    }

    .pt-toko-action,
    .pt-toko-actions a,
    .pt-toko-actions button {
        min-height: 44px;
        padding: 11px 12px;
        font-size: 0.86rem;
        border-radius: 13px;
    }

    .pt-toko-products {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
        gap: 12px;
    }

    .pt-toko-mobile-wa-cta {
        display: inline-flex;
    }

    .pt-toko-toast {
        right: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 544px) {
    body.ast-separate-container .site-content .ast-container,
    body .site-content .ast-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .pt-toko-storefront-page {
        width: 100% !important;
    }

    .pt-toko-wrap {
        padding: 10px 8px !important;
        gap: 10px !important;
    }

    .pt-toko-info-list {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }
}

@media (max-width: 429px) {
    .pt-toko-storefront-page {
        width: 100% !important;
        margin-top: 0 !important;
    }

    .pt-toko-wrap {
        padding: 10px 6px !important;
        border-radius: 0 !important;
    }

    .pt-toko-actions {
        grid-template-columns: 1fr;
    }

    .pt-toko-products {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pt-toko-product-card img {
        aspect-ratio: 1 / 1;
    }

    .pt-toko-product-name {
        font-size: 0.94rem;
    }

    .pt-toko-product-price {
        font-size: 0.88rem;
    }
}

@media (max-width: 560px) {
    .pt-toko-lightbox {
        padding: 14px;
    }

    .pt-toko-lightbox__image {
        max-width: 96vw;
        max-height: 84vh;
        border-radius: 12px;
    }

    .pt-toko-lightbox__image.is-zoomed {
        transform: scale(1.55);
    }

    .pt-toko-lightbox__close {
        top: calc(12px + env(safe-area-inset-top));
        right: 12px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pt-toko-wrap *,
    .pt-toko-wrap *::before,
    .pt-toko-wrap *::after,
    .pt-toko-lightbox *,
    .pt-toko-mobile-wa-cta {
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
 * 12. v1.0.8 Semantic Single Column Patch
 * ======================================================= */

.pt-toko-wrap--semantic {
    display: flex;
    flex-direction: column;
}

.pt-toko-wrap--semantic .pt-toko-owner-head { order: 10; }
.pt-toko-wrap--semantic .pt-toko-primary-wa-cta { order: 12; }
.pt-toko-wrap--semantic .pt-toko-summary { order: 14; }
.pt-toko-wrap--semantic .pt-toko-hero { order: 20; }
.pt-toko-wrap--semantic .pt-toko-promo-section { order: 30; }
.pt-toko-wrap--semantic .pt-toko-info-list { order: 40; }
.pt-toko-wrap--semantic .pt-toko-product-toolbar { order: 50; }
.pt-toko-wrap--semantic .pt-toko-products { order: 60; }
.pt-toko-wrap--semantic .pt-toko-load-more-wrap { order: 65; }
.pt-toko-wrap--semantic .pt-toko-actions { order: 70; }
.pt-toko-wrap--semantic .pt-toko-company-profile,
.pt-toko-wrap--semantic .pt-toko-about { order: 80; }

.pt-toko-summary {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid rgba(73, 0, 73, 0.075);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--pt-toko-text);
    box-shadow: 0 8px 20px rgba(73, 0, 73, 0.05);
}

.pt-toko-summary p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
    font-weight: 700;
}

.pt-toko-primary-wa-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(100%, 720px);
    min-height: 54px;
    margin: 0 auto;
    padding: 15px 20px;
    border: 0;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff !important;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 950;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 16px 34px rgba(22, 163, 74, 0.28);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pt-toko-primary-wa-cta::before {
    content: attr(data-pt-action-icon);
    display: inline-grid;
    place-items: center;
    min-width: 1.15em;
    line-height: 1;
}

.pt-toko-primary-wa-cta:hover,
.pt-toko-primary-wa-cta:focus-visible {
    transform: translateY(-1px);
    background: #15803d;
    color: #ffffff !important;
    box-shadow: 0 18px 38px rgba(22, 163, 74, 0.34);
    outline: none;
}

.pt-toko-promo-section {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pt-toko-promo-hint {
    width: min(100%, 720px);
    margin: 0 auto;
    color: var(--pt-toko-text);
    font-size: 0.78rem;
    line-height: 1.3;
    font-weight: 850;
    opacity: 0.82;
}

.pt-toko-product-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
    gap: 10px;
    width: 100%;
    margin: 0;
}

.pt-toko-product-search-label,
.pt-toko-product-sort-label {
    display: block;
    margin: 0;
}

.pt-toko-product-search,
.pt-toko-product-sort {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(73, 0, 73, 0.11) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    color: var(--pt-toko-dark) !important;
    box-shadow: 0 8px 18px rgba(73, 0, 73, 0.05) !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
}

.pt-toko-product-search:focus,
.pt-toko-product-sort:focus {
    border-color: rgba(255, 82, 137, 0.36) !important;
    box-shadow: 0 0 0 4px rgba(255, 82, 137, 0.10) !important;
    outline: none !important;
}

.pt-toko-product-card.is-pt-hidden,
.pt-toko-products-no-match[hidden],
.pt-toko-load-more[hidden] {
    display: none !important;
}

.pt-toko-products-no-match {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    border: 1px dashed rgba(73, 0, 73, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--pt-toko-text);
    font-weight: 900;
    text-align: center;
}

.pt-toko-product-card {
    cursor: default;
}

.pt-toko-product-select {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    text-align: left !important;
    cursor: pointer;
}

.pt-toko-product-select:hover,
.pt-toko-product-select:focus,
.pt-toko-product-select:focus-visible {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
}

.pt-toko-product-select:focus-visible img {
    outline: 3px solid rgba(255, 82, 137, 0.32);
    outline-offset: 3px;
}

.pt-toko-product-wa {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    margin-top: 10px;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit !important;
    font-size: 0;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.pt-toko-product-wa::before {
    content: none !important;
    display: none !important;
}

.pt-toko-product-wa:hover,
.pt-toko-product-wa:focus-visible {
    transform: translateY(-2px);
    background: transparent;
    color: inherit !important;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.24);
    outline: none;
}

.pt-toko-product-wa .pt-toko-brand-icon {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    border-radius: 12px !important;
    font-size: 0 !important;
}

.pt-toko-product-wa .pt-toko-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.pt-toko-product-wa:active {
    transform: scale(0.96);
}

.pt-toko-load-more-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pt-toko-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 82, 137, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(255, 82, 137, 0.08) !important;
    color: var(--pt-toko-primary) !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.pt-toko-load-more:hover,
.pt-toko-load-more:focus-visible {
    background: rgba(255, 82, 137, 0.14) !important;
    outline: none !important;
}

.pt-toko-wrap--semantic .pt-toko-actions {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 767px) {
    .pt-toko-product-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* =========================================================
 * 13. v1.0.9 App Header Quick Actions Patch
 * ======================================================= */

.pt-toko-wrap--semantic .pt-toko-owner-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    width: min(100%, 720px);
}

.pt-toko-owner-info {
    flex: 1 1 auto;
    min-width: 0;
}

.pt-toko-owner-info h1 {
    overflow-wrap: anywhere;
}

.pt-toko-owner-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.pt-toko-owner-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    border: 1px solid rgba(73, 0, 73, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--pt-toko-dark) !important;
    font-size: 22px;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(73, 0, 73, 0.06);
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease;
}

.pt-toko-owner-action:hover,
.pt-toko-owner-action:focus-visible {
    transform: translateY(-2px);
    background: #ffffff;
    color: var(--pt-toko-dark) !important;
    box-shadow: 0 12px 24px rgba(73, 0, 73, 0.12);
    outline: none;
}

.pt-toko-owner-action--wa {
    border-color: rgba(22, 163, 74, 0.18);
    background: #16a34a;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.20);
}

.pt-toko-owner-action--wa:hover,
.pt-toko-owner-action--wa:focus-visible {
    background: #15803d;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.28);
}

.pt-toko-owner-action--maps {
    border-color: rgba(37, 99, 235, 0.16);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8 !important;
}

.pt-toko-owner-action--share {
    border-color: rgba(255, 82, 137, 0.14);
    background: rgba(255, 82, 137, 0.08);
    color: var(--pt-toko-primary) !important;
}

@media (max-width: 767px) {
    .pt-toko-wrap--semantic .pt-toko-owner-head {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: 10px;
        width: 100%;
        padding: 12px;
        border-radius: 16px;
    }

    .pt-toko-owner-avatar,
    .pt-toko-owner-head .avatar {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px;
    }

    .pt-toko-owner-actions {
        gap: 6px;
        margin-left: 0;
    }

    .pt-toko-owner-action {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 12px;
        font-size: 20px;
    }

    .pt-toko-primary-wa-cta {
        display: none !important;
    }
}

@media (max-width: 429px) {
    .pt-toko-wrap--semantic .pt-toko-owner-head {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .pt-toko-owner-avatar,
    .pt-toko-owner-head .avatar {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px;
    }

    .pt-toko-owner-actions {
        display: grid;
        grid-template-columns: repeat(2, 38px);
        gap: 6px;
    }

    .pt-toko-owner-action {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 11px;
        font-size: 18px;
    }
}

/* =========================================================
 * 14. v1.0.20 Split Image Policy + Load More Polish
 * ======================================================= */

.pt-toko-product-img-frame {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 9px;
    overflow: hidden;
    border-radius: var(--pt-toko-image-radius);
    background: var(--pt-toko-soft);
}

.pt-toko-product-img-frame .pt-toko-product-img,
.pt-toko-product-img-frame img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 0 !important;
    background: var(--pt-toko-soft) !important;
    box-shadow: none !important;
}

.pt-toko-product-card:hover .pt-toko-product-img-frame img,
.pt-toko-product-card.is-active .pt-toko-product-img-frame img {
    transform: scale(1.016);
    filter: saturate(1.04);
}

.pt-toko-product-select:focus-visible .pt-toko-product-img-frame {
    outline: 3px solid rgba(255, 82, 137, 0.32);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .pt-toko-hero-frame {
        max-height: 72vh;
        border-radius: 16px;
    }

    .pt-toko-hero-img,
    .pt-toko-hero img {
        aspect-ratio: auto !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 16px;
    }

    .pt-toko-promo-grid img {
        flex-basis: 68px;
        width: 68px !important;
        height: 68px !important;
        min-width: 68px;
    }
}

/* =========================================================
 * 15. Plugin 08 v1.0.18 UI Alignment + Full-Width Patch
 * ======================================================= */

.pt-toko-has-brand-icon::before,
.pt-toko-product-wa.pt-toko-has-brand-icon::before,
.pt-toko-primary-wa-cta.pt-toko-has-brand-icon::before,
.pt-toko-action.pt-toko-has-brand-icon::before,
.pt-toko-actions a.pt-toko-has-brand-icon::before,
.pt-toko-actions button.pt-toko-has-brand-icon::before {
    content: none !important;
    display: none !important;
}

.pt-toko-brand-icon {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.35em;
    height: 1.35em;
    min-width: 1.35em;
    overflow: hidden;
    border-radius: 0.28em;
    line-height: 1;
    font-size: 1em;
    font-weight: 950;
    text-align: center;
}

.pt-toko-brand-icon::before {
    content: attr(data-pt-brand-fallback);
    display: inline-grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.pt-toko-brand-icon.has-img::before {
    content: none;
    display: none;
}

.pt-toko-brand-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pt-toko-brand-icon.is-missing img {
    display: none;
}

.pt-toko-brand-icon.is-missing::before {
    content: attr(data-pt-brand-fallback);
    display: inline-grid;
}

.pt-toko-owner-action .pt-toko-brand-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 7px;
    font-size: 22px;
}

.pt-toko-primary-wa-cta .pt-toko-brand-icon,
.pt-toko-product-wa .pt-toko-brand-icon,
.pt-toko-action .pt-toko-brand-icon,
.pt-toko-actions a .pt-toko-brand-icon,
.pt-toko-actions button .pt-toko-brand-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    font-size: 18px;
}

.pt-toko-product-wa .pt-toko-brand-icon {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    border-radius: 12px !important;
    font-size: 0 !important;
}

.pt-toko-action-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pt-toko-action--shopee {
    border-color: rgba(238, 77, 45, 0.22);
}

.pt-toko-action--tokopedia {
    border-color: rgba(3, 172, 14, 0.22);
}

.pt-toko-action--maps {
    border-color: rgba(66, 133, 244, 0.22);
}

.pt-toko-action--lazada,
.pt-toko-action--blibli,
.pt-toko-action--bukalapak,
.pt-toko-action--tiktok,
.pt-toko-action--instagram,
.pt-toko-action--facebook {
    border-color: rgba(73, 0, 73, 0.13);
}

.pt-toko-has-fa-icon::before,
.pt-toko-action.pt-toko-has-fa-icon::before,
.pt-toko-actions a.pt-toko-has-fa-icon::before,
.pt-toko-actions button.pt-toko-has-fa-icon::before {
    content: none !important;
    display: none !important;
}

.pt-toko-fa-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 1.1em;
    line-height: 1;
}

.pt-toko-owner-action--share {
    min-width: 44px !important;
    min-height: 44px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    color: #555555 !important;
    border-color: rgba(73, 0, 73, 0.12) !important;
    border-radius: 14px !important;
}

.pt-toko-owner-action--share .pt-toko-fa-icon,
.pt-toko-action--share .pt-toko-fa-icon {
    color: #555555 !important;
}

.pt-toko-owner-action--share:hover,
.pt-toko-owner-action--share:focus-visible,
.pt-toko-action--share:hover,
.pt-toko-action--share:focus-visible {
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--ast-global-color-0) !important;
    border-color: var(--ast-global-color-0) !important;
}

.pt-toko-owner-action--share:hover .pt-toko-fa-icon,
.pt-toko-owner-action--share:focus-visible .pt-toko-fa-icon,
.pt-toko-action--share:hover .pt-toko-fa-icon,
.pt-toko-action--share:focus-visible .pt-toko-fa-icon {
    color: var(--ast-global-color-0) !important;
}

.pt-toko-action--marketplace .pt-toko-fa-icon {
    font-size: 1rem;
}

.pt-toko-action--marketplace .pt-toko-action-label,
.pt-toko-action--share .pt-toko-action-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pt-toko-promo-grid {
    justify-content: center !important;
}

.pt-toko-promo-hint {
    display: none !important;
}

.pt-toko-product-select,
.pt-toko-product-img-frame[data-pt-product-zoom] {
    cursor: zoom-in;
}

.pt-toko-product-wa .pt-toko-action-label,
.pt-toko-product-wa.pt-toko-product-wa--icon .pt-toko-action-label {
    display: none !important;
}

@media (max-width: 544px) {
    .pt-toko-product-toolbar {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

.pt-toko-wrap {
    --pt-toko-shell-radius: 18px;
    --pt-toko-hero-radius: 16px;
    --pt-toko-card-radius: 14px;
    --pt-toko-image-radius: 12px;
    --pt-toko-action-radius: 10px;
}

.pt-toko-wrap--semantic .pt-toko-owner-head {
    border-radius: 16px !important;
}

.pt-toko-hero,
.pt-toko-hero-frame {
    border-radius: 16px !important;
}

.pt-toko-product-card {
    border-radius: 14px !important;
}

.pt-toko-product-img-frame,
.pt-toko-product-img,
.pt-toko-product-card img {
    border-radius: 12px !important;
}

.pt-toko-product-select {
    flex: 1 1 auto;
}

.pt-toko-product-name {
    margin-bottom: 8px !important;
}

.pt-toko-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding-top: 2px;
}

.pt-toko-product-footer .pt-toko-product-price {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: calc(100% - 54px);
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(73, 0, 73, 0.08);
    border-radius: 10px !important;
    background: rgba(251, 246, 250, 0.92) !important;
    color: var(--ast-global-color-1, #4a0290) !important;
    font-size: 0.86rem;
    line-height: 1.2;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* * CLEANUP PATCH v1.0.18: Menghilangkan border ganda, shadow, dan background hijau kaku 
 * dari elemen pembungkus ikon WA produk karena berkas SVG sudah berbentuk rectangular round bawaan
 */
.pt-toko-product-footer .pt-toko-product-wa,
.pt-toko-product-wa.pt-toko-product-wa--icon {
    flex: 0 0 auto;
    align-self: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pt-toko-product-footer .pt-toko-product-wa img,
.pt-toko-product-wa.pt-toko-product-wa--icon img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    object-fit: contain;
}

.pt-toko-product-wa.pt-toko-product-wa--icon:hover,
.pt-toko-product-wa.pt-toko-product-wa--icon:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-2px);
}

.pt-toko-owner-actions {
    gap: 8px;
}

.pt-toko-owner-action,
.pt-toko-owner-action--maps,
.pt-toko-owner-action--share {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 12px !important;
}

.pt-toko-owner-action--share {
    border-color: #ff5289 !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #ff5289 !important;
    box-shadow: 0 8px 18px rgba(73, 0, 73, 0.05) !important;
}

.pt-toko-owner-action--share .pt-toko-fa-icon,
.pt-toko-action--share .pt-toko-fa-icon {
    color: #ff5289 !important;
}

.pt-toko-owner-action--share:hover,
.pt-toko-owner-action--share:focus-visible {
    background: rgba(255, 82, 137, 0.08) !important;
    border-color: #ff5289 !important;
    color: #ff5289 !important;
}

.pt-toko-action--share {
    border-color: #ff5289 !important;
    background: rgba(255, 255, 255, 0.86) !important;
}

.pt-toko-action--share .pt-toko-action-label {
    color: #000000 !important;
}

.pt-toko-action--share:hover,
.pt-toko-action--share:focus-visible {
    background: rgba(255, 82, 137, 0.08) !important;
    border-color: #ff5289 !important;
}

.pt-toko-primary-wa-cta,
.pt-toko-mobile-wa-cta {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pt-toko-primary-wa-cta .pt-toko-brand-icon,
.pt-toko-mobile-wa-cta .pt-toko-brand-icon {
    display: inline-flex !important;
    flex: 0 0 auto;
}

.pt-toko-info-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.pt-toko-info-list > * {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px !important;
    border-radius: 12px !important;
}

.pt-toko-info-list strong {
    font-size: 0.75rem !important;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.78;
}

.pt-toko-info-list span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
}

/* =========================================================
 * 16. Edge-to-Edge Responsive Grid Mobile Overrides
 * ======================================================= */

@media (max-width: 767px) {
    body.ast-separate-container .site-content .ast-container,
    body .site-content .ast-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.ast-separate-container .ast-article-single,
    body.ast-separate-container .ast-article-post {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .pt-toko-storefront-page {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 34px !important;
        padding: 0 !important;
    }

    .pt-toko-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 10px !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        box-shadow: none !important;
    }

    .pt-toko-primary-wa-cta {
        flex-direction: row !important;
    }
}

@media (max-width: 544px) {
    body.ast-separate-container .site-content .ast-container,
    body .site-content .ast-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pt-toko-storefront-page {
        width: 100% !important;
    }

    .pt-toko-wrap {
        padding: 10px 8px !important;
        gap: 10px !important;
    }

    .pt-toko-info-list {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }
}

@media (max-width: 429px) {
    .pt-toko-storefront-page {
        width: 100% !important;
        margin-top: 0 !important;
    }

    .pt-toko-wrap {
        padding: 10px 6px !important;
        border-radius: 0 !important;
    }

    .pt-toko-actions {
        grid-template-columns: 1fr;
    }

    .pt-toko-products {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pt-toko-product-card img {
        aspect-ratio: 1 / 1;
    }

    .pt-toko-product-name {
        font-size: 0.94rem;
    }

    .pt-toko-product-price {
        font-size: 0.88rem;
    }
}

/* =========================================================
 * 17. Plugin 08 v1.0.19 Icon Balance + Product Footer Polish
 * ======================================================= */

/*
 * Owner header quick actions:
 * - Reduce Maps/Share buttons from 44px to 36px.
 * - Keep the visual header lighter and less dominant.
 */
.pt-toko-owner-actions {
    gap: 6px !important;
}

.pt-toko-owner-action,
.pt-toko-owner-action--maps,
.pt-toko-owner-action--share {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    font-size: 17px !important;
}

.pt-toko-owner-action .pt-toko-brand-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border-radius: 5px !important;
    font-size: 18px !important;
}

.pt-toko-owner-action .pt-toko-brand-icon img,
.pt-toko-owner-action .pt-toko-fa-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    line-height: 1 !important;
}

/*
 * Product footer:
 * - Product price text is slightly larger and easier to read.
 * - Product WhatsApp icon is slightly smaller so it does not look clipped.
 */
.pt-toko-product-footer {
    gap: 8px !important;
    align-items: center !important;
}

.pt-toko-product-footer .pt-toko-product-price {
    max-width: calc(100% - 44px) !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    line-height: 1.18 !important;
    font-weight: 950 !important;
}

.pt-toko-product-footer .pt-toko-product-wa,
.pt-toko-product-wa.pt-toko-product-wa--icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    overflow: visible !important;
}

.pt-toko-product-footer .pt-toko-product-wa .pt-toko-brand-icon,
.pt-toko-product-wa.pt-toko-product-wa--icon .pt-toko-brand-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    overflow: visible !important;
    border-radius: 9px !important;
}

.pt-toko-product-footer .pt-toko-product-wa img,
.pt-toko-product-wa.pt-toko-product-wa--icon img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    object-fit: contain !important;
    border-radius: 9px !important;
}

/*
 * Primary WhatsApp CTA:
 * - Ensure the WhatsApp icon appears before "Chat WhatsApp".
 * - Also fixes the JS-created mobile sticky CTA, which has text only.
 */
.pt-toko-primary-wa-cta {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.pt-toko-primary-wa-cta .pt-toko-brand-icon {
    display: inline-flex !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 7px !important;
    overflow: visible !important;
}

.pt-toko-primary-wa-cta .pt-toko-brand-icon img {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
}

.pt-toko-mobile-wa-cta {
    gap: 8px !important;
}

.pt-toko-mobile-wa-cta::before {
    content: "" !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 6px !important;
    background-image: url("/wp-content/mu-plugins/assets/08-brand-icons/whatsapp-1x1.svg") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

@media (max-width: 767px) {
    .pt-toko-owner-actions {
        gap: 5px !important;
    }

    .pt-toko-owner-action,
    .pt-toko-owner-action--maps,
    .pt-toko-owner-action--share {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 10px !important;
        font-size: 17px !important;
    }
}

@media (max-width: 429px) {
    .pt-toko-owner-actions {
        grid-template-columns: repeat(2, 36px) !important;
        gap: 5px !important;
    }

    .pt-toko-owner-action,
    .pt-toko-owner-action--maps,
    .pt-toko-owner-action--share {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .pt-toko-product-footer .pt-toko-product-price {
        max-width: calc(100% - 42px) !important;
        font-size: 0.94rem !important;
    }

    .pt-toko-product-footer .pt-toko-product-wa,
    .pt-toko-product-wa.pt-toko-product-wa--icon,
    .pt-toko-product-footer .pt-toko-product-wa .pt-toko-brand-icon,
    .pt-toko-product-wa.pt-toko-product-wa--icon .pt-toko-brand-icon,
    .pt-toko-product-footer .pt-toko-product-wa img,
    .pt-toko-product-wa.pt-toko-product-wa--icon img {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }
}

/* =========================================================
 * Plugin 08 v1.0.20 - WhatsApp CTA Visibility Fix
 *
 * Desktop:
 * - Show primary Chat WhatsApp below owner header.
 * - Hide floating/sticky mobile WhatsApp CTA.
 *
 * Mobile:
 * - Hide primary Chat WhatsApp below owner header.
 * - Show floating/sticky WhatsApp CTA.
 * ======================================================= */

/* Default / desktop */
.pt-toko-primary-wa-cta {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.pt-toko-mobile-wa-cta {
    display: none !important;
}

/* Make sure primary WhatsApp icon is visible on desktop */
.pt-toko-primary-wa-cta .pt-toko-brand-icon {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
}

.pt-toko-primary-wa-cta .pt-toko-brand-icon img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Mobile: hide primary CTA, show sticky/floating CTA */
@media (max-width: 767px) {
    .pt-toko-primary-wa-cta {
        display: none !important;
    }

    .pt-toko-mobile-wa-cta {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }
}

/* Desktop/tablet wide: never show floating CTA */
@media (min-width: 768px) {
    .pt-toko-mobile-wa-cta {
        display: none !important;
    }
}

/* =========================================================
 * 18. v1.0.20 Final Split Image Policy Overrides
 * ======================================================= */

.pt-toko-hero-frame {
    aspect-ratio: auto !important;
    max-height: 520px !important;
    overflow: hidden !important;
}

.pt-toko-hero-frame::before,
.pt-toko-hero-frame::after,
.pt-toko-product-img-frame::before,
.pt-toko-product-img-frame::after {
    content: none !important;
    display: none !important;
}

.pt-toko-hero-frame .pt-toko-hero-img,
.pt-toko-hero-frame img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
}

.pt-toko-product-img-frame,
.pt-toko-promo-grid img {
    aspect-ratio: 1 / 1 !important;
}

.pt-toko-product-img-frame .pt-toko-product-img,
.pt-toko-product-img-frame img,
.pt-toko-promo-grid img {
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 767px) {
    .pt-toko-hero-frame {
        max-height: 72vh !important;
    }
}

/* =========================================================
 * PT Entity Profile Shell - Patch v1.0.21
 * Scope: pt_entity public renderer for person + organization
 * ======================================================= */
.pt-entity-wrap.pt-entity-mobile-profile-shell {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
}

.pt-entity-visual-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

.pt-entity-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 4px 8px;
    background: #f0f0f0;
    color: #555555;
    border-radius: 8px;
}

.pt-entity-badge.pt-badge-verified {
    background: #e1f5fe;
    color: #0288d1;
}

.pt-entity-badge.pt-badge-unverified {
    background: #f5f5f5;
    color: #777777;
}

.pt-entity-trust-info {
    font-size: 11px;
    color: #888888;
    margin: 8px 0 0;
}

.pt-entity-identity-block {
    margin-bottom: 25px;
}

.pt-entity-title {
    margin: 0 0 5px;
    font-size: 24px;
    line-height: 1.22;
    color: #111111;
}

.pt-entity-subtitle {
    color: #555555;
    margin: 0 0 10px;
}

.pt-entity-meta-item {
    font-size: 14px;
    margin: 0;
    color: #333333;
}

.pt-entity-main-content {
    line-height: 1.6;
    font-size: 15px;
    color: #333333;
}

.pt-entity-summary {
    font-weight: 500;
    margin-bottom: 20px;
    color: #222222;
}

.pt-entity-the-content > *:first-child {
    margin-top: 0;
}

.pt-entity-the-content > *:last-child {
    margin-bottom: 0;
}

.pt-entity-avatar-wrap,
.pt-entity-logo-wrap {
    margin-bottom: 15px;
}

.pt-entity-avatar {
    display: block;
    width: 150px;
    max-width: 42vw;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

.pt-entity-cover-wrap {
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 16px;
}

.pt-entity-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.pt-entity-logo {
    display: block;
    max-width: 100px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 640px) {
    .pt-entity-wrap.pt-entity-mobile-profile-shell {
        padding: 16px;
    }

    .pt-entity-title {
        font-size: 22px;
    }

    .pt-entity-cover {
        max-height: 72vh;
    }
}


/* =========================================================
 * PT Entity Profile Shell - Data Input Display Patch v1.0.22
 * Scope: Fase 2B metabox data display for person + organization
 * ======================================================= */
.pt-entity-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pt-entity-status-row .pt-entity-trust-info {
    margin: 0;
}

.pt-entity-data-block,
.pt-entity-bio-block,
.pt-entity-social-block {
    margin: 22px 0;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
}

.pt-entity-section-title {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.3;
    color: #111111;
}

.pt-entity-data-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.pt-entity-data-item {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) 1fr;
    gap: 10px;
    align-items: start;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pt-entity-data-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.pt-entity-data-item dt,
.pt-entity-data-item dd {
    margin: 0;
}

.pt-entity-data-item dt {
    font-size: 12px;
    font-weight: 700;
    color: #777777;
}

.pt-entity-data-item dd {
    font-size: 14px;
    color: #222222;
    overflow-wrap: anywhere;
}

.pt-entity-data-item a,
.pt-entity-social-link {
    color: var(--ast-global-color-0, #ff5289);
    text-decoration: none;
}

.pt-entity-data-item a:hover,
.pt-entity-data-item a:focus,
.pt-entity-social-link:hover,
.pt-entity-social-link:focus {
    text-decoration: underline;
}

.pt-entity-bio-block p {
    margin: 0;
}

.pt-entity-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pt-entity-social-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 82, 137, 0.26);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 82, 137, 0.06);
}

@media (max-width: 640px) {
    .pt-entity-data-item {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .pt-entity-data-block,
    .pt-entity-bio-block,
    .pt-entity-social-block {
        padding: 14px;
    }
}
