.product-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 172px;
}

.product-detail-card {
    overflow: hidden;
    border: 1px solid #dfe0e4;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.product-detail-card .card-body {
    padding: 1.35rem;
}

.product-detail-main-title {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-detail-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.product-detail-image-wrap {
    text-align: center;
}

.product-detail-image-wrap .product-image,
.product-detail-image-placeholder {
    width: 100%;
    max-width: 310px;
    aspect-ratio: 1 / 1;
    border: 3px solid #adb5bd;
    border-radius: 50%;
    background: #fff;
}

.product-detail-image-wrap .product-image {
    padding: 4px;
    object-fit: cover;
}

.product-detail-image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4267b2;
    font-size: 5rem;
}

.product-image-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.product-image-thumb {
    width: 60px;
    height: 60px;
    overflow: hidden;
    padding: 3px;
    border: 1px solid #4267b2;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(66, 103, 178, 0.14);
}

.product-image-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.product-detail-category {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #f27f27;
    font-size: .95rem;
    font-weight: 700;
}

.product-detail-stock,
.product-detail-warranty {
    margin: 0;
    color: #4b5563;
    font-size: .95rem;
    font-weight: 600;
}

.product-detail-warranty {
    font-size: .82rem;
    font-weight: 500;
}

.product-detail-price {
    margin-top: 0;
    padding: 14px 16px;
    border: 1px solid #dfe0e4;
    border-radius: 3px;
    background: #f8fafc;
}

.product-detail-price h2 {
    margin: 0;
    color: #111827;
    font-size: 1.6rem;
    font-weight: 700;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
}

.product-detail-desc {
    color: #4b5563;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.product-detail-desc img:not([width]) {
    max-width: 75%;
    height: auto;
}

.product-detail-related-nav .nav-link {
    font-weight: 700;
}

.product-detail-related-content {
    width: 100%;
    min-width: 0;
}

.product-detail-related-card {
    border: 1px solid #dfe0e4;
    border-top: 0;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.product-detail-related-card .card-body {
    padding: 12px;
}

.product-detail-related-card .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.product-detail-related-card .product-feed-card__body {
    padding: .95rem;
}

.product-detail-related-card .product-feed-card__thumb {
    max-width: 92px;
    margin-left: 10px;
}

.product-detail-related-card .product-feed-card__title {
    font-size: 1rem;
}

.product-detail-related-card .product-feed-card__footer {
    padding: .65rem .95rem;
}

.product-related-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    color: #6b7280;
    text-align: center;
}

.product-detail-buybar {
    position: fixed;
    right: calc(var(--custom-shell-left) + .75rem);
    bottom: 8px;
    left: calc(var(--custom-shell-content-left) + .75rem);
    z-index: 998;
    background: transparent;
}

.product-detail-buybar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.product-detail-buybar__inner * {
    min-width: 0;
}

.product-detail-buybar__product {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.product-detail-buybar__thumb-wrap {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
}

.product-detail-buybar__thumb,
.product-detail-buybar__thumb-placeholder {
    width: 58px;
    height: 58px;
    border: 1px solid #dfe0e4;
    border-radius: 14px;
    background: #fff;
}

.product-detail-buybar__thumb {
    object-fit: cover;
}

.product-detail-buybar__thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4267b2;
}

.product-detail-buybar__badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #28a745;
    color: #fff;
    font-size: .75rem;
    box-shadow: 0 6px 14px rgba(40, 167, 69, 0.24);
}

.product-detail-buybar__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.product-detail-buybar__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #1f2937;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-detail-buybar__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.product-detail-buybar__share-label {
    margin: 0;
    color: #6b7280;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.product-detail-buybar__share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-detail-buybar__share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4267b2;
    text-decoration: none !important;
    transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.product-detail-buybar__share-link:hover {
    transform: translateY(-1px);
    background: #e5e7eb;
    color: #1d4ed8;
}

.product-detail-buybar__share-link--copy {
    color: #111827;
}

.product-detail-buybar__share-link--facebook {
    color: #1877f2;
}

.product-detail-buybar__share-link--twitter {
    color: #1d9bf0;
}

.product-detail-buybar__share-link--whatsapp {
    color: #12b886;
}

.product-detail-buybar__purchase {
    display: flex;
    flex: 0 0 300px;
    max-width: 300px;
    flex-direction: column;
    gap: 8px;
}

.product-detail-buybar__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.product-detail-buybar__stat {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.product-detail-buybar__stat-label {
    display: block;
    margin-bottom: 3px;
    color: #6b7280;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.product-detail-buybar__stat-value {
    display: block;
    color: #111827;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.product-detail-buybar__stat-value--accent {
    color: #dc2626;
}

.button-beli {
    width: 100%;
    padding: .72rem .9rem !important;
    border-radius: 9px;
    box-shadow: none;
    font-size: .9rem;
    line-height: 1.25;
}

.product-detail-footer {
    margin-top: 4px;
    padding: 0 10px 6px;
    color: #90949c;
    font-size: 11px;
    text-align: right;
}

.product-detail-footer a {
    color: inherit;
    text-decoration: none !important;
}

.product-detail-footer p {
    margin: 5px 0 0;
}

@media (max-width: 991.98px) {
    .product-detail-card .card-body {
        padding: 1rem;
    }

    .product-detail-main-title {
        font-size: 1.35rem;
    }

    .product-detail-image-wrap .product-image,
    .product-detail-image-placeholder {
        max-width: 240px;
    }

    .product-detail-related-card .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail-shell {
        padding-bottom: 220px;
    }

    .product-detail-buybar {
        right: 12px;
        bottom: 10px;
        left: 12px;
    }

    .product-detail-buybar__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 10px 12px;
    }

    .product-detail-buybar__product,
    .product-detail-buybar__purchase {
        width: 100%;
        max-width: none;
    }

    .product-detail-buybar__purchase {
        flex-basis: auto;
    }
}

@media (max-width: 575.98px) {
    .product-detail-shell {
        padding-bottom: 196px;
    }

    .product-detail-buybar__product {
        align-items: flex-start;
    }

    .product-detail-buybar__thumb-wrap {
        width: 52px;
        flex-basis: 52px;
    }

    .product-detail-buybar__thumb,
    .product-detail-buybar__thumb-placeholder {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .product-detail-buybar__title {
        font-size: .82rem;
        -webkit-line-clamp: 1;
    }

    .product-detail-buybar__share {
        gap: 6px;
    }

    .product-detail-buybar__share-label {
        display: none;
    }

    .product-detail-buybar__stats {
        gap: 5px;
    }

    .product-detail-buybar__stat {
        padding: 6px 7px;
    }

    .product-detail-buybar__stat-label {
        font-size: .58rem;
    }

    .product-detail-buybar__stat-value {
        font-size: .72rem;
    }

    .button-beli {
        padding: .68rem .85rem !important;
        font-size: .88rem;
    }

    .product-detail-related-card .products-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-footer {
        padding-bottom: 4px;
        text-align: center;
    }
}
