
.product-slider-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.ps-container {
    margin: 0 auto;
}

.products-carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 15px 0;
    margin-bottom: 30px;
    touch-action: pan-y;
}

.products-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    align-items: stretch;
    user-select: none;
    -webkit-user-drag: none;
}

.product-card-item img {
    pointer-events: none;
}

.product-card-item {
    flex: 0 0 calc((100% - 60px) / 3);
    box-sizing: border-box;
    display: flex;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.slider-header .header-title-box {
    display: flex;
    flex-direction: column;
}

.carousel-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.carousel-control-btn {
    background-color: #f4f5f7;
    color: #1a2733;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.carousel-control-btn:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.ps-card {
    background-color: #f4f5f7;
    border-radius: 15px;
    border: 1px solid #E3E3E3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease; transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-item:hover .ps-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.ps-img-box {
    position: relative;
    background: linear-gradient(135deg, #64c2ae 0%, #4eb39d 100%);
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden;
}

.ps-img-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.ps-card:hover .ps-img-box::before {
    opacity: 1;
}

.ps-img-box .btn-explore {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    margin: 0;
    align-self: center;
    background-color: #da291c;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ps-img-box .btn-explore:hover {
    background-color: #b71c1c;
    color: #ffffff;
}

.ps-card:hover .ps-img-box .btn-explore {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.ps-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s ease;
}

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

.ps-text-box {
    padding: 20px 20px 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ps-text-box h3 {
    font-size: 15px;
    color: #1a2733;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ps-text-box p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* --- Slider Dots --- */
.ps-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ps-dot {
    width: 8px;
    height: 8px;
    background-color: #d1d5db;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ps-dot.active {
    background-color: #007fc6;
}

/* --- Responsive Breakpoints (Tablet & Mobile) --- */
@media (max-width: 1050px) {
    .ps-grid {
        grid-template-columns: repeat(2, 310px);
        /* --- Responsive Breakpoints (Tablet & Mobile) --- */
    }
}

@media (max-width: 700px) {
    .ps-grid {
        grid-template-columns: 300px;
        /* --- Responsive Breakpoints (Tablet & Mobile) --- */
    }
}

.product-card-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Responsive Breakpoints (Tablet & Mobile) --- */
@media (max-width: 991px) {
    .product-card-item {
        flex: 0 0 calc((100% - 30px) / 2);
    }
}

@media (max-width: 768px) {
    .product-card-item {
        flex: 0 0 100%;
    }
    .products-carousel-track {
        gap: 15px;
    }
}

