.detail-page {
    padding-bottom: 12px
}

.detail-card {
    position: relative;
    padding: 20px 10px 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: center;
    margin: 0 -12px
}

.detail-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-bg, none);
    background-size: cover;
    background-position: center;
    transform: scale(1.06)
}

.detail-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #33333396 -8.14%, #d3fff7 96.5%)
}

.detail-card>* {
    position: relative;
    z-index: 1
}

.detail-thumb {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    box-shadow: 0 6px 16px #0000002e
}

.detail-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: auto
}

.detail-title {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 800;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px
}

.badges {
    display: flex;
    gap: 6px
}

.badge {
    font-size: 10px;
    background: #eaf6ff;
    color: var(--primary-color);
    padding: 3px 6px;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: capitalize;
}

.detail-desc-block {
    padding: 0 12px
}

.detail-desc {
    margin: 6px auto 0;
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    max-width: 88%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2
}

.detail-desc.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset
}

.desc-toggle {
    background: transparent;
    border: 0;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px
}

.desc-toggle[hidden],
.detail-desc-title {
    display: none
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #999
}

.rating .stars {
    display: flex;
    gap: 5px
}

.rating .star {
    width: 13px;
    height: 13px;
    object-fit: contain
}

.grid-detail {
    grid-template-columns: repeat(3, 1fr)
}

.grid-detail .card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm)
}

.grid-detail .card-media {
    height: 100px
}

.grid-detail .card-title {
    font-size: 12px;
    display: none
}

.grid-detail-small {
    grid-template-columns: repeat(6, 1fr)
}

.grid-detail-small .card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm)
}

.grid-detail-small .card-media {
    height: 40px
}

.grid-detail-small .card-title {
    font-size: 10px;
    display: none
}

.cta-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.cta-thumb-title {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px
}

.cta-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    display: block
}

.cta-title {
    margin: 0;
    font-weight: 800;
    color: #000;
    font-size: 16px
}

.cta-btn {
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    width: 95%;
    background: var(--primary-color);
    color: #fff;
    border: 0;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    animation: detail-pulse 1.8s ease-in-out infinite;
    margin: 0 auto
}

.cta-btn:after {
    content: "";
    position: absolute;
    top: -500%;
    left: -30%;
    width: 60%;
    height: 500%;
    background: linear-gradient(90deg, #fff0, #ffffff8c, #fff0);
    transform: rotate(25deg) translate(-140%);
    transform-origin: 0 50%;
    animation: gg-diag 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
    pointer-events: none;
    will-change: transform
}

@keyframes gg-diag {
    0% {
        transform: rotate(25deg) translate(-140%)
    }

    to {
        transform: rotate(25deg) translate(240%)
    }
}

@keyframes detail-pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.06)
    }

    to {
        transform: scale(1)
    }
}

.section-title .left {
    font-size: 18px
}