.pap-slider-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 40px auto;
    max-width: 1200px;
}

.pap-slider-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: #212529;
    margin-bottom: 20px;
    font-weight: 600;
}

.pap-title-icon {
    width: 28px;
    height: 28px;
    color: #007bff;
}

.pap-slider-wrapper {
    position: relative;
}

.pap-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px; /* To make space for scrollbar without covering content */
    scrollbar-width: none; /* For Firefox */
}

.pap-slider-track::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.pap-product-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 280px; /* Don't grow, don't shrink, base width 280px */
    display: flex;
    flex-direction: column;
    background-color: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.pap-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pap-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #dc3545;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
}

.pap-product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.pap-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pap-product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Make info section grow */
    border-top: 1px solid #e9ecef;
}

.pap-product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    height: 48px; /* Fixed height for 2 lines */
    overflow: hidden;
}
.pap-product-name a {
    color: #212529;
    text-decoration: none;
}
.pap-product-name a:hover {
    color: #007bff;
}

.pap-product-desc {
    font-size: 14px;
    color: #6c757d;
    height: 42px; /* Fixed height for 2 lines */
    overflow: hidden;
    margin-bottom: 15px;
    line-height: 1.5;
}

.pap-price-wrapper {
    margin-top: auto; /* Push price to bottom */
    margin-bottom: 5px;
}

.pap-current-price {
    font-size: 18px;
    font-weight: bold;
    color: #212529;
}

.pap-old-price {
    font-size: 14px;
    color: #6c757d;
    text-decoration: line-through;
}

.pap-unit-info {
    font-size: 14px;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 15px;
}

.pap-buy-button {
    display: block;
    width: 100%;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 11px 11px; /* Rounded bottom corners */
    transition: background-color 0.2s ease;
}

.pap-buy-button:hover {
    background-color: #0056b3;
}

.pap-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    line-height: 38px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.pap-nav-btn:hover:not(:disabled) {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pap-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pap-prev-btn {
    left: -20px;
}

.pap-next-btn {
    right: -20px;
}