
/* Global page tweak */
.pd-page {
    background: #f5f5f7;
    padding: 0.5rem 0 4rem;
    min-height: 100vh;
}

/* Breadcrumb */
.pd-breadcrumb {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0;
}
.pd-breadcrumb::-webkit-scrollbar { height: 0; }
.pd-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color .2s;
}
.pd-breadcrumb a:hover { color: #d4a574; }
.pd-breadcrumb .sep { color: #ccc; margin: 0 .35rem; }
.pd-breadcrumb .current {
    color: #2c2c2c;
    font-weight: 600;
    max-width: 280px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* Card shell */
.pd-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ececec;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
}
.pd-card + .pd-card { margin-top: 0.875rem; }
.pd-card__body { padding: 1rem 1.125rem; }
.pd-card__header {
    padding: 0.75rem 1.125rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pd-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Gallery */
.pd-gallery {
    position: sticky;
    top: 80px;
}
.pd-gallery__main {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
    aspect-ratio: 1 / 1;
}
.pd-gallery__main .swiper {
    width: 100%;
    height: 100%;
}
.pd-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-gallery__thumbs {
    margin-top: 0.625rem;
}
.pd-gallery__thumbs .swiper-slide {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
    background: #fafafa;
}
.pd-gallery__thumbs .swiper-slide-thumb-active,
.pd-gallery__thumbs .swiper-slide:hover {
    border-color: #d4a574;
}
.pd-gallery__thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Floating gallery actions */
.pd-gallery__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pd-gallery__actions .pd-floating-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    border: none;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: all .2s;
    text-decoration: none;
    cursor: pointer;
}
.pd-gallery__actions .pd-floating-btn:hover {
    background: #d4a574;
    color: #fff;
    transform: scale(1.08);
}
.pd-gallery__actions .pd-floating-btn.is-active {
    background: #ff5252;
    color: #fff;
}
.pd-gallery__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pd-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.pd-flash-badge {
    background: linear-gradient(135deg, #ff5722, #ff9100);
    color: #fff;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 87, 34, .35);
    animation: pd-flash-pulse 1.6s ease-in-out infinite;
}
@keyframes pd-flash-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
.pd-discount-badge {
    background: linear-gradient(135deg, #ff5252, #f44336);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

/* Title section */
.pd-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.pd-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    color: #777;
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #f0f0f0;
}
.pd-meta-row__star {
    color: #ffa500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.pd-meta-row__rating {
    color: #2c2c2c;
    font-weight: 700;
    text-decoration: underline dotted;
    cursor: pointer;
}
.pd-meta-row__sep { color: #ddd; }
.pd-meta-row__link {
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s;
}
.pd-meta-row__link:hover { color: #d4a574; }

/* Price box */
.pd-price-box {
    background: linear-gradient(135deg, #fff8f1 0%, #fef4e8 100%);
    border: 1px solid #f5e0c5;
    border-radius: 10px;
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
}
.pd-price-box__main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.pd-price {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 800;
    color: #d4a574;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.pd-price-old {
    font-size: 0.875rem;
    color: #999;
    text-decoration: line-through;
}

/* Flash sale countdown */
.pd-flash-countdown {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 1px solid #ff9100;
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-flash-countdown__title {
    color: #e65100;
    font-weight: 700;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pd-flash-countdown__pills {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pd-flash-countdown__pills .badge {
    background: #2c2c2c;
    font-size: 0.75rem;
    padding: 4px 8px;
    font-variant-numeric: tabular-nums;
}

/* Variant section */
.pd-variant-block {
    margin-bottom: 0.875rem;
}
.pd-variant-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pd-variant-label .pd-variant-selected {
    color: #d4a574;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-left: 4px;
}
.color-btn {
    min-width: 64px;
    max-width: 84px;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: #fff;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px;
    padding: 4px !important;
    transition: all .2s;
    cursor: pointer;
    position: relative;
}
.color-btn:hover {
    border-color: #d4a574 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212,165,116,.15);
}
.color-btn.is-active,
.color-btn.active {
    border-color: #d4a574 !important;
    background: #fff8f1;
    box-shadow: 0 0 0 2px rgba(212,165,116,.2);
}
.color-btn img {
    width: 44px !important;
    height: 44px !important;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}
.color-name {
    font-size: 0.65rem;
    line-height: 1.2;
    text-align: center;
    color: #555;
    word-break: break-word;
    max-width: 76px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.size-btn {
    min-width: 56px !important;
    height: 36px;
    padding: 0 14px !important;
    font-size: 0.8125rem !important;
    font-weight: 600;
    border: 1.5px solid #d6d6d6 !important;
    background: #fff;
    color: #444;
    border-radius: 6px !important;
    transition: all .2s;
    cursor: pointer;
}
.size-btn:hover:not(:disabled) {
    border-color: #d4a574 !important;
    color: #d4a574;
    transform: translateY(-1px);
}
.size-btn.is-active,
.size-btn.active {
    border-color: #d4a574 !important;
    background: #d4a574;
    color: #fff !important;
}
.size-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed;
    text-decoration: line-through;
    background: #f5f5f5;
}

/* Variant info box */
#variant-info-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 1px solid #a5d6a7;
    border-left: 3px solid #4caf50 !important;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    margin-top: 0.625rem;
}
#variant-info-box.d-none { display: none !important; }

/* Quantity & stock card */
.pd-qty-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 0.875rem;
}
.pd-qty-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2c2c2c;
    flex-shrink: 0;
}
.quantity.quantity--style-two {
    width: 120px !important;
    height: 38px !important;
    border: 1px solid #d6d6d6;
    border-radius: 6px !important;
    overflow: hidden;
}
.quantity__minus, .quantity__plus {
    background: #f7f7f9 !important;
    border: none !important;
    width: 36px !important;
    cursor: pointer;
    user-select: none;
    color: #444;
    transition: background .2s;
}
.quantity__minus:hover, .quantity__plus:hover { background: #e8e8eb !important; }
.product_quantity__qty {
    font-weight: 700 !important;
    text-align: center;
    border: none !important;
    background: #fff;
}

.pd-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 1rem;
}
.pd-info-tile {
    background: #f7f7f9;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}
.pd-info-tile__label {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 2px;
}
.pd-info-tile__value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2c2c2c;
}
.pd-info-tile__value.text-primary { color: #d4a574 !important; }

/* Stock bar */
.pd-stock-meter {
    margin-bottom: 0.875rem;
}
.pd-stock-meter__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.75rem;
}
.pd-stock-meter__bar {
    height: 6px;
    background: #eee;
    border-radius: 100px;
    overflow: hidden;
}
.pd-stock-meter__fill {
    height: 100%;
    background: #4caf50;
    transition: width .4s ease;
}
.pd-stock-meter__fill.bg-warning { background: #ffa500; }
.pd-stock-meter__fill.bg-danger  { background: #f44336; }

/* Status alert */
.pd-status-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    margin-bottom: 0.875rem;
    line-height: 1.4;
}
.pd-status-alert--po       { background: #fff8e1; border: 1px solid #ffd54f; color: #b08600; }
.pd-status-alert--clearance { background: #ffebee; border: 1px solid #ef9a9a; color: #b71c1c; }

/* CTA buttons */
.pd-cta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-cta-row .btn {
    flex: 1;
    min-width: 140px;
    height: 44px;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pd-cta-row .btn-secondary[disabled] { opacity: 0.7; cursor: not-allowed; }

/* Trust badges */
.pd-trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 1rem;
}
.pd-trust-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f7f7f9;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.3;
}
.pd-trust-tile i {
    font-size: 1.1rem;
    color: #d4a574;
    flex-shrink: 0;
}

/* Security & Payment Section */
.pd-security-section {
    margin-top: 1.25rem;
}
.pd-security-section__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pd-security-section__title i {
    color: #d4a574;
}

/* Certifications */
.pd-security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}
.pd-cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f5f5f5 0%, #f9f9f9 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all .2s;
    min-width: 90px;
}
.pd-cert-badge:hover {
    background: linear-gradient(135deg, #fff8f1 0%, #fef4e8 100%);
    border-color: #d4a574;
    box-shadow: 0 2px 8px rgba(212,165,116,.1);
}
.pd-cert-badge i {
    font-size: 1.5rem;
    color: #d4a574;
}
.pd-cert-badge-text {
    font-size: 0.65rem;
    color: #555;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}

/* Payment Methods */
.pd-payment-methods {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border: 1px solid #d1e3f3;
    border-radius: 8px;
    padding: 0.875rem;
    margin-bottom: 1rem;
}
.pd-payment-methods__title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pd-payment-methods__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pd-payment-method-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #0066cc;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #0066cc;
    font-weight: 600;
}
.pd-payment-method-tag i {
    font-size: 0.9rem;
}

/* Buyer Protection */
.pd-buyer-protection {
    background: linear-gradient(135deg, #f0f9f5 0%, #e8f5f0 100%);
    border: 1px solid #b3e5d8;
    border-radius: 8px;
    padding: 0.875rem;
}
.pd-buyer-protection__title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #009966;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pd-buyer-protection__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pd-protection-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.3;
}
.pd-protection-item i {
    color: #009966;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Tabs */
.pd-tabs {
    border-bottom: 1px solid #ececec;
    margin-bottom: 1rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab-btn {
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #777;
    border-bottom: 2px solid transparent;
    transition: all .2s;
    cursor: pointer;
    white-space: nowrap;
}
.pd-tab-btn.active {
    color: #d4a574;
    border-bottom-color: #d4a574;
}
.pd-tab-btn:hover { color: #d4a574; }

/* Description */
.pd-description {
    font-size: 0.875rem;
    color: #444;
    line-height: 1.7;
    word-break: break-word;
}
.pd-description img { max-width: 100%; height: auto; border-radius: 8px; }
.pd-description.is-collapsed {
    max-height: 320px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Rating summary */
.pd-rating-overall {
    text-align: center;
    padding: 1rem;
    background: #fafafa;
    border-radius: 10px;
}
.pd-rating-overall__score {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c2c2c;
    line-height: 1;
}
.pd-rating-overall__score small {
    font-size: 1rem;
    color: #888;
    font-weight: 500;
}
.pd-rating-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pd-rating-bars li {
    display: grid;
    grid-template-columns: 50px 1fr 30px;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}
.pd-rating-bars .progress { height: 6px; flex: 1; background: #eee; }
.pd-rating-bars .progress-bar { background: #ffa500; }

/* Sidebar info */
.pd-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 0.8125rem;
}
.pd-info-row:last-child { border-bottom: none; }
.pd-info-row__label { color: #888; }
.pd-info-row__value { font-weight: 600; color: #2c2c2c; text-align: right; }

/* Mobile sticky bottom CTA */
.pd-sticky-cta {
    display: none;
    position: fixed;
    /* Bottom nav (.bn-bar) di-hide di halaman detil produk via PHP,
       jadi sticky CTA cukup menempel di tepi bawah dengan safe-area iOS */
    bottom: 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid #ececec;
    padding: 8px 12px;
    gap: 8px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.pd-sticky-cta__icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f7f7f9;
    border: 1px solid #ececec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    flex-shrink: 0;
    cursor: pointer;
}
.pd-sticky-cta__icon-btn.is-active { background: #ff5252; color: #fff; border-color: #ff5252; }
.pd-sticky-cta__main {
    flex: 1;
    height: 44px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Blocking overlay (status habis/comingsoon/draft/arsip) */
.pd-blocking-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(2px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .pd-gallery { position: static; }
}
@media (max-width: 767.98px) {
    /* Padding-bottom hanya untuk sticky CTA (~70px) + safe-area iOS,
       karena bottom nav (.bn-bar) di-hide di halaman ini via PHP */
    .pd-page {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
    .pd-card__body { padding: 0.875rem; }
    .pd-title { font-size: 1.0625rem; }
    .pd-trust-row { grid-template-columns: 1fr 1fr; }
    .pd-sticky-cta { display: flex; }

    /* Sembunyikan CTA desktop saat di mobile karena ada sticky */
    .pd-cta-row.is-desktop { display: none; }
}
@media (min-width: 768px) {
    .pd-cta-row.is-desktop { display: flex; }
}

/* ── TikTok video sample tab — vintage rose theme ── */
.pd-video-section {
    padding: 8px 0 12px;
}

/* Section header dengan icon TikTok dan counter */
.pd-video-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(212,165,116,.25);
}
.pd-video-section__intro {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.pd-video-section__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #25f4ee 0%, #fe2c55 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(254, 44, 85, .25);
}
.pd-video-section__intro-text { min-width: 0; }
.pd-video-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 2px 0;
    line-height: 1.3;
}
.pd-video-section__subtitle {
    font-size: .8125rem;
    color: #888;
    line-height: 1.4;
}
.pd-video-section__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 700;
    color: #b8874f;
    background: #fdf6ef;
    border: 1px solid rgba(212, 165, 116, .25);
    border-radius: 999px;
    padding: 6px 14px;
    flex-shrink: 0;
    line-height: 1.3;
}
.pd-video-section__count i { font-size: .85rem; }

/* Empty state */
.pd-video-empty {
    text-align: center;
    padding: 48px 24px;
    background: #faf6f1;
    border: 1px dashed rgba(212, 165, 116, .35);
    border-radius: 14px;
}
.pd-video-empty__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.pd-video-empty__icon {
    font-size: 2rem;
    color: #d4a574;
    margin: 0;
}
.pd-video-empty__title {
    font-size: 1rem;
    font-weight: 700;
    color: #555;
}
.pd-video-empty__text {
    font-size: .875rem;
    color: #999;
    line-height: 1.5;
    max-width: 380px;
    margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════
   Video Grid — ukuran terkontrol agar TikTok tidak terlalu besar
   ════════════════════════════════════════════════════════════ */
.pd-video-grid {
    display: grid;
    /* Default mobile: 1 kolom */
    grid-template-columns: 1fr;
    gap: 14px;
    /* Center grid jika hanya beberapa item di desktop */
    justify-content: center;
}

/* Card */
.pd-video-card {
    background: #fff;
    border: 1px solid #f0e7d8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
    /* Constraint width agar video tidak melebar terlalu besar */
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
}
.pd-video-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    border-color: rgba(212, 165, 116, .3);
    transform: translateY(-2px);
}

/* Top label bar */
.pd-video-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(135deg, #faf6f1, #f7eedf);
    border-bottom: 1px solid #f0e7d8;
}
.pd-video-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .6875rem;
    font-weight: 700;
    color: #b8874f;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pd-video-card__badge i { font-size: .85rem; color: #d4a574; }
.pd-video-card__num {
    font-size: .6875rem;
    font-weight: 700;
    color: #888;
    background: #fff;
    border: 1px solid #f0e7d8;
    border-radius: 6px;
    padding: 2px 8px;
    line-height: 1.4;
    font-family: 'SF Mono', Consolas, monospace;
}

/* Player — aspect ratio TikTok 9:16, tinggi terkontrol */
.pd-video-card__player {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    /* Batasi tinggi maksimal di mobile dan desktop */
    max-height: 540px;
    background: #000;
    overflow: hidden;
}
.pd-video-card__player iframe,
.pd-video-card__player .tiktok-embed {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    border: 0;
    margin: 0 !important;
}

/* Footer dengan link "Buka di TikTok" */
.pd-video-card__footer {
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid #f0e7d8;
}
.pd-video-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8125rem;
    font-weight: 700;
    color: #b8874f;
    text-decoration: none;
    transition: color .2s, gap .2s;
}
.pd-video-card__link:hover {
    color: #fe2c55;
    text-decoration: none;
    gap: 8px;
}
.pd-video-card__link i { font-size: .9rem; }
.pd-video-card__link-arrow {
    font-size: .75rem !important;
    opacity: .65;
    transition: transform .2s, opacity .2s;
}
.pd-video-card__link:hover .pd-video-card__link-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* ════════════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════════════ */

/* Mobile sempit */
@media (max-width: 575.98px) {
    .pd-video-section__head {
        margin-bottom: 14px;
    }
    .pd-video-section__icon { width: 38px; height: 38px; font-size: 1.05rem; }
    .pd-video-section__title { font-size: .9375rem; }
    .pd-video-section__subtitle { font-size: .75rem; }
    .pd-video-card { max-width: 280px; }
    .pd-video-card__player { max-height: 480px; }
}

/* Tablet — 2 kolom */
@media (min-width: 576px) and (max-width: 991.98px) {
    .pd-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 280px));
    }
}

/* Desktop — 2-3 kolom dengan max-width per card */
@media (min-width: 992px) {
    .pd-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 280px));
        justify-content: flex-start;
    }
    .pd-video-card { max-width: 280px; }
    /* Player tidak boleh lebih dari 500px tinggi di desktop */
    .pd-video-card__player { max-height: 500px; }
}

/* Layar lebih lebar — pertahankan ukuran card konsisten */
@media (min-width: 1400px) {
    .pd-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 300px));
    }
    .pd-video-card { max-width: 300px; }
}