.hbc-ps {
    position: relative;
    width: 100%;
}

/* Tabs */
.hbc-ps-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .hbc-ps-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .hbc-ps-tabs::-webkit-scrollbar {
        display: none;
    }
}

.hbc-ps-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    white-space: nowrap;
}

.hbc-ps-tab:hover,
.hbc-ps-tab.active {
    background: #e8a230;
    border-color: #e8a230;
    color: #fff;
}

/* Panel */
.hbc-ps-panel {
    display: none;
    position: relative;
}

.hbc-ps-panel.active {
    display: block;
}

.hbc-ps-swiper {
    overflow: hidden;
}

.hbc-ps-swiper .swiper-wrapper {
    align-items: stretch;
}

.hbc-ps-swiper .swiper-slide {
    height: auto;
}

.hbc-ps-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.hbc-ps-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #003057;
    clip-path: circle(0% at 0% 0%);
    transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.hbc-ps-card:hover::before {
    clip-path: circle(150% at 0% 0%);
}

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

.hbc-ps-card:hover,
.hbc-ps-card:focus {
    text-decoration: none;
    color: inherit;
}

.hbc-ps-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.hbc-ps-card .hbc-ps-btn {
    transition: color 0s calc(var(--hbc-hover-dur, 0.8s) * 0.19), background 0s calc(var(--hbc-hover-dur, 0.8s) * 0.19);
}
.hbc-ps-card .hbc-ps-price,
.hbc-ps-card .hbc-ps-price del,
.hbc-ps-card .hbc-ps-price ins {
    transition: color 0s calc(var(--hbc-hover-dur, 0.8s) * 0.31);
}
.hbc-ps-card .hbc-ps-desc {
    transition: color 0s calc(var(--hbc-hover-dur, 0.8s) * 0.38);
}
.hbc-ps-card .hbc-ps-title {
    transition: color 0s calc(var(--hbc-hover-dur, 0.8s) * 0.44);
}
.hbc-ps-card .hbc-ps-tag {
    transition: color 0s calc(var(--hbc-hover-dur, 0.8s) * 0.56);
}

.hbc-ps-card:hover .hbc-ps-tag {
    color: #fff !important;
    transition: color 0s calc(var(--hbc-hover-dur, 0.8s) * 0.31);
}
.hbc-ps-card:hover .hbc-ps-title,
.hbc-ps-card:hover .hbc-ps-desc {
    color: #fff !important;
    transition: color 0s calc(var(--hbc-hover-dur, 0.8s) * 0.38);
}
.hbc-ps-card:hover .hbc-ps-price,
.hbc-ps-card:hover .hbc-ps-price del,
.hbc-ps-card:hover .hbc-ps-price ins {
    color: #fff !important;
    transition: color 0s calc(var(--hbc-hover-dur, 0.8s) * 0.44);
}
.hbc-ps-card:hover .hbc-ps-btn {
    background: #fff !important;
    color: #000 !important;
    transition: color 0s calc(var(--hbc-hover-dur, 0.8s) * 0.5), background 0s calc(var(--hbc-hover-dur, 0.8s) * 0.5);
}

.hbc-ps-img-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hbc-ps-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.hbc-ps-card:hover .hbc-ps-img-wrap img {
    transform: scale(1.05);
}

.hbc-ps-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hbc-ps-tag {
    font-size: 13px;
    font-weight: 600;
    color: #e8a230;
    margin-bottom: 10px;
}

.hbc-ps-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hbc-ps-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.hbc-ps-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.hbc-ps-price {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
}

.hbc-ps-price ins {
    text-decoration: none;
    font-weight: 700;
    order: -1;
}

.hbc-ps-price del {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    order: 1;
}

.hbc-ps-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    background: #e8a230;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 0.2s;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.hbc-ps-btn:hover {
    opacity: 0.85;
}

/* Navigation */
.hbc-ps-nav {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: box-shadow 0.2s;
    color: #333;
    user-select: none;
}

.hbc-ps-nav:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hbc-ps-nav img {
    width: 20px;
    height: 20px;
}

.hbc-ps-prev {
    left: 12px;
}

.hbc-ps-next {
    right: 12px;
}

.hbc-ps-nav.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Modal */
.hbc-ps-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hbc-ps-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hbc-ps-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px 48px;
    width: 680px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hbc-ps-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    user-select: none;
}

.hbc-ps-modal-close:hover {
    color: #000;
}

.hbc-ps-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin: 0 0 28px;
    letter-spacing: 1px;
}

.hbc-ps-form label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    gap: 6px;
    flex: 1;
}

.hbc-ps-form .req {
    color: #e53935;
}

.hbc-ps-form input,
.hbc-ps-form textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.hbc-ps-form input:focus,
.hbc-ps-form textarea:focus {
    border-color: #3366ff;
}

.hbc-ps-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hbc-ps-form-full {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    gap: 6px;
    margin-bottom: 24px;
}

.hbc-ps-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #3366ff;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
    user-select: none;
}

.hbc-ps-submit:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hbc-ps-nav {
        width: 28px;
        height: 28px;
    }
    .hbc-ps-prev { left: 4px; }
    .hbc-ps-next { right: 4px; }
    .hbc-ps-modal-content {
        padding: 24px 20px;
    }
    .hbc-ps-form-row {
        flex-direction: column;
        gap: 14px;
    }
}
