/* ============================================================
   Sahi Derma — Premium Product Section (Clinikally Style)
   ============================================================ */

:root {
    --sd-primary: #4F46E5;
    --sd-accent: #A78BFA;
    --sd-success: #22C55E;
    --sd-bg: #F5F7FB;
    --sd-card: #FFFFFF;
    --sd-text: #1F2937;
    --sd-text-muted: #9CA3AF;
    --sd-border: #E5E7EB;
    --sd-yellow: #FACC15;
}

.product-section-wrapper {
    background: var(--sd-bg);
    border-radius: 32px;
    padding: 60px;
    margin: 40px 20px;
    display: flex;
    gap: 40px;
    overflow: hidden;
}

/* ---- Left Content Block ---- */
.ps-left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
}

.ps-badge {
    display: inline-block;
    background: var(--sd-primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    width: fit-content;
}

.ps-left h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--sd-text);
    line-height: 1.2;
    margin-bottom: 30px;
}

.ps-see-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sd-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 10px 20px;
    border: 2px solid var(--sd-primary);
    border-radius: 30px;
    width: fit-content;
    transition: 0.3s;
    background: #fff;
}

.ps-see-all:hover {
    background: var(--sd-primary);
    color: #fff;
}

/* ---- Right Grid Section ---- */
.ps-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px 0 20px;
}

.ps-right::-webkit-scrollbar {
    display: none;
}

/* ---- Product Card ---- */
.ps-card {
    background: var(--sd-card);
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    padding: 16px;
    max-width: 260px;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ps-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.ps-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.badge-doctor {
    width: 52px;
    height: 52px;
    background: #fff;
    border: 2px solid #10b981;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.badge-doctor i {
    font-size: 1rem;
    margin-bottom: 2px;
}

.badge-doctor span {
    font-size: 0.5rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase;
}

.badge-save {
    background: var(--sd-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
}

.ps-card-img {
    height: 200px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ps-card:hover .ps-card-img img {
    transform: scale(1.1);
}

.ps-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
    line-height: 1.3;
}

.ps-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--sd-text);
    font-weight: 600;
    margin-bottom: 15px;
}

.ps-card-rating i {
    color: var(--sd-yellow);
}

.ps-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 15px;
}

.price-old {
    color: var(--sd-text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.price-new {
    color: var(--sd-success);
    font-weight: 800;
    font-size: 16px;
}

.ps-card-btn {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--sd-primary);
    background: #fff;
    color: var(--sd-primary);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.ps-card-btn:hover {
    background: var(--sd-primary);
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .product-section-wrapper {
        flex-direction: column;
        padding: 40px;
    }
    .ps-right {
        grid-template-columns: repeat(2, 1fr);
    }
    .ps-card {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .product-section-wrapper {
        margin: 20px 10px;
        padding: 30px 20px;
        border-radius: 20px;
    }
    .ps-right {
        grid-template-columns: 1fr;
    }
    .ps-left h2 {
        font-size: 1.8rem;
    }
}
